| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
call them. All the execX() libc functions should be vfork() safe now.
Specifically:
- execlp() does the argument count-and-build into a vector from alloca
(like the others) - buildargv() is no longer used (and gone).
- execvp() uses alloca/strcpy rather than strdup().
- the ENOEXEC handler uses alloca rather than malloc.
- a couple of free() calls removed - alloca works on the local stack and
the allocations are freed on function exit (which is why buildargv
wasn't useful - it's alloca() context would disappear on return).
Along the way:
- If alloca() fails (can it?), set errno = ENOMEM explicitly.
- The ENOEXEC recovery routine that trys again with /bin/sh appeared to
not be terminating the new argv[] array for /bin/sh, allowing it to
walk off the end of the list.
I dithered a bit about using alloca() even more as it's most commonly
associated with gcc. However, standalone portable (using malloc) and
machine-specific assembler alloca implementations appear to be available
on just about all the architectures we're likely to want to port to.
alloca will be the least of our problems if ever going to another compiler.
Notes:
svn path=/head/; revision=44974
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kern.chroot_allow_open_directories = 0
chroot(2) fails if there are open directories.
kern.chroot_allow_open_directories = 1 (default)
chroot(2) fails if there are open directories and the process
is subject of a previous chroot(2).
kern.chroot_allow_open_directories = anything else
filedescriptors are not checked. (old behaviour).
I'm very interested in reports about software which breaks when
running with the default setting.
Notes:
svn path=/head/; revision=44973
|
| |
|
|
|
|
|
|
| |
PR: docs/10733
Submitted by: Steve Coltrin <spcoltri@io.com>
Notes:
svn path=/head/; revision=44961
|
| |
|
|
|
|
|
|
|
|
|
| |
which ones cause us to fail. Now all open errors on the databse file
will cause the next file in the list to be tried.
Submitted by: Arne Henrik Juul <arnej@math.ntnu.no>
PR: 4585
Notes:
svn path=/head/; revision=44921
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44761
|
| |
|
|
|
|
|
| |
Reviewed by: bde
Notes:
svn path=/head/; revision=44674
|
| |
|
|
|
|
|
|
| |
PR: docs/10530
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Notes:
svn path=/head/; revision=44646
|
| |
|
|
|
|
|
| |
PR: docs/8559
Notes:
svn path=/head/; revision=44559
|
| |
|
|
|
|
|
| |
Fixed some disorder.
Notes:
svn path=/head/; revision=44485
|
| |
|
|
|
|
|
|
| |
Submitted by: Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
via OpenBSD
Notes:
svn path=/head/; revision=44484
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44482
|
| |
|
|
|
|
|
|
|
|
|
|
| |
compiling, since <stdio.h> correctly doesn't declare off_t although
the pseudo-prototypes for the new fseeko() and ftello() functions
use it. Handle this like the corresponding problem for va_list
versus the vprintf() family.
Fixed some English errors.
Notes:
svn path=/head/; revision=44481
|
| |
|
|
|
|
|
| |
give bug for bug compatibility with intro.2.
Notes:
svn path=/head/; revision=44479
|
| |
|
|
|
|
|
|
|
|
|
|
| |
request for it something like it. It was poorly worded and too
far from both POSIX wording and normal (mal)practice by referring to
sysconf(_SC_NGROUPS_MAX) instead of {NGROUPS_MAX} or NGROUPS. POSIX.1
uses curly braces to mark up "symbolic constants or limits [that may
be] defined in certain headers". Since we don't document this markup,
don't use it. Just use NGROUPS_MAX.
Notes:
svn path=/head/; revision=44478
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44477
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44476
|
| |
|
|
|
|
|
|
|
|
|
|
| |
so that non-sloppy applications can call it without using disgusting
casts to avoid warnings. The 4th arg is sort of varargs -- it must
sometimes represent a filename, sometimes a struct pointer, and is
sometimes unused. The arg type is still caddr_t in the kernel.
Obtained from: mostly from NetBSD
Notes:
svn path=/head/; revision=44474
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44441
|
| |
|
|
|
|
|
|
| |
the OpenBSD tree and should be considered preliminary. They are here
to facilitate building of the tree.
Notes:
svn path=/head/; revision=44440
|
| |
|
|
|
|
|
| |
PR: docs/9376
Notes:
svn path=/head/; revision=44388
|
| |
|
|
|
|
|
|
|
| |
network byte order.
PR: docs/9376
Notes:
svn path=/head/; revision=44387
|
| |
|
|
|
|
|
|
| |
PR: docs/10284
Submitted by: Alfred Perlstein <bright@cygnus.rush.net>
Notes:
svn path=/head/; revision=44306
|
| |
|
|
|
|
|
| |
PR: docs/10247
Notes:
svn path=/head/; revision=44286
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44259
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44236
|
| |
|
|
|
|
|
| |
for dlsym() searches inside the executable to work.
Notes:
svn path=/head/; revision=44095
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44065
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43995
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43961
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43947
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43946
|
| |
|
|
|
|
|
|
| |
fix n=0 case
improve manpage
Notes:
svn path=/head/; revision=43945
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43937
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43920
|
| |
|
|
|
|
|
|
|
|
| |
Fixed fgetpos() and fsetpos() for offsets > 2GB.
PR: 8637
Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
Notes:
svn path=/head/; revision=43782
|
| |
|
|
| |
Notes:
svn path=/head/; revision=43481
|
| |
|
|
|
|
|
|
| |
PR: docs/9717
Submitted by: Nathan Dorfman <nathan@rtfm.net>
Notes:
svn path=/head/; revision=43271
|
| |
|
|
|
|
|
|
|
|
| |
be expected.
PR: docs/9701
Submitted by: Marc van Kempen <marc@bowtie.nl>
Notes:
svn path=/head/; revision=43265
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the definitions of a few items so that structures are the
same whether or not the option itself is enabled. This allows
people to enable and disable the option without recompilng the world.
As the author says:
|I ran into a problem pulling out the VM_STACK option. I was aware of this
|when I first did the work, but then forgot about it. The VM_STACK stuff
|has some code changes in the i386 branch. There need to be corresponding
|changes in the alpha branch before it can come out completely.
what is done:
|
|1) Pull the VM_STACK option out of the header files it appears in. This
|really shouldn't affect anything that executes with or without the rest
|of the VM_STACK patches. The vm_map_entry will then always have one
|extra element (avail_ssize). It just won't be used if the VM_STACK
|option is not turned on.
|
|I've also pulled the option out of vm_map.c. This shouldn't harm anything,
|since the routines that are enabled as a result are not called unless
|the VM_STACK option is enabled elsewhere.
|
|2) Add what appears to be appropriate code the the alpha branch, still
|protected behind the VM_STACK switch. I don't have an alpha machine,
|so we would need to get some testers with alpha machines to try it out.
|
|Once there is some testing, we can consider making the change permanent
|for both i386 and alpha.
|
[..]
|
|Once the alpha code is adequately tested, we can pull VM_STACK out
|everywhere.
|
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
Notes:
svn path=/head/; revision=43209
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This takes the conditionals out of the code that has been tested by
various people for a while.
ps and friends (libkvm) will need a recompile as some proc structure
changes are made.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
Notes:
svn path=/head/; revision=43208
|
| |
|
|
|
|
|
|
| |
due to _gethostbynis() setting h.h_length to sizeof(u_long), which
works out to 8 on alphas. And 8!= NS_INADDRSZ.
Notes:
svn path=/head/; revision=43171
|
| |
|
|
|
|
|
| |
revoke() on non-device files.
Notes:
svn path=/head/; revision=43143
|
| |
|
|
|
|
|
|
|
| |
Fix localtime.c to deal with new magic number field.
Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode1999a.tar.gz
Notes:
svn path=/head/; revision=42989
|
| |
|
|
| |
Notes:
svn path=/head/; revision=42870
|
| |
|
|
| |
Notes:
svn path=/head/; revision=42869
|
| |
|
|
|
|
|
|
| |
argument implemented by the security patch in PR kern/7899 are violated.
PR: kern/7899
Notes:
svn path=/head/; revision=42829
|
| |
|
|
|
|
|
|
|
|
| |
in manual page that indicated otherwise.
PR: docs/9517
Submitted by: David Malone <dwmalone@maths.tcd.ie>
Notes:
svn path=/head/; revision=42781
|
| |
|
|
| |
Notes:
svn path=/head/; revision=42780
|
| |
|
|
|
|
|
|
|
|
| |
- document that sysctl() and sysctlbyname() return 0 on success
- if the provided buffer is too small, set errno to ENOMEM and return -1
instead of returning ENOMEM.
Notes:
svn path=/head/; revision=42353
|
| |
|
|
| |
Notes:
svn path=/head/; revision=42293
|