Added killpg to signal.h, rearranged getloadavg, putenv, and setenv in
stdlib.h and added unsetenv, added declaration of optreset to unistd.h.
This commit is contained in:
parent
eaf9e4cff8
commit
3f297ffd9f
|
@ -108,6 +108,7 @@ _PROTOTYPE( __sighandler_t signal, (int _sig, __sighandler_t _func) );
|
||||||
|
|
||||||
#ifdef _POSIX_SOURCE
|
#ifdef _POSIX_SOURCE
|
||||||
_PROTOTYPE( int kill, (pid_t _pid, int _sig) );
|
_PROTOTYPE( int kill, (pid_t _pid, int _sig) );
|
||||||
|
_PROTOTYPE( int killpg, (pid_t _pgrp, int _sig) );
|
||||||
_PROTOTYPE( int sigaction,
|
_PROTOTYPE( int sigaction,
|
||||||
(int _sig, const struct sigaction *_act, struct sigaction *_oact) );
|
(int _sig, const struct sigaction *_act, struct sigaction *_oact) );
|
||||||
_PROTOTYPE( int sigaddset, (sigset_t *_set, int _sig) );
|
_PROTOTYPE( int sigaddset, (sigset_t *_set, int _sig) );
|
||||||
|
|
|
@ -71,12 +71,14 @@ _PROTOTYPE( char *initstate, (unsigned _seed, char *_state,
|
||||||
_PROTOTYPE( long random, (void) );
|
_PROTOTYPE( long random, (void) );
|
||||||
_PROTOTYPE( char *setstate, (const char *state) );
|
_PROTOTYPE( char *setstate, (const char *state) );
|
||||||
_PROTOTYPE( void srandom, (unsigned seed) );
|
_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
|
#endif
|
||||||
|
|
||||||
#ifdef _MINIX
|
#ifdef _MINIX
|
||||||
_PROTOTYPE( int putenv, (const char *_name) );
|
_PROTOTYPE( int getloadavg, (double *, int) );
|
||||||
_PROTOTYPE( int setenv, (const char *name, const char *val, const int f));
|
|
||||||
|
|
||||||
/* According to POSIX, getopt should be in unistd.h. What do we do with
|
/* According to POSIX, getopt should be in unistd.h. What do we do with
|
||||||
* this?
|
* this?
|
||||||
|
|
|
@ -158,6 +158,9 @@ _PROTOTYPE( int usleep, (useconds_t _useconds) );
|
||||||
#ifndef _TYPE_H
|
#ifndef _TYPE_H
|
||||||
#include <minix/type.h>
|
#include <minix/type.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern int optreset; /* Reset getopt state */
|
||||||
|
|
||||||
_PROTOTYPE( int brk, (char *_addr) );
|
_PROTOTYPE( int brk, (char *_addr) );
|
||||||
_PROTOTYPE( int chroot, (const char *_name) );
|
_PROTOTYPE( int chroot, (const char *_name) );
|
||||||
_PROTOTYPE( int mknod, (const char *_name, _mnx_Mode_t _mode, Dev_t _addr) );
|
_PROTOTYPE( int mknod, (const char *_name, _mnx_Mode_t _mode, Dev_t _addr) );
|
||||||
|
|
Loading…
Reference in a new issue