diff options
-rw-r--r-- | sys-utils/setarch.8 | 2 | ||||
-rw-r--r-- | sys-utils/setarch.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sys-utils/setarch.8 b/sys-utils/setarch.8 index db9b416d0..16946cf70 100644 --- a/sys-utils/setarch.8 +++ b/sys-utils/setarch.8 @@ -23,7 +23,7 @@ Be verbose. .I "\-h," "\-\-help" Display help (it is also displayed when setarch takes no arguments). .TP -.I "\-3" +.I "\-3," "\-\-3gb" Specifies that processes should use a maximum of 3GB of address space on systems where it is supported (ADDR_LIMIT_3GB). .TP .I "\-B" diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index e4a204adb..6eba24ae8 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -212,6 +212,14 @@ int main(int argc, char *argv[]) if (!strcmp(arg, "--help")) show_help(); + /* compatibitity with an old Debian setarch implementation + * TODO: add long options for all flags + */ + if (!strcmp(arg, "--3gb")) + arg="-3"; + else if (!strcmp(arg, "--4gb")) + continue; /* just ignore this one */ + for (n = 1; arg[n]; n++) { int f; |