| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
for displaying the three-line comment header by default.
Reviewed by: kientzle
Approved by: re (bmah)
Notes:
svn path=/head/; revision=172237
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- p_sflag was mostly protected by PROC_LOCK rather than the PROC_SLOCK or
previously the sched_lock. These bugs have existed for some time.
- Allow swapout to try each thread in a process individually and then
swapin the whole process if any of these fail. This allows us to move
most scheduler related swap flags into td_flags.
- Keep ki_sflag for backwards compat but change all in source tools to
use the new and more correct location of P_INMEM.
Reported by: pho
Reviewed by: attilio, kib
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=172207
|
|
|
|
|
|
|
|
|
|
|
| |
from environ; make a copy before manipulating it and passing it to
setenv().
Approved by: wes
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171268
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
Notes:
svn path=/head/; revision=171195
|
|
|
|
|
|
|
|
|
|
| |
"rescue media" bundled with releases.
Suggested by: ru
Approved by: re (hrs)
Notes:
svn path=/head/; revision=171154
|
|
|
|
|
|
|
| |
Pointed out by: ru
Notes:
svn path=/head/; revision=170215
|
|
|
|
| |
Notes:
svn path=/head/; revision=170045
|
|
|
|
|
|
|
| |
Don't abuse arcname's constness.
Notes:
svn path=/head/; revision=169993
|
|
|
|
|
|
|
|
| |
- remove a superfluous doubled trailing semicolon.
- remove the extra void casts on calls to void-function free(3).
Notes:
svn path=/head/; revision=169926
|
|
|
|
|
|
|
|
|
|
|
| |
handling is that fd = open(foo) is -1. This bug is harmless since
close(-1) just returns an error (which the code ignores).
Found by: Coverity Prevent(tm)
CID: 1503 (in userland test run)
Notes:
svn path=/head/; revision=169848
|
|
|
|
|
|
|
|
|
| |
used instead of the system malloc.
Submitted by: ume
Notes:
svn path=/head/; revision=169626
|
|
|
|
|
|
|
|
|
| |
PR: docs/101330 (inspired by)
Submitted by: Peter Gildea <peter@gildea.com>
Obtained from: NetBSD
Notes:
svn path=/head/; revision=169510
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=169177
|
|
|
|
|
|
|
| |
just use savestr()
Notes:
svn path=/head/; revision=169133
|
|
|
|
|
|
|
|
|
|
| |
1) Under POSIX unsetenv("foo=bar") is explicit error and not equal
to unsetenv("foo")
2) Prepare for upcomig POSIXed putenv() rewrite: make putenv() calls
portable and conforming to standard.
Notes:
svn path=/head/; revision=169118
|
|
|
|
|
|
|
| |
standard in the same way as f.e. gcc internal portable code does.
Notes:
svn path=/head/; revision=169112
|
|
|
|
|
|
|
|
|
| |
script, which will be executed before /usr/ mount.
Reviewed by: mlaier, rink, brooks, rwatson
Notes:
svn path=/head/; revision=168544
|
|
|
|
|
|
|
| |
a pointer to u_long.
Notes:
svn path=/head/; revision=168428
|
|
|
|
|
|
|
|
|
| |
Reviewed by: ume
Reminded by: Divacky Roman
MFC after: 1 week
Notes:
svn path=/head/; revision=167469
|
|
|
|
|
|
|
|
|
|
| |
recognized properly if -l is specified first.
PR: bin/105721
MFC after: 1 week
Notes:
svn path=/head/; revision=167326
|
|
|
|
| |
Notes:
svn path=/head/; revision=167210
|
|
|
|
| |
Notes:
svn path=/head/; revision=167196
|
|
|
|
| |
Notes:
svn path=/head/; revision=167105
|
|
|
|
| |
Notes:
svn path=/head/; revision=167063
|
|
|
|
|
|
|
|
|
|
| |
Before this fix the -h flag was ignored (i.e. setfacl
always set the ACL on the file pointed to by the symbolic
link even when the -h flag requested that the ACL be set
on the symbolic link itself).
Notes:
svn path=/head/; revision=167000
|
|
|
|
|
|
|
| |
Found courtesy of a recursive grep in the wrong directory.
Notes:
svn path=/head/; revision=166813
|
|
|
|
|
|
|
|
|
| |
test builtin.
Submitted by: Martin Kammerhofer
Notes:
svn path=/head/; revision=166101
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
either -v or -V) if a file with a slash in the name doesn't exist (if there is
no slash we already did that).
Additionally, suppress the error message for command -v for files with a slash.
PR: 107674
Submitted by: Martin Kammerhofer
Notes:
svn path=/head/; revision=165930
|
|
|
|
| |
Notes:
svn path=/head/; revision=165564
|
|
|
|
| |
Notes:
svn path=/head/; revision=165563
|
|
|
|
| |
Notes:
svn path=/head/; revision=165562
|
|
|
|
| |
Notes:
svn path=/head/; revision=165555
|
|
|
|
| |
Notes:
svn path=/head/; revision=165554
|
|
|
|
| |
Notes:
svn path=/head/; revision=165486
|
|
|
|
| |
Notes:
svn path=/head/; revision=165485
|
|
|
|
|
|
|
|
|
| |
- Add missing markup.
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
Notes:
svn path=/head/; revision=165463
|
|
|
|
| |
Notes:
svn path=/head/; revision=165332
|
|
|
|
| |
Notes:
svn path=/head/; revision=165202
|
|
|
|
| |
Notes:
svn path=/head/; revision=165006
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows script compatibility with Linux, whose
"hostname" is the same as BSD "hostname -s".
With this change, "hostname -f" is the same on
both systems.
MFC after: 7 days
Notes:
svn path=/head/; revision=165004
|
|
|
|
|
|
|
|
|
| |
which can be called a "network initialization script", now that it
is set in /etc/rc.d/hostname, "network" sounds confusing, so remove
it.
Notes:
svn path=/head/; revision=164913
|
|
|
|
| |
Notes:
svn path=/head/; revision=164699
|
|
|
|
|
|
|
|
|
| |
Obtained from: NetBSD (expand.c 1.58 and 1.59)
Submitted by: Paul Jarc
PR: 56147
Notes:
svn path=/head/; revision=164081
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
issue a syntax error immediately but save the information that it is erroneous
for later when the parameter expansion is actually done. This means eg. "false
&& ${}" will not generate an error which seems to be required by POSIX.
Include the invalid parameter expansion in the error message (sometimes
abbreviated with ... because recovering it would require a lot of code).
PR: 105078
Submitted by: emaste
Notes:
svn path=/head/; revision=164003
|
|
|
|
| |
Notes:
svn path=/head/; revision=163919
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of removing the file and issue a warning about
the removal, do not do any operation at all in case -P
is specified when the dinode has hard links.
With -f and -P specified together, we assume that the
user wants rm to overwrite the contents of the file
and remove it (destroy the contents of file but leave
its hard links as is).
The reason of doing it this way is that, in case where
a hard link is created by a malicious user (currently
this is permitted even if the user has no access to the
file). Losing the link can potentially mean that the
actual owner would lose control completely to the user
who wants to obtain access in a future day.
Discussed with: Peter Jermey
Notes:
svn path=/head/; revision=163812
|
|
|
|
|
|
|
|
|
|
|
|
| |
is hard links. Overwritting when links > 1 would cause data
loss, which is usually undesired.
Inspired by: discussion on -hackers@
Suggested by: elessar at bsdforen de
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=163777
|
|
|
|
| |
Notes:
svn path=/head/; revision=163716
|
|
|
|
| |
Notes:
svn path=/head/; revision=163666
|
|
|
|
|
|
|
|
|
| |
call chflags() for whiteouted files.
Prodded by: ru
Notes:
svn path=/head/; revision=163485
|