• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionae1144b1562e7675e9e97529bba7eb168d2f0500 (tree)
Zeit2022-01-21 12:20:55
AutorWaldemar Brodkorb <wbx@open...>
CommiterWaldemar Brodkorb

Log Message

add prlimit syscall wrapper

Ändern Zusammenfassung

Diff

--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -101,6 +101,13 @@ extern int setpriority (__priority_which_t __which, id_t __who, int __prio)
101101 __THROW;
102102 libc_hidden_proto(setpriority)
103103
104+#ifdef __USE_GNU
105+/* Modify and return resource limits of a process atomically. */
106+extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
107+ const struct rlimit *__new_limit,
108+ struct rlimit *__old_limit) __THROW;
109+#endif
110+
104111 __END_DECLS
105112
106113 #endif /* sys/resource.h */
--- a/libc/sysdeps/linux/common/Makefile.in
+++ b/libc/sysdeps/linux/common/Makefile.in
@@ -38,6 +38,7 @@ CSRC-$(UCLIBC_LINUX_SPECIFIC) += \
3838 pipe2.c \
3939 ppoll.c \
4040 prctl.c \
41+ prlimit.c \
4142 readahead.c \
4243 reboot.c \
4344 remap_file_pages.c \