Top "Posix" questions

POSIX (Portable Operating System Interface) is a set of standards defining programming APIs, a command interpreter, and common utilities for Unix-like operating systems.

PaxHeaders in tarball

I'm doing a tar like in C, and I've got a problem. I just want to archive and unarchive files …

c unix posix tar pax
why pthread causes a memory leak

Whenever I create a pthread, valgrind outputs a memory leak, For example the below code: #include <stdio.h> #…

c memory-leaks pthreads posix valgrind
Why does wait() set status to 255 instead of the -1 exit status of the forked process?

I'm trying to return an integer value from a child process. However, if I use exit(1) I get 256 as the …

c posix exit waitpid
Posix shared memory vs mapped files

Having learnt a bit about the subject, can anyone tell, what is the real difference between POSIX shared memory (shm_…

posix shared-memory memory-mapped-files
PThread vs boost::thread?

Having no experience with threading in the past, which threading technique in C++ will be the easiest for a beginner? …

c++ multithreading boost pthreads posix
Setting thread priority in Linux with Boost

The Boost Libraries don't seem to have a device for setting a thread's priority. Would this be the best code …

c++ linux boost pthreads posix
How can I prevent zombie child processes?

I am writing a server that uses fork() to spawn handlers for client connections. The server does not need to …

c posix zombie-process
how do I parse an iso 8601 date (with optional milliseconds) to a struct tm in C++?

I have a string which should specify a date and time in ISO 8601 format, which may or may not have …

c++ parsing posix datetime-format
What is the alternative to getopt function on Windows c++?

The code below I'm using Posix C: while ((opt = getopt(argc, argv, "a:p:h")) != -1) How can I port …

c++ windows posix getopt
Segmentation Fault at pthread_join

So when I run my code, I'm getting a segmentation fault right at the pthread_join. There is a print …

c matrix pthreads posix pthread-join