tjr
b51b1e81ea
Fix three warnings:
...
o #include <stdio.h> to make sprintf()'s prototype visible.
o Remove unused variable: sbuf.
o Don't use assignment as truth value.
2003-01-04 08:10:55 +00:00
tjr
30246458a2
style(9): return type on separate line from function name.
2003-01-04 07:34:41 +00:00
tjr
ac985d2b0a
Fix a number of bugs noticed by more extensive testing:
...
o Call waitpid() if an error occurs after forking the child process
to avoid leaving zombies around.
o Handle the WRDE_DOOFS|WRDE_APPEND combination correctly
o Do not confuse $( substitution with $(( shell arithmetic
(noticed by wollman)
o Handle backslash escaping properly
o Allow $( and ${ to be quoted
2003-01-04 06:07:44 +00:00
tjr
550b215d09
Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
...
the names required by 1003.1-2001. The old names are retained for
source compatibility with FreeBSD 5.0 and will be removed before 6.0.
2003-01-04 01:11:49 +00:00
tjr
5b93b0c98e
Remove unused variable: sz.
2003-01-04 00:24:35 +00:00
tjr
21a950ba8e
Remove unused variable: size.
2003-01-04 00:20:54 +00:00
tjr
423d60ce9d
#include <string.h> for strcmp()'s prototype.
2003-01-04 00:18:50 +00:00
tjr
6634305555
Remove unused variable: omask.
2003-01-04 00:15:15 +00:00
tjr
e66ec2707a
#include <sys/linker.h> for kldload()'s prototype.
2003-01-04 00:13:00 +00:00
tjr
037ba0f24b
#include <string.h> for strlen()'s prototype.
2003-01-04 00:11:11 +00:00
tjr
5b887fd56d
#include <ctype.h> for isspace()'s prototype (or a macro version).
2003-01-03 23:55:58 +00:00
tjr
2eb0772712
Add missing #include "namespace.h".
2003-01-03 23:38:21 +00:00
tjr
f027795617
Remove unused variable: ntmp.
2003-01-03 23:34:26 +00:00
tjr
c3c81fd441
#include <string.h> for strcmp()'s prototype.
2003-01-03 23:31:50 +00:00
tjr
d0b52ce8cc
#include "local.h" to make __svfscanf()'s prototype visible.
2003-01-03 23:27:27 +00:00
tjr
d7c9b91a26
Remove an unused variable: `sb' in fts_read().
2003-01-03 23:25:25 +00:00
tjr
5ba4caf3bc
Remove an unused variable, `sverrno', which has not been used since 1.11.
2003-01-03 23:16:55 +00:00
mike
d6f399392e
Optimize errstr() by reducing the number of times it walks a string.
...
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.
Test by: strerror regression test
Submitted by: Tim Kientzle <kientzle@acm.org>
2003-01-03 16:44:42 +00:00
phk
b884c995db
Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
...
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.
2003-01-03 16:23:12 +00:00
tjr
c1a0e9934f
Reset the stream orientation to 0 (unoriented) in freopen(), as required
...
by the C standard.
2003-01-03 12:27:19 +00:00
tjr
89dea00d7b
It is no longer necessary to include sys/types.h before wordexp.h.
2003-01-03 12:04:36 +00:00
tjr
dcb655257f
popen() is a function, not an argument.
2003-01-03 05:21:59 +00:00
tjr
bfa661b0f8
Protect pidlist with a mutex to avoid a race causing a duplicate free()
...
when the same pipe FILE is pclosed()'d in different threads, and to avoid
corrupting the linked list when adding or removing items. The symptoms of
the linked list getting corrupted were pclose() either not finding the pipe
on the list, or the list becoming circular and pclose() looping infinitely.
2003-01-03 04:35:04 +00:00
des
a91193c322
Set auto-retry mode to avoid some spurious errors.
...
Submitted by: Andre Albsmeier <andre.albsmeier@siemens.com>
MFC after: 7 days
2003-01-03 02:45:10 +00:00
jmallett
a33543dd92
Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin
...
to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes
to the user being granted the pty.
Submitted by: Ryan Younce <ryany@pobox.com>
Reviewed by: security-officer@, standards@, mike@
2003-01-02 20:44:41 +00:00
thomas
c35e5c982e
In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.
...
This situation most notably arises in chkprintcap, when a /etc/printcap
entry has an empty rp= attribute. In that case, cgetmatch would enter
an infinite loop if any entry in the file has multiple names.
This causes lpd to hang at boot time on 5.0-DP2 when both conditions
are met (:rp=: and multiple names -- not necessarily on the same entry).
Reviewed by: roberto
2003-01-02 10:19:43 +00:00
schweikh
d3367c5f5d
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
schweikh
86f7487fb6
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
obrien
ec82053375
Back out the s/int */size_t */ commit.
...
It makes a difference on 64-bit arches, and no one really wants a 2^64
block size [yet].
2002-12-30 11:12:16 +00:00
obrien
b19af36602
This compiles fine w/WARNS.
2002-12-30 09:25:30 +00:00
marcel
078bc225e1
Fix LP64 architectures and especially ia64. Functions that return
...
a pointer and lack a prototype will have the return value (assumed
to be an integer) zero-extended to a pointer. On ia64 this is
unconditionally fatal as it zeroes-out the region bits, forming an
invalid pointer. Fix the sigsegv by including <stdlib.h>.
Pointy hat: bbraun
2002-12-30 01:41:14 +00:00
rwatson
8a785d8605
Remove BUGS section indicating that these calls are unimplemented.
...
Update copyrights.
Obtained from: TrustedBSD Project
2002-12-29 20:52:42 +00:00
rwatson
d2f1f50d1c
Update acl_set.3, missed in last round:
...
- Update BUGS: this stuff is implemented.
- Update last modified date.
- Document acl_set_link_np() call.
Obtained from: TrustedBSD Project
2002-12-29 20:50:30 +00:00
rwatson
bce6bfbbec
Update libc POSIX.1e code and documentation to reflect:
...
- Updated copyrights, modified dates
- Remove "BUGS" entry indicating that ACLs are unimplemented
- Implement acl_*_link() library wrapper variants for get, set,
delete, aclvalid.
- Document acl_*_link() calls.
Obtained from: TrustedBSD Project
2002-12-29 20:47:05 +00:00
mike
835ad61213
Use useconds_t' instead of
u_int' or `unsigned int' where appropriate.
2002-12-29 00:59:09 +00:00
deischen
72b611d69d
Fix typos in comment.
...
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2002-12-28 05:20:03 +00:00
schweikh
fec6546e12
english(4) police.
2002-12-27 12:15:40 +00:00
alfred
2078a4c774
Silence casting away constness warnings.
...
Make cgetmatch's locals const.
Make cdbget take a const string and copy it into a buffer.
2002-12-27 08:43:40 +00:00
tjr
baa27ec2ab
Fix a small typo.
2002-12-27 08:28:53 +00:00
julian
997c868ce3
Slight tuning if teh KSE man page to indicate some functionality is
...
not yet inplemented and to clear up some wording.
2002-12-27 08:21:15 +00:00
jake
49979268c1
Teach libkvm to deal with direct mapped addresses.
2002-12-27 01:45:05 +00:00
tjr
8c4109166a
Be more consistent with "static".
2002-12-27 01:01:03 +00:00
nyan
63904a7353
Return an error if the size of the sector is zero. This is for removable
...
devices that is not inserted any media.
This is MFC candidate.
Submitted by: ISAKA Yoji <isaka@cory.jp>
2002-12-26 15:50:45 +00:00
tjr
eeed1ed55b
Add an implementation of the POSIX wordexp() and wordfree() functions,
...
which perform shell-style word expansion on strings. This is still a
little rough around the edges.
PR: 13420
2002-12-26 14:34:18 +00:00
ru
f6006b0adb
Spelling: s/then/than/ where appropriate.
2002-12-24 16:52:31 +00:00
ru
4979ab8d81
mdoc(7) police: Deal with self-xrefs.
2002-12-24 13:41:48 +00:00
trhodes
fccac15692
Document protection bits.
...
PR: 46252
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
2002-12-23 19:25:03 +00:00
ru
301b96498b
Fixed the abuses of .Ql visible on stderr in troff mode.
...
PR: docs/37176
2002-12-23 16:04:51 +00:00
ru
30f31561da
mdoc(7) police: removed gratuitous .Pp call.
2002-12-23 15:21:57 +00:00
kan
7c2123d512
Back out the -fpcc-struct-return fixes.
...
Approved by: re (rwatson)
2002-12-22 06:41:09 +00:00