diff options
| author | Bill Wohler | 2014-02-23 18:04:35 -0800 |
|---|---|---|
| committer | Bill Wohler | 2014-02-23 18:04:35 -0800 |
| commit | 3e93bafb95608467e438ba7f725fd1f020669f8c (patch) | |
| tree | f2f90109f283e06a18caea3cb2a2623abcfb3a92 /lib-src/ntlib.h | |
| parent | 791c0d7634e44bb92ca85af605be84ff2ae08963 (diff) | |
| parent | e918e27fdf331e89268fc2c9d7cf838d3ecf7aa7 (diff) | |
| download | emacs-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.h | 11 |
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 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -16,31 +16,33 @@ GNU General Public License for more details. | |||
| 16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along 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 |
| 32 | void sleep (unsigned long seconds); | 32 | unsigned sleep (unsigned seconds); |
| 33 | char *getwd (char *dir); | 33 | char *getwd (char *dir); |
| 34 | int getppid (void); | 34 | int getppid (void); |
| 35 | char * getlogin (void); | 35 | char * getlogin (void); |
| 36 | char * cuserid (char * s); | 36 | char * cuserid (char * s); |
| 37 | unsigned getuid (void); | 37 | unsigned getuid (void); |
| 38 | unsigned geteuid (void); | ||
| 38 | unsigned getegid (void); | 39 | unsigned getegid (void); |
| 39 | unsigned getgid (void); | 40 | unsigned getgid (void); |
| 40 | int setuid (unsigned uid); | 41 | int setuid (unsigned uid); |
| 41 | int setregid (unsigned rgid, unsigned gid); | 42 | int setregid (unsigned rgid, unsigned gid); |
| 42 | char * getpass (const char * prompt); | 43 | char * getpass (const char * prompt); |
| 43 | int fchown (int fd, unsigned uid, unsigned gid); | 44 | int fchown (int fd, unsigned uid, unsigned gid); |
| 45 | int 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 |