Age | Commit message (Collapse) | Author | |
---|---|---|---|
2002-12-10 | use proper __findenv() prototype; millert@ ok | Michael Shalayeff | |
2002-12-10 | Document BSD behavior of accepting '-' within optstring as long as | Todd C. Miller | |
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. | |||
2002-12-10 | When doing permutation, only treat "-" as an option if it was specified | Todd C. Miller | |
in optstring. Problem noticed by Theo. | |||
2002-12-10 | bug fix | Hiroaki Etoh | |
2002-12-09 | From Andrushock, s/sucess/success/g | Todd C. Miller | |
2002-12-08 | Fix pasto, spotted by lebel@ | Todd C. Miller | |
2002-12-08 | In BUGS section, append a warning to not use '-' as the first character | Todd C. Miller | |
of optstring to avoid a semantic conflict with GNU getopt. | |||
2002-12-08 | SUS (and apparently 1003.1-2001) say to check optstring for NULL | Todd C. Miller | |
2002-12-08 | If we are passed "-" in argv and the user didn't specify '-' in optstring, | Todd C. Miller | |
return -1 like POSIX requires. | |||
2002-12-08 | BSD getopt() supports '-' in the optstring so we should too. | Todd C. Miller | |
This is used by a few programs such as man and su. | |||
2002-12-08 | remove unused data member from pthread_cond. | Marco S Hyman | |
2002-12-07 | Fix pasto in last commit. | Todd C. Miller | |
2002-12-07 | For getopt_long_only() we *do* want to match single-character options | Todd C. Miller | |
as shortcuts for long ones, but only if this would not conflict with a short option in optstring. Now binutils gas works. | |||
2002-12-06 | In srandomdev(), if we can't access /dev/arandom, use the sysctl() instead. | Todd C. Miller | |
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. | |||
2002-12-06 | Fix two compatibility issues with our getopt_long_only() vs. the GNU version: | Todd C. Miller | |
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() | |||
2002-12-05 | Correctly handle -Wlong_arg (no space between -W and long_arg) when "W;" | Todd C. Miller | |
is in optstring. | |||
2002-12-05 | Reorganize this so that getopt_only_only() works correctly. | Todd C. Miller | |
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. | |||
2002-12-05 | make getopt_long and getopt_long_only protos match getopt.h | Todd C. Miller | |
2002-12-04 | Add "RETURN VALUES" sections | Todd C. Miller | |
2002-12-04 | .Xr getopt_long | Todd C. Miller | |
2002-12-03 | Whoops, add missing #ifdef REPLACE_GETOPT | Todd C. Miller | |
2002-12-03 | fix typo | Todd C. Miller | |
2002-12-03 | GNU-like getopt_long() from NetBSD with changes by me to support | Todd C. Miller | |
getopt_long_only(). At some point this should replace the BSD getopt(3) but we are not there yet. While I am here add protection from the multiple getopt() definitions due to conflicting standards. | |||
2002-12-03 | Crank all library major numbers. Needed due to the fact that we | Todd C. Miller | |
now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@ | |||
2002-12-02 | Document getlogin_r() | Todd C. Miller | |
2002-12-02 | Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code. | Todd C. Miller | |
2002-12-02 | KNF | Theo de Raadt | |
2002-12-02 | Import propolice (http://www.trl.ibm.com/projects/security/ssp), a stack | Miod Vallat | |
attack protection scheme, into gcc. This protection is enabled by default. It can be turned off by using the -fno-stack-protector flag. Code by Hiroaki Etoh (etoh at jp dot ibm dot com); work on openbsd-specific integration by fgsch@, deraadt@ and myself; tests by fgsch@, naddy@ and myself; beer drinking by myself. Please note that system upgrades with this new code will require a new libc and ld.so to be build and installed before the propolice-enabled compiler can be installed. | |||
2002-11-29 | inconsistant spelling; torh@bogus.net | Theo de Raadt | |
2002-11-29 | riduculous spelling; torh@bogus.net | Theo de Raadt | |
2002-11-29 | tcpdump support for pfsync; henning@ ok | Michael Shalayeff | |
2002-11-29 | Foward; torh@bogus.net | Theo de Raadt | |
2002-11-28 | fd sharing was re-enabled quite awhile ago. | Brad Smith | |
2002-11-27 | Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update. | Thierry Deval | |
2002-11-25 | Mention the net.inet.tcp.ecn sysctl. | Wilbern Cobb | |
ok kjc@ | |||
2002-11-25 | Warn if atexit(3) fails. Change some tabs to spaces. Use | Chad Loder | |
STDERR_FILENO instead of 2. OK millert@ | |||
2002-11-24 | Add HISTORY section | Todd C. Miller | |
2002-11-24 | "The contents is" -> "The contents are" | Chad Loder | |
2002-11-24 | Zero out the reserved fields of struct gmonhdr rather than leaving | Chad Loder | |
stack garbage in them. From FreeBSD. OK deraadt@ | |||
2002-11-24 | Fix comment: s/trailing NULL/trailing NUL/, no code changes. | Chad Loder | |
2002-11-24 | Fix instance where syslog(3) after closelog(3) could access freed log | Chad Loder | |
tag name. OK millert@, deraadt@ | |||
2002-11-23 | Make the mul/div/rem (and u... versions) weak so that ld.so can override | Dale Rahn | |
it with optimized versions. And allow ld.so to compile with strong versions with extra symbols so it can find them. | |||
2002-11-22 | Initialize status to zero before calling waitpid(). That way, if | Todd C. Miller | |
there is nothing to be waited for (for instance if SIGCHLD is being ignored) we don't check WIFEXITED(garbage off the stack). | |||
2002-11-22 | more snprintf; ok millert | Theo de Raadt | |
2002-11-21 | shadow -> _shadow | Todd C. Miller | |
2002-11-21 | Add a "shadow" group and make the shadow passwd db readable by that | Todd C. Miller | |
group. This changes getpw* to always try the shadow db first and then fall back to the db w/o password hashes. In the future, /usr/libexec/auth/login_passwd (and others) will be setgid shadow instead of setuid root. OK deraadt@ If you track -current you should do the following: o add group shadow to /etc/group o chgrp shadow /etc/spwd.db o chmod 640 /etc/spwd.db o rebuild and install src/usr.sbin/pwd_mkdb You do not need to rebuild libc yet, but it would't hurt to do so. | |||
2002-11-21 | .Xr atoll(3) and add missing .Xr of atol(3) in atoll(3) man page. | Todd C. Miller | |
2002-11-21 | Take advantage of the libc minor bump and add atoll(3) | Todd C. Miller | |
2002-11-21 | Add strerror_r and functions versions of getchar_unlocked and | Marco S Hyman | |
putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@ | |||
2002-11-19 | typo; Stefan Berg | Todd C. Miller | |