projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d170ee
)
Detect missing syscall, like poll().
author
drepper
<drepper>
Thu, 11 Jun 1998 11:29:33 +0000
(11:29 +0000)
committer
drepper
<drepper>
Thu, 11 Jun 1998 11:29:33 +0000
(11:29 +0000)
sysdeps/unix/sysv/linux/pread.c
patch
|
blob
|
history
sysdeps/unix/sysv/linux/pread64.c
patch
|
blob
|
history
sysdeps/unix/sysv/linux/pwrite.c
patch
|
blob
|
history
sysdeps/unix/sysv/linux/pwrite64.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/pread.c
b/sysdeps/unix/sysv/linux/pread.c
index
eb0d301
..
4d7a7c5
100644
(file)
--- a/
sysdeps/unix/sysv/linux/pread.c
+++ b/
sysdeps/unix/sysv/linux/pread.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997
, 1998
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@
-19,6
+19,9
@@
#include <errno.h>
#include <unistd.h>
#include <errno.h>
#include <unistd.h>
+#include <sys/syscall.h>
+
+#ifdef __NR_pread
extern ssize_t __syscall_pread64 (int fd, void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
extern ssize_t __syscall_pread64 (int fd, void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
@@
-49,4
+52,5
@@
weak_alias (__pread, pread)
#define __pread(fd, buf, count, offset) \
static internal_function __emulate_pread (fd, buf, count, offset)
#define __pread(fd, buf, count, offset) \
static internal_function __emulate_pread (fd, buf, count, offset)
+#endif
#include <sysdeps/posix/pread.c>
#include <sysdeps/posix/pread.c>
diff --git
a/sysdeps/unix/sysv/linux/pread64.c
b/sysdeps/unix/sysv/linux/pread64.c
index
e2505db
..
bd600f1
100644
(file)
--- a/
sysdeps/unix/sysv/linux/pread64.c
+++ b/
sysdeps/unix/sysv/linux/pread64.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997
, 1998
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@
-19,6
+19,9
@@
#include <errno.h>
#include <unistd.h>
#include <errno.h>
#include <unistd.h>
+#include <sys/syscall.h>
+
+#ifdef __NR_pread
extern ssize_t __syscall_pread64 (int fd, void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
extern ssize_t __syscall_pread64 (int fd, void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
@@
-50,4
+53,5
@@
weak_alias (__pread64, pread64)
#define __pread64(fd, buf, count, offset) \
static internal_function __emulate_pread64 (fd, buf, count, offset)
#define __pread64(fd, buf, count, offset) \
static internal_function __emulate_pread64 (fd, buf, count, offset)
+#endif
#include <sysdeps/posix/pread64.c>
#include <sysdeps/posix/pread64.c>
diff --git
a/sysdeps/unix/sysv/linux/pwrite.c
b/sysdeps/unix/sysv/linux/pwrite.c
index
9ab3259
..
72b3cfb
100644
(file)
--- a/
sysdeps/unix/sysv/linux/pwrite.c
+++ b/
sysdeps/unix/sysv/linux/pwrite.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997
, 1998
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@
-19,6
+19,9
@@
#include <errno.h>
#include <unistd.h>
#include <errno.h>
#include <unistd.h>
+#include <sys/syscall.h>
+
+#ifdef __NR_pwrite
extern ssize_t __syscall_pwrite64 (int fd, const void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
extern ssize_t __syscall_pwrite64 (int fd, const void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
@@
-49,4
+52,5
@@
weak_alias (__pwrite, pwrite)
#define __pwrite(fd, buf, count, offset) \
static internal_function __emulate_pwrite (fd, buf, count, offset)
#define __pwrite(fd, buf, count, offset) \
static internal_function __emulate_pwrite (fd, buf, count, offset)
+#endif
#include <sysdeps/posix/pwrite.c>
#include <sysdeps/posix/pwrite.c>
diff --git
a/sysdeps/unix/sysv/linux/pwrite64.c
b/sysdeps/unix/sysv/linux/pwrite64.c
index
f2b4bcb
..
70902b2
100644
(file)
--- a/
sysdeps/unix/sysv/linux/pwrite64.c
+++ b/
sysdeps/unix/sysv/linux/pwrite64.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997
, 1998
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@
-19,6
+19,9
@@
#include <errno.h>
#include <unistd.h>
#include <errno.h>
#include <unistd.h>
+#include <sys/syscall.h>
+
+#ifdef __NR_pwrite
extern ssize_t __syscall_pwrite64 (int fd, const void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
extern ssize_t __syscall_pwrite64 (int fd, const void *buf, size_t count,
off_t offset_hi, off_t offset_lo);
@@
-50,4
+53,5
@@
weak_alias (__pwrite64, pwrite64)
#define __pwrite64(fd, buf, count, offset) \
static internal_function __emulate_pwrite64 (fd, buf, count, offset)
#define __pwrite64(fd, buf, count, offset) \
static internal_function __emulate_pwrite64 (fd, buf, count, offset)
+#endif
#include <sysdeps/posix/pwrite64.c>
#include <sysdeps/posix/pwrite64.c>