First  |  Prev |  Next  |  Last
Pages: 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
gettimeofday() and splint
Hello, %cat foo.c #include <stdio.h> #include <sys/time.h> int main(void) { struct timeval tval; if (gettimeofday(&tval, NULL) == -1) { /* error handling */ } return 0; } for this simple code 'splint foo.c' reports: Splint 3.0.1.7 --- 24 Jan 2003 foo.c: (in function... 15 Sep 2006 03:16
Solaris fork() to generate core file
I'm using Intel Solaris 9. I want to get a core dump when my process hits an error condition, but keep the process running so I do it like this... Fork the process using fork(). Parent just carries on running, child calls abort() to dump core file then exit. Because fork() uses copy-on-write, one of two thing... 15 Sep 2006 23:48
When to use which IPC.
I have a query. I wanted to know in which situation I have to use which IPC. Which is fastest IPC. ... 9 Sep 2006 06:34
Shell w/ Minimalistic Env?
Is there any way to launch a shell with only the bare essential environment variables like SHELL, PATH, PWD, and USER? I tried sh --noprofile --login --norc etc but I still see all sorts of stuff like SSH_AGENT_PID, QTDIR, LS_COLORS, etc. If not, is there a way to clear all environment variables? I want my p... 8 Sep 2006 14:47
fork() using multiprocessors
I just by chance learnt of the fork() command, however I'm not sure if I understand it correctly. Is it possible to use fork() to employ the 2nd processor on a two processor system to gain speed? Eg. int n = 10000; float array[10000]; pid_t pid = fork(); float sum = 0; // sum all elements if(pid==0) { /... 7 Sep 2006 19:37
Detecting socket state?
Hi, Given a socket descriptor, is there a way to detect what state (CLOSE_WAIT, LAST_ACK, TIME_WAIT...) the given socket is in without doing a write or read on the socket? Thanks for your response, Yug ... 6 Sep 2006 15:18
Binary Tree On Disk (Rough Wave Library)
Hi All, Currently I am using RWBTreeOnDisk ( Rough Wave Library) to manage data on disk. But now I want to move to Open Source. Anybody knows the open source solution of Rough Wave library or RWBTreeOnDisk ? Thanks Naresh Prajapati ... 6 Sep 2006 04:00
Redirect output of execvp to a buffer
I am in a systems programming class, using C on a Solaris 10 development server. Part of the first programming assignment calls for the output of a command executed by a child process with execvp to be redirected to a buffer so that it can be sent through a named pipe back to the parent process. The only part I'm h... 8 Sep 2006 21:41
Linux select command issues
Is anyone aware of an issue with using select on Linux. I am using the select command to monitor a tcp socket for incoming data. The timeout on the socket is rather long, and normally when I issue a shutdown on the socket from another thread, the select returns to signify that there is a read 0 available. However, ... 8 Sep 2006 15:19
Raw Socket
How can i use a Raw Socket to send a packet through a certain ethernet card in a computer with several ethernet cards? I still have no idea about that. I will really appreciate your help. Thanks. ... 6 Sep 2006 05:35
First  |  Prev |  Next  |  Last
Pages: 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234