svn commit: trunk/uClibc/libc: inet misc/internals stdlib

psm at uclibc.org psm at uclibc.org
Sat Nov 26 01:14:15 UTC 2005


Author: psm
Date: 2005-11-25 17:14:13 -0800 (Fri, 25 Nov 2005)
New Revision: 12533

Log:
Some more hidden internals

Modified:
   trunk/uClibc/libc/inet/resolv.c
   trunk/uClibc/libc/misc/internals/tempname.c
   trunk/uClibc/libc/misc/internals/tempname.h
   trunk/uClibc/libc/stdlib/drand48-iter.c
   trunk/uClibc/libc/stdlib/erand48_r.c
   trunk/uClibc/libc/stdlib/jrand48_r.c
   trunk/uClibc/libc/stdlib/nrand48_r.c
   trunk/uClibc/libc/stdlib/setenv.c
   trunk/uClibc/libc/stdlib/strtod.c


Changeset:
Modified: trunk/uClibc/libc/inet/resolv.c
===================================================================
--- trunk/uClibc/libc/inet/resolv.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/inet/resolv.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -232,13 +232,13 @@
 			      struct hostent * result_buf,
 			      char * buf, size_t buflen,
 			      struct hostent ** result,
-			      int * h_errnop);
+			      int * h_errnop) attribute_hidden;
 extern int __get_hosts_byaddr_r(const char * addr, int len, int type,
 			      struct hostent * result_buf,
 			      char * buf, size_t buflen,
 			      struct hostent ** result,
-			      int * h_errnop);
-extern void __open_etc_hosts(FILE **fp);
+			      int * h_errnop) attribute_hidden;
+extern void __open_etc_hosts(FILE **fp) attribute_hidden;
 extern int __read_etc_hosts_r(FILE *fp, const char * name, int type,
 			    enum etc_hosts_action action,
 			    struct hostent * result_buf,
@@ -246,25 +246,25 @@
 			    struct hostent ** result,
 			    int * h_errnop);
 extern int __dns_lookup(const char * name, int type, int nscount,
-	char ** nsip, unsigned char ** outpacket, struct resolv_answer * a);
+	char ** nsip, unsigned char ** outpacket, struct resolv_answer * a) attribute_hidden;
 
-extern int __encode_dotted(const char * dotted, unsigned char * dest, int maxlen);
+extern int __encode_dotted(const char * dotted, unsigned char * dest, int maxlen) attribute_hidden;
 extern int __decode_dotted(const unsigned char * message, int offset,
-	char * dest, int maxlen);
-extern int __length_dotted(const unsigned char * message, int offset);
-extern int __encode_header(struct resolv_header * h, unsigned char * dest, int maxlen);
-extern int __decode_header(unsigned char * data, struct resolv_header * h);
+	char * dest, int maxlen) attribute_hidden;
+extern int __length_dotted(const unsigned char * message, int offset) attribute_hidden;
+extern int __encode_header(struct resolv_header * h, unsigned char * dest, int maxlen) attribute_hidden;
+extern int __decode_header(unsigned char * data, struct resolv_header * h) attribute_hidden;
 extern int __encode_question(struct resolv_question * q,
-	unsigned char * dest, int maxlen);
+	unsigned char * dest, int maxlen) attribute_hidden;
 extern int __decode_question(unsigned char * message, int offset,
 	struct resolv_question * q);
 extern int __encode_answer(struct resolv_answer * a,
-	unsigned char * dest, int maxlen);
+	unsigned char * dest, int maxlen) attribute_hidden;
 extern int __decode_answer(unsigned char * message, int offset,
-	struct resolv_answer * a);
-extern int __length_question(unsigned char * message, int offset);
-extern int __open_nameservers(void);
-extern void __close_nameservers(void);
+	struct resolv_answer * a) attribute_hidden;
+extern int __length_question(unsigned char * message, int offset) attribute_hidden;
+extern int __open_nameservers(void) attribute_hidden;
+extern void __close_nameservers(void) attribute_hidden;
 extern int __dn_expand(const u_char *, const u_char *, const u_char *,
 	char *, int);
 extern int __ns_name_uncompress(const u_char *, const u_char *,
@@ -275,7 +275,7 @@
 
 
 #ifdef L_encodeh
-int __encode_header(struct resolv_header *h, unsigned char *dest, int maxlen)
+int attribute_hidden __encode_header(struct resolv_header *h, unsigned char *dest, int maxlen)
 {
 	if (maxlen < HFIXEDSZ)
 		return -1;
@@ -302,7 +302,7 @@
 #endif
 
 #ifdef L_decodeh
-int __decode_header(unsigned char *data, struct resolv_header *h)
+int attribute_hidden __decode_header(unsigned char *data, struct resolv_header *h)
 {
 	h->id = (data[0] << 8) | data[1];
 	h->qr = (data[2] & 0x80) ? 1 : 0;
@@ -326,7 +326,7 @@
    This routine is fairly dumb, and doesn't attempt to compress
    the data */
 
-int __encode_dotted(const char *dotted, unsigned char *dest, int maxlen)
+int attribute_hidden __encode_dotted(const char *dotted, unsigned char *dest, int maxlen)
 {
 	int used = 0;
 
@@ -360,7 +360,7 @@
 /* Decode a dotted string from nameserver transport-level encoding.
    This routine understands compressed data. */
 
-int __decode_dotted(const unsigned char *data, int offset,
+int attribute_hidden __decode_dotted(const unsigned char *data, int offset,
 				  char *dest, int maxlen)
 {
 	int l;
@@ -411,7 +411,7 @@
 
 #ifdef L_lengthd
 
-int __length_dotted(const unsigned char *data, int offset)
+int attribute_hidden __length_dotted(const unsigned char *data, int offset)
 {
 	int orig_offset = offset;
 	int l;
@@ -434,7 +434,7 @@
 #endif
 
 #ifdef L_encodeq
-int __encode_question(struct resolv_question *q,
+int attribute_hidden __encode_question(struct resolv_question *q,
 					unsigned char *dest, int maxlen)
 {
 	int i;
@@ -480,7 +480,7 @@
 #endif
 
 #ifdef L_lengthq
-int __length_question(unsigned char *message, int offset)
+int attribute_hidden __length_question(unsigned char *message, int offset)
 {
 	int i;
 
@@ -493,7 +493,7 @@
 #endif
 
 #ifdef L_encodea
-int __encode_answer(struct resolv_answer *a, unsigned char *dest, int maxlen)
+int attribute_hidden __encode_answer(struct resolv_answer *a, unsigned char *dest, int maxlen)
 {
 	int i;
 
@@ -524,7 +524,7 @@
 #endif
 
 #ifdef L_decodea
-int __decode_answer(unsigned char *message, int offset,
+int attribute_hidden __decode_answer(unsigned char *message, int offset,
 				  struct resolv_answer *a)
 {
 	char temp[256];
@@ -667,7 +667,7 @@
  * look anyways. */
 static int ns=0, id=1;
 
-int __dns_lookup(const char *name, int type, int nscount, char **nsip,
+int attribute_hidden __dns_lookup(const char *name, int type, int nscount, char **nsip,
 			   unsigned char **outpacket, struct resolv_answer *a)
 {
 	int i, j, len, fd, pos, rc;
@@ -978,7 +978,7 @@
  *	unix systems, we can have a list of nameservers after the keyword.
  */
 
-int __open_nameservers()
+int attribute_hidden __open_nameservers()
 {
 	FILE *fp;
 	int i;
@@ -1045,7 +1045,7 @@
 
 #ifdef L_closenameservers
 
-void __close_nameservers(void)
+void attribute_hidden __close_nameservers(void)
 {
 	BIGLOCK;
 	while (__nameservers > 0) {
@@ -1419,7 +1419,7 @@
 
 #ifdef L_read_etc_hosts_r
 
-void __open_etc_hosts(FILE **fp)
+void attribute_hidden __open_etc_hosts(FILE **fp)
 {
 	if ((*fp = fopen("/etc/hosts", "r")) == NULL) {
 		*fp = fopen("/etc/config/hosts", "r");
@@ -1645,7 +1645,7 @@
 
 #ifdef L_get_hosts_byname_r
 
-int __get_hosts_byname_r(const char * name, int type,
+int attribute_hidden __get_hosts_byname_r(const char * name, int type,
 			    struct hostent * result_buf,
 			    char * buf, size_t buflen,
 			    struct hostent ** result,
@@ -1658,7 +1658,7 @@
 
 #ifdef L_get_hosts_byaddr_r
 
-int __get_hosts_byaddr_r(const char * addr, int len, int type,
+int attribute_hidden __get_hosts_byaddr_r(const char * addr, int len, int type,
 			    struct hostent * result_buf,
 			    char * buf, size_t buflen,
 			    struct hostent ** result,

Modified: trunk/uClibc/libc/misc/internals/tempname.c
===================================================================
--- trunk/uClibc/libc/misc/internals/tempname.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/misc/internals/tempname.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -175,7 +175,7 @@
    __GT_DIR:            create a directory, which will be mode 0700.
 
 */
-int __gen_tempname (char *tmpl, int kind)
+int attribute_hidden __gen_tempname (char *tmpl, int kind)
 {
     char *XXXXXX;
     unsigned int k;

Modified: trunk/uClibc/libc/misc/internals/tempname.h
===================================================================
--- trunk/uClibc/libc/misc/internals/tempname.h	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/misc/internals/tempname.h	2005-11-26 01:14:13 UTC (rev 12533)
@@ -5,7 +5,7 @@
 #include <stddef.h>
 extern int __path_search (char *tmpl, size_t tmpl_len, const char *dir, 
 	        const char *pfx, int try_tmpdir);
-extern int __gen_tempname (char *__tmpl, int __kind);
+extern int __gen_tempname (char *__tmpl, int __kind) attribute_hidden;
 
 /* The __kind argument to __gen_tempname may be one of: */
 #define __GT_FILE     0       /* create a file */

Modified: trunk/uClibc/libc/stdlib/drand48-iter.c
===================================================================
--- trunk/uClibc/libc/stdlib/drand48-iter.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/stdlib/drand48-iter.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -27,7 +27,7 @@
 struct drand48_data __libc_drand48_data;
 
 
-int
+int attribute_hidden
 __drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer)
 {
   uint64_t X;

Modified: trunk/uClibc/libc/stdlib/erand48_r.c
===================================================================
--- trunk/uClibc/libc/stdlib/erand48_r.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/stdlib/erand48_r.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -22,7 +22,7 @@
 #include <limits.h>
 
 extern int __drand48_iterate(unsigned short xsubi[3], 
-	struct drand48_data *buffer);
+	struct drand48_data *buffer) attribute_hidden;
 
 
 int erand48_r (xsubi, buffer, result)

Modified: trunk/uClibc/libc/stdlib/jrand48_r.c
===================================================================
--- trunk/uClibc/libc/stdlib/jrand48_r.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/stdlib/jrand48_r.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 
 extern int __drand48_iterate(unsigned short xsubi[3], 
-	struct drand48_data *buffer);
+	struct drand48_data *buffer) attribute_hidden;
 
 int jrand48_r (xsubi, buffer, result)
      unsigned short int xsubi[3];

Modified: trunk/uClibc/libc/stdlib/nrand48_r.c
===================================================================
--- trunk/uClibc/libc/stdlib/nrand48_r.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/stdlib/nrand48_r.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 
 extern int __drand48_iterate(unsigned short xsubi[3], 
-	struct drand48_data *buffer);
+	struct drand48_data *buffer) attribute_hidden;
 
 int nrand48_r (xsubi, buffer, result)
      unsigned short int xsubi[3];

Modified: trunk/uClibc/libc/stdlib/setenv.c
===================================================================
--- trunk/uClibc/libc/stdlib/setenv.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/stdlib/setenv.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -48,7 +48,7 @@
    must be used directly.  This is all complicated by the fact that we try
    to reuse values once generated for a `setenv' call since we can never
    free the strings.  */
-int __add_to_environ (const char *name, const char *value, 
+int attribute_hidden __add_to_environ (const char *name, const char *value, 
 	const char *combined, int replace)
 {
     register char **ep;

Modified: trunk/uClibc/libc/stdlib/strtod.c
===================================================================
--- trunk/uClibc/libc/stdlib/strtod.c	2005-11-25 23:56:37 UTC (rev 12532)
+++ trunk/uClibc/libc/stdlib/strtod.c	2005-11-26 01:14:13 UTC (rev 12533)
@@ -152,7 +152,7 @@
 
 #endif
 
-extern void __fp_range_check(__fpmax_t y, __fpmax_t x);
+extern void __fp_range_check(__fpmax_t y, __fpmax_t x) attribute_hidden;
 
 /**********************************************************************/
 
@@ -491,7 +491,7 @@
 #ifdef L___fp_range_check
 #if defined(NEED_STRTOF_WRAPPER) || defined(NEED_STRTOD_WRAPPER)
 
-extern void __fp_range_check(__fpmax_t y, __fpmax_t x)
+void attribute_hidden __fp_range_check(__fpmax_t y, __fpmax_t x)
 {
 	if (__FPMAX_ZERO_OR_INF_CHECK(y) /* y is 0 or +/- infinity */
 		&& (y != 0)	/* y is not 0 (could have x>0, y==0 if underflow) */




More information about the uClibc-cvs mailing list