posix
Is there an async way of knowing a file has changed?
I would like to asynchronously monitor a file for any changes. That is I would like to have a call back (possibly from kernel) in my program when the file has been modified/deleted. The file is just a[详细]
2023-03-25 03:08 分类:问答How to keep track of all descendant processes to cleanup?
I have a program that can fork() and exec() multiple processes in a chain. E.g.: process A --> fork, exec B --> fork, exec C --> fork, exec D.So A is the great-great-grandparent of C.[详细]
2023-03-24 23:07 分类:问答How to provide extend-on-write functionality for memory mapped files in Linux?
I\'m working on porting some code from AIX to Linux. Parts of the code use the shmat() system call to create new files. When used with SHM_MAP in a writable mode, one can extend the file beyond its or[详细]
2023-03-24 22:34 分类:问答Understanding the posix interprocess semaphore
According to m开发者_如何学JAVAy understanding, a semaphore should be usable across related processes without it being placed in shared memory. If so, why does the following code deadlock?[详细]
2023-03-24 03:10 分类:问答No "sqrtf" in math.h
I am working under Ubuntu 11.04 and now engaged in a project whose source code uses routines like \"sqrtf\" or \"lgamma\", which are 开发者_如何学JAVAcomplained by my IDE, claiming that they cannot be[详细]
2023-03-24 01:50 分类:问答Sendto Failed C++ // POSIX.4
So - I\'m running an application where two processes are talking over a UNIX domain socket.The vast majority of the messages being passed over the socket are processed correctly, but when the number o[详细]
2023-03-24 01:21 分类:问答Test for empty string with X"" [duplicate]
This question already has answers here: Why do shell script comparisons often use x$VAR = xyes? (7 answers)[详细]
2023-03-23 15:43 分类:问答Does Linux allow process group ids to be reassigned to processes?
Suppose pid X is a process group leader and X terminates, but other processes in the process group remain running (with X as their pgid). Will Linux prevent the value X from being assigned as a pid to[详细]
2023-03-22 07:17 分类:问答Whats going wrong with my code ? The global variable value changed while using semaphore
#include<pthread.h> #include<stdio.h> #include<semaphore.h> void func(); int a; int main()[详细]
2023-03-22 03:02 分类:问答Convert Tz posix time zone string to Utc-xx && vice versa
anybody knows how to convert a tz posix time zone string example \"CET-1CEST,M3.5.0,M10.5.0/3\" to an开发者_运维百科 utc string like \"(UTC-12:00) International Date Line West\" in javascript[详细]
2023-03-21 06:06 分类:问答