execl, execle, execlp, execvp, getpid, getsid.
* sysdeps/generic/alarm.c: Add libc_hidden_def.
* sysdeps/unix/alarm.c: Likewise.
* posix/confstr.c: Likewise.
* posix/execvp.c: Likewise.
* posix/execlp.c: Likewise.
* posix/execle.c: Likewise.
* posix/execl.c: Likewise.
* sysdeps/generic/getsid.c: Likewise.
* sysdeps/mach/hurd/getsid.c: Likewise.
* sysdeps/generic/getpid.c: Add libc_hidden_weak.
* sysdeps/mach/hurd/getpid.c: Likewise.
* include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
qecvt_r, qfcvt_r, lrand48_r.
* misc/efgcvt_r.c: Add libc_hidden_def.
* include/wordexp.h: Use libc_hidden_proto for wordfree.
* sysdeps/generic/wordexp.c: Add libc_hidden_def.
* include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
* locale/nl_langinfo.c: Add libc_hidden_def.
* include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
* sysdeps/generic/glob.c: Add libc_hidden_def.
* sysdeps/generic/glob64.c: Likewise.
* sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
2002-08-03 Roland McGrath <roland@redhat.com>
+ * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
+ execl, execle, execlp, execvp, getpid, getsid.
+ * sysdeps/generic/alarm.c: Add libc_hidden_def.
+ * sysdeps/unix/alarm.c: Likewise.
+ * posix/confstr.c: Likewise.
+ * posix/execvp.c: Likewise.
+ * posix/execlp.c: Likewise.
+ * posix/execle.c: Likewise.
+ * posix/execl.c: Likewise.
+ * sysdeps/generic/getsid.c: Likewise.
+ * sysdeps/mach/hurd/getsid.c: Likewise.
+ * sysdeps/generic/getpid.c: Add libc_hidden_weak.
+ * sysdeps/mach/hurd/getpid.c: Likewise.
+
+ * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
+ qecvt_r, qfcvt_r, lrand48_r.
+ * misc/efgcvt_r.c: Add libc_hidden_def.
+
+ * include/wordexp.h: Use libc_hidden_proto for wordfree.
+ * sysdeps/generic/wordexp.c: Add libc_hidden_def.
+
+ * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
+ * locale/nl_langinfo.c: Add libc_hidden_def.
+
+ * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
+ * sysdeps/generic/glob.c: Add libc_hidden_def.
+ * sysdeps/generic/glob64.c: Likewise.
+ * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
+
* locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
* elf/Makefile (CFLAGS-vismod2.c): New variable.
#ifndef _GLOB_H
#include <posix/glob.h>
+libc_hidden_proto (glob)
+libc_hidden_proto (globfree)
+libc_hidden_proto (globfree64)
+
/* Now define the internal interfaces. */
extern int __glob_pattern_p (__const char *__pattern, int __quote);
extern int __glob64 (__const char *__pattern, int __flags,
+#ifndef _LANGINFO_H
+
#include <locale/langinfo.h>
+
+libc_hidden_proto (nl_langinfo)
+
+#endif
libc_hidden_proto (getenv)
libc_hidden_proto (bsearch)
libc_hidden_proto (qsort)
+libc_hidden_proto (ecvt_r)
+libc_hidden_proto (fcvt_r)
+libc_hidden_proto (qecvt_r)
+libc_hidden_proto (qfcvt_r)
+libc_hidden_proto (lrand48_r)
libc_hidden_proto (__secure_getenv)
libc_hidden_proto (__strtof_internal)
libc_hidden_proto (__strtod_internal)
#ifndef _UNISTD_H
# include <posix/unistd.h>
+libc_hidden_proto (_exit)
+libc_hidden_proto (alarm)
+libc_hidden_proto (confstr)
+libc_hidden_proto (execl)
+libc_hidden_proto (execle)
+libc_hidden_proto (execlp)
+libc_hidden_proto (execvp)
+libc_hidden_proto (getpid)
+libc_hidden_proto (getsid)
+
+
/* Now define the internal interfaces. */
extern int __access (__const char *__name, int __type);
extern int __euidaccess (__const char *__name, int __type);
+#ifndef _WORDEXP_H
+
#include <posix/wordexp.h>
+
+libc_hidden_proto (wordfree)
+
+#endif
/* Return the string for the specified item. */
return (char *) data->values[index].string;
}
+#ifndef USE_IN_EXTENDED_LOCALE_MODEL
+libc_hidden_def (nl_langinfo)
+#endif
/* Compatibility functions for floating point formatting, reentrant versions.
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2000,01,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
return 0;
}
+libc_hidden_def (APPEND (FUNC_PREFIX, fcvt_r))
int
APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len)
*decpt += exponent;
return 0;
}
+libc_hidden_def (APPEND (FUNC_PREFIX, ecvt_r))
-/* Copyright (C) 1991, 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,96,97,2000,01,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
}
return string_len;
}
+libc_hidden_def (confstr)
-/* Copyright (C) 1991, 92, 94, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,97,98,99,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
return __execve (path, (char *const *) argv, __environ);
}
+libc_hidden_def (execl)
-/* Copyright (C) 1991, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991,97,98,99,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
return __execve (path, (char *const *) argv, (char *const *) envp);
}
+libc_hidden_def (execle)
-/* Copyright (C) 1991, 93, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,98,99,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
return execvp (file, (char *const *) argv);
}
+libc_hidden_def (execlp)
-/* Copyright (C) 1991, 92, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,95,96,97,98,99,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* Return the error from the last attempt (probably ENOENT). */
return -1;
}
+libc_hidden_def (execvp)
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,97,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
__set_errno (ENOSYS);
return 0;
}
-
+libc_hidden_def (alarm)
stub_warning (alarm)
#include <stub-tag.h>
stub_warning (getpid)
weak_alias (__getpid, getpid)
+libc_hidden_weak (getpid)
#include <stub-tag.h>
/* getsid -- Return session ID of a process. Stub version.
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
__set_errno (ENOSYS);
return (pid_t) -1;
}
+libc_hidden_def (getsid)
stub_warning (getsid)
#include <stub-tag.h>
return 0;
}
+#ifdef _LIBC
+libc_hidden_def (glob)
+#endif
#if !defined _LIBC || !defined GLOB_ONLY_P
free ((__ptr_t) pglob->gl_pathv);
}
}
+#ifdef _LIBC
+libc_hidden_def (globfree)
+#endif
/* Do a collated comparison of A and B. */
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998,99,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
globfree64 (glob64_t *pglob)
{
}
+libc_hidden_def (globfree64);
stub_warning (glob64)
#include <stub-tag.h>
pwordexp->we_wordv = NULL;
}
}
+libc_hidden_def (wordfree)
/*
* wordexp()
}
libc_hidden_def (__getpid)
weak_alias (__getpid, getpid)
+libc_hidden_weak (getpid)
/* getsid -- Return session ID of a process. Hurd version.
- Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995,97,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
return (pid_t) __hurd_fail (err);
return sid;
}
+libc_hidden_def (getsid)
-/* Copyright (C) 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,97,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
++retval;
return retval;
}
+libc_hidden_def (alarm)
#undef globfree64
weak_alias (glob, glob64)
weak_alias (globfree, globfree64)
+libc_hidden_weak (globfree64)