Top "Systems-programming" questions

System programming is the activity of computer programming system software.

Zombie processes

I'v some questions about zombie processes what the benefits from zombie process concept? know that the kernel keeps (PID,termination …

c unix process posix systems-programming
mkfifo() error ---> "Error creating the named pipe.: File exists"

The mkfifo function takes 2 arguments, path and mode. But I don't know what is the format of the path that …

c systems-programming mkfifo
Fork implementation

How is fork system call code written . I want to know some details how a function can return two different …

c unix operating-system systems-programming
On the use and abuse of alloca

I am working on a soft-realtime event processing system. I would like to minimise as many calls in my code …

c++ memory-management real-time micro-optimization systems-programming
Learn about android internals(dive deep into the system)

Ok, guys, I think that's the right place to ask a question, because it's all about development(if I'm wrong …

android linux architecture systems-programming
Why does this program print "forked!" 4 times?

Why does this program print “forked!” 4 times? #include <stdio.h> #include <unistd.h> int main(void) { …

c linux unix fork systems-programming
Literals VS Immediate Operands

In the systems software course that I have this semester, we are being taught assemblers and other system software. While …

assembly literals systems-programming immediate-operand
sys/stat S_ISDIR(m) with struct dirent

I want to check to see if a file is a directory, link, or just a regular file. I loop …

c++ c systems-programming
Using sigaction(), c

I was doing a little reading about sigaction() (sources are from my course notes) and I'm not sure I understand …

c unix signals bitmask systems-programming
How to know if a process is a parent or a child

How does one identify if a process is a child/grandchild of another process using its pid?

c linux unix pid systems-programming