First  |  Prev |  Next  |  Last
Pages: 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
Error status in waitpid
Hi, I've some code where a forked process executes another program, waits for it to finish (the invoked program writes some results via a pipe to the forked program) and then repeats this process. This is the code fragment which is executed in a loop: -----------------------------------------------------------... 23 Jun 2008 13:45
traceroute
In traceroute what is the use of -g option. What it will do? ... 19 Jun 2008 01:20
Skin an instruction using ptrace
Hi, I am trying to use ptrace for a particular case where I want to skip the instruction pointed to by eip. I am using PTRACE_SINGLESTEP as the request to get to the instruction I want to skip. When I get to that particular instruction, I do: data.eip += 2; //since its a 2 byte instruction if ((error = ptr... 19 Jun 2008 01:20
Multiple calls to read().
Lets say we have a program that calls read(). Now lets say both John and Mary on a *nix system both use this mythical program at the same time. What happens when both John and Mary's program try to access the read() system call at the same time? Does each user get their own copy of read() loaded into their process ... 19 Jun 2008 01:20
writing my own fopen/fclose/fread/fwrite
Hello, how to write my own my_fopen, my_fread,my_fwrite, my_fclose function. Situation. 1. 32-bit binary on Solaris machine. Having limit of fopen must occupied within first 256 descriptor, http://developers.sun.com/solaris/articles/stdio_256.html 2. Dont want to move to 64-bit. 3. Patch may not avail (for... 19 Jun 2008 07:32
Does OS/X fully support the posix API?
I'm musing on buying a Mac and I'd like to port a lot of my C & C++ unix code over to it. Will it compile without a fight using the Apple or gcc compiler or are their some major incompatabilities (over and above the occasional #ifdef being required obviously)? B2003 ... 19 Jun 2008 01:20
close() a pipe question
This question stems from an old thread in comp.unix.programmer found at http://groups.google.com/group/comp.unix.programmer/browse_thread/thread/b6ae1e2018b0e893/8e99ade031133302?hl=en&lnk=gst&q=pipe+close+order#8e99ade031133302 And I quote the sections in question "Why I do not close 0 and 1 first and let th... 19 Jun 2008 01:20
Another poll/ blocking oddity
As I just had the mispleasure to discover: Assume a connected PF_UNIX datagram socket on Linux (checked w/ 2.6, applies probably to earlier versions, too). 'poll' will return, indicating that the socket is writeable when the amount of memory consumed by skbs owned by it is less than the size of the write buffer of ... 19 Jun 2008 01:20
60-luvulla myytiin jo autoilijoille kaikenlaista kivaa
05.06.2008] Ensimm�inen selluloosaetanolitehdas avattiin Yhdysvalloissa Ensimm�inen selluloosapohjaista etanolia jatkuvatoimisesti valmistava tehdas aloittanut toimintansa Yhdysvalloissa, kertoo MIT:n Technology Review. Mittakaavaltaan teollinen koelaitos, joka tuottaa noin 4 200 tonnia eli noin 5 300 kuutiometri� ... 19 Jun 2008 01:20
how does the killall command work ?
Hi, I was trying to understand the inner working mechanism of killall command, i.e when we issue a command with the proc name, how does killall program finds all the running instances (pids) of all the process with the same proc name. I looked into the code the of /usr.bin/killall/killall.c (may vary in your ... 19 Jun 2008 01:20
First  |  Prev |  Next  |  Last
Pages: 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61