+2002-12-09 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
+ __libc_select aliases.
+
+ * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
+ alias.
+
+ * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
+
+ * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
+
+ * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
+
+ * sysdeps/unix/syscalls.list: Define __libc_select alias.
+
+ * sysdeps/posix/waitid.c: Define __libc_waitid alias.
+
+ * sysdeps/posix/sigpause.c: Define __libc_sigpause and
+ __libc___xpg_sigpause aliases.
+
+ * sysdeps/generic/pselect.c: Define __libc_pselect alias.
+
+ * misc/error.c: Remove use of USE_IN_LIBIO.
+
2002-12-08 Roland McGrath <roland@redhat.com>
* elf/Makefile (tests): Uncomment tst-array[123].
The static library can be compiled with less featureful tools, but lacks key
features such as NSS.
-For Linux or Hurd, you want binutils 2.10.1 or higher. These are the only
+For Linux or Hurd, you want binutils 2.13 or higher. These are the only
versions we've tested and found reliable. Other versions may work but we
don't recommend them, especially not when C++ is involved.
Check the FAQ for any special compiler issues on particular
platforms.
- * GNU `binutils' 2.10.1 or later
+ * GNU `binutils' 2.13 or later
- You must use GNU `binutils' (as and ld) if you want to build a
- shared library. Even if you don't want to build a shared library,
- we recommend you use them anyway. No one has tested compilation
- with non-GNU `binutils' in a long time.
-
- The quality of `binutils' releases has varied a bit recently. The
- bugs are in obscure features, but glibc uses quite a few of those.
- 2.10.1 and later releases are known to work. Versions after
- 2.8.1.0.23 may or may not work. Older versions definitely don't.
-
- For PPC you might need some patches even on top of the last
- `binutils' version. See the FAQ.
+ You must use GNU `binutils' (as and ld) to build the GNU C library.
+ No other assembler and linker has the necessary functionality in
+ the moment.
* GNU `texinfo' 3.12f
+2002-12-09 Ulrich Drepper <drepper@redhat.com>
+
+ * wrapsyscall.c: Add wrappers for creat, poll, pselect, readv, select,
+ sigpause, __xpg_sigpause, sigsuspend, sigwaitinfo, waitid, and writev.
+ * Versions: Export creat, poll, pselect, readv, select, sigpause,
+ __xpg_sigpause, sigsuspend, sigwaitinfo, waitid, and writev from
+ libpthread in version GLIBC_2.3.2.
+
2002-12-06 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/bits/libc-lock.h: Define __rtld_lock_* macros.
__libc_internal_tsd_get; __libc_internal_tsd_set;
__libc_internal_tsd_address; __libc_alloca_cutoff;
__libc_dl_error_tsd;
+
+ __libc_creat; __libc_poll; __libc_pselect; __libc_select;
+ __libc_sigpause; __libc_sigsuspend; __libc_sigwait; __libc_sigwaitinfo;
+ __libc_waitid; __libc___xpg_sigpause;
}
}
# Cancellation wrapper
__nanosleep;
}
+ GLIBC_2.3.2 {
+ creat; poll; pselect; readv; select; sigpause; sigsuspend;
+ sigwaitinfo; __xpg_sigpause; waitid; writev;
+ }
GLIBC_PRIVATE {
# Internal libc interface to libpthread
__libc_internal_tsd_get; __libc_internal_tsd_set;
#include <stddef.h>
#include <stdlib.h>
#include <termios.h>
+#include <sys/poll.h>
#include <sys/resource.h>
+#include <sys/select.h>
+#include <sys/uio.h>
#include <sys/wait.h>
#include <sys/socket.h>
#define CANCELABLE_SYSCALL(res_type, name, param_list, params) \
-res_type __libc_##name param_list; \
+extern res_type __libc_##name param_list; \
res_type \
__attribute__ ((weak)) \
name param_list \
strong_alias (close, __close)
+/* creat(2). */
+CANCELABLE_SYSCALL (int, creat, (const char *pathname, mode_t mode),
+ (pathname, mode))
+
+
/* fcntl(2). */
CANCELABLE_SYSCALL_VA (int, fcntl, (int fd, int cmd, ...),
(fd, cmd, va_arg (ap, long int)), cmd)
CANCELABLE_SYSCALL (int, pause, (void), ())
+/* poll(2). */
+CANCELABLE_SYSCALL (int, poll,
+ (struct pollfd *ufds, nfds_t nfds, int timeout),
+ (ufds, nfds, timeout))
+
+
/* pread(3). */
CANCELABLE_SYSCALL (ssize_t, pread, (int fd, void *buf, size_t count,
off_t offset),
strong_alias (pread64, __pread64)
+/* pselect(3). */
+CANCELABLE_SYSCALL (int, pselect, (int n, fd_set *readfds, fd_set *writefds,
+ fd_set *exceptfds,
+ const struct timespec *timeout,
+ const sigset_t *sigmask),
+ (n, readfds, writefds, exceptfds, timeout, sigmask))
+
+
/* pwrite(3). */
CANCELABLE_SYSCALL (ssize_t, pwrite, (int fd, const void *buf, size_t n,
off_t offset),
strong_alias (read, __read)
+/* readv(2). */
+CANCELABLE_SYSCALL (ssize_t, readv,
+ (int fd, const struct iovec *vector, int count),
+ (fd, vector, count))
+
+
+/* select(2). */
+CANCELABLE_SYSCALL (int, select, (int n, fd_set *readfds,
+ fd_set *writefds,
+ fd_set *exceptfds,
+ struct timeval *timeout),
+ (n, readfds, writefds, exceptfds, timeout))
+
+
+/* sigpause(3). */
+#undef sigpause
+CANCELABLE_SYSCALL (int, sigpause, (int sigmask), (sigmask))
+
+
+/* __xpg_sigpause(3). */
+CANCELABLE_SYSCALL (int, __xpg_sigpause, (int sigmask), (sigmask))
+
+
+/* sigsuspend(2). */
+CANCELABLE_SYSCALL (int, sigsuspend, (const sigset_t *mask), (mask))
+
+
+/* sigwaitinfo(3). */
+CANCELABLE_SYSCALL (int, sigwaitinfo, (const sigset_t *set, siginfo_t *info),
+ (set, info))
+
+
/* system(3). */
CANCELABLE_SYSCALL (int, system, (const char *line), (line))
strong_alias (wait, __wait)
+/* waitid(3). */
+CANCELABLE_SYSCALL (int, waitid,
+ (idtype_t idtype, id_t id, siginfo_t *info, int options),
+ (idtype, id, info, options))
+
+
/* waitpid(2). */
CANCELABLE_SYSCALL (__pid_t, waitpid, (__pid_t pid, int *stat_loc,
int options),
strong_alias (write, __write)
+/* writev(2). */
+CANCELABLE_SYSCALL (ssize_t, writev,
+ (int fd, const struct iovec *vector, int count),
+ (fd, vector, count))
+
+
/* The following system calls are thread cancellation points specified
in XNS. */
# define error __error
# define error_at_line __error_at_line
-# ifdef USE_IN_LIBIO
-# include <libio/iolibio.h>
-# define fflush(s) INTUSE(_IO_fflush) (s)
-# undef putc
-# define putc(c, fp) INTUSE(_IO_putc) (c, fp)
-# endif
+# include <libio/iolibio.h>
+# define fflush(s) INTUSE(_IO_fflush) (s)
+# undef putc
+# define putc(c, fp) INTUSE(_IO_putc) (c, fp)
#else /* not _LIBC */
s = _("Unknown system error");
#endif
-#if _LIBC && USE_IN_LIBIO
+#if _LIBC
if (_IO_fwide (stderr, 0) > 0)
{
__fwprintf (stderr, L": %s", s);
error_tail (int status, int errnum, const char *message, va_list args)
{
# if HAVE_VPRINTF || _LIBC
-# if _LIBC && USE_IN_LIBIO
+# if _LIBC
if (_IO_fwide (stderr, 0) > 0)
{
# define ALLOCA_LIMIT 2000
++error_message_count;
if (errnum)
print_errno_message (errnum);
-# if _LIBC && USE_IN_LIBIO
+# if _LIBC
if (_IO_fwide (stderr, 0) > 0)
putwc (L'\n', stderr);
else
fflush (stdout);
#ifdef _LIBC
-# ifdef USE_IN_LIBIO
_IO_flockfile (stderr);
-# else
- __flockfile (stderr);
-# endif
#endif
if (error_print_progname)
(*error_print_progname) ();
else
{
-#if _LIBC && USE_IN_LIBIO
+#if _LIBC
if (_IO_fwide (stderr, 0) > 0)
__fwprintf (stderr, L"%s: ", program_name);
else
#endif
#ifdef _LIBC
-# ifdef USE_IN_LIBIO
_IO_funlockfile (stderr);
-# else
- __funlockfile (stderr);
-# endif
#endif
}
\f
fflush (stdout);
#ifdef _LIBC
-# ifdef USE_IN_LIBIO
_IO_flockfile (stderr);
-# else
- __flockfile (stderr);
-# endif
#endif
if (error_print_progname)
(*error_print_progname) ();
else
{
-#if _LIBC && USE_IN_LIBIO
+#if _LIBC
if (_IO_fwide (stderr, 0) > 0)
__fwprintf (stderr, L"%s: ", program_name);
else
if (file_name != NULL)
{
-#if _LIBC && USE_IN_LIBIO
+#if _LIBC
if (_IO_fwide (stderr, 0) > 0)
__fwprintf (stderr, L"%s:%d: ", file_name, line_number);
else
#endif
#ifdef _LIBC
-# ifdef USE_IN_LIBIO
_IO_funlockfile (stderr);
-# else
- __funlockfile (stderr);
-# endif
#endif
}
+2002-12-09 Ulrich Drepper <drepper@redhat.com>
+
+ * Versions: Remove duplicated sigwait entry.
+
2002-12-08 Ulrich Drepper <drepper@redhat.com>
* pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
__nanosleep;
}
- # XXX Adjust number for final release.
GLIBC_2.3.2 {
+ # The version for these interfaces is fixed.
+ creat; poll; pselect; readv; select; sigpause; sigsuspend;
+ sigwaitinfo; waitid; writev; __xpg_sigpause;
+
# Proposed API extensions.
+ # XXX Adjust number for final release.
pthread_tryjoin_np; pthread_timedjoin_np;
-
- creat; poll; pselect; readv; select; sigpause; sigsuspend; sigwait;
- sigwaitinfo; waitid; writev; __xpg_sigpause;
}
GLIBC_PRIVATE {
return retval;
}
weak_alias (__pselect, pselect)
+strong_alias (__pselect, __libc_pselect)
}
#undef sigpause
weak_alias (__default_sigpause, sigpause)
+strong_alias (__default_sigpause, __libc_sigpause)
/* We have to provide a default version of this function since the
{
return __sigpause (sig, 1);
}
+strong_alias (__xpg_sigpause, __libc___xpg_sigpause)
return 0;
}
weak_alias (__waitid, waitid)
+strong_alias (__waitid, __libc_waitid)
reboot - reboot i:i reboot
rename - rename i:ss rename
rmdir - rmdir i:s __rmdir rmdir
-select - select i:iPPPP __select select
+select - select i:iPPPP __select __libc_select select
setdomain - setdomainname i:si setdomainname
setegid - setegid i:i __setegid setegid
seteuid - seteuid i:i __seteuid seteuid
}
libc_hidden_def (__poll)
weak_alias (__poll, poll)
+strong_alias (__poll, __libc_poll)
/* Get the emulation code. */
# define __poll(fds, nfds, timeout) \
}
libc_hidden_def (__sigsuspend)
weak_alias (__sigsuspend, sigsuspend)
+strong_alias (__sigsuspend, __libc_sigsuspend)
#else
# include <sysdeps/posix/sigwait.c>
#endif
+strong_alias (__sigwait, __libc_sigwait)
#else
# include <sysdeps/generic/sigwaitinfo.c>
#endif
+strong_alias (__sigwaitinfo, __libc_sigwaitinfo)
bdflush EXTRA bdflush i:ii bdflush
capget EXTRA capget i:pp capget
capset EXTRA capset i:pp capset
-creat - creat i:si creat
+creat - creat i:si __libc_creat creat
create_module EXTRA create_module 3 create_module
delete_module EXTRA delete_module 3 delete_module
fdatasync - fdatasync i:i fdatasync
sched_setp - sched_setparam i:ip __sched_setparam sched_setparam
sched_sets - sched_setscheduler i:iip __sched_setscheduler sched_setscheduler
sched_yield - sched_yield i: __sched_yield sched_yield
-select - _newselect i:iPPPP __select select
+select - _newselect i:iPPPP __select __libc_select select
sendfile - sendfile i:iipi sendfile
sendfile64 - sendfile64 i:iipi sendfile64
setfsgid EXTRA setfsgid i:i setfsgid