about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-11-01 09:59:32 -0400
committerUlrich Drepper <drepper@gmail.com>2011-11-01 09:59:32 -0400
commit78239589cd8c6667886b94c4db146109855f417a (patch)
tree414632101a3b258315dfc17551288d54a246eed6 /sysdeps/unix/sysv/linux/bits
parent432d41ceecf5df8cfbc5a1db0cee9190f07ec1ca (diff)
downloadglibc-78239589cd8c6667886b94c4db146109855f417a.tar.gz
glibc-78239589cd8c6667886b94c4db146109855f417a.tar.xz
glibc-78239589cd8c6667886b94c4db146109855f417a.zip
New Linux syscalls process_vm_readv and process_vm_writev
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
-rw-r--r--sysdeps/unix/sysv/linux/bits/uio.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/uio.h b/sysdeps/unix/sysv/linux/bits/uio.h
index 6a283ed771..ea850c8b48 100644
--- a/sysdeps/unix/sysv/linux/bits/uio.h
+++ b/sysdeps/unix/sysv/linux/bits/uio.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2006, 2011 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
@@ -48,3 +48,26 @@ struct iovec
   };
 
 #endif
+
+#if defined _SYS_UIO_H && !defined _BITS_UIO_H_FOR_SYS_UIO_H
+#define _BITS_UIO_H_FOR_SYS_UIO_H 1
+
+__BEGIN_DECLS
+
+/* Read from another process' address space.  */
+extern ssize_t process_vm_readv (pid_t __pid, __const struct iovec *__lvec,
+				 size_t __liovcnt,
+				 __const struct iovec *__rvec,
+				 size_t __riovcnt, unsigned long int __flags)
+  __THROW;
+
+/* Write to another process' address space.  */
+extern ssize_t process_vm_writev (pid_t __pid, __const struct iovec *__lvec,
+				  size_t __liovcnt,
+				  __const struct iovec *__rvec,
+				  size_t __riovcnt, unsigned long int __flags)
+  __THROW;
+
+__END_DECLS
+
+#endif