Brian Feldman
429d49129b
Fix a tailq conversion bug that resulted in, e.g., nvi crashing upon
...
quitting every time. The way to free a CIRCLEQ was to loop until
the current == current->head, but the way to free a TAILQ is to loop
until current->head == NULL.
In any case, the CORRECT way to do it is a loop of TAILQ_EMPTY() checks
and TAILQ_REMOVE()al of TAILQ_FIRST(). This bug wouldn't have happened
if the loop wasn't hard-coded...
There may be more bugs of this type from the conversion.
2000-12-30 16:10:32 +00:00
Poul-Henning Kamp
fabacd3a11
Use TAILQ instead of CIRCLEQ.
2000-12-29 20:25:01 +00:00
Ruslan Ermilov
672062062d
Fixed typo not fixed in previous revision.
2000-12-29 14:36:05 +00:00
Ruslan Ermilov
4263595653
Prepare for mdoc(7)NG.
2000-12-29 14:08:20 +00:00
Ben Smithurst
5ff8bb1602
Link stringlist.3 to sl_{add,find,free,init}.3
2000-12-27 20:00:01 +00:00
Jacques Vidrine
b048419e0d
Fix mostly harmless typo:
...
if (data);
free(data);
Discovered by: emacs cc-mode
2000-12-17 21:10:41 +00:00
Ruslan Ermilov
88544700ca
mdoc(7) police: added missing .Os call.
2000-12-14 13:58:15 +00:00
Ruslan Ermilov
ed40311694
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
David E. O'Brien
515f933b8b
#endif should not have a non-comment token after it.
...
GCC 2.97 (snapshot) complains about this.
2000-12-13 08:59:18 +00:00
Robert Watson
6fd0cf5eb0
o Introduce a pile more documentation about capabilities, including
...
identification and descriptions of most capabilities, current inheritence
rules, etc. More to follow.
Reviewed by: sheldonh
Obtained from: TrustedBSD Project
2000-12-11 15:25:49 +00:00
Ruslan Ermilov
a2fd3702a3
mdoc(7) police: use canonical form of .Dd macro.
2000-12-11 15:15:20 +00:00
Daniel Eischen
10d1cba0bf
Move telldir position recording type definitions and prototypes
...
to "telldir.h" in order to prevent namespace pollution in
<dirent.h> (which was including <sys/queue.h>).
Add $FreeBSD$ to rewinddir.c and seekdir.c.
2000-12-11 04:00:36 +00:00
David E. O'Brien
1a37aa566b
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Alexander Langer
f5009c10dc
strunvis(3) and unvis(3) are the same files.
2000-12-08 12:35:06 +00:00
Alexander Langer
e7db1cd82e
There are four types of encoding now, not three. Most of them use the
...
backslash as a special char, but not all.
2000-12-08 12:17:53 +00:00
Ruslan Ermilov
f2b6be9022
Upgrade to groff 1.16.1.
2000-12-06 11:38:34 +00:00
Ruslan Ermilov
bcec0cefc4
Back this out, we apparently have the ipfw(4).
2000-12-06 06:50:24 +00:00
Ruslan Ermilov
4daefb4d8e
ipfw(4) -> ipfw(8).
2000-12-06 06:48:28 +00:00
Daniel Eischen
ef80a53495
Cleanup XXXdir functions to eliminate global hash table of
...
telldir positions. This will allow (future) locking on a
per-DIR basis (for MT-safety). For now, this change does
the following:
o Remove the hash table from telldir.c. Recode to use queue
macros.
o Remove 'const' from 'telldir(const DIR *)'.
o Remove 'register' variables as suggested in a recent
thread.
No response from: -current
2000-12-06 03:15:49 +00:00
John Baldwin
04cb9bbb1e
Move the ipfw(4) xref to the description of LOG_SECURITY instead of
...
LOG_UUCP.
PR: docs/23302
Submitted by: cshumway
2000-12-05 20:30:28 +00:00
Hajimu UMEMOTO
eb74b99618
- __ivaliduser_sa() was introduced for forthcoming IPv6 support to lpd
...
- iruserok_sa() and __ivaliduser_af() were re-organized to use
__ivaliduser_sa()
- __icheckhost() was re-written to use getaddrinfo() instead of
getipnodebyname()
- better handling of multiple destination addresses in rcmd()
These changes were basically taken from KAME and changed to fit our
rcmd.c.
Obtained from: KAME
2000-12-04 18:02:12 +00:00
Ruslan Ermilov
687a7e07cf
mdoc(7) police: fix formatting errors in rev 1.27.
2000-12-04 08:11:50 +00:00
John Polstra
882cdc116d
When recording the original arguments, stop short if we encounter
...
a NULL argument. Some programs change the contents of the argv
array, typically to remove some special arguments. They shorten
argv by storing a NULL where an argument pointer used to be. Such
programs core dumped if they called setproctitle(), because it
would try to apply strlen() to a NULL pointer.
2000-12-04 01:45:57 +00:00
John Polstra
4113386c62
When recording the original arguments, don't (ab)use "nargc" for
...
iterating over the arguments. Doing so wipes out the value which
is about to be stored into the ps_strings structure.
2000-12-04 01:26:29 +00:00
Matthew Dillon
fbf8638995
Add warning on file-fragmentation issues related to MAP_NOSYNC
2000-12-03 20:17:36 +00:00
Jake Burkholder
4231c165f7
Remove last vestiges of thr_sleep and thr_wakeup from libc.
2000-12-02 05:58:03 +00:00
Garance A Drosehn
bbe8edb0ac
Fix some error-handling logic so that ferror is called before fclose,
...
instead of immediately after the fclose. The previous logic did work
on freebsd, but is somewhat risky practice (and causes trouble when
porting to other OS's).
PR: bin/22965
Reviewed by: Garrett Wollman
2000-12-02 00:07:56 +00:00
Alfred Perlstein
070f57f520
document O_NOFOLLOW and O_FSYNC flags to open
2000-11-29 04:08:49 +00:00
John Baldwin
9a51cfcde1
Prefix the register argument of indirect 'jmp's with a * to make gas 2.10.x
...
happy.
2000-11-28 22:59:14 +00:00
Matthew Hunt
fecae3493c
The parameter that contains valid options is "optstring", not "optarg".
2000-11-28 22:06:17 +00:00
Maxim Sobolev
1447779521
Add reference to elf(5) in addition to already mentioned a.out(5) and add both
...
elf(5) and a.out(5) into `SEE ALSO' section.
2000-11-27 15:18:25 +00:00
David E. O'Brien
07a9238fc1
Note that the `fmt' parameter is a printf()-like string.
2000-11-26 23:33:40 +00:00
Poul-Henning Kamp
798c1fd885
Make it possible to override the function which writes messages to
...
stderr in case of warnings and errors.
Rename malloc_options to have a leading underscore, I belive I have been
told that is more correct namespace wise.
2000-11-26 10:30:18 +00:00
Kris Kennaway
4b5e6561d3
sprintf -> snprintf
2000-11-26 09:05:40 +00:00
Sheldon Hearn
b97552bf54
Remove the only hard sentence break in the file.
2000-11-24 10:48:02 +00:00
Ruslan Ermilov
454409ad22
Eliminate groff(1) warnings.
2000-11-24 09:33:37 +00:00
Ruslan Ermilov
c23155a43a
mdoc(7) police: Er macro usage cleanup.
2000-11-22 16:02:00 +00:00
Ruslan Ermilov
725ab6287f
log
2000-11-22 09:23:54 +00:00
Jonathan Lemon
ee85cf8bb2
Fix a logic reversal: the RFFDG flag must be unset in order to share
...
a file descriptor table. (Thanks to Alan Cox)
Clarify the fact that the changelist and eventlist can be shared.
2000-11-21 22:40:59 +00:00
Jeroen Ruigrok van der Werven
02e1f97870
Clarify the time parameter of the kevent() system call.
...
Inspired by PR: 21708
Submitted by: Ronald F. Guilmette <rfg@monkeys.com>
Reviewed by: jlemon
2000-11-21 15:22:36 +00:00
Sheldon Hearn
067c7f48de
Fix hard sentence break introduced in rev 1.7.
2000-11-20 16:25:10 +00:00
Sheldon Hearn
8e770e7803
Add a period missing from rev 1.13.
2000-11-20 16:19:37 +00:00
Sheldon Hearn
3efaff6731
Remove blank line introduced in rev 1.13.
2000-11-20 16:18:45 +00:00
Ruslan Ermilov
a304568fd9
mdoc(7) police: fixed warnings.
2000-11-20 14:22:41 +00:00
Ruslan Ermilov
432108fa2a
mdoc(7) police: fixed warning.
2000-11-20 14:18:21 +00:00
Ruslan Ermilov
563f6bde6e
mdoc(7) police: Nm -> Fn where appropriate.
2000-11-20 14:11:46 +00:00
Ruslan Ermilov
3b8ecdbbbe
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 14:08:07 +00:00
Kris Kennaway
b05092e25a
MAXPATHNAMELEN -> MAXPATHLEN
...
Submitted by: ianm@kashmir.cit.nepean.uws.edu.au via OpenBSD
Obtained from: OpenBSD
2000-11-19 11:29:58 +00:00
Kris Kennaway
7853d5d839
Don't suggest people use getpid() to construct temporary filenames;
...
point them to mkstemp() instead.
Obtained from: OpenBSD (based on)
2000-11-19 10:30:42 +00:00
Kris Kennaway
dc3f2db745
Update the documentation to describe the new mktemp() family behaviour.
...
Also notes that mkstemp() first appeared in 4.4BSD (change obtained
from OpenBSD)
Reviewed by: sheldonh
2000-11-19 10:21:32 +00:00