read/write syscalls???

zootbobbalu

Registered
Does anyone know how to make read/write system calls in a C program. I found a header file "mach_syscalls.h". If I include this header, can I make read/write system calls with it? Also, what are the arguments you need to send to read/write system calls.

"#include<fcntl.h>" seems to let me get the file descriptor number of a filename I pass to the open function, so I think all that is keeping me from reading a file into memory is a read/write system call.

 
Back
Top