mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Thu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
* sysdeps/unix/sysv/linux/poll.c: Don't define as stub. Use simulation of system call using select. * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation. * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER. * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter name usage (new->act, old->oact). Correct asm statement because of gcc strangeness. * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb. * sunrpc/clnt_perr.c: Remove declaration of sys_errlist. They conflict with the ones in stdio.h. * string/tester.c: %Z is no complete format. Change to %Zd. * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
This commit is contained in:
@ -177,11 +177,11 @@ DEFUN(main, (argc, argv), int argc AND char **argv)
|
||||
|
||||
(void) strcpy(one, "abc");
|
||||
(void) strncpy(one, "xyz", 0); /* Zero-length copy. */
|
||||
equal(one, "abc", 10);
|
||||
equal(one, "abc", 10);
|
||||
|
||||
(void) strncpy(one, "", 2); /* Zero-length source. */
|
||||
equal(one, "", 11);
|
||||
equal(one+1, "", 12);
|
||||
equal(one+1, "", 12);
|
||||
equal(one+2, "c", 13);
|
||||
|
||||
(void) strcpy(one, "hi there");
|
||||
@ -563,7 +563,7 @@ DEFUN(main, (argc, argv), int argc AND char **argv)
|
||||
else
|
||||
{
|
||||
status = EXIT_FAILURE;
|
||||
printf("%Z errors.\n", errors);
|
||||
printf("%Zd errors.\n", errors);
|
||||
}
|
||||
exit(status);
|
||||
}
|
||||
|
Reference in New Issue
Block a user