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.

Create statically-linked binary that uses getaddrinfo?

I have included the header netdb.h, where getaddrinfo is included, but gcc issues this warning: warning: Using 'getaddrinfo' in …

c gcc posix c99 static-linking
How does one easily add posix support to PHP using yum?

I am running CentOS 5.2 and using yum to manage packages. I have had little luck installing php-posix but know with …

php posix packages centos yum
whoami in python

What is the best way to find out the user that a python process is running under? I could do …

python posix
UNIX Portable Atomic Operations

Is there a (POSIX-)portable way in C for atomic variable operations similar to a portable threading with pthread? Atomic …

c concurrency posix atomic
Are message queues obsolete in linux?

I've been playing with message queues (System V, but POSIX should be ok too) in Linux recently and they seem …

linux sockets posix ipc message-queue
Signals and interrupts a comparison

Based on various references, my subjective definition of signals in Linux is "The triggers that are used to notify the …

linux signals posix interrupt isr
Lock a mutex multiple times in the same thread

I'm developing an application on an embedded linux OS (uClinux) and I need to be able to lock the mutex …

c linux posix embedded-linux uclinux
Linux 3.0: Executing child process with piped stdin/stdout

Under Linux 3.0 / C++: I would like a function that does the following: string f(string s) { string r = system("foo &…

c++ c linux posix glibc
Is file append atomic in UNIX?

In general, what can we take for granted when we append to a file in UNIX from multiple processes? Is …

unix file-io posix atomic atomicity
Converting datetime to POSIX time

How do I convert a datetime or date object into a POSIX timestamp in python? There are methods to create …

python datetime posix