15139
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
2 Copyright (C) 1994 Free Software Foundation, Inc.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
3
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
4 This file is part of GNU Emacs.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
5
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
6 GNU Emacs is free software; you can redistribute it and/or modify it
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
7 under the terms of the GNU General Public License as published by the
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
8 Free Software Foundation; either version 2, or (at your option) any later
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
9 version.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
10
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
11 GNU Emacs is distributed in the hope that it will be useful, but WITHOUT
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
14 more details.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
15
|
15742
|
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., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA.
|
15139
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
20
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
21 */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
22
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
23 #include <pwd.h>
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
24 #include <malloc.h>
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
25
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
26 void sleep(int seconds);
|
15674
|
27 char *getwd (char *dir);
|
15139
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
28 int getppid(void);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
29 char * getlogin ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
30 char * cuserid (char * s);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
31 int getuid ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
32 int setuid (int uid);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
33 struct passwd * getpwuid (int uid);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
34 char * getpass (const char * prompt);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
35 int fchown (int fd, int uid, int gid);
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
36
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
37 #ifndef BSTRING
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
38 #define bzero(b, l) memset(b, 0, l)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
39 #define bcopy(s, d, l) memcpy(d, s, l)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
40 #define bcmp(a, b, l) memcmp(a, b, l)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
41
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
42 #define index strchr
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
43 #define rindex strrchr
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
44 #endif
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
45
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
46 /* end of ntlib.h */
|