summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/srand48.c
diff options
context:
space:
mode:
authormillert <>2002-12-06 16:03:29 +0000
committermillert <>2002-12-06 16:03:29 +0000
commit25071cb01d98bb08f0c7db1ead925c76f842e478 (patch)
tree102ce34542e99015ed9dbe0607a26ebbd9d43549 /src/lib/libc/stdlib/srand48.c
parent5504584fd484b7a88fdb9ec6060ce1c70cd9bc0e (diff)
downloadopenbsd-25071cb01d98bb08f0c7db1ead925c76f842e478.tar.gz
openbsd-25071cb01d98bb08f0c7db1ead925c76f842e478.tar.bz2
openbsd-25071cb01d98bb08f0c7db1ead925c76f842e478.zip
Fix two compatibility issues with our getopt_long_only() vs. the GNU version:
o Check for long options even when not at the beginning of an option. For instance, if -a is a short option w/o an arg and -static is a boolean long option then -astatic is valid for getopt_long_only(). o If a potential long argument does not match longopts and the first character is not a short option, print a warning and skip the rest of the argument. Also clean up some trailing whitespace and change return value of parse_long_options() from -2 to -1 when unmatched and in long_only mode. With these fixes the binutils ld seems happy with our getopt_long_only()
Diffstat (limited to 'src/lib/libc/stdlib/srand48.c')
0 files changed, 0 insertions, 0 deletions