Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add some string tags for resources



details:   https://anonhg.NetBSD.org/src/rev/9201aebf3991
branches:  trunk
changeset: 449972:9201aebf3991
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 30 23:29:27 2019 +0000

description:
Add some string tags for resources

diffstat:

 sys/sys/resource.h |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r aaf13486e13d -r 9201aebf3991 sys/sys/resource.h
--- a/sys/sys/resource.h        Sat Mar 30 23:28:30 2019 +0000
+++ b/sys/sys/resource.h        Sat Mar 30 23:29:27 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: resource.h,v 1.34 2016/04/02 20:38:40 christos Exp $   */
+/*     $NetBSD: resource.h,v 1.35 2019/03/30 23:29:27 christos Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -103,6 +103,21 @@
 #define        RLIM_NLIMITS    12              /* number of resource limits */
 #endif
 
+#define RLIM_STRINGS { \
+       "cpu-time", \
+       "file-size", \
+       "data-size", \
+       "stack-size", \
+       "core-dump-size", \
+       "resident-memory-size", \
+       "locked-memory-size", \
+       "processes-number", \
+       "files-number", \
+       "socket-buffer-size", \
+       "virtual-memory-size", \
+       "threads-number", \
+}
+
 #define        RLIM_INFINITY   (~((u_quad_t)1 << 63))  /* no limit */
 #define        RLIM_SAVED_MAX  RLIM_INFINITY   /* unrepresentable hard limit */
 #define        RLIM_SAVED_CUR  RLIM_INFINITY   /* unrepresentable soft limit */



Home | Main Index | Thread Index | Old Index