posix-api
How can I wait for any/all pthreads to complete?
I just want my main thread to wait for any and all my (p)threads to complete before exiting. The threads come and go a lot for different reasons, and I really don\'t want to keep track of all of the[详细]
2023-03-09 06:01 分类:问答Will POSIX system(3) call to an asynchronous shell command return immediately?
For example, system(\"sh /mydir/some-script.sh &\")开发者_如何学Gosystem(\"sh /mydir/some-script.sh &\")[详细]
2023-02-25 19:24 分类:问答Where does Microsoft Windows' 7 POSIX implementation currently stand?
Is there a full POSIX implementation available in/for Windows 7 (I\'m thinking of Windows Services for UNIX)?[详细]
2023-02-06 05:44 分类:问答"fprintf"-like function for file descriptors (i.e. int fd instead of FILE* fp)
Maybe I\'m just missing it, but isn\'t there a function equivalent to fprintf for file descriptors开发者_运维问答, or even a way to temporarily flip-flop between them?You could look into dprintf (GNU[详细]
2023-01-26 02:46 分类:问答Force blocking read after EAGAIN?
I have a file descriptor that is open for reading which may be non-blocking. What I need to do is simply read all data until reaching EOF and write that data to a writable file descriptor. As the proc[详细]
2022-12-31 11:58 分类:问答Is O_NONBLOCK being set a property of the file descriptor or underlying file?
From what I have been reading on The Open Group website on fcntl, open, read, and write, I get the impression that whether O_NONBLOCK is set on a file descriptor, and hence whether non-blocking I/O is[详细]
2022-12-31 02:03 分类:问答Does waitpid yield valid status information for a child process that has already exited?
If I fork a child process, and the child process exits before the parent calls waitpid, then is the exit status information that is set by waitpid still valid? If so, when does it become not valid;i.e[详细]
2022-12-31 01:40 分类:问答EnumJobs not returning Copies & Total Pages
I\'m using Windows API\'s EnumJobs to find the PageCount and Copies of a print job, but I found that these fields are almost always zero when called on a print server.[详细]
2022-12-29 23:34 分类:问答Checking if subfolders exist linux
I\'m trying to check if a folder has any subfolders without iterating through its children, in Linux. The closest I\'ve found so far is using ftw and stopping at the first subfolder - or using scandir[详细]
2022-12-26 06:28 分类:问答Learning Ruby - 1.8 or 1.9 version?
I\'ve been learning Python for a while, but the projects I want to do are better suited for Ruby, for example the SAC API for CSS is available in Ruby (and 开发者_如何学CC & Java).[详细]
2022-12-16 22:15 分类:问答