[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] simplify ulimit implementation
From: |
Pino Toscano |
Subject: |
[PATCH] simplify ulimit implementation |
Date: |
Sun, 18 Nov 2012 23:42:44 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; ) |
Hi,
the current ulimit implementation used for Hurd,
sysdeps/unix/bsd/ulimit.c, is buggy (produces wrong return values,
different function name vs weak alias), while the one for Linux
(sysdeps/unix/sysv/linux/ulimit.c) is better; thus, I decided to remove
the bsd implementation and move the linux one as unix sysdeps (I
initially thought as posix, but since it implements non-standard values
I went for unix).
The only drawback of this operation is that for non-Linux
implementations, using bsd sysdeps and not providing an own ulimit, lose
the (non-standard) __UL_GETMAXBRK case. Can this be considered
acceptable?
Thanks,
--
Pino Toscano
fix-ulimit.diff
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
- [PATCH] simplify ulimit implementation,
Pino Toscano <=