Age | Commit message (Collapse) | Author |
|
doesn't blow up. This is a hack but is better than compiling sha1.c
with -O0 on sparc64. From NetBSD (mrg).
deraadt@ OK
|
|
this file...
|
|
|
|
Fixes - oh what a surprise - bus errors in awk.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
can link against libc without unresolved symbols again.
Anyone who correctly guessed that my m88k hard drive has been recovered,
wins a strawberry lollipop.
|
|
pollution. Conforming to art@'s evil plans.
|
|
|
|
OK miod@
|
|
|
|
well as the few userland tools which were only used on these platforms.
|
|
latter is invoked recursively, use static (instead of automatic) storage
for the "last" pointer so that we remember where we're up to ...
Fixes bug with hosts.deny rules such as "rpcbind: ALL EXCEPT some.domain".
netbsd lib/libwrap/hosts_access.c 1.17
|
|
in PATH that matches the name to be executed we skip it; Andy Isaacson
|
|
|
|
o Add __BEGIN_DECLS/__END_DECLS to include files
o Safe macros
o Remove useless variable assignment in the End function of *hl.c
o Some minor KNF, needs more
From Dan Weeks
|
|
Instead of allocating a static amount of memory for the data
structures via valloc() in allocsys(), allocate things dynamically
using pool(9) when possible and malloc(9) when not. The various
members of struct seminfo and struct shminfo are in kern.seminfo
and kern.shminfo respectively (not all members of kern.seminfo are
changable).
The data structures used still leave something to be desired but
things are not made worse in that respect by this commit.
|
|
|
|
sparc64. Change cast back to unsigned char but do a bitwise AND
with 0xff to avoid any sign extension weirdness and to make it
impossible for us to overflow _C_ctype_. The bitwise AND is probably
not needed and may be removed later if this does not trigger compiler bugs.
|
|
|
|
instead to make these one-liners. Works around a compiler bug on vax
that affects both the libc and inline versions identically.
|
|
Remove useless check for EOF in isascii
|
|
int, not a char.
|
|
is defined as an int. This solves several alpha/pthread problems
as repoted by various ports people.
|
|
|
|
currently have with the macro versions and makes the ctype.h versions
100% identical to what is in libc.
Discussed with pjanzen@ and OK'd by deraadt@.
|
|
code that assign a u_int value to x_handy. However, this means
that we need to be careful checking for overflow as we can no longer
subtract a value and check the result for < 0. We reorder the
expression instead to avoid this problem (basic algebra).
deraadt@ OK
|
|
|
|
it is not the fist character of optstring (since that would conflict
with GNU semantics).
Update the bit on "W;" within optstring when called as getopt (not
getopt_long) to current reality.
|
|
in optstring. Problem noticed by Theo.
|
|
|
|
|
|
|
|
of optstring to avoid a semantic conflict with GNU getopt.
|
|
|
|
return -1 like POSIX requires.
|
|
This is used by a few programs such as man and su.
|
|
|
|
|
|
as shortcuts for long ones, but only if this would not conflict with
a short option in optstring. Now binutils gas works.
|
|
We don't want to use the sysctl() by default since we are reading more
than just a few bytes of entropy when setting up the state.
|
|
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()
|
|
is in optstring.
|
|
In order for getopt_only_only() to work we need to check for long
options before short ones. I have merged getopt_internal and
getopt_long_internal into a single function with the actual long
args parsing broken out into a separate function.
This also simplifies the flow of control.
|