svn commit: trunk/uClibc: include libc/stdlib
aldot at uclibc.org
aldot at uclibc.org
Sat Jun 7 13:55:32 UTC 2008
Author: aldot
Date: 2008-06-07 06:55:32 -0700 (Sat, 07 Jun 2008)
New Revision: 22257
Log:
- UCLIBC_HAS_GETPT pulls in getpt.
- ptsname_r depends on UCLIBC_HAS_PTY just like ptsname()
Modified:
trunk/uClibc/include/stdlib.h
trunk/uClibc/libc/stdlib/Makefile.in
Changeset:
Modified: trunk/uClibc/include/stdlib.h
===================================================================
--- trunk/uClibc/include/stdlib.h 2008-06-07 12:23:44 UTC (rev 22256)
+++ trunk/uClibc/include/stdlib.h 2008-06-07 13:55:32 UTC (rev 22257)
@@ -835,14 +835,17 @@
#endif
#ifdef __USE_GNU
+# if defined __UCLIBC_HAS_PTY__
/* Store at most BUFLEN characters of the pathname of the slave pseudo
terminal associated with the master FD is open on in BUF.
Return 0 on success, otherwise an error number. */
extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
__THROW __nonnull ((2));
-
+# endif
+# if defined __UCLIBC_HAS_GETPT__
/* Open a master pseudo terminal and return its file descriptor. */
extern int getpt (void);
+# endif
#endif
#if 0 /* def __USE_BSD */
Modified: trunk/uClibc/libc/stdlib/Makefile.in
===================================================================
--- trunk/uClibc/libc/stdlib/Makefile.in 2008-06-07 12:23:44 UTC (rev 22256)
+++ trunk/uClibc/libc/stdlib/Makefile.in 2008-06-07 13:55:32 UTC (rev 22257)
@@ -12,7 +12,7 @@
CSRC := \
abort.c getenv.c mkdtemp.c mktemp.c realpath.c mkstemp.c \
rand.c random.c random_r.c setenv.c system.c div.c ldiv.c lldiv.c \
- getpt.c drand48-iter.c jrand48.c \
+ drand48-iter.c jrand48.c \
jrand48_r.c lrand48.c lrand48_r.c mrand48.c mrand48_r.c nrand48.c \
nrand48_r.c rand_r.c srand48.c srand48_r.c seed48.c seed48_r.c \
valloc.c a64l.c l64a.c __uc_malloc.c
@@ -22,6 +22,9 @@
ifeq ($(UCLIBC_HAS_PTY),y)
CSRC += grantpt.c unlockpt.c ptsname.c
endif
+ifeq ($(UCLIBC_HAS_GETPT),y)
+CSRC += getpt.c
+endif
ifeq ($(UCLIBC_HAS_ARC4RANDOM),y)
CSRC += arc4random.c
endif
More information about the uClibc-cvs
mailing list