#
f39c6c80 |
| 14-Mar-2022 |
riastradh <riastradh@NetBSD.org> |
system(3): Simplify initialization of argp.
|
#
fd1bd01d |
| 14-Mar-2022 |
riastradh <riastradh@NetBSD.org> |
system(3): Switch from vfork/execve to posix_spawn.
Changes by me: - Minor style nits. - Set errno on posix_spawn failure. - Handle edge cases of SIGINT/SIGQUIT set to SIG_IGN by caller.
Author: N
system(3): Switch from vfork/execve to posix_spawn.
Changes by me: - Minor style nits. - Set errno on posix_spawn failure. - Handle edge cases of SIGINT/SIGQUIT set to SIG_IGN by caller.
Author: Nikita Ronja Gillmann <nikita@NetBSD.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
show more ...
|
#
f3643917 |
| 29-Oct-2021 |
kre <kre@NetBSD.org> |
Add "--" 'options end' parameter to the sh -c call that runs the command, so that the command cannot appear to be more options (which always then fails, as there would be no arg for "-c" to treat as
Add "--" 'options end' parameter to the sh -c call that runs the command, so that the command cannot appear to be more options (which always then fails, as there would be no arg for "-c" to treat as the command string in that case).
For the full (LONG) explanation, see: http://mail-index.netbsd.org/current-users/2021/10/29/msg041629.html
show more ...
|
#
26ba8048 |
| 20-Jan-2015 |
christos <christos@NetBSD.org> |
Fix non _REENTRANT build.
|
#
9e66e6d7 |
| 25-Jun-2012 |
abs <abs@NetBSD.org> |
Update old-style definitions to ANSI, remove a couple of register definitions along the way. Fixed gcc 4.1 build (thank you vax)
|
#
fbf4aa16 |
| 14-Nov-2010 |
tron <tron@NetBSD.org> |
Improve and simplify implementation of *env(3) functions: - Use RB tree to keep track of memory allocated via setenv(3) as suggested by Enami Tsugutomo in private e-mail. This simplifies the code
Improve and simplify implementation of *env(3) functions: - Use RB tree to keep track of memory allocated via setenv(3) as suggested by Enami Tsugutomo in private e-mail. This simplifies the code a lot as we no longer need to keep the size of "environ" in sync with an array of allocated environment variables. It also makes it possible to free environment variables in unsetenv(3) if something has changed the order of the "environ" array. - Fix a bug in getenv(3) and getenv_r(3) which would return bogus results e.g. for " getenv("A=B") " if an environment variable "A" with value "B=C" exists. - Clean up the internal functions: - Don't expose the read/write lock for the environment to other parts of "libc". Provide locking functions instead. - Use "bool" to report success or failure. - Use "ssize_t" or "size_t" instead of "int" for indexes. - Provide internal functions with simpler interfaces e.g. don't combine return values and reference arguments. - Don't copy "environ" into an allocated block unless we really need to grow it.
Code reviewed by Joerg Sonnenberger and Christos Zoulas, tested by Joerg Sonnenberger and me. These changes also fix problems in zsh 4.3.* and pam_ssh according to Joerg.
show more ...
|
#
40d6ddde |
| 27-Aug-2008 |
christos <christos@NetBSD.org> |
system(NULL) should return if the command interpreter is there or not. Andy Shevchenko
|
#
a35b07a2 |
| 07-Oct-2006 |
elad <elad@NetBSD.org> |
Correctly recover signal state if failed trying to set it.
Patch from David A. Holland in #NetBSD-code, thanks!
|
#
03256c6e |
| 29-Nov-2005 |
christos <christos@NetBSD.org> |
WARNS=4
|
#
eb7c1594 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
#
f60f35f3 |
| 04-Mar-2003 |
nathanw <nathanw@NetBSD.org> |
Don't acquire __environ_lock around exec*() calls; nothing requires that these calls be thread-safe with respect to the environment, and it causes serious problems for threaded applications which cal
Don't acquire __environ_lock around exec*() calls; nothing requires that these calls be thread-safe with respect to the environment, and it causes serious problems for threaded applications which call vfork() and exec*() (including indirectly, via popen() or system()).
Acquire and release __environ_lock in the parent in popen() and system() to play safe and provide the child with a stable environment.
__environ_lock should also have an atfork() handler; still under development.
show more ...
|
#
e8befb71 |
| 31-Oct-2001 |
kleink <kleink@NetBSD.org> |
Inspired by Stevens' APUE and the implementation example in XSH: * Don't return if wait()ing for the child is interrupted. * Fix a race condition for the parent's SIG{INT,QUIT} disposition. * While w
Inspired by Stevens' APUE and the implementation example in XSH: * Don't return if wait()ing for the child is interrupted. * Fix a race condition for the parent's SIG{INT,QUIT} disposition. * While we're here, convert from using signal(3) to sigaction(2).
show more ...
|
#
33edc15a |
| 15-Nov-1998 |
christos <christos@NetBSD.org> |
delint
|
#
50157f6e |
| 26-Sep-1998 |
christos <christos@NetBSD.org> |
Adapt to posix signal system calls.
|
#
5f8a6c06 |
| 30-Jan-1998 |
perry <perry@NetBSD.org> |
update to lite-2
|
#
43fa6fe3 |
| 21-Jul-1997 |
jtc <jtc@NetBSD.org> |
If port provides __weak_alias(), provide an Standard C and POSIX pure identifier namespace by renaming non standard functions and variables such that they have a leading underscore. The library will
If port provides __weak_alias(), provide an Standard C and POSIX pure identifier namespace by renaming non standard functions and variables such that they have a leading underscore. The library will use those names internally. Weak aliases are used to provide the original names to the API.
This is only the first part of this change. It is most of the functions which are implemented in C for all NetBSD ports. Subsequent changes are to add the same support to the remaining C files, to assembly files, and to the automagically generated assembly source used for system calls. When all of the above is done, ports with weak alias support should add a definition for __weak_alias to <sys/cdefs.h>.
show more ...
|
#
bd906777 |
| 13-Jul-1997 |
christos <christos@NetBSD.org> |
Add local.h for local prototypes. Fix namespace issues for strtoq and strtouq Fix gcc warnings. Fix RCSID's
|
#
6dda330e |
| 28-Dec-1995 |
thorpej <thorpej@NetBSD.org> |
New-style RCS ids.
|
#
0b2dbb02 |
| 14-Jun-1995 |
jtc <jtc@NetBSD.org> |
add explicit return type
|
#
7cd5ae58 |
| 28-Feb-1995 |
jtc <jtc@NetBSD.org> |
remove unneeded "#include <stddef.h>"
|
#
88ba3f85 |
| 28-Feb-1995 |
jtc <jtc@NetBSD.org> |
Changed <sys/signal.h> to <signal.h>
|
#
9c20f740 |
| 26-Aug-1993 |
jtc <jtc@NetBSD.org> |
Declare rcsid strings so they are stored in text segment.
|
#
ec73f57f |
| 20-Aug-1993 |
jtc <jtc@NetBSD.org> |
cast away compiler warning message.
|
#
67f03441 |
| 20-Aug-1993 |
jtc <jtc@NetBSD.org> |
Upgraded to be 1003.2-92 compliant. The only functional change is that -1 is returned when the fork fails. Updated implementation to use int rather than deprecated "union wait". Updated documentat
Upgraded to be 1003.2-92 compliant. The only functional change is that -1 is returned when the fork fails. Updated implementation to use int rather than deprecated "union wait". Updated documentation to describe error / return values.
show more ...
|
#
e9d867ef |
| 01-Aug-1993 |
mycroft <mycroft@NetBSD.org> |
Add RCS identifiers.
|