system-calls
What is the minimum SO_RCVBUF value?
To minimize latency (I don\'t care about packet loss) I want the smallest possible receive buffer for UDP. However, when I set SO_RCVBUF to below 1000 (with s开发者_开发百科etsockopt), my program neve[详细]
2023-02-10 04:05 分类:问答Where is total_forks from forks.c initialized?
Hi I am trying to create a counter that will just count the number of times the system call vfork() has been called in fork.c in the Linux kernel source. I\'am following how total_forks is implemented[详细]
2023-02-10 01:30 分类:问答Synchronization in C with system calls
I am doing something a bit weird but i want it fully synchronized. So i thought of asking your help. I have the following:[详细]
2023-02-09 13:56 分类:问答System call from Simulink possible?
Is it possible to do a system call from Simulink? I haven\'t found it in documentation开发者_高级运维, but maybe there is a workaround. Or, it can be as easy as an function call. You should be able to[详细]
2023-02-08 07:24 分类:问答What is the use of ATOM returned by RegisterClassEx function?
I was reading the documentation of RegisterClassEx function and found that the return type of the function is ATOM.[详细]
2023-02-08 02:17 分类:问答multiple timer to one process (without linking to rt)
is there any way to register multiple timer to a single process? I have tried following code, yet without success. (Use \"gcc -lrt\" to compile it...). Program output nothing, which should atleast pri[详细]
2023-02-08 01:32 分类:问答Overloading fork( )
I have overloaded the fork() system call and created my own version of fork() using RTLD_NEXT. That is, dlsym(RTLD_NEXT, fork). This will hit my version of fork. After this I want to replicate the tas[详细]
2023-02-07 21:21 分类:问答Magic numbers of the Linux reboot() system call
The Linux Programming Interface has an exercise in Chapter 3 that goes like this: When using the Linux-specific reboot()[详细]
2023-02-07 02:16 分类:问答What does one do about buggy POSIX APIs which leak memory?
Disclaimer: This is for an assignment, but the assignment doesn\'t require that we remove memory leaks. I\'m just anal retentive on this one.[详细]
2023-02-06 02:50 分类:问答How does one maintain memory with the putenv system call?
The POSIX system call putenv states that the allocated memory string cannot be freed by the caller after the call to putenv. Therefore, you cannot call putenv with an automatic variable.[详细]
2023-02-06 02:42 分类:问答