Move ptsname_r_chk to login/ subdir.

This commit is contained in:
Roland McGrath 2013-05-06 15:19:14 -07:00
parent 8fb16a04e6
commit bd9ffde61a
6 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,12 @@
2013-05-06 Roland McGrath <roland@hack.frob.com> 2013-05-06 Roland McGrath <roland@hack.frob.com>
* debug/ptsname_r_chk.c: Moved to ...
* login/ptsname_r_chk.c: ... here.
* debug/Makefile (routines): Move ptsname_r_chk to ...
* login/Makefile (routines): ... here.
* debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
* login/Versions (libc: GLIBC_2.4): ... here.
* posix/getlogin.c: Moved to ... * posix/getlogin.c: Moved to ...
* login/getlogin.c: ... here. * login/getlogin.c: ... here.
* posix/getlogin_r.c: Moved to ... * posix/getlogin_r.c: Moved to ...

View File

@ -22,6 +22,9 @@ subdir := debug
headers := execinfo.h headers := execinfo.h
# Note that ptsname_r_chk is not here but in login/Makefile instead.
# If that subdir is omitted from the build, its _FORTIFY_SOURCE
# support will be too.
routines = backtrace backtracesyms backtracesymsfd noophooks \ routines = backtrace backtracesyms backtracesymsfd noophooks \
memcpy_chk memmove_chk mempcpy_chk memset_chk stpcpy_chk \ memcpy_chk memmove_chk mempcpy_chk memset_chk stpcpy_chk \
strcat_chk strcpy_chk strncat_chk strncpy_chk stpncpy_chk \ strcat_chk strcpy_chk strncat_chk strncpy_chk stpncpy_chk \
@ -30,7 +33,7 @@ routines = backtrace backtracesyms backtracesymsfd noophooks \
gets_chk chk_fail readonly-area fgets_chk fgets_u_chk \ gets_chk chk_fail readonly-area fgets_chk fgets_u_chk \
read_chk pread_chk pread64_chk recv_chk recvfrom_chk \ read_chk pread_chk pread64_chk recv_chk recvfrom_chk \
readlink_chk readlinkat_chk getwd_chk getcwd_chk \ readlink_chk readlinkat_chk getwd_chk getcwd_chk \
realpath_chk ptsname_r_chk fread_chk fread_u_chk \ realpath_chk fread_chk fread_u_chk \
wctomb_chk wcscpy_chk wmemcpy_chk wmemmove_chk wmempcpy_chk \ wctomb_chk wcscpy_chk wmemcpy_chk wmemmove_chk wmempcpy_chk \
wcpcpy_chk wcsncpy_chk wcscat_chk wcsncat_chk wmemset_chk \ wcpcpy_chk wcsncpy_chk wcscat_chk wcsncat_chk wmemset_chk \
wcpncpy_chk \ wcpncpy_chk \

View File

@ -23,7 +23,7 @@ libc {
__read_chk; __pread_chk; __pread64_chk; __read_chk; __pread_chk; __pread64_chk;
__readlink_chk; __getcwd_chk; __getwd_chk; __readlink_chk; __getcwd_chk; __getwd_chk;
__recv_chk; __recvfrom_chk; __recv_chk; __recvfrom_chk;
__realpath_chk; __ptsname_r_chk; __wctomb_chk; __realpath_chk; __wctomb_chk;
__stpncpy_chk; __stpncpy_chk;
__wcscpy_chk; __wmemcpy_chk; __wmemmove_chk; __wmempcpy_chk; __wcpcpy_chk; __wcscpy_chk; __wmemcpy_chk; __wmemmove_chk; __wmempcpy_chk; __wcpcpy_chk;
__wcsncpy_chk; __wcscat_chk; __wcsncat_chk; __wmemset_chk; __wcpncpy_chk; __wcsncpy_chk; __wcscat_chk; __wcsncat_chk; __wmemset_chk; __wcpncpy_chk;

View File

@ -25,7 +25,8 @@ headers := utmp.h bits/utmp.h lastlog.h pty.h
routines := getlogin getlogin_r setlogin \ routines := getlogin getlogin_r setlogin \
getutent getutent_r getutid getutline getutid_r getutline_r \ getutent getutent_r getutid getutline getutid_r getutline_r \
utmp_file utmpname updwtmp getpt grantpt unlockpt ptsname utmp_file utmpname updwtmp getpt grantpt unlockpt ptsname \
ptsname_r_chk
CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"' CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"'

View File

@ -41,6 +41,9 @@ libc {
# p* # p*
posix_openpt; posix_openpt;
} }
GLIBC_2.4 {
__ptsname_r_chk;
}
} }
libutil { libutil {