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.

How to convert from UTC to local time in C?

It's a simple question, but the solution appears to be far from simple. I would like to know how to …

c time posix utc datetime-conversion
How to get a FILE pointer from a file descriptor?

I'm playing around with mkstemp(), which provides a file descriptor, but I want to generate formatted output via fprintf(). Is …

c posix mkstemp
Automatically executed functions when loading shared libraries

When loading shared libraries in Windows, LoadLibrary() call causes DllMain in library to execute for each new process and thread …

posix shared-libraries d dlopen
wait(null) and wait(&status) C language and Status

What is the difference between wait(null) and wait(&status) in c system programming? And what is the content …

c unix posix wait status
What does ECONNRESET mean in the context of an AF_LOCAL socket?

I understand that for TCP sockets ECONNRESET has got something to do with RST packets. But I've seen ECONNRESET errors …

sockets posix
File opening mode in Ruby

I am new programmar in Ruby. Can someone take an example about opening file with r+,w+,a+ mode in …

ruby file posix
unlink vs remove in c++

What is the difference between remove and unlink functions in C++?

c++ unix posix erase
How to redirect the output back to the screen after freopen("out.txt", "a", stdout)

#include <stdio.h> int main() { printf("This goes to screen\n"); freopen("out.txt", "a", stdout); printf("This …

c posix stdout
UDP-Broadcast on all interfaces

On a Linux system with a wired and a wireless interface (e.g. 192.168.1.x and 192.168.2.x subnets) I want to …

linux udp posix broadcast
How to create directory with right permissions using C on Posix

I am trying to write a simple C program that creates directories (a mkdir clone.). This is what I have …

c posix mkdir umask