svn commit: trunk/uClibc/libc/misc: error fnmatch gnu internals mntent pthre etc...

psm at uclibc.org psm at uclibc.org
Fri Dec 16 01:03:43 UTC 2005


Author: psm
Date: 2005-12-15 17:02:50 -0800 (Thu, 15 Dec 2005)
New Revision: 12918

Log:
Convert users

Modified:
   trunk/uClibc/libc/misc/error/err.c
   trunk/uClibc/libc/misc/error/error.c
   trunk/uClibc/libc/misc/fnmatch/fnmatch.c
   trunk/uClibc/libc/misc/gnu/obstack.c
   trunk/uClibc/libc/misc/internals/__uClibc_main.c
   trunk/uClibc/libc/misc/mntent/mntent.c
   trunk/uClibc/libc/misc/pthread/weaks.c
   trunk/uClibc/libc/misc/ttyent/getttyent.c


Changeset:
Modified: trunk/uClibc/libc/misc/error/err.c
===================================================================
--- trunk/uClibc/libc/misc/error/err.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/error/err.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -84,7 +84,7 @@
 void attribute_hidden __verr(int status, const char *format, va_list args)
 {
 	__vwarn(format, args);
-	exit(status);
+	__exit(status);
 }
 strong_alias(__verr,verr)
 
@@ -103,7 +103,7 @@
 void attribute_hidden __verrx(int status, const char *format, va_list args)
 {
 	__vwarnx(format, args);
-	exit(status);
+	__exit(status);
 }
 strong_alias(__verrx,verrx)
 

Modified: trunk/uClibc/libc/misc/error/error.c
===================================================================
--- trunk/uClibc/libc/misc/error/error.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/error/error.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -32,6 +32,7 @@
 #include <string.h>
 #include "error.h"
 
+extern int __putc(int c, FILE *stream) attribute_hidden;
 
 /* This variable is incremented each time `error' is called.  */
 unsigned int error_message_count;
@@ -57,9 +58,9 @@
     if (errnum) {
 	fprintf (stderr, ": %s", strerror (errnum));
     }
-    putc ('\n', stderr);
+    __putc ('\n', stderr);
     if (status)
-	exit (status);
+	__exit (status);
 }
 
 void __error_at_line (int status, int errnum, const char *file_name,
@@ -93,9 +94,9 @@
     if (errnum) {
 	fprintf (stderr, ": %s", strerror (errnum));
     }
-    putc ('\n', stderr);
+    __putc ('\n', stderr);
     if (status)
-	exit (status);
+	__exit (status);
 }
 
 /* Use the weaks here in an effort at controlling namespace pollution */

Modified: trunk/uClibc/libc/misc/fnmatch/fnmatch.c
===================================================================
--- trunk/uClibc/libc/misc/fnmatch/fnmatch.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/fnmatch/fnmatch.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -28,7 +28,6 @@
 #include <fnmatch.h>
 #include <ctype.h>
 
-
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
    Library, but also included in many other GNU distributions.  Compiling

Modified: trunk/uClibc/libc/misc/gnu/obstack.c
===================================================================
--- trunk/uClibc/libc/misc/gnu/obstack.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/gnu/obstack.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -502,7 +502,7 @@
   else
 # endif
     fprintf (stderr, "%s\n", _("memory exhausted"));
-  exit (obstack_exit_failure);
+  __exit (obstack_exit_failure);
 }
 
 # if 0

Modified: trunk/uClibc/libc/misc/internals/__uClibc_main.c
===================================================================
--- trunk/uClibc/libc/misc/internals/__uClibc_main.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/internals/__uClibc_main.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -60,7 +60,7 @@
 extern int *weak_const_function __errno_location(void);
 extern int *weak_const_function __h_errno_location(void);
 #ifdef __UCLIBC_HAS_LOCALE__
-extern void weak_function _locale_init(void);
+extern void weak_function _locale_init(void) attribute_hidden;
 #endif
 #ifdef __UCLIBC_HAS_THREADS__
 extern void weak_function __pthread_initialize_minimal(void);
@@ -281,5 +281,5 @@
     /*
      * Finally, invoke application's main and then exit.
      */
-    exit(main(argc, argv, __environ));
+    __exit(main(argc, argv, __environ));
 }

Modified: trunk/uClibc/libc/misc/mntent/mntent.c
===================================================================
--- trunk/uClibc/libc/misc/mntent/mntent.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/mntent/mntent.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -2,6 +2,7 @@
 #define strstr __strstr
 #define atoi __atoi
 #define fseek __fseek
+#define fgets __fgets
 
 #include <stdio.h>
 #include <stdlib.h>

Modified: trunk/uClibc/libc/misc/pthread/weaks.c
===================================================================
--- trunk/uClibc/libc/misc/pthread/weaks.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/pthread/weaks.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -107,7 +107,7 @@
 
 void weak_function pthread_exit (void *retval)
 {
-  exit (EXIT_SUCCESS);
+  __exit (EXIT_SUCCESS);
 }
 */
 

Modified: trunk/uClibc/libc/misc/ttyent/getttyent.c
===================================================================
--- trunk/uClibc/libc/misc/ttyent/getttyent.c	2005-12-16 01:00:06 UTC (rev 12917)
+++ trunk/uClibc/libc/misc/ttyent/getttyent.c	2005-12-16 01:02:50 UTC (rev 12918)
@@ -29,6 +29,7 @@
 
 #define __fsetlocking __fsetlocking_internal
 #define rewind __rewind
+#define fgets_unlocked __fgets_unlocked
 
 #define _GNU_SOURCE
 #include <features.h>
@@ -42,6 +43,8 @@
 #include <pthread.h>
 #endif
 
+extern int __getc_unlocked (FILE *__stream) attribute_hidden;
+
 static char zapchar;
 static FILE *tf;
 static struct ttyent tty;
@@ -130,7 +133,7 @@
 	}
 	/* skip lines that are too big */
 	if (!__strchr(p, '\n')) {
-	    while ((c = getc_unlocked(tf)) != '\n' && c != EOF)
+	    while ((c = __getc_unlocked(tf)) != '\n' && c != EOF)
 		;
 	    continue;
 	}




More information about the uClibc-cvs mailing list