diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-06 20:32:46 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-06 22:35:01 +0200 |
commit | 53850f044f65dd11efdf67a2ab214d312295d85c (patch) | |
tree | 1ceaf2a2c4e7153079a8d07046865fc07cb60d49 /sysdeps/mach/hurd/errnos.awk | |
parent | 41d8c3bc33bcae1ebb8077b0442caef4917f763a (diff) | |
download | glibc-53850f044f65dd11efdf67a2ab214d312295d85c.tar.gz glibc-53850f044f65dd11efdf67a2ab214d312295d85c.tar.xz glibc-53850f044f65dd11efdf67a2ab214d312295d85c.zip |
hurd: Rework generating errno.h
We only need to give to gawk the headers that actually define error numbers, so let's rather filter out the other included headers early.
Diffstat (limited to 'sysdeps/mach/hurd/errnos.awk')
-rw-r--r-- | sysdeps/mach/hurd/errnos.awk | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/errnos.awk b/sysdeps/mach/hurd/errnos.awk index b9f717c1af..507e9d26ff 100644 --- a/sysdeps/mach/hurd/errnos.awk +++ b/sysdeps/mach/hurd/errnos.awk @@ -23,12 +23,8 @@ BEGIN { for (i = 1; i < ARGC; i++) { arg = ARGV[i]; - sub(/.*(manual|include)\//, "", arg); + sub(/.*(manual|include|-gnu)\//, "", arg); if (arg ~ /.*errnos.d/) continue; - # Those not not actually define anything for errno.h - if (arg ~ /mach\/.*\/kern_return.h/) continue; - if (arg ~ /mach\/.*\/boolean.h/) continue; - if (arg ~ /mach\/.*\/vm_types.h/) continue; print " " arg; } print " Do not edit this file; edit errnos.awk and regenerate it. */"; |