2 ** Copyright 2001-2004 Travis Geiselbrecht. All rights reserved.
3 ** Copyright 2002, Manuel J. Petit. All rights reserved.
4 ** Distributed under the terms of the NewOS License.
7 #ifndef __newos__libc_unistd__hh__
8 #define __newos__libc_unistd__hh__
10 #include <sys/types.h>
16 /* whence values for lseek() */
23 int open(char const *, int, ...);
27 int unlink(const char *);
31 off_t
lseek(int, off_t
, int);
32 ssize_t
read(int, void *, size_t);
33 ssize_t
pread(int, void *, size_t, off_t
);
34 ssize_t
write(int, void const*, size_t);
35 ssize_t
pwrite(int, void const*, size_t, off_t
);
37 unsigned sleep(unsigned);
41 char *getcwd(char *, size_t);
46 /* not strictly supposed to be here, and doesn't quite match unix ioctl() */
47 int ioctl(int, int, void *, size_t);
50 int setpgid(pid_t pid
, pid_t pgid
);
51 pid_t
getpgid(pid_t pid
);
56 pid_t
getsid(pid_t pid
);