and use INTDEF on it.
* sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
* sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
* sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
+2002-05-01 Roland McGrath <roland@frob.com>
+
+ * sysdeps/mach/hurd/close.c: #undef __close before function defn,
+ and use INTDEF on it.
+ * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
+
+ * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
+
+ * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
+
2002-05-01 Ulrich Drepper <drepper@redhat.com>
* malloc/memusage.c: Add support for tracking mmap & friends.
-/* Copyright (C) 1991, 92, 93, 94, 95, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,95,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
#include <hurd.h>
#include <hurd/fd.h>
+#undef __close
+
/* Close the file descriptor FD. */
int
-__close (fd)
- int fd;
+__close (int fd)
{
error_t err;
return err ? __hurd_fail (err) : 0;
}
+INTDEF (__close)
weak_alias (__close, close)
struct hurd_startup_data *_dl_hurd_data;
+/* This is used only within ld.so, via dl-minimal.c's __errno_location. */
+#undef errno
+int errno attribute_hidden;
+
/* Defining these variables here avoids the inclusion of hurdsig.c. */
unsigned long int __hurd_sigthread_stack_base;
unsigned long int __hurd_sigthread_stack_end;
return result;
}
+INTDEF2 (__libc_fcntl, __fcntl)
weak_alias (__libc_fcntl, __fcntl)
weak_alias (__libc_fcntl, fcntl)