| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.
Convert all calls to POSIX from historic BSD API:
- unsetenv returns an int.
- putenv takes a char * instead of const char *.
- putenv no longer makes a copy of the input string.
- errno is set appropriately for POSIX. Exceptions involve bad environ
variable and internal initialization code. These both set errno to
EFAULT.
Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit. A few I re-wrote to use setenv()
instead of putenv().
New regression module for tools/regression/environ to test these
functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826
Approved by: wes
Approved by: re (kensmith)
|
|
|
|
|
|
|
|
|
| |
Not because I admit they are technically wrong and not because of bug
reports (I receive nothing). But because I surprisingly meets so
strong opposition and resistance so lost any desire to continue that.
Anyone who interested in POSIX can dig out what changes and how
through cvs diffs.
|
|
|
|
| |
don't allow putenv() arg be on the stack, replace putenv() with setenv()
|
| |
|
|
|
|
|
|
| |
constants NG_*SIZ that include the trailing NUL byte. This change
is mostly mechanical except for the replacement of a couple of snprintf()
and sprintf() calls with strlcpy.
|
|
|
|
|
|
| |
in the environment to it's value.
Approved by: archie (after a very cursory glance)
|
|
|
|
|
| |
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
|
|
|
|
|
| |
Submitted by: Andre Albsmeier <andre@albsmeier.net>
Approved by: julian
|
|
|
|
| |
o use Ansi-style function definitions
|
|
|
|
| |
MFC after: 1 week
|
| |
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
| |
This fixes the apparent immediate client timeout problem.
|
|
|
|
|
|
|
| |
socket was closed.
This prevents erroneous ``Unexpected netgraph version'' from turning
up in the log.
|
|
|
|
| |
Suggested by: bde
|
|
|
|
|
|
| |
Start new sentences on new lines in pppoed.8.
MFC after: 1 week
|
|
|
|
|
|
| |
don't block in NgRecvData() after receiving a signal.
MFC after: 1 week
|
| |
|
|
|
|
| |
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
|
|
|
|
|
| |
PADI packet contains a NULL service. This is apparently the desired
behaviour in this case, though we only allow advertising one
service. You could run multiple pppoeds to advertise multiple services.
|
|
|
|
|
|
|
|
|
| |
signal handler.
Fix a spelling error.
Subtley pointed out by: bde
Make some stuff static
|
| |
|
| |
|
|
|
|
| |
Approved by: archie
|
|
|
|
|
|
|
|
| |
used not to be necessary).
o Allow ``-n ngdebug'' to specify something to pass to NgSetDebug()
and redirect NgSetDebug() output to syslog(8) in daemon() mode.
o Xref ng_ether(8) and NgSetDebug(4).
o Correct the type of the response passed to NgRecvData.
|
| |
|
|
|