Libraries updates and cleanup

* Updating common/lib
 * Updating lib/csu
 * Updating lib/libc
 * Updating libexec/ld.elf_so
 * Corrected test on __minix in featuretest to actually follow the
   meaning of the comment.
 * Cleaned up _REENTRANT-related defintions.
 * Disabled -D_REENTRANT for libfetch
 * Removing some unneeded __NBSD_LIBC defines and tests

Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
2013-01-14 11:36:26 +01:00
parent f6aac1c3b5
commit f14fb60209
1285 changed files with 44244 additions and 14308 deletions
+5 -6
View File
@@ -1,4 +1,4 @@
/* $NetBSD: gets.c,v 1.16 2007/06/03 17:39:26 christos Exp $ */
/* $NetBSD: gets.c,v 1.17 2012/03/15 18:22:30 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)gets.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: gets.c,v 1.16 2007/06/03 17:39:26 christos Exp $");
__RCSID("$NetBSD: gets.c,v 1.17 2012/03/15 18:22:30 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -53,8 +53,7 @@ __RCSID("$NetBSD: gets.c,v 1.16 2007/06/03 17:39:26 christos Exp $");
__warn_references(gets, "warning: this program uses gets(), which is unsafe.")
char *
gets(buf)
char *buf;
gets(char *buf)
{
int c;
char *s;
@@ -66,7 +65,7 @@ gets(buf)
if (c == EOF) {
if (s == buf) {
FUNLOCKFILE(stdin);
return (NULL);
return NULL;
} else {
break;
}
@@ -76,5 +75,5 @@ gets(buf)
}
*s = 0;
FUNLOCKFILE(stdin);
return (buf);
return buf;
}