aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ntlib.h
diff options
context:
space:
mode:
authorBill Wohler2014-02-23 18:04:35 -0800
committerBill Wohler2014-02-23 18:04:35 -0800
commit3e93bafb95608467e438ba7f725fd1f020669f8c (patch)
treef2f90109f283e06a18caea3cb2a2623abcfb3a92 /lib-src/ntlib.h
parent791c0d7634e44bb92ca85af605be84ff2ae08963 (diff)
parente918e27fdf331e89268fc2c9d7cf838d3ecf7aa7 (diff)
downloademacs-3e93bafb95608467e438ba7f725fd1f020669f8c.tar.gz
emacs-3e93bafb95608467e438ba7f725fd1f020669f8c.zip
Merge from trunk; up to 2014-02-23T23:41:17Z!lekktu@gmail.com.
Diffstat (limited to 'lib-src/ntlib.h')
-rw-r--r--lib-src/ntlib.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index 1b2f57f35e5..dbb0195a30b 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -1,5 +1,5 @@
1/* Utility and Unix shadow routines for GNU Emacs support programs on NT. 1/* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994, 2002-2013 Free Software Foundation, Inc. 2 Copyright (C) 1994, 2002-2014 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -16,31 +16,33 @@ GNU General Public License for more details.
16You should have received a copy of the GNU General Public License 16You should have received a copy of the GNU General Public License
17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 17along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
18 18
19
20#include <pwd.h> 19#include <pwd.h>
21#include <malloc.h> 20#include <malloc.h>
22 21
23/* Include these headers now so we don't have to worry about include 22/* Include these headers now so we don't have to worry about include
24 order dependencies in common source files. */ 23 order dependencies in common source files. */
25#include <direct.h> 24#include <direct.h>
25#include <fcntl.h>
26#include <io.h> 26#include <io.h>
27#include <stdio.h> 27#include <stdio.h>
28 28
29#ifdef sleep 29#ifdef sleep
30#undef sleep 30#undef sleep
31#endif 31#endif
32void sleep (unsigned long seconds); 32unsigned sleep (unsigned seconds);
33char *getwd (char *dir); 33char *getwd (char *dir);
34int getppid (void); 34int getppid (void);
35char * getlogin (void); 35char * getlogin (void);
36char * cuserid (char * s); 36char * cuserid (char * s);
37unsigned getuid (void); 37unsigned getuid (void);
38unsigned geteuid (void);
38unsigned getegid (void); 39unsigned getegid (void);
39unsigned getgid (void); 40unsigned getgid (void);
40int setuid (unsigned uid); 41int setuid (unsigned uid);
41int setregid (unsigned rgid, unsigned gid); 42int setregid (unsigned rgid, unsigned gid);
42char * getpass (const char * prompt); 43char * getpass (const char * prompt);
43int fchown (int fd, unsigned uid, unsigned gid); 44int fchown (int fd, unsigned uid, unsigned gid);
45int mkostemp (char * template, int flags);
44 46
45/* redirect or undo interceptions created by config.h */ 47/* redirect or undo interceptions created by config.h */
46#undef access 48#undef access
@@ -61,15 +63,12 @@ int fchown (int fd, unsigned uid, unsigned gid);
61#undef fopen 63#undef fopen
62#undef mkdir 64#undef mkdir
63#define mkdir _mkdir 65#define mkdir _mkdir
64#undef mktemp
65#define mktemp _mktemp
66#undef open 66#undef open
67#define open _open 67#define open _open
68#undef pipe 68#undef pipe
69#define pipe _pipe 69#define pipe _pipe
70#undef read 70#undef read
71#define read _read 71#define read _read
72#undef rename
73#undef rmdir 72#undef rmdir
74#define rmdir _rmdir 73#define rmdir _rmdir
75#undef unlink 74#undef unlink