Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
Browse files Browse the repository at this point in the history
	Define __NR_pread/__NR_pwrite if not done in kernel headers
  • Loading branch information
Roland McGrath committed Nov 12, 2003
1 parent 2c9a148 commit 66cc4d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2003-10-08 Thorsten Kukuk <kukuk@suse.de>

* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
Define __NR_pread/__NR_pwrite if not done in kernel headers

2003-11-11 Roland McGrath <roland@redhat.com>

* manual/xtract-typefun.awk: Swallow [(){}*] from function names.
Expand Down
10 changes: 10 additions & 0 deletions sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
#undef SYS_ify
#define SYS_ify(syscall_name) __NR_##syscall_name

/* This is a kludge to make syscalls.list find these under the names
pread and pwrite, since some kernel headers define those names
and some define the *64 names for the same system calls. */
#if !defined __NR_pread && defined __NR_pread64
# define __NR_pread __NR_pread64
#endif
#if !defined __NR_pwrite && defined __NR_pwrite64
# define __NR_pwrite __NR_pwrite64
#endif

#ifdef __ASSEMBLER__

#define LOADSYSCALL(x) mov __NR_##x, %g1
Expand Down

0 comments on commit 66cc4d0

Please sign in to comment.