1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994, 2002-2018 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or (at
9 your option) any later version.
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
22 /* Include these headers now so we don't have to worry about include
23 order dependencies in common source files. */
32 unsigned sleep (unsigned seconds
);
33 char *getwd (char *dir
);
35 char * getlogin (void);
36 char * cuserid (char * s
);
37 unsigned getegid (void);
38 unsigned getgid (void);
39 int setuid (unsigned uid
);
40 int setregid (unsigned rgid
, unsigned gid
);
41 char * getpass (const char * prompt
);
42 int fchown (int fd
, unsigned uid
, unsigned gid
);
44 /* redirect or undo interceptions created by config.h */
46 #define access _access
68 #define unlink _unlink
72 /* map to MSVC names */
73 #define execlp _execlp
74 #define execvp _execvp
75 #define fdopen _fdopen
77 #define fileno _fileno
79 #define getcwd _getcwd
81 #define getpid _getpid
82 #define isatty _isatty
83 #define locking _locking
85 #define _longjmp longjmp
87 #define pclose _pclose
91 #define rindex strrchr
93 /* Make standard winsock definitions available if needed. */