(help-map): Move initialization into declaration.
[emacs.git] / lib-src / ntlib.h
blob07e730567f78cb823083ff1eab3a71fa3162639c
1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
2 Copyright (C) 1994, 2002, 2003, 2004, 2005 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 it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any later
9 version.
11 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
23 #include <pwd.h>
24 #include <malloc.h>
26 /* Include these headers now so we don't have to worry about include
27 order dependencies in common source files. */
28 #include <direct.h>
29 #include <io.h>
30 #include <stdio.h>
32 #ifdef sleep
33 #undef sleep
34 #endif
35 void sleep(unsigned long seconds);
36 char *getwd (char *dir);
37 int getppid(void);
38 char * getlogin ();
39 char * cuserid (char * s);
40 int getuid ();
41 int setuid (int uid);
42 struct passwd * getpwuid (int uid);
43 char * getpass (const char * prompt);
44 int fchown (int fd, int uid, int gid);
46 #ifndef BSTRING
47 #define bzero(b, l) memset(b, 0, l)
48 #define bcopy(s, d, l) memcpy(d, s, l)
49 #define bcmp(a, b, l) memcmp(a, b, l)
50 #endif
52 /* redirect or undo interceptions created by config.h */
53 #undef access
54 #define access _access
55 #undef chdir
56 #define chdir _chdir
57 #undef chmod
58 #define chmod _chmod
59 #undef close
60 #define close _close
61 #undef creat
62 #define creat _creat
63 #undef ctime
64 #undef dup
65 #define dup _dup
66 #undef dup2
67 #define dup2 _dup2
68 #undef fopen
69 #undef mkdir
70 #define mkdir _mkdir
71 #undef mktemp
72 #define mktemp _mktemp
73 #undef open
74 #define open _open
75 #undef pipe
76 #define pipe _pipe
77 #undef read
78 #define read _read
79 #undef rename
80 #undef rmdir
81 #define rmdir _rmdir
82 #undef unlink
83 #define unlink _unlink
84 #undef write
85 #define write _write
87 /* map to MSVC names */
88 #define execlp _execlp
89 #define execvp _execvp
90 #define fcloseall _fcloseall
91 #define fdopen _fdopen
92 #define fgetchar _fgetchar
93 #ifndef fileno
94 #define fileno _fileno
95 #endif
96 #define flushall _flushall
97 #define fputchar _fputchar
98 #define getcwd _getcwd
99 #define getw _getw
100 #define getpid _getpid
101 #define isatty _isatty
102 #define locking _locking
103 #define logb _logb
104 #define _longjmp longjmp
105 #define lseek _lseek
106 #define popen _popen
107 #define pclose _pclose
108 #define putw _putw
109 #define umask _umask
110 #define utime _utime
111 #define index strchr
112 #define rindex strrchr
114 /* Make standard winsock definitions available if needed. */
115 #undef _WINSOCKAPI_
116 #undef _WINSOCK_H
118 /* end of ntlib.h */
120 /* arch-tag: 93444f66-7b98-4aa5-a5cd-01444094af28
121 (do not change this comment) */