svn commit: trunk/uClibc/libc/inet: rpc

psm at uclibc.org psm at uclibc.org
Fri Dec 16 01:07:51 UTC 2005


Author: psm
Date: 2005-12-15 17:05:56 -0800 (Thu, 15 Dec 2005)
New Revision: 12919

Log:
Convert some users and get rid of __rpc_thread_createerr jump reloc, this was indeed a badly chosen name

Modified:
   trunk/uClibc/libc/inet/addr.c
   trunk/uClibc/libc/inet/getnetent.c
   trunk/uClibc/libc/inet/getproto.c
   trunk/uClibc/libc/inet/getservice.c
   trunk/uClibc/libc/inet/ntop.c
   trunk/uClibc/libc/inet/resolv.c
   trunk/uClibc/libc/inet/rpc/auth_unix.c
   trunk/uClibc/libc/inet/rpc/clnt_generic.c
   trunk/uClibc/libc/inet/rpc/clnt_perror.c
   trunk/uClibc/libc/inet/rpc/clnt_tcp.c
   trunk/uClibc/libc/inet/rpc/clnt_udp.c
   trunk/uClibc/libc/inet/rpc/clnt_unix.c
   trunk/uClibc/libc/inet/rpc/get_myaddress.c
   trunk/uClibc/libc/inet/rpc/getrpcent.c
   trunk/uClibc/libc/inet/rpc/pmap_clnt.c
   trunk/uClibc/libc/inet/rpc/pmap_getport.c
   trunk/uClibc/libc/inet/rpc/rcmd.c
   trunk/uClibc/libc/inet/rpc/rpc_private.h
   trunk/uClibc/libc/inet/rpc/rpc_thread.c
   trunk/uClibc/libc/inet/rpc/ruserpass.c
   trunk/uClibc/libc/inet/rpc/svc_simple.c
   trunk/uClibc/libc/inet/rpc/svc_tcp.c
   trunk/uClibc/libc/inet/rpc/svc_udp.c
   trunk/uClibc/libc/inet/rpc/svc_unix.c
   trunk/uClibc/libc/inet/rpc/xdr.c
   trunk/uClibc/libc/inet/rpc/xdr_array.c
   trunk/uClibc/libc/inet/rpc/xdr_rec.c
   trunk/uClibc/libc/inet/rpc/xdr_reference.c
   trunk/uClibc/libc/inet/rpc/xdr_stdio.c


Changeset:
Modified: trunk/uClibc/libc/inet/addr.c
===================================================================
--- trunk/uClibc/libc/inet/addr.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/addr.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -16,9 +16,6 @@
  * Changed to use _int10tostr.
  */
 
-/* for some reason this does not work here */
-#define memmove __memmove
-
 #define _GNU_SOURCE
 #define __FORCE_GLIBC
 #include <features.h>

Modified: trunk/uClibc/libc/inet/getnetent.c
===================================================================
--- trunk/uClibc/libc/inet/getnetent.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/getnetent.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -17,6 +17,7 @@
 
 #define inet_network __inet_network
 #define rewind __rewind
+#define fgets __fgets
 
 #define __FORCE_GLIBC
 #include <features.h>

Modified: trunk/uClibc/libc/inet/getproto.c
===================================================================
--- trunk/uClibc/libc/inet/getproto.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/getproto.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -54,6 +54,7 @@
 #define strpbrk __strpbrk
 #define atoi __atoi
 #define rewind __rewind
+#define fgets __fgets
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE

Modified: trunk/uClibc/libc/inet/getservice.c
===================================================================
--- trunk/uClibc/libc/inet/getservice.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/getservice.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -54,6 +54,7 @@
 #define strpbrk __strpbrk
 #define atoi __atoi
 #define rewind __rewind
+#define fgets __fgets
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE

Modified: trunk/uClibc/libc/inet/ntop.c
===================================================================
--- trunk/uClibc/libc/inet/ntop.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/ntop.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -246,7 +246,7 @@
 
 /* We cannot use the macro version of tolower() or very bad
  * things happen when '*src++' gets evaluated multiple times.  
- * So * undef it here so we get the function version of tolower
+ * So undef it here so we get the function version of tolower
  * instead.
  */
 #undef tolower

Modified: trunk/uClibc/libc/inet/resolv.c
===================================================================
--- trunk/uClibc/libc/inet/resolv.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/resolv.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -149,6 +149,7 @@
 #define recv __recv
 #define send __send
 #define snprintf __snprintf
+#define fgets __fgets
 
 #define __FORCE_GLIBC
 #include <features.h>
@@ -1138,7 +1139,7 @@
 #ifdef L_res_init
 struct __res_state _res;
 
-int res_init(void)
+int attribute_hidden __res_init_internal(void)
 {
 	struct __res_state *rp = &(_res);
 
@@ -1183,6 +1184,7 @@
 
 	return(0);
 }
+strong_alias(__res_init_internal,res_init)
 
 void res_close( void )
 {
@@ -1198,7 +1200,11 @@
 #define MIN(x, y)	((x) < (y) ? (x) : (y))
 #endif
 
-int res_query(const char *dname, int class, int type,
+int		__res_init_internal (void) __THROW attribute_hidden;
+int		__res_querydomain_internal (const char *, const char *, int, int,
+				 u_char *, int) __THROW attribute_hidden;
+
+int attribute_hidden __res_query_internal(const char *dname, int class, int type,
               unsigned char *answer, int anslen)
 {
 	int i;
@@ -1239,6 +1245,7 @@
 		free(packet);
 	return i;
 }
+strong_alias(__res_query_internal,res_query)
 
 /*
  * Formulate a normal query, send, and retrieve answer in supplied buffer.
@@ -1258,7 +1265,7 @@
 	int trailing_dot, ret, saved_herrno;
 	int got_nodata = 0, got_servfail = 0, tried_as_is = 0;
 
-	if ((!name || !answer) || ((_res.options & RES_INIT) == 0 && res_init() == -1)) {
+	if ((!name || !answer) || ((_res.options & RES_INIT) == 0 && __res_init_internal() == -1)) {
 		h_errno = NETDB_INTERNAL;
 		return (-1);
 	}
@@ -1278,7 +1285,7 @@
 	 */
 	saved_herrno = -1;
 	if (dots >= _res.ndots) {
-		ret = res_querydomain(name, NULL, class, type, answer, anslen);
+		ret = __res_querydomain_internal(name, NULL, class, type, answer, anslen);
 		if (ret > 0)
 			return (ret);
 		saved_herrno = h_errno;
@@ -1299,7 +1306,7 @@
 		   *domain && !done;
 		   domain++) {
 
-			ret = res_querydomain(name, *domain, class, type,
+			ret = __res_querydomain_internal(name, *domain, class, type,
 			    answer, anslen);
 			if (ret > 0)
 				return (ret);
@@ -1355,7 +1362,7 @@
 	 * name or whether it ends with a dot.
 	 */
 	if (!tried_as_is) {
-		ret = res_querydomain(name, NULL, class, type, answer, anslen);
+		ret = __res_querydomain_internal(name, NULL, class, type, answer, anslen);
 		if (ret > 0)
 			return (ret);
 	}
@@ -1381,7 +1388,7 @@
  * Perform a call on res_query on the concatenation of name and domain,
  * removing a trailing dot from name if domain is NULL.
  */
-int res_querydomain(name, domain, class, type, answer, anslen)
+int attribute_hidden __res_querydomain_internal(name, domain, class, type, answer, anslen)
 	const char *name, *domain;
 	int class, type;	/* class and type of query */
 	u_char *answer;		/* buffer to put answer */
@@ -1391,7 +1398,7 @@
 	const char *longname = nbuf;
 	size_t n, d;
 
-	if ((!name || !answer) || ((_res.options & RES_INIT) == 0 && res_init() == -1)) {
+	if ((!name || !answer) || ((_res.options & RES_INIT) == 0 && __res_init_internal() == -1)) {
 		h_errno = NETDB_INTERNAL;
 		return (-1);
 	}
@@ -1425,8 +1432,9 @@
 		}
 		snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain);
 	}
-	return (res_query(longname, class, type, answer, anslen));
+	return (__res_query_internal(longname, class, type, answer, anslen));
 }
+strong_alias(__res_querydomain_internal,res_querydomain)
 
 /* res_mkquery */
 /* res_send */

Modified: trunk/uClibc/libc/inet/rpc/auth_unix.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/auth_unix.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/auth_unix.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -47,6 +47,7 @@
 #define xdr_authunix_parms __xdr_authunix_parms
 #define xdr_opaque_auth __xdr_opaque_auth
 #define gettimeofday __gettimeofday
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #include <features.h>

Modified: trunk/uClibc/libc/inet/rpc/clnt_generic.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/clnt_generic.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/clnt_generic.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -47,6 +47,11 @@
 #include <sys/errno.h>
 #include <netdb.h>
 
+#undef get_rpc_createerr
+extern struct rpc_createerr *__rpc_thread_createerr_internal (void)
+     __attribute__ ((__const__)) attribute_hidden;
+#define get_rpc_createerr() (*__rpc_thread_createerr_internal ())
+
 /*
  * Generic client creation: takes (hostname, program-number, protocol) and
  * returns client handle. Default options are set, which the user can

Modified: trunk/uClibc/libc/inet/rpc/clnt_perror.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/clnt_perror.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/clnt_perror.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -37,6 +37,9 @@
  * Copyright (C) 1984, Sun Microsystems, Inc.
  *
  */
+
+#define fputs __fputs
+
 #define __FORCE_GLIBC
 #include <features.h>
 
@@ -245,7 +248,7 @@
 
     case RPC_CANTSEND:
     case RPC_CANTRECV:
-      strerror_r (e.re_errno, chrbuf, sizeof chrbuf);
+      __glibc_strerror_r_internal (e.re_errno, chrbuf, sizeof chrbuf);
       len = __sprintf (str, "; errno = %s", chrbuf); 
       str += len;
       break;
@@ -335,7 +338,7 @@
       (void) __strcpy(cp, " - ");
       cp += __strlen(cp);
 
-      strerror_r (ce->cf_error.re_errno, chrbuf, sizeof chrbuf);
+      __glibc_strerror_r_internal (ce->cf_error.re_errno, chrbuf, sizeof chrbuf);
       (void) __strcpy(cp, chrbuf);
       cp += __strlen(cp);
       break;

Modified: trunk/uClibc/libc/inet/rpc/clnt_tcp.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/clnt_tcp.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/clnt_tcp.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -63,6 +63,7 @@
 #define connect __connect
 #define bindresvport __bindresvport
 #define poll __poll
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #include <features.h>
@@ -81,6 +82,11 @@
 
 extern u_long _create_xid (void) attribute_hidden;
 
+#undef get_rpc_createerr
+extern struct rpc_createerr *__rpc_thread_createerr_internal (void)
+     __attribute__ ((__const__)) attribute_hidden;
+#define get_rpc_createerr() (*__rpc_thread_createerr_internal ())
+
 #define MCALL_MSG_SIZE 24
 
 struct ct_data

Modified: trunk/uClibc/libc/inet/rpc/clnt_udp.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/clnt_udp.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/clnt_udp.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -53,6 +53,7 @@
 #define sendto __sendto
 #define recvmsg __recvmsg
 #define poll __poll
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #include <features.h>
@@ -80,6 +81,11 @@
 
 extern u_long _create_xid (void) attribute_hidden;
 
+#undef get_rpc_createerr
+extern struct rpc_createerr *__rpc_thread_createerr_internal (void)
+     __attribute__ ((__const__)) attribute_hidden;
+#define get_rpc_createerr() (*__rpc_thread_createerr_internal ())
+
 /*
  * UDP bases client side rpc operations
  */

Modified: trunk/uClibc/libc/inet/rpc/clnt_unix.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/clnt_unix.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/clnt_unix.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -62,6 +62,7 @@
 #define recvmsg __recvmsg
 #define sendmsg __sendmsg
 #define poll __poll
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #include <features.h>
@@ -81,6 +82,11 @@
 
 extern u_long _create_xid (void) attribute_hidden;
 
+#undef get_rpc_createerr
+extern struct rpc_createerr *__rpc_thread_createerr_internal (void)
+     __attribute__ ((__const__)) attribute_hidden;
+#define get_rpc_createerr() (*__rpc_thread_createerr_internal ())
+
 #define MCALL_MSG_SIZE 24
 
 struct ct_data

Modified: trunk/uClibc/libc/inet/rpc/get_myaddress.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/get_myaddress.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/get_myaddress.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -68,14 +68,14 @@
   if ((s = __socket (AF_INET, SOCK_DGRAM, 0)) < 0)
     {
       __perror ("get_myaddress: socket");
-      exit (1);
+      __exit (1);
     }
   ifc.ifc_len = sizeof (buf);
   ifc.ifc_buf = buf;
   if (__ioctl (s, SIOCGIFCONF, (char *) &ifc) < 0)
     {
       __perror (_("get_myaddress: ioctl (get interface configuration)"));
-      exit (1);
+      __exit (1);
     }
 
  again:
@@ -86,7 +86,7 @@
       if (__ioctl (s, SIOCGIFFLAGS, (char *) &ifreq) < 0)
 	{
           __perror ("get_myaddress: ioctl");
-          exit (1);
+          __exit (1);
 	}
       if ((ifreq.ifr_flags & IFF_UP) && (ifr->ifr_addr.sa_family == AF_INET)
 	  && (!(ifreq.ifr_flags & IFF_LOOPBACK) ||

Modified: trunk/uClibc/libc/inet/rpc/getrpcent.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/getrpcent.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/getrpcent.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -35,6 +35,7 @@
 
 #define atoi __atoi
 #define rewind __rewind
+#define fgets __fgets
 
 #define __FORCE_GLIBC
 #include <features.h>

Modified: trunk/uClibc/libc/inet/rpc/pmap_clnt.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/pmap_clnt.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/pmap_clnt.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -69,14 +69,14 @@
   if ((s = __socket (AF_INET, SOCK_DGRAM, 0)) < 0)
     {
       __perror ("__get_myaddress: socket");
-      exit (1);
+      __exit (1);
     }
   ifc.ifc_len = sizeof (buf);
   ifc.ifc_buf = buf;
   if (__ioctl (s, SIOCGIFCONF, (char *) &ifc) < 0)
     {
       __perror (_("__get_myaddress: ioctl (get interface configuration)"));
-      exit (1);
+      __exit (1);
     }
 
  again:
@@ -87,7 +87,7 @@
       if (__ioctl (s, SIOCGIFFLAGS, (char *) &ifreq) < 0)
         {
           __perror ("__get_myaddress: ioctl");
-          exit (1);
+          __exit (1);
         }
       if ((ifreq.ifr_flags & IFF_UP) && (ifr->ifr_addr.sa_family == AF_INET)
           && ((ifreq.ifr_flags & IFF_LOOPBACK) || (loopback == 0)))

Modified: trunk/uClibc/libc/inet/rpc/pmap_getport.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/pmap_getport.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/pmap_getport.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -45,6 +45,11 @@
 #include <rpc/pmap_clnt.h>
 #include <sys/socket.h>
 
+#undef get_rpc_createerr
+extern struct rpc_createerr *__rpc_thread_createerr_internal (void)
+     __attribute__ ((__const__)) attribute_hidden;
+#define get_rpc_createerr() (*__rpc_thread_createerr_internal ())
+
 static const struct timeval timeout =
 {5, 0};
 static const struct timeval tottimeout =

Modified: trunk/uClibc/libc/inet/rpc/rcmd.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/rcmd.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/rcmd.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -81,6 +81,7 @@
 
 
 extern int __rresvport(int *alport) attribute_hidden;
+extern int __getc_unlocked (FILE *__stream) attribute_hidden;
 
 /* some forward declarations */
 static int __ivaliduser2(FILE *hostf, u_int32_t raddr,
@@ -664,10 +665,10 @@
 
 	/* Skip lines that are too long. */
 	if (__strchr (p, '\n') == NULL) {
-	    int ch = getc_unlocked (hostf);
+	    int ch = __getc_unlocked (hostf);
 
 	    while (ch != '\n' && ch != EOF)
-	      ch = getc_unlocked (hostf);
+	      ch = __getc_unlocked (hostf);
 	    continue;
 	}
 

Modified: trunk/uClibc/libc/inet/rpc/rpc_private.h
===================================================================
--- trunk/uClibc/libc/inet/rpc/rpc_private.h	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/rpc_private.h	2005-12-16 01:05:56 UTC (rev 12919)
@@ -4,6 +4,11 @@
 /* Now define the internal interfaces.  */
 extern u_long _create_xid (void) attribute_hidden;
 
+#undef get_rpc_createerr
+extern struct rpc_createerr *__rpc_thread_createerr_internal (void)
+     __attribute__ ((__const__)) attribute_hidden;
+#define get_rpc_createerr() (*__rpc_thread_createerr_internal ())
+
 /*
  * Multi-threaded support
  * Group all global and static variables into a single spot.

Modified: trunk/uClibc/libc/inet/rpc/rpc_thread.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/rpc_thread.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/rpc_thread.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -107,8 +107,8 @@
 }
 strong_alias(__rpc_thread_svc_fdset_internal,__rpc_thread_svc_fdset)
 
-struct rpc_createerr *
-__rpc_thread_createerr (void)
+struct rpc_createerr attribute_hidden *
+__rpc_thread_createerr_internal (void)
 {
 	struct rpc_thread_variables *tvp;
 
@@ -117,6 +117,8 @@
 		return &rpc_createerr;
 	return &tvp->rpc_createerr_s;
 }
+#undef __rpc_thread_createerr
+strong_alias(__rpc_thread_createerr_internal,__rpc_thread_createerr)
 
 struct pollfd attribute_hidden **
 __rpc_thread_svc_pollfd_internal (void)
@@ -155,11 +157,13 @@
 }
 strong_alias(__rpc_thread_svc_fdset_internal,__rpc_thread_svc_fdset)
 
-struct rpc_createerr * __rpc_thread_createerr (void)
+struct rpc_createerr attribute_hidden * __rpc_thread_createerr_internal (void)
 {
     extern struct rpc_createerr rpc_createerr;
     return &(rpc_createerr);
 }
+#undef __rpc_thread_createerr
+strong_alias(__rpc_thread_createerr_internal,__rpc_thread_createerr)
 
 struct pollfd attribute_hidden ** __rpc_thread_svc_pollfd_internal (void)
 {

Modified: trunk/uClibc/libc/inet/rpc/ruserpass.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/ruserpass.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/ruserpass.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -50,6 +50,8 @@
 #include <string.h>
 #include <unistd.h>
 
+extern int __getc_unlocked (FILE *__stream) attribute_hidden;
+
 #define _(X)  (X)
 /* #include "ftp_var.h" */
 
@@ -219,7 +221,7 @@
 				(void) fclose(cfile);
 				return (0);
 			}
-			while ((c=getc_unlocked(cfile)) != EOF && c == ' '
+			while ((c=__getc_unlocked(cfile)) != EOF && c == ' '
 			       || c == '\t');
 			if (c == EOF || c == '\n') {
 				__printf("Missing macdef name argument.\n");
@@ -231,7 +233,7 @@
 			}
 			tmp = macros[macnum].mac_name;
 			*tmp++ = c;
-			for (i=0; i < 8 && (c=getc_unlocked(cfile)) != EOF &&
+			for (i=0; i < 8 && (c=__getc_unlocked(cfile)) != EOF &&
 			    !isspace(c); ++i) {
 				*tmp++ = c;
 			}
@@ -241,7 +243,7 @@
 			}
 			*tmp = '\0';
 			if (c != '\n') {
-				while ((c=getc_unlocked(cfile)) != EOF
+				while ((c=__getc_unlocked(cfile)) != EOF
 				       && c != '\n');
 			}
 			if (c == EOF) {
@@ -256,7 +258,7 @@
 			}
 			tmp = macros[macnum].mac_start;
 			while (tmp != macbuf + 4096) {
-				if ((c=getc_unlocked(cfile)) == EOF) {
+				if ((c=__getc_unlocked(cfile)) == EOF) {
 				__printf("Macro definition missing null line terminator.\n");
 					goto bad;
 				}
@@ -300,24 +302,24 @@
 
 	if (feof_unlocked(cfile) || ferror_unlocked(cfile))
 		return (0);
-	while ((c = getc_unlocked(cfile)) != EOF &&
+	while ((c = __getc_unlocked(cfile)) != EOF &&
 	    (c == '\n' || c == '\t' || c == ' ' || c == ','))
 		continue;
 	if (c == EOF)
 		return (0);
 	cp = tokval;
 	if (c == '"') {
-		while ((c = getc_unlocked(cfile)) != EOF && c != '"') {
+		while ((c = __getc_unlocked(cfile)) != EOF && c != '"') {
 			if (c == '\\')
-				c = getc_unlocked(cfile);
+				c = __getc_unlocked(cfile);
 			*cp++ = c;
 		}
 	} else {
 		*cp++ = c;
-		while ((c = getc_unlocked(cfile)) != EOF
+		while ((c = __getc_unlocked(cfile)) != EOF
 		    && c != '\n' && c != '\t' && c != ' ' && c != ',') {
 			if (c == '\\')
-				c = getc_unlocked(cfile);
+				c = __getc_unlocked(cfile);
 			*cp++ = c;
 		}
 	}

Modified: trunk/uClibc/libc/inet/rpc/svc_simple.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/svc_simple.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/svc_simple.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -44,6 +44,7 @@
 #define svcudp_create __svcudp_create
 #define pmap_unset __pmap_unset
 #define asprintf __asprintf
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE
@@ -159,7 +160,7 @@
       if (svc_sendreply (transp_l, (xdrproc_t)xdr_void, (char *) NULL) == FALSE)
 	{
 	  __write (STDERR_FILENO, "xxx\n", 4);
-	  exit (1);
+	  __exit (1);
 	}
       return;
     }
@@ -184,7 +185,7 @@
 	    (void) asprintf (&buf,
 			       _("trouble replying to prog %d\n"),
 			       pl->p_prognum);
-	    exit (1);
+	    __exit (1);
 	  }
 	/* free the decoded arguments */
 	(void) svc_freeargs (transp_l, pl->p_inproc, xdrbuf);
@@ -198,5 +199,5 @@
 #endif
     fputs (buf, stderr);
   free (buf);
-  exit (1);
+  __exit (1);
 }

Modified: trunk/uClibc/libc/inet/rpc/svc_tcp.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/svc_tcp.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/svc_tcp.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -55,6 +55,7 @@
 #define poll __poll
 #define accept __accept
 #define listen __listen
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE

Modified: trunk/uClibc/libc/inet/rpc/svc_udp.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/svc_udp.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/svc_udp.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -52,6 +52,7 @@
 #define sendto __sendto
 #define recvmsg __recvmsg
 #define sendmsg __sendmsg
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE

Modified: trunk/uClibc/libc/inet/rpc/svc_unix.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/svc_unix.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/svc_unix.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -55,6 +55,7 @@
 #define poll __poll
 #define accept __accept
 #define listen __listen
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #include <features.h>

Modified: trunk/uClibc/libc/inet/rpc/xdr.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/xdr.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/xdr.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -41,6 +41,8 @@
  * xdr.
  */
 
+#define fputs __fputs
+
 #define __FORCE_GLIBC
 #define _GNU_SOURCE
 #include <features.h>

Modified: trunk/uClibc/libc/inet/rpc/xdr_array.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/xdr_array.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/xdr_array.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -41,6 +41,7 @@
  */
 
 #define xdr_u_int __xdr_u_int
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE

Modified: trunk/uClibc/libc/inet/rpc/xdr_rec.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/xdr_rec.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/xdr_rec.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -44,6 +44,8 @@
  * The other 31 bits encode the byte length of the fragment.
  */
 
+#define fputs __fputs
+
 #define __FORCE_GLIBC
 #define _GNU_SOURCE
 #include <features.h>

Modified: trunk/uClibc/libc/inet/rpc/xdr_reference.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/xdr_reference.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/xdr_reference.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -41,6 +41,7 @@
  */
 
 #define xdr_bool __xdr_bool
+#define fputs __fputs
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE

Modified: trunk/uClibc/libc/inet/rpc/xdr_stdio.c
===================================================================
--- trunk/uClibc/libc/inet/rpc/xdr_stdio.c	2005-12-16 01:02:50 UTC (rev 12918)
+++ trunk/uClibc/libc/inet/rpc/xdr_stdio.c	2005-12-16 01:05:56 UTC (rev 12919)
@@ -41,6 +41,7 @@
 #define fwrite __fwrite
 #define fseek __fseek
 #define fflush __fflush
+#define ftell __ftell
 
 #include <rpc/types.h>
 #include <stdio.h>




More information about the uClibc-cvs mailing list