aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/dev_watch_queue_arm64.const
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2020-10-31 09:56:56 +0100
committerAnton Lindqvist <anton@basename.se>2020-10-31 10:23:26 +0100
commit8bc4594f832068a30c0eff44d468311780057d1f (patch)
tree7c58e0e66c680e57d83258cf8703e221903398f3 /sys/linux/dev_watch_queue_arm64.const
parent7928dd20b88207a7365cc2807b12f4ec891cddfe (diff)
pkg/compiler: fix handling of defines with a 0 value
While adding new syscall descriptions to OpenBSD I ran into the following problem: $ gmake extract SOURCEDIR=/home/src && ./bin/syz-sysgen fs.txt.const:15: failed to parse int: strconv.ParseUint: parsing "": invalid syntax $ tail -n +15 sys/openbsd/fs.txt.const | head -1 O_RDONLY = Note that `O_RDONLY` lacks a value and the same directive is defined as 0 on OpenBSD. In `ConstFile.Serialize()`, if val is equal to the default value is has only already been serialized if `max != 0`.
Diffstat (limited to 'sys/linux/dev_watch_queue_arm64.const')
0 files changed, 0 insertions, 0 deletions