Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+ * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
+
+ * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
+ get args.
+
+ * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
+ defines GNU extensions.
+ * posix/fnmatch.c: Likewise.
+
Replaced all simple system call files *.S throughout sysdeps/unix
with syscalls.list files to be processed by make-syscalls.sh.
* sysdeps/unix/s-proto.S: New file.
-# Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996 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
routines := \
utime \
mkfifo \
- stat fstat lstat \
+ stat fstat lstat mknod \
+ xstat fxstat lxstat xmknod \
umask chmod fchmod mkdir \
open close read write lseek access euidaccess \
fcntl flock lockf \
-/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1996 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
#include <config.h>
#endif
+/* Enable GNU extensions in fnmatch.h. */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
#include <errno.h>
#include <fnmatch.h>
#include <ctype.h>
#include <config.h>
#endif
+/* Enable GNU extensions in glob.h. */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
Boston, MA 02111-1307, USA. */
#include <errno.h>
+#include <sys/types.h>
#include <sys/ptrace.h>
-#include <sys/syscall.h>
+#include <stdarg.h>
+
+extern int __syscall_ptrace (int, pid_t, void *, void *);
int
-ptrace (int request, int pid, int addr, int data)
+ptrace (enum __ptrace_request request, ...)
{
- long int ret;
- long int res;
+ int res, ret;
+ va_list ap;
+ pid_t pid;
+ void *addr, *data;
+
+ va_start (ap, request);
+ pid = va_arg (ap, pid_t);
+ addr = va_arg (ap, void *);
+ data = va_arg (ap, void *);
+ va_end (ap);
+
if (request > 0 && request < 4)
- (long int *) data = &ret;
+ data = &ret;
res = __syscall_ptrace (request, pid, addr, data);
if (request > 0 && request < 4)
{
errno = 0;
- return (ret);
+ return ret;
}
- return (int) res;
+ return res;
}
errno = -res;