]> Zhao Yanbai Git Server - minix.git/commitdiff
Added killpg to signal.h, rearranged getloadavg, putenv, and setenv in
authorPhilip Homburg <philip@cs.vu.nl>
Wed, 7 Jun 2006 14:36:35 +0000 (14:36 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Wed, 7 Jun 2006 14:36:35 +0000 (14:36 +0000)
stdlib.h and added unsetenv, added declaration of optreset to unistd.h.

include/signal.h
include/stdlib.h
include/unistd.h

index f90d9dcf7b87c248c20517461eaa4d18d67e1356..9754c06bbcd4da7ce9267218a9eeaa28f8fafbb2 100755 (executable)
@@ -108,6 +108,7 @@ _PROTOTYPE( __sighandler_t signal, (int _sig, __sighandler_t _func) );
 
 #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)                  );
index 8797e3b9c61a241511bffe96d64d69cfcb3fc9b0..d170623ee3562f080b2201007409fe37f8611b4c 100755 (executable)
@@ -71,12 +71,14 @@ _PROTOTYPE( char *initstate, (unsigned _seed, char *_state,
 _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?
index 4ae87ead445a996352b14d8c083c2bdd50a82bb9..1f1f89ecab4d96697569929eab6d003528ba4198 100755 (executable)
@@ -158,6 +158,9 @@ _PROTOTYPE( int usleep, (useconds_t _useconds)                              );
 #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)     );