Discussion:
[PATCH] getconf: add missing names used by AOSP.
(too old to reply)
enh
2018-10-05 23:32:01 UTC
Permalink
The good news is that this more than covers everything used by AOSP.

The bad news is that it turns out that the relationship between the
actual constant names and the names understood by the GNU getconf (I
didn't test a BSD getconf) turn out to be pretty random, especially in
terms of whether or not they use a leading underscore.

(Though since I _don't_ want this generated by a script, that's good
news for me too.)
---
toys/posix/getconf.c | 41 ++++++++++++++++++++++++++++-------------
1 file changed, 28 insertions(+), 13 deletions(-)
Rob Landley
2018-10-07 03:45:03 UTC
Permalink
Post by enh
The good news is that this more than covers everything used by AOSP.
I had to apply this one by hand because of the differences in the previous
patch. Lemme know if I screwed anything up.

(I re-sorted things to avoid a #define shift, and put the manually defined ones
at the end both times.)
Post by enh
The bad news is that it turns out that the relationship between the
actual constant names and the names understood by the GNU getconf (I
didn't test a BSD getconf) turn out to be pretty random, especially in
terms of whether or not they use a leading underscore.
Yeah, that's why my regex approach wound up being so horrible. :)

Rob

Loading...