]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add prlimit64 for MIPS.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 12 Aug 2010 15:40:29 +0000 (15:40 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 12 Aug 2010 15:40:29 +0000 (15:40 +0000)
ChangeLog.mips
sysdeps/unix/sysv/linux/mips/bits/resource.h
sysdeps/unix/sysv/linux/mips/mips32/syscalls.list [new file with mode: 0644]
sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list
sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list [new file with mode: 0644]

index b43fc6591f177198497190d4e5ffe494d2ccee70..d33ccabba3be64306b0cc6f1f2b16aad59fdf20c 100644 (file)
@@ -1,3 +1,12 @@
+2010-08-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/mips/bits/resource.h: Declare prlimit
+       and prlimit64.
+       * sysdeps/unix/sysv/linux/mips/mips32/syscalls.list,
+       sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: New files.
+       * sysdeps/unix/sysv/linux/mips/n32/syscalls.list: Add entry for
+       prlimit64 syscall.
+
 2010-06-14  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETPIPE_SZ,
index 39d17d74f7614a2f4dca577fd6d25b996fdd0919..a6454c48490dee111fa759e8774d0de849a90d6f 100644 (file)
@@ -1,6 +1,6 @@
 /* Bit values & structures for resource limits.  Linux/MIPS version.
    Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2004, 2005, 2006, 2008,
-   2009 Free Software Foundation, Inc.
+   2009, 2010 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
@@ -240,3 +240,31 @@ enum __priority_which
   PRIO_USER = 2                        /* WHO is a user ID.  */
 #define PRIO_USER PRIO_USER
 };
+
+
+__BEGIN_DECLS
+
+#ifdef __USE_GNU
+/* Modify and return resource limits of a process atomically.  */
+# ifndef __USE_FILE_OFFSET64
+extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
+                   __const struct rlimit *__new_limit,
+                   struct rlimit *__old_limit) __THROW;
+# else
+#  ifdef __REDIRECT_NTH
+extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
+                                    enum __rlimit_resource __resource,
+                                    __const struct rlimit *__new_limit,
+                                    struct rlimit *__old_limit), prlimit64);
+#  else
+#   define prlimit prlimit64
+#  endif
+# endif
+# ifdef __USE_LARGEFILE64
+extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
+                     __const struct rlimit64 *__new_limit,
+                     struct rlimit64 *__old_limit) __THROW;
+# endif
+#endif
+
+__END_DECLS
diff --git a/sysdeps/unix/sysv/linux/mips/mips32/syscalls.list b/sysdeps/unix/sysv/linux/mips/mips32/syscalls.list
new file mode 100644 (file)
index 0000000..dbeb184
--- /dev/null
@@ -0,0 +1,3 @@
+# File name    Caller  Syscall name    # args  Strong name     Weak names
+
+prlimit64      EXTRA   prlimit64       i:iipp  prlimit64
index 5ade6f0076415382f0d308e50f8a675afaa371ed..7a6a7777978d88238ae852d6fbee17e4bb39b13c 100644 (file)
@@ -4,3 +4,5 @@ readahead       -       readahead       i:iii   __readahead     readahead
 sync_file_range        -       sync_file_range i:iiii  sync_file_range
 ftruncate      -       ftruncate       i:ii    __ftruncate     ftruncate ftruncate64 __ftruncate64
 truncate       -       truncate        i:si    truncate        truncate64
+
+prlimit64      EXTRA   prlimit64       i:iipp  prlimit64
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list b/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
new file mode 100644 (file)
index 0000000..a7bccdd
--- /dev/null
@@ -0,0 +1,3 @@
+# File name    Caller  Syscall name    # args  Strong name     Weak names
+
+prlimit                EXTRA   prlimit64       i:iipp  prlimit         prlimit64