Libc update to simplify merge.

Bumping libc files for unsupported architectures, to simplify merging.
A bunch of small fixes:
 * in libutil update
 * the macro in endian.h
 * some undefined types due to clear separation from host.
 * Fix a warning for cdbr.c

Some modification which were required for the new build system:
 * inclusion path for const.h in sconst, still hacky
 * Removed default malloc.c which conflicts on some occasions.
This commit is contained in:
2012-09-17 11:09:12 +02:00
parent dba3562d78
commit e415d48872
183 changed files with 3292 additions and 2385 deletions

View File

@@ -77,6 +77,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *term,
/* term may be NULL */
/* winp may be NULL */
#ifndef __minix
if ((master = open("/dev/ptm", O_RDWR)) != -1) {
struct ptmget pt;
if (ioctl(master, TIOCPTMGET, &pt) != -1) {
@@ -88,6 +89,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *term,
}
(void)close(master);
}
#endif
(void)getgrnam_r("tty", &grs, grbuf, sizeof(grbuf), &grp);
if (grp != NULL) {
@@ -115,9 +117,13 @@ openpty(int *amaster, int *aslave, char *name, struct termios *term,
linep = line;
if (chown(line, getuid(), ttygid) == 0 &&
chmod(line, mode) == 0 &&
#ifndef __minix
revoke(line) == 0 &&
#endif
(slave = open(line, O_RDWR, 0)) != -1) {
#ifndef __minix
gotit:
#endif
*amaster = master;
*aslave = slave;
if (name)