summaryrefslogtreecommitdiffstats
path: root/lib/pathnames.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pathnames.h')
-rw-r--r--lib/pathnames.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/pathnames.h b/lib/pathnames.h
index 672b58e92..9f10a16d4 100644
--- a/lib/pathnames.h
+++ b/lib/pathnames.h
@@ -26,7 +26,7 @@
*
What is the history of these six, and related defines?
------------------------------------------------------------------------
-_PATH_UTMP and UTMP_FILE and UTMP_FILENAME:
+_PATH_UTMP and UTMP_FILE and UTMP_FILENAME
/etc/utmp > /var/adm/utmp > /var/run/utmp.
Traditionally we have /etc/utmp.
In <paths.h> we have /etc/utmp, but since 4.6.0 /var/adm/utmp
@@ -34,7 +34,7 @@ and since 5.0.9 (and in glibc2) /var/run/utmp.
In login/pathnames.h we have /etc/utmp, but since 4.6.6 /var/adm/utmp.
In <utmp.h> UTMP_FILE is defined as /etc/utmp, but in 4.6.* as _PATH_UTMP.
-_PATH_WTMP and WTMP_FILE and WTMP_FILENAME:
+_PATH_WTMP and WTMP_FILE and WTMP_FILENAME
/etc/wtmp > /usr/adm/wtmp > /var/adm/wtmp > /var/log/wtmp.
Traditionally we have /etc/wtmp.
In <paths.h> we have /usr/adm/wtmp, but since 4.5.13 /var/adm/wtmp,
@@ -43,21 +43,21 @@ In login/pathnames.h. we have /etc/wtmp, but since 4.6.6 /var/adm/wtmp.
In <utmp.h> WTMP_FILE is defined as /usr/adm/wtmp, but in 4.5.* as
/var/adm/wtmp, and in 4.6.* as _PATH_WTMP.
-_PATH_DEFPATH)
+_PATH_DEFPATH
Long ago this was ".:/bin:/usr/bin".
In <paths.h> libc 4.4.1-4.4.4 have "/usr/bin:/bin"
and libc 4.5.21-5.4.23 have "/usr/local/bin:/usr/bin:/bin:."
and libc 5.4.38-5.4.46 have "/usr/local/bin:/usr/bin:/bin".
In login/pathnames.h libc4 and libc5 have "/usr/local/bin:/bin:/usr/bin:."
-_PATH_DEFPATH_ROOT)
+_PATH_DEFPATH_ROOT
Long ago this was identical to _PATH_DEFPATH.
In <paths.h> no definition is present before libc 4.5.13.
Libc 4.5.13 has "/bin:/usr/bin:/etc"
Libc 4.5.14-5.4.46 have "/sbin:/bin:/usr/sbin:/usr/bin"
In login/pathnames.h libc4 and libc5 have "/bin:/usr/bin:/etc"
-_PATH_LASTLOG)
+_PATH_LASTLOG
/etc/lastlog > /usr/adm/lastlog > /var/adm/lastlog > /var/log/lastlog.
Traditionally we have /etc/lastlog.
In <bsd/utmp.h> libc 4.4.1-4.5.12 have /usr/adm/lastlog, 4.5.13 and
@@ -65,7 +65,7 @@ later have /var/adm/lastlog.
In paths.h all libc5 and glibc2 versions have /var/log/lastlog.
In login/pathnames.h all libc4 and libc5 versions have /usr/adm/lastlog.
-_PATH_MAILDIR)
+_PATH_MAILDIR
/usr/spool/mail > /var/spool/mail > /var/mail.
Traditionally we have /usr/spool/mail.
In <paths.h> we have /usr/spool/mail, but since libc 4.5.13 /var/spool/mail.
@@ -140,6 +140,12 @@ Libc5 and glibc 2.0-2.1 have /var/spool/mail, but glibc 2.1.1 has /var/mail.
#define _PATH_GROUP "/etc/group"
#define _PATH_GTMP "/etc/gtmp"
#define _PATH_GTMPTMP "/etc/gtmptmp"
+#define _PATH_SHADOW_PASSWD "/etc/shadow"
+#define _PATH_SHADOW_PTMP "/etc/sptmp"
+#define _PATH_SHADOW_PTMPTMP "/etc/sptmptmp"
+#define _PATH_SHADOW_GROUP "/etc/gshadow"
+#define _PATH_SHADOW_GTMP "/etc/sgtmp"
+#define _PATH_SHADOW_GTMPTMP "/etc/sgtmptmp"
/* used in misc-utils/look.c */
#define _PATH_WORDS "/usr/dict/words"