Mercurial > emacs
annotate nt/inc/pwd.h @ 107374:dc9565b08f10
Add .dir-locals.el support for file-less buffers.
* files.el (hack-local-variables): Split out code to apply local
variable settings ...
(hack-local-variables-apply): ... here. New function.
(hack-dir-local-variables): Use the default directory for when the
buffer does not have an associated file.
(hack-dir-local-variables-non-file-buffer): New function.
* diff-mode.el (diff-mode):
* vc-annotate.el (vc-annotate-mode):
* vc-dir.el (vc-dir-mode):
* log-edit.el (log-edit-mode):
* log-view.el (log-view-mode): Call hack-dir-local-variables-non-file-buffer.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 12 Mar 2010 00:04:54 -0800 |
parents | 06ca3efb355b |
children | ef719132ddfa |
rev | line source |
---|---|
11766 | 1 #ifndef _PWD_H_ |
2 #define _PWD_H_ | |
3 /* | |
4 * pwd.h doesn't exist on NT, so we put together our own. | |
5 */ | |
6 | |
7 struct passwd { | |
102670
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
8 char *pw_name; |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
9 char *pw_passwd; |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
10 unsigned pw_uid; /* Vista's TrustedInstaller has a very large RID */ |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
11 unsigned pw_gid; |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
12 int pw_quota; |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
13 char *pw_gecos; |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
14 char *pw_dir; |
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
15 char *pw_shell; |
11766 | 16 }; |
17 | |
102670
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
18 typedef unsigned uid_t; |
39823
6df655ed941d
(uid_t, gid_t): New typedefs.
Andrew Innes <andrewi@gnu.org>
parents:
11766
diff
changeset
|
19 typedef uid_t gid_t; |
6df655ed941d
(uid_t, gid_t): New typedefs.
Andrew Innes <andrewi@gnu.org>
parents:
11766
diff
changeset
|
20 |
63019
2d45521f8f6d
(getpwnam, getpwuid): Add prototypes.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
21 struct passwd * getpwnam (char *); |
102670
06ca3efb355b
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
Eli Zaretskii <eliz@gnu.org>
parents:
63019
diff
changeset
|
22 struct passwd * getpwuid (unsigned); |
63019
2d45521f8f6d
(getpwnam, getpwuid): Add prototypes.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
23 |
2d45521f8f6d
(getpwnam, getpwuid): Add prototypes.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
24 |
11766 | 25 #endif /* _PWD_H_ */ |
52401 | 26 |
27 /* arch-tag: 68308424-cb2b-49ed-bb52-b347fee416bf | |
28 (do not change this comment) */ |