diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | nonposix.h | 18 | ||||
-rw-r--r-- | pc/ChangeLog | 4 | ||||
-rw-r--r-- | pc/Makefile | 2 |
4 files changed, 28 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2016-05-12 Eli Zaretskii <eliz@gnu.org> + + * nonposix.h: Add prototypes for Posix functions emulated in pc/* + files. + 2016-05-03 Andrew J. Schorr <aschorr@telemetry-investments.com> * builtin.c (format_tree): After the string has been rendered, use @@ -43,4 +43,22 @@ int w32_status_to_termsig (unsigned); +/* Prototypes of for Posix functions for which we define replacements + in pc/ files. */ + +/* getid.c */ +unsigned int getuid (void); +unsigned int geteuid (void); +unsigned int getgid (void); +unsigned int getegid (void); + +/* gawkmisc.pc */ +int unsetenv (const char *); +int setenv (const char *, const char *, int); +#endif /* __MINGW32__ */ + +int getpgrp(void); + +#if defined(__DJGPP__) || defined(__MINGW32__) +int getppid(void); #endif diff --git a/pc/ChangeLog b/pc/ChangeLog index 56417a7b..c46f874a 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-12 Eli Zaretskii <eliz@gnu.org> + + * Makefile ($(ALLOBJS) $(LIBOBJS)): Depend on nonposix.h. + 2016-04-23 Eli Zaretskii <eliz@gnu.org> * Makefile.tst (pty1): Ignore errors (happens with MinGW). diff --git a/pc/Makefile b/pc/Makefile index 23b90464..57c0dc45 100644 --- a/pc/Makefile +++ b/pc/Makefile @@ -242,7 +242,7 @@ $(RSPFILE) : $(GAWKOBJS) # included by awk.h. # 2. custom.h is not mentioned because pc ports don't use it. $(ALLOBJS) $(LIBOBJS): \ - awk.h regex.h config.h gettext.h mbsupport.h protos.h dfa.h getopt.h + awk.h regex.h config.h gettext.h mbsupport.h protos.h dfa.h getopt.h nonposix.h builtin$O: floatmagic.h random.h popen.h |