aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/unix/getut.c
AgeCommit message (Collapse)AuthorFilesLines
2018-07-30Fix comparison between two character arraysJordi Sanfeliu1-1/+1
Hello, The member 'id' in the 'utmp' struct is not a numeric but a character array, hence the strncmp() function is needed to compare two members.
2018-07-13Fix to stop a fall-through in a switch statementJordi Sanfeliu1-0/+1
The following fixes a fall-through that prevented from reading the next entry in the UTMP file and terminated the program with an abort().
2018-01-17ansification: remove _CONSTYaakov Selkowitz1-1/+1
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2008-11-182008-11-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+4
* libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be ignored if desired by a platform. * libc/unix/dirname.c: Ditto except replace BASENAME with file name. * libc/unix/getcwd.c: Ditto. * libc/unix/getlogin.c: Ditto. * libc/unix/getpass.c: Ditto. * libc/unix/getpwent.c: Ditto. * libc/unix/getut.c: Ditto. * libc/unix/pread.c: Ditto. * libc/unix/pwrite.c: Ditto. * libc/unix/sigset.c: Ditto.
2005-11-032005-11-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-6/+6
* libc/unix/getcwd.c: Don't use non-reentrant syscall names. * libc/unix/getlogin.c: Ditto. * libc/unix/getpass.c: Ditto. * libc/unix/getut.c: Ditto. * libc/unix/ttyname.c: Ditto.
2000-08-242000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston1-2/+2
* libc/stdlib/abort.c: changed description: uses "raise" instead of "getpid" and "kill"; added: uses "write" and "_exit". Also included unistd.h for "_exit" prototype. * libc/stdlib/system.c: included unistd.h for "execve" prototype, reent.h for "_fork_r" and "_wait_r" prototypes. (do_system): changed extern char *environ[] to POSIX-friendly extern char **environ. * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp" prototypes. * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype. * libc/reent/execr.c: included sys/wait.h for "wait" prototype. * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype. * libc/reent/openr.c: included fcntl.h for "open" prototype. * libc/reent/signalr.c: included signal.h for "kill" prototype, unistd.h for "getpid" prototype. * libc/reent/statr.c: included sys/stat.h for "stat" prototype. * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype. * libc/unix/getut.c (utmpname): removed local, incorrect "strdup" prototype. Also included stdlib.h for "abort", string.h for "strdup" and "strncmp" prototypes. * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and "strncpy", unistd.h for "read" and "close" prototypes. * libc/posix/execvp.c: included string.h for "strchr", "strlen", and "strcat" prototypes.
2000-08-22* libc/unix/getut.c (utmpname): added _CONST to reflect common useDJ Delorie1-1/+2
and prototype in cygwin's utmp.h
2000-02-17import newlib-2000-02-17 snapshotChristopher Faylor1-0/+85