X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/b372fceb03fbd2f2ff2e113d1da1a3013766837e..e4ed06f12b052a3c80d5c572889cb670a41f3c7d:/lib-src/ntlib.c
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index c815f32d51..83f653f3ea 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -1,6 +1,5 @@
/* Utility and Unix shadow routines for GNU Emacs support programs on NT.
- Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1994, 2001-2011 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -29,6 +28,7 @@ along with GNU Emacs. If not, see .
#include
#include
#include
+#include
#include "ntlib.h"
@@ -38,7 +38,7 @@ along with GNU Emacs. If not, see .
would necessitate including windows.h in the files that used it.
This is much easier. */
void
-sleep(unsigned long seconds)
+sleep (unsigned long seconds)
{
Sleep (seconds * 1000);
}
@@ -56,7 +56,7 @@ static HANDLE getppid_parent;
static int getppid_ppid;
int
-getppid(void)
+getppid (void)
{
char *ppid;
DWORD result;
@@ -64,7 +64,7 @@ getppid(void)
ppid = getenv ("EM_PARENT_PROCESS_ID");
if (!ppid)
{
- printf("no pid.\n");
+ printf ("no pid.\n");
return 0;
}
else
@@ -74,11 +74,11 @@ getppid(void)
if (!getppid_parent)
{
- getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi(ppid));
+ getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi (ppid));
if (!getppid_parent)
{
printf ("Failed to open handle to parent process: %d\n",
- GetLastError());
+ GetLastError ());
exit (1);
}
}
@@ -94,13 +94,13 @@ getppid(void)
return 1;
case WAIT_FAILED:
default:
- printf ("Checking parent status failed: %d\n", GetLastError());
+ printf ("Checking parent status failed: %d\n", GetLastError ());
exit (1);
}
}
char *
-getlogin ()
+getlogin (void)
{
static char user_name[256];
DWORD length = sizeof (user_name);
@@ -120,19 +120,19 @@ cuserid (char * s)
}
unsigned
-getuid ()
+getuid (void)
{
return 0;
}
unsigned
-getgid ()
+getgid (void)
{
return 0;
}
unsigned
-getegid ()
+getegid (void)
{
return 0;
}
@@ -144,7 +144,7 @@ setuid (unsigned uid)
}
int
-setegid (unsigned gid)
+setregid (unsigned rgid, unsigned gid)
{
return 0;
}
@@ -219,7 +219,7 @@ sys_ctime (const time_t *t)
}
FILE *
-sys_fopen(const char * path, const char * mode)
+sys_fopen (const char * path, const char * mode)
{
return fopen (path, mode);
}
@@ -374,5 +374,3 @@ stat (const char * path, struct stat * buf)
return 0;
}
-/* arch-tag: 7b63fb83-70ee-4124-8822-54e53e5d0773
- (do not change this comment) */