Move getlogin, getlogin_r, setlogin to login/ subdir.

This commit is contained in:
Roland McGrath 2013-05-06 15:10:09 -07:00
parent b99b892f68
commit 8fb16a04e6
8 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,16 @@
2013-05-06 Roland McGrath <roland@hack.frob.com> 2013-05-06 Roland McGrath <roland@hack.frob.com>
* posix/getlogin.c: Moved to ...
* login/getlogin.c: ... here.
* posix/getlogin_r.c: Moved to ...
* login/getlogin_r.c: ... here.
* posix/getlogin_r.c: Moved to ...
* login/getlogin_r.c: ... here.
* posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
* login/Makefile (routines): ... here.
* posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
* login/Versions (libc: GLIBC_2.0): ... here.
* resource/setrlimit.c (__setrlimit): Renamed from setrlimit. * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
(setrlimit): Define as weak alias. (setrlimit): Define as weak alias.

View File

@ -23,7 +23,8 @@ subdir := login
headers := utmp.h bits/utmp.h lastlog.h pty.h headers := utmp.h bits/utmp.h lastlog.h pty.h
routines := getutent getutent_r getutid getutline getutid_r getutline_r \ routines := getlogin getlogin_r setlogin \
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
CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"' CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"'

View File

@ -11,6 +11,7 @@ libc {
pututline; pututline;
# s* # s*
setlogin;
setutent; setutent;
# u* # u*

View File

@ -40,7 +40,6 @@ routines := \
getuid geteuid getgid getegid getgroups setuid setgid group_member \ getuid geteuid getgid getegid getgroups setuid setgid group_member \
getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid \ getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid \
getresuid getresgid setresuid setresgid \ getresuid getresgid setresuid setresgid \
getlogin getlogin_r setlogin \
pathconf sysconf fpathconf \ pathconf sysconf fpathconf \
glob glob64 fnmatch regex \ glob glob64 fnmatch regex \
confstr \ confstr \

View File

@ -52,7 +52,7 @@ libc {
# s* # s*
sched_get_priority_max; sched_get_priority_min; sched_getparam; sched_get_priority_max; sched_get_priority_min; sched_getparam;
sched_getscheduler; sched_rr_get_interval; sched_setparam; sched_getscheduler; sched_rr_get_interval; sched_setparam;
sched_setscheduler; sched_yield; setegid; seteuid; setgid; setlogin; sched_setscheduler; sched_yield; setegid; seteuid; setgid;
setpgid; setpgrp; setsid; setuid; sleep; sysconf; setpgid; setpgrp; setsid; setuid; sleep; sysconf;
# t* # t*