[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
proposal: add getlimits to the list of installed programs
From: |
Jim Meyering |
Subject: |
proposal: add getlimits to the list of installed programs |
Date: |
Fri, 04 Dec 2009 17:54:21 +0100 |
We've been using getlimits in coreutils tests for some time:
$ ./getlimits --help
Usage: ./getlimits
Output platform dependent limits in a format useful for shell scripts.
$ ./getlimits
CHAR_MAX=127
CHAR_OFLOW=128
CHAR_MIN=-128
CHAR_UFLOW=-129
SCHAR_MAX=127
SCHAR_OFLOW=128
SCHAR_MIN=-128
SCHAR_UFLOW=-129
UCHAR_MAX=255
UCHAR_OFLOW=256
SHRT_MAX=32767
SHRT_OFLOW=32768
SHRT_MIN=-32768
SHRT_UFLOW=-32769
INT_MAX=2147483647
INT_OFLOW=2147483648
INT_MIN=-2147483648
INT_UFLOW=-2147483649
UINT_MAX=4294967295
UINT_OFLOW=4294967296
LONG_MAX=9223372036854775807
LONG_OFLOW=9223372036854775808
LONG_MIN=-9223372036854775808
LONG_UFLOW=-9223372036854775809
ULONG_MAX=18446744073709551615
ULONG_OFLOW=18446744073709551616
SIZE_MAX=18446744073709551615
SIZE_OFLOW=18446744073709551616
SSIZE_MAX=9223372036854775807
SSIZE_OFLOW=9223372036854775808
SSIZE_MIN=-9223372036854775808
SSIZE_UFLOW=-9223372036854775809
TIME_T_MAX=9223372036854775807
TIME_T_OFLOW=9223372036854775808
TIME_T_MIN=-9223372036854775808
TIME_T_UFLOW=-9223372036854775809
UID_T_MAX=4294967295
UID_T_OFLOW=4294967296
GID_T_MAX=4294967295
GID_T_OFLOW=4294967296
PID_T_MAX=2147483647
PID_T_OFLOW=2147483648
PID_T_MIN=-2147483648
PID_T_UFLOW=-2147483649
OFF_T_MAX=9223372036854775807
OFF_T_OFLOW=9223372036854775808
OFF_T_MIN=-9223372036854775808
OFF_T_UFLOW=-9223372036854775809
INTMAX_MAX=9223372036854775807
INTMAX_OFLOW=9223372036854775808
INTMAX_MIN=-9223372036854775808
INTMAX_UFLOW=-9223372036854775809
UINTMAX_MAX=18446744073709551615
UINTMAX_OFLOW=18446744073709551616
and I wanted to use it in a test of GNU parted.
What do you think?
This would not be added until after 8.2, of course.
- proposal: add getlimits to the list of installed programs,
Jim Meyering <=