hurd: rule out some mach headers when generating errno.h

While mach/kern_return.h happens to pull mach/machine/kern_return.h,
mach/machine/boolean.h, and mach/machine/vm_types.h (and realpath-ing them
exposes the machine-specific machine symlink content), those headers do not
actually define anything machine-specific for the content of errno.h.

So we can just rule out these machine-specific from the dependency
comment.
This commit is contained in:
Samuel Thibault 2023-05-11 01:51:10 +02:00
parent 3ca9f43d10
commit d6c72f976c
2 changed files with 4 additions and 3 deletions

View File

@ -4,11 +4,8 @@
libc-symbols.h libc-symbols.h
mach/message.h mach/message.h
mach/kern_return.h mach/kern_return.h
mach/i386/kern_return.h
mach/port.h mach/port.h
mach/boolean.h mach/boolean.h
mach/i386/boolean.h
mach/i386/vm_types.h
stdint.h stdint.h
../stdlib/stdint.h ../stdlib/stdint.h
../bits/libc-header-start.h ../bits/libc-header-start.h

View File

@ -25,6 +25,10 @@ BEGIN {
arg = ARGV[i]; arg = ARGV[i];
sub(/.*(manual|include)\//, "", arg); sub(/.*(manual|include)\//, "", arg);
if (arg ~ /.*errnos.d/) continue; 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 " " arg;
} }
print " Do not edit this file; edit errnos.awk and regenerate it. */"; print " Do not edit this file; edit errnos.awk and regenerate it. */";