platform_bionic/libc/include/sys
Elliott Hughes 0f461e35f6 Fix <sys/resource.h>.
The situation here is a bit confusing. On 64-bit, rlimit and rlimit64 are
the same, and so getrlimit/getrlimit64, setrlimit/setrlimit64,
and prlimit/prlimit64 are all the same. On 32-bit, rlimit and rlimit64 are
different. 32-bit architectures other than MIPS go one step further by having
an even more limited getrlimit system call, so arm and x86 need to use
ugetrlimit instead of getrlimit. Worse, the 32-bit architectures don't have
64-bit getrlimit- and setrlimit-equivalent system calls, and you have to use
prlimit64 instead. There's no 32-bit prlimit system call, so there's no
easy implementation of that --- what should we do if the result of prlimit64
won't fit in a struct rlimit? Since 32-bit survived without prlimit/prlimit64
for this long, I'm not going to bother implementing prlimit for 32-bit.

We need the rlimit64 functions to be able to build strace 4.8 out of the box.

Change-Id: I1903d913b23016a2fc3b9f452885ac730d71e001
2014-01-09 11:00:04 -08:00
..
_errdefs.h Error numbers are target specific. 2012-08-01 17:53:07 -07:00
_sigdefs.h Fix typo in SIGTTOU description. 2012-08-10 12:23:58 -07:00
_system_properties.h bionic: add compatibility mode for properties 2013-06-25 16:52:40 -07:00
_types.h Fix dev_t (for LP64). 2014-01-03 14:49:37 -08:00
atomics.h Fix implementation of generic atomic operations 2012-07-24 13:56:38 -07:00
auxv.h Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
cachectl.h MIPS support for libc. 2012-08-02 16:07:26 -07:00
capability.h libc: create sys/capability.h 2013-02-26 13:27:15 -08:00
cdefs.h Move bionic over to GCC's 'warning' attribute. 2013-12-17 20:43:30 -08:00
cdefs_elf.h Move bionic over to GCC's 'warning' attribute. 2013-12-17 20:43:30 -08:00
endian.h Add the glibc-compatible names to <sys/endian.h>. 2013-02-22 11:04:27 -08:00
epoll.h Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
errno.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
eventfd.h Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls. 2013-10-23 09:48:29 -07:00
exec_elf.h Update <sys/exec_elf.h> to include EM_AARCH64. 2013-10-28 21:28:40 -07:00
file.h libc: remove C++ comments from public headers. 2010-09-27 17:35:26 +02:00
fsuid.h libc: tag missing functions in system headers. 2010-10-09 17:56:55 +02:00
glibc-syscalls.h Clean up <sched.h>. 2014-01-02 12:05:50 -08:00
inotify.h Fix header file dependencies. 2013-10-23 11:25:54 -07:00
ioctl.h Include linux/termios.h from sys/ioctl.h. 2013-07-03 13:35:18 -07:00
ioctl_compat.h MIPS support to sys/ headers 2012-08-02 18:03:54 -07:00
ipc.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
klog.h Fix <sys/klog.h> to correspond to the kernel operations. 2012-09-14 15:42:30 -07:00
limits.h Add arch-x86_64/include/machine. 2013-10-04 16:10:13 -07:00
mman.h Add mmap64() 2013-09-19 14:11:26 -07:00
mount.h Clean up <sys/mount.h>/<linux/fs.h> duplication. 2013-07-03 14:58:04 -07:00
param.h Make <sys/param.h> more glibc-like. 2013-12-12 15:31:35 -08:00
personality.h sys/personality.h: include <sys/cdefs.h> 2013-06-05 11:30:17 +08:00
poll.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
prctl.h prctl.h: include sys/cdefs.h 2013-01-23 16:49:47 -08:00
ptrace.h libc: remove C++ comments from public headers. 2010-09-27 17:35:26 +02:00
queue.h Add fts, err, and sys/queue for grep 2010-01-15 15:57:02 -08:00
reboot.h Remove hidden __reboot from header 2013-11-22 00:19:34 +04:00
reg.h Add <sys/reg.h>. 2014-01-08 16:29:22 -08:00
resource.h Fix <sys/resource.h>. 2014-01-09 11:00:04 -08:00
select.h Fix <sys/select.h> for LP64, clean up <time.h>. 2013-11-05 13:28:36 -08:00
sendfile.h Ensure we have the off64_t variant of every function that takes an off_t. 2013-09-19 16:27:24 -07:00
sha1.h Upgrade more functions to the current upstream NetBSD copy. 2012-10-23 12:29:53 -07:00
signal.h libc: add sys/signal.h for compatibility 2013-02-22 10:38:28 -08:00
signalfd.h Add <sys/statvfs.h>. 2013-07-09 13:25:03 -07:00
socket.h Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags. 2013-10-17 13:32:32 -07:00
socketcalls.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
stat.h Fix struct stat for aarch64. 2013-12-19 16:50:22 -08:00
statfs.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
statvfs.h Add <sys/statvfs.h>. 2013-07-09 13:25:03 -07:00
swap.h Add SWAP_FLAG_* constants to <sys/swap.h>. 2014-01-08 02:23:06 +00:00
syscall.h Provide glibc-compatible SYS_* aliases for the __NR_* constants. 2013-03-21 18:06:55 -07:00
sysconf.h Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK). 2013-01-02 14:23:43 -08:00
sysinfo.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
syslimits.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sysmacros.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
system_properties.h bionic: add __system_property_foreach 2013-06-18 19:24:29 -07:00
time.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
timeb.h Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
timerfd.h Make <sys/timerfd.h> standalone. 2013-11-25 13:58:38 -08:00
times.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ttychars.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ttydefaults.h Add tty defaults to bionic 2012-09-11 22:47:31 +03:00
ttydev.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
types.h Fix dev_t (for LP64). 2014-01-03 14:49:37 -08:00
uio.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
un.h Backwards and forwards compatibility for an upcoming <sys/socket.h> change. 2012-09-12 10:51:05 -07:00
user.h Fix x86_64 register names in <sys/user.h>. 2014-01-08 15:54:19 -08:00
utime.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utsname.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vfs.h Define fsid_t as well as __fsid_t. 2014-01-07 17:44:51 -08:00
vt.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
wait.h libc: fix typo in waitid() declaration. 2010-10-13 15:46:55 +02:00
xattr.h Add extended attribute (xattr) system call wrappers to bionic. 2012-01-18 08:02:23 -05:00