 FUNCTION: int getpriority ( int which, id_t who ) ;
 FUNCTION: int setpriority ( int which, id_t who, int prio ) ;
 FUNCTION: int getrusage ( int who, rusage* r_usage ) ;
-FUNCTION: group* getgrent ;
+FUNCTION: group* getgrent ( ) ;
 FUNCTION: void endgrent ( ) ;
 FUNCTION: int gethostname ( c-string name, int len ) ;
 FUNCTION: int getsockname ( int socket, sockaddr* address, socklen_t* address_len ) ;

FUNCTION: ssize_t write ( int fd, void* buf, size_t nbytes ) ;
FUNCTION: ssize_t writev ( int fds, iovec* iov, int iovcnt ) ;
TYPEDEF: void* sighandler_t
FUNCTION: sighandler_t signal ( int signum, sighandler_t handler) ;

"librt" "librt.so" cdecl add-library

FUNCTION: c-string gai_strerror ( int ecode ) ;
FUNCTION: int getaddrinfo ( c-string hostname, c-string servname, addrinfo* hints, addrinfo** res ) ;
FUNCTION: c-string getcwd ( c-string buf, size_t size ) ;
FUNCTION: pid_t getpid ( ) ;
FUNCTION: int getdtablesize ( ) ;
FUNCTION: pid_t getpgrp ( ) ;
FUNCTION: pid_t getpgid ( pid_t pid ) ;
FUNCTION: gid_t getegid ( ) ;
FUNCTION: uid_t geteuid ( ) ;
FUNCTION: gid_t getgid ( ) ;
FUNCTION: c-string getenv ( c-string name ) ;

FUNCTION: int getgrgid_r ( gid_t gid, group* grp, c-string buffer, size_t bufsize, group** result ) ;
