#ifdef _POSIX_SOURCE
_PROTOTYPE( int kill, (pid_t _pid, int _sig) );
+_PROTOTYPE( int killpg, (pid_t _pgrp, int _sig) );
_PROTOTYPE( int sigaction,
(int _sig, const struct sigaction *_act, struct sigaction *_oact) );
_PROTOTYPE( int sigaddset, (sigset_t *_set, int _sig) );
_PROTOTYPE( long random, (void) );
_PROTOTYPE( char *setstate, (const char *state) );
_PROTOTYPE( void srandom, (unsigned seed) );
-_PROTOTYPE( int getloadavg, (double *, int) );
+_PROTOTYPE( int putenv, (char *string) );
+_PROTOTYPE( int setenv, (const char *envname, const char *envval,
+ int overwrite) );
+_PROTOTYPE( int unsetenv, (const char *name) );
#endif
#ifdef _MINIX
-_PROTOTYPE( int putenv, (const char *_name) );
-_PROTOTYPE( int setenv, (const char *name, const char *val, const int f));
+_PROTOTYPE( int getloadavg, (double *, int) );
/* According to POSIX, getopt should be in unistd.h. What do we do with
* this?
#ifndef _TYPE_H
#include <minix/type.h>
#endif
+
+extern int optreset; /* Reset getopt state */
+
_PROTOTYPE( int brk, (char *_addr) );
_PROTOTYPE( int chroot, (const char *_name) );
_PROTOTYPE( int mknod, (const char *_name, _mnx_Mode_t _mode, Dev_t _addr) );