aboutsummaryrefslogtreecommitdiffstats
path: root/pc/getid.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-12-18 20:29:22 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-12-18 20:29:22 +0200
commitbd52c816f95a6aec471f194b94c2e195cf7f9988 (patch)
tree95afa5c273355441df78fdf1aeaa69d078945159 /pc/getid.c
parentdd4d686a4181448171114d6fc6f4f8ae58394e16 (diff)
downloadegawk-bd52c816f95a6aec471f194b94c2e195cf7f9988.tar.gz
egawk-bd52c816f95a6aec471f194b94c2e195cf7f9988.tar.bz2
egawk-bd52c816f95a6aec471f194b94c2e195cf7f9988.zip
Cleanup the mainline PC code, and pc/ directory.
Diffstat (limited to 'pc/getid.c')
-rw-r--r--pc/getid.c37
1 files changed, 6 insertions, 31 deletions
diff --git a/pc/getid.c b/pc/getid.c
index 82cfd6cb..eb30ae44 100644
--- a/pc/getid.c
+++ b/pc/getid.c
@@ -1,24 +1,6 @@
-#if defined(_MSC_VER) || defined(__MINGW32__)
-
-#ifdef OS2
-# define INCL_DOSPROCESS
-# include <os2.h>
-# if _MSC_VER == 510
-# define DosGetPID DosGetPid
-# endif
-#else
-# include <process.h>
-#endif
-
-#ifdef OS2
-int getpid(void)
-{
- PIDINFO PidInfo;
+#ifdef __MINGW32__
- DosGetPID(&PidInfo);
- return(PidInfo.pid);
-}
-#endif
+#include <process.h>
unsigned int getuid (void)
{
@@ -40,23 +22,16 @@ unsigned int getegid (void)
return (0);
}
-#endif
+#endif /* __MINGW32__ */
int getpgrp(void)
{
return (0);
}
-#if defined(_MSC_VER) || defined(__GO32__) || defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
int getppid(void)
{
-#ifdef OS2
- PIDINFO PidInfo;
-
- DosGetPID(&PidInfo);
- return(PidInfo.pidParent);
-#else
- return(0);
-#endif
+ return (0);
}
-#endif
+#endif /* __DJGPP__ || __MINGW32__ */