svn commit: trunk/uClibc/libutil

psm at uclibc.org psm at uclibc.org
Mon Jan 16 21:39:33 UTC 2006


Author: psm
Date: 2006-01-16 13:39:33 -0800 (Mon, 16 Jan 2006)
New Revision: 13365

Log:
Convert to hidden_def

Modified:
   trunk/uClibc/libutil/forkpty.c
   trunk/uClibc/libutil/login_tty.c
   trunk/uClibc/libutil/openpty.c


Changeset:
Modified: trunk/uClibc/libutil/forkpty.c
===================================================================
--- trunk/uClibc/libutil/forkpty.c	2006-01-16 21:25:09 UTC (rev 13364)
+++ trunk/uClibc/libutil/forkpty.c	2006-01-16 21:39:33 UTC (rev 13365)
@@ -17,15 +17,15 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#define openpty __openpty
-#define login_tty __login_tty
-
 #include <sys/types.h>
 #include <termios.h>
 #include <unistd.h>
 #include <utmp.h>
 #include <pty.h>
 
+libutil_hidden_proto(openpty)
+libutil_hidden_proto(login_tty)
+
 int
 forkpty (amaster, name, termp, winp)
      int *amaster;

Modified: trunk/uClibc/libutil/login_tty.c
===================================================================
--- trunk/uClibc/libutil/login_tty.c	2006-01-16 21:25:09 UTC (rev 13364)
+++ trunk/uClibc/libutil/login_tty.c	2006-01-16 21:39:33 UTC (rev 13365)
@@ -36,7 +36,8 @@
 #include <fcntl.h>
 #include <utmp.h>
 
-int attribute_hidden __login_tty(int fd)
+libutil_hidden_proto(login_tty)
+int login_tty(int fd)
 {
 	(void) setsid();
 #ifdef TIOCSCTTY
@@ -67,5 +68,4 @@
 		(void) close(fd);
 	return (0);
 }
-
-strong_alias(__login_tty,login_tty)
+libutil_hidden_def(login_tty)

Modified: trunk/uClibc/libutil/openpty.c
===================================================================
--- trunk/uClibc/libutil/openpty.c	2006-01-16 21:25:09 UTC (rev 13364)
+++ trunk/uClibc/libutil/openpty.c	2006-01-16 21:39:33 UTC (rev 13365)
@@ -17,6 +17,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#define _GNU_SOURCE
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
@@ -27,11 +28,6 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-extern int getpt (void);
-extern int grantpt (int fd);
-extern int ptsname_r (int fd, char *buf, size_t buflen);
-extern int unlockpt (int fd);
-
 /* BCS: the following function is, IMO, overkill */
 #if 0
 /* Return the result of ptsname_r in the buffer pointed to by PTS,
@@ -90,8 +86,9 @@
 /* Create pseudo tty master slave pair and set terminal attributes
    according to TERMP and WINP.  Return handles for both ends in
    AMASTER and ASLAVE, and return the name of the slave end in NAME.  */
-int attribute_hidden
-__openpty (int *amaster, int *aslave, char *name, struct termios *termp,
+libutil_hidden_proto(openpty)
+int
+openpty (int *amaster, int *aslave, char *name, struct termios *termp,
 	 struct winsize *winp)
 {
 #if 0
@@ -158,5 +155,4 @@
   close (master);
   return -1;
 }
-
-strong_alias(__openpty,openpty)
+libutil_hidden_def(openpty)




More information about the uClibc-cvs mailing list