Search results

  1. X

    c++ sigaction SIGXCPU, process don't stop

    But in the FreeBSD System Calls Manual getrlimit I read this: "When the soft cpu time limit is exceeded, a signal SIGXCPU is sent to the offending process."
  2. X

    c++ sigaction SIGXCPU, process don't stop

    I have this code: volatile sig_atomic_t got_usr1; void sigxcpu_handler(int sig) { got_usr1 = 1; kill( getpid(), SIGXCPU ); } int main(void) { //limit on cpu time struct rlimit vLimCPU; vLimCPU.rlim_cur = 1; vLimCPU.rlim_max = 1; setrlimit(RLIMIT_CPU, &vLimCPU); struct...
  3. X

    mysql server

    I have two applications: one runs in FreeBsd FreeBSD amd64 and one in Windows. Both applications use the same database (MySQL database). At this moment I use two different databases, one in Freebsd FreeBSD and one in Windows. This application runs on different PCs connected to the internet. I...
  4. X

    Compiling and Running Questions with CC and GCC

    Because you have not set the environment variable PATH set for your program. You can view this variable int main(int argc,char** argv,char** envp){ while(*envp){ printf("%s\n",*envp); envp++;}}
  5. X

    c++ limit process child ignore SIGXCPU

    I have this code static void sigXCPU(int pTmp){ cout<<" .... "; } ..... pid_t vPid=fork(); int vStat; switch(vPid){ case -1: perror("fork"); exit(1); case 0: //limit on data struct rlimit vLimD; vLimD.rlim_cur = 100000; vLimD.rlim_max = 1000000...
  6. X

    c++ mysql stored procedure error code 2014

    I use FreeBSD 8.0 amd64 and these packages mysql-client-5.1.61, mysql-connector-c++-1.1.0, mysql-server-5.1.61 and gcc 4.2.1 and I have this code: string vU="demo",vP="1234"; Driver * vDriver = get_driver_instance(); auto_ptr< Connection > vCon(vDriver->connect(getHost(),getUser() ...
  7. X

    c++ mysql stored procedure compile error

    This is not helping me because I use get_driver_instance() from driver.h, anyway if I include [fiile]mysql_driver.h[/file] I get this error g++ -L/usr/local/lib/mysql -lmysqlclient -L/usr/local/lib ./main.o -o licenta ./main.o(.text+0x3bf): In function `main': ./main.cpp:27: undefined...
  8. X

    c++ mysql stored procedure compile error

    I have this code: #include<iostream> using namespace std; #include<mysql.h> #include <driver.h> #include <exception.h> #include <resultset.h> #include <statement.h> #include <prepared_statement.h> #define EXAMPLE_HOST "localhost" #define EXAMPLE_USER "test" #define EXAMPLE_PASS "" #define...
  9. X

    c++ limit process

    Thanks a lot it help
  10. X

    c++ limit process

    I'm working on an application in C++ and I use process, may I limit a process to use just 30MB RAM or 10% of CPU?
  11. X

    Add a FreeBSD user from c++

    Thank you both have been helpful
  12. X

    Add a FreeBSD user from c++

    Is it possible to add a user without function int system ( const char * command ); and how can I use this user in my application? E.g. this user has a username and a password and I want when I run the application to use the username and password for login in my application. Or I can add this...
  13. X

    netbeans 7.0 c++ aplication error compile

    i use FreeBSD 8.2-RELEASE amd64 and netbeans 7.0 , i create a new proiect "C/C++ Application" and he generate main.cpp if i try to compile and run the project he give me this error "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf Error expanding embedded variable...
  14. X

    g++ Permission denied

    thanks a lot
  15. X

    g++ Permission denied

    i use FreeBSD 8.2-RELEASE amd64 i have this file main.cpp with code #include<iostream> using namespace std; int main(){ cout<<"heloo"; return 0;} i use g++ -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version...
  16. X

    FreeBSD 8.2 amd64 install port error (only for i386)

    I try to make and install kde4 but I have a problem libieee1284-0.2.10 is only for i386 , while you are runing amd64. *** Error code 1 ... So what can I do?
  17. X

    FreeBSD 82 amd64 + kde application

    I have installed 8.2-RELEASE FreeBSD amd64 and I have same problem: 1. application of the kde4 program would not start 2. the background appears as would be cut in half The pc configuration is: Intel i3-540,Gigabyte h55m-s2, the video card is the Intel i3 integrated graphics.
Back
Top