Top "System-calls" questions

A system call is used by programs to request services from the operating system's kernel.

Why is clock_nanosleep preferred over nanosleep to create sleep times in C?

Which one of the two functions is better #include <time.h> int clock_nanosleep(clockid_t clock_id, …

c linux linux-kernel system-calls
Perl: After a successful system call, "or die" command still ends script

I am using the following line to make a simple system call which works: system ("mkdir -p Purged") or die "…

perl system-calls die
with -lpthread, g++ compiler error, "undefined reference to " semaphore calls such as `sem_open'

I am new to posix thread library, and I tried to compile a sample code from a tutorial with: g++ …

c++ linux multithreading system-calls undefined-reference
Is malloc/free a syscall or a library routine provided by libc?

If malloc/free is implemented as a library routine in libc, then is it implemented on top of the sbrk …

c linux system-calls libc
System call implementation in Pintos

I want to implement the already defined system calls in PintOS ( halt(), create()...etc defined in pintos/src/lib/user/…

operating-system system system-calls sys pintos
getrandom syscall in C not found

The problem was resolved by upgrading the C library. I would like to use the syscall getrandom (http://man7.org/…

c linux ubuntu gcc system-calls
open() system call header file requirements

I am using x86_64 GNU/Linux with gcc. SYNOPSIS section of man -s2 open says: #include <sys/types.h&…

c header-files system-calls manpage
How to hook system calls of my android app (non rooted device)

I am trying to intercept all system calls made by my Android app on a non rooted device. So every …

android hook system-calls function-interposition library-interposition
List of and documentation for system calls for XNU kernel in OSX

I'm trying to figure out how to get a list of and documentation for the system calls available in the …

macos operating-system system-calls
run a program in background with execvp system call in c

i'm writing a program that recieves a command name and arguments and optionally the string "bg" at the end , if …

linux system posix system-calls execvp