+2002-11-04 Ulrich Drepper <drepper@redhat.com>
+
+ * manual/examples/dir.c: Don't include <stddef.h>.
+ * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
+ Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
+
+2002-11-02 H.J. Lu <hjl@gnu.org>
+
+ * stdio-common/reg-printf.c: Include <stddef.h>.
+
2002-11-03 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
+2002-11-04 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/i386/useldt.h [PIC] (USETLS_LOAD_EBX): Use correct input
+ register number.
+ (DO_SET_THREAD_AREA): Mark asm output specifiers correctly.
+
2002-10-22 Jakub Jelinek <jakub@redhat.com>
* manager.c (pthread_start_thread): Call __uselocale even
#ifdef __PIC__
# define USETLS_EBX_ARG "r"
-# define USETLS_LOAD_EBX "xchgl %3, %%ebx\n\t"
+# define USETLS_LOAD_EBX "xchgl %1, %%ebx\n\t"
#else
# define USETLS_EBX_ARG "b"
# define USETLS_LOAD_EBX
"movl %2, %%eax\n\t" \
"int $0x80\n\t" \
USETLS_LOAD_EBX \
- : "&a" (__result) \
+ : "=&a" (__result) \
: USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area)); \
if (__result == 0) \
asm ("movw %w0, %%gs" :: "q" (__gs)); \
"movl %2, %%eax\n\t" \
"int $0x80\n\t" \
USETLS_LOAD_EBX \
- : "&a" (__result) \
+ : "=&a" (__result) \
: USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area)); \
if (__result == 0) \
{ \
/*@group*/
-#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
/*@group*/
+#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
/*@end group*/
/*@group*/
-int
+int
input_timeout (int filedes, unsigned int seconds)
{
fd_set set;
set_cloexec_flag (int desc, int value)
@{
int oldflags = fcntl (desc, F_GETFD, 0);
- /* @r{If reading the flags failed, return error indication now.}
+ /* @r{If reading the flags failed, return error indication now.} */
if (oldflags < 0)
return oldflags;
/* @r{Set just the flag we want to set.} */
#include <errno.h>
#include <limits.h>
#include <printf.h>
+#include <stddef.h>
#include <stdlib.h>
/* Array of functions indexed by format character. */