Commit Graph

3323 Commits

Author SHA1 Message Date
phantom
0758474433 mdoc(7)'fy
Reviewed by:	mpp
1999-09-21 19:39:27 +00:00
phantom
3ab98d3c59 Synchronization of NAME and SINOPSYS sections.
mdoc(7)'fy
1999-09-21 19:22:30 +00:00
dt
8a7ea1c51d Someone changed major numbers of the libraries from 2 to 3 for 0 (zero) reasons.
Revert the major number back to 2.

libcrypt only export one function, before the recent changes and now:
char *crypt(const char *key, const char *salt);
The prototype didn't changed. Internal representation of `char' and `char *'
didn't changed. Therefore, there is no reason to change the version number.
1999-09-21 17:52:05 +00:00
wes
5a63360653 Fixed a typo (well, format-o) in yesterday's edits.
Spotted by:	John Polstra <jdp@polstra.com> (again)
1999-09-21 17:30:43 +00:00
ru
2624e30612 Restore previous version of FindLinkIn().
Instead, natd(8) should be fixed to call PacketAliasSetAddress()
as part of initialization, as required by libalias(3).
1999-09-21 14:44:32 +00:00
peter
ac86ac7d86 Somebody deleted the SONAME override causing the symlink to be expanded
at link time and the target name compiled into the binaries.  ie:
everything used libscrypt or libdescrypt explicitly.
1999-09-21 14:44:27 +00:00
ru
43d88af9c1 - Make partially specified permanent links (without `dst_addr' and/or
`dst_port') work for outgoing packets.

- Make permanent links whose `alias_addr' matches the primary aliasing
  address `aliasAddress' work for incoming packets.

- Typo fixes.

Reviewed by:	brian, eivind
1999-09-21 08:40:20 +00:00
brian
d22a320be3 sys/errno.h -> errno.h 1999-09-21 01:26:49 +00:00
wes
e3a71b7525 Fixed the description of when and why aio_suspend returns.
Also spelled out the return values and conditions a little
better.

Noticed by:	John Polstra <jdp@polstra.com>
1999-09-20 18:30:55 +00:00
markm
7baa7108b2 Big code cleanup. (Inspired by Brandon Gillespie). Also move as
much as possible away from secure/ to make extending easier.
1999-09-20 12:45:49 +00:00
phantom
34985ba96d Correct spelling : ascii -> ASCII
PR:		docs/13702
Submitted by:	Stephen J. Roznowski <sjr@home.com>
Reviewed by:	mpp
1999-09-20 09:15:23 +00:00
markm
29eb7c44d8 Common Error libraries are needed here. 1999-09-20 06:23:16 +00:00
phantom
4fd9aeb425 Fix typo
PR:		docs/13814
Submitted by:	Alex Vasylenko <lxv@mix.nest.org>
1999-09-19 17:57:35 +00:00
phk
fc00073953 Add a version number field to the jail(2) argument so that future changes
can be handled intelligently.
1999-09-19 08:36:03 +00:00
obrien
bac68c0bce The existing libxpg4.so.2.0 didn't support zh_TW.Big5 locale.
PR:		13623
Submitted by:	jtjang@gcn.net.tw
1999-09-14 08:41:09 +00:00
dt
83bc6d0e72 __collate_substitute() do something non-trivial only for German. For everyone
else, it is equivalent to strdup(). So, we will check if  the substitution
tables are trivial at the load time, and possibly save 2 calls to
__collate_substitute() in strcoll().

Still, __collate_substitute() should not exist.
1999-09-12 21:15:28 +00:00
dt
d6121d45aa Reduce time of __collate_substitute() from O(strlen(s)^2) to O(strlen(s)).
Other minor optimizations. I got ~30% speedup in strcoll() for 50 char strings,
~40% speedup for 100 char strings, and unmeasurable speedup for 1M strings.

Collates are still terribly slow. To make them reasonable fast,
__collate_substitute() should be killed.
1999-09-12 19:42:38 +00:00
ken
58096ff217 Fix a file descriptor leak in cam_open_btl(). The xpt device was opened,
but never closed.

Submitted by:	amobbs@allstor-sw.co.uk
1999-09-12 19:40:20 +00:00
dt
27e2642cab Implement new format specifier for strftime: %OB, alternative national
representation of the full month name. In the Russian locale, this alternative
will be "nominative case", useful when the date designate month as a whole.
E.g. month heading in a calendar. I hope it can be useful for some other
locales too.

Discussed with:	wollman, ache
1999-09-11 21:35:21 +00:00
alfred
3f5d9e7229 Add FreeBSD history in 'HISTORY'
Pointed out by: obrien
1999-09-11 21:07:14 +00:00
dfr
c45229cbf6 Change toupper/tolower so that they don't give a bogus answer if the
argument is already upper/lower.
1999-09-11 17:54:37 +00:00
bde
67d1389323 Fixed disordering in previous commit. 1999-09-11 14:20:18 +00:00
alfred
0af1c82db3 Document fhopen, fhstat, and fhstatfs syscalls.
Obtained from:	NetBSD
1999-09-11 00:49:10 +00:00
ru
46edcb61d7 - Optimization to the previous (rev 1.15) commit.
Requested by:	eivind
Discussed with:	eivind
Reviewed by:	brian, eivind
1999-09-10 15:27:34 +00:00
alfred
9278e4f761 sync with src/sys/sys/mount.h 1999-09-10 09:12:24 +00:00
billf
5c5fcce6e4 Add aio_{cancel,error,return,suspend,write} into the mix.
Submitted by:	Dan Nelson <dnelson@emsphone.com>
Forgotten by:	mpp
1999-09-09 19:06:57 +00:00
ru
5f74a2f319 Handle TCP reset sequence properly.
In the words of originator:
:If an incoming connection is initiated through natd and deny_incoming is
:not set, then a new alias_link structure is created to handle the link.
:If there is nothing listening for the incoming connection, then the kernel
:responds with a RST for the connection. However, this is not processed
:correctly in libalias/alias.c:TcpMonitor{In,Out} and
:libalias/alias_db.c:SetState{In,Out} as it thinks a connection
:has been established and therefore applies a timeout of 86400 seconds
:to the link.
:
:If many of these half-connections are initiated (during, for example, a
:port scan of the host), then many thousands of unnecessary links are
:created and the resident size of natd balloons to 20MB or more.

PR:		13639
Reviewed by:	brian
1999-09-09 13:42:51 +00:00
ru
f85986a747 Fix typo. 1999-09-08 16:37:14 +00:00
ru
1a279ade99 - add reference to siginterrupt(3)
- mdoc(7) fixes
1999-09-06 15:15:51 +00:00
des
51f2ba4bf6 Don't forget to reset _pw_stepping_yp to 0 before returning. Fixes a bug
where getpwent() would ignore wildcard entries that followed a netgroup
entry.

PR:		misc/12999
Submitted by:	David Hedley <david@inty.net>
1999-09-06 08:04:43 +00:00
peter
3d6ad61af2 Zap $Source$ 1999-09-06 07:41:34 +00:00
peter
dd57ee74e5 Zap $Locker$ 1999-09-06 07:40:41 +00:00
peter
342c138a4f Tidy up $Log$ debris. 1999-09-05 17:42:45 +00:00
peter
7fb1d222ad Connect libform/libpanel/libmenu. 1999-09-05 07:55:37 +00:00
phantom
f48ac5572f Some style and "look" fixes
Reviewed by:	mpp
1999-09-05 07:02:22 +00:00
phantom
29c16ff764 Name Description (.Nd macro) added.
Style and punctuation errors fixes.
ERRORS section included to RETURN VALUES because it's
describing return values instead of errors and their handling.

Reviewed by:	mpp
1999-09-05 06:59:34 +00:00
phantom
7beddbc46d mdoc(7) style fix.
Correct RB_* values list bounds.

Reviewed by:	mpp
1999-09-05 06:50:49 +00:00
phantom
6cb67753a8 mdoc(7) style fix: FreeBSD -> .Fx
Reviewed by:	mpp
1999-09-05 06:47:01 +00:00
phantom
8771d44bf8 Remove useless .Fn macro suffix
Reviewed by:	mpp
1999-09-05 06:41:49 +00:00
phantom
0a84e99910 mdoc style fix.
Reviewed by:	mpp
1999-09-05 06:39:22 +00:00
phantom
a51cd5fee4 mdoc(7) style fixes
Reviewed by:	mpp
1999-09-05 06:37:01 +00:00
peter
1604d6ea02 Add bmake glue for libform (the SVSV-style ETI curses form driver from
ncurses)
1999-09-05 05:37:49 +00:00
peter
4a44c7efbc Add bmake glue for libpanel (the SVSV-style ETI curses panel (overlapping
layers) driver from ncurses)
1999-09-05 05:36:12 +00:00
peter
6f530f838a Add bmake glue for libmenu (the SVSV-style ETI curses menu driver from
ncurses)
1999-09-05 05:32:46 +00:00
phantom
fb872bedf6 Spelling and grammar error fix.
mdoc(7)'fy.

PR:		docs/13406
Submitted by:	Garret Woolman <woolman@khavrinen.lcs.mit.edu>
Reviewed by:	mpp
1999-09-04 15:56:51 +00:00
bde
25087eeb4c Fixed disorder in comments.
Build libncurses early again (it had drifted into set of libraries that
have no ordering requirements, but it must be built before libedit here
and before some gnu libraries in ../Makefile.inc1).
1999-09-04 13:08:35 +00:00
markm
f944a9ed9d Build this from contrib/ now. 1999-09-04 09:52:36 +00:00
luoqi
abd1e7015e Use definitions provided in sysarch.h for args structures.
Reviewed by:	marcel
1999-09-02 21:03:32 +00:00
imp
74d3942b11 Fix the root cause of the fts buffer overflow. This is a temporary
patch to stop the core dumps while others come up with a better
reviewed patch which may also fix other problems.  We do illegal
pointer arithmetic, but it should be OK since FreeBSD only supports
machines with flat address spaces.

Submitted by: bde
1999-09-02 07:45:07 +00:00
markm
3f5b6ea39c Make the libcrypt's build in the correct order. 1999-09-01 09:12:16 +00:00
peter
36fa3961f4 Update a comment regarding dependencies on libtermcap and curses etc. 1999-09-01 06:21:52 +00:00
peter
c5d8de1882 Add a missing dependency for make_hash which could make various forms of
make -jN fail.  This fixes the present problem only, not the larger one
of when those internal tools are built and the cross-compiling etc.

Submitted by:	luoqi
1999-09-01 05:14:57 +00:00
sheldonh
6b38c18119 Back out previous commit. I mistook passing commentary from bde for
review.

Requested by:	bde
1999-08-31 13:11:39 +00:00
dt
8215e622cb Make SYMLINKS relative. SYMLINKS are supposed to be relative, and for this
reason ${DESTDIR} isn't added to the symlink source.
1999-08-30 23:15:40 +00:00
dt
4dc9d2ac40 Fix a memory leak: free the thread-specific poll_data, used in the select()
implementation.

PR:		13368
Submitted by:	Steve Bernacki, Jr. <steve@copacetic.net>
1999-08-30 15:45:42 +00:00
sheldonh
f5ee8033ce Only issue a warning for the first occurrence of a UID > USHRT_MAX and
the first occurrence of a GID > USHRT_MAX.

PR:	13344
Reviewed by:	bde
1999-08-30 09:55:42 +00:00
peter
48d0938d79 Don't build libtermcap, libcurses, libmytinfo, just libncurses. 1999-08-30 08:15:02 +00:00
peter
d179468d06 Use src/contrib/ncurses, v5.0.990821 prerelease.
This isn't quite finished yet, there are still some unresolved problems
with ospeed and the sgtty.h (non-posix) terminal interface.  Mostly
this only causes problems with src/games.

The other tools and libraries (libform,libpanel,libmenu) will come
shortly but are seperate.

Beware, there be dragons here!  (The build will be broken for a short
while)
1999-08-30 07:58:08 +00:00
deischen
3a40db36a1 When checking for valid timevals in the wrapped select() and poll()
routines, don't return EINVAL but set errno to EINVAL and return -1.
Added a check in pthread_cond_timedwait for a null timespec pointer.
1999-08-30 00:02:08 +00:00
billf
a0cb867d02 Add $FreeBSD$ and spell Eklund properly.
Approved by:	brian (well, he approved adding $Id$)
1999-08-29 23:17:04 +00:00
mpp
08e72288bf Add $FreeBSD$ lines to man pages that are missing them to make it
easier for translation teams.

PR:		docs/13418
Submitted by:	Alexey Zelkin <phantom@cris.net>
1999-08-28 23:10:20 +00:00
mpp
9402e2710a Add $FreeBSD$ lines to man pages that are missing them to make
it easier for translation teams.

PR:		docs/13418
Submitted by:	Alexey Zelkin <phantom@cris.net>
1999-08-28 23:04:49 +00:00
peter
51ddb038ec $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
yokota
3ecbf6f1bd - Handle the signal SIGTERM.
- Slightly rearrange VGLCheckSwitch() to ensure the display content
  will be correctly restored when switching back to the vty where
  the vgl program is running.
- VGLEnd() should clear the screen only when the vty is in the
  foreground.

Discussed with: sos
1999-08-28 02:39:10 +00:00
peter
b6784c4210 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
peter
e4b04a2b21 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
peter
e226894fa0 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
peter
fdf6ebea46 $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
peter
3b7c52fb9a $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
mpp
445771f7c3 Remove some 4.3BSDish anacronisims that stated that it was an
error for a pathname to contain a character with the high-order
bit set.

Inspired by:  joerg's previous commit
1999-08-27 20:21:18 +00:00
joerg
084e98c72e Remove a 4.3BSDish anachronism that claimed EPERM for an attempt to
mknod() a pathname containg a ``character with the high-order bit
set''.
1999-08-27 14:25:00 +00:00
bde
44e2fabe5b Don't open the swap file. The open descriptor for it hasn't been used
for over 5 years since we switched to using procfs for kvm_uread().
This cleanup was motivated by recent breakage of the default swap file
(/dev/drum) when swapon() has not been called.
1999-08-25 03:01:54 +00:00
chris
c8502a8ddd Document ENOSYS error.
PR:		docs/13290
1999-08-23 11:07:29 +00:00
brian
5d1eeec435 Aallow ppp to work with Nortel Networks Extranet Switch
product and Windows NT tunneling.

Submitted by: Chain Lee <chain@nortelnetworks.com>
1999-08-22 23:32:01 +00:00
hoek
56f5acb5c7 Typo: 102 => 192 (PR: docs/13310 - Maxim Sobolev <sobomax@altavista.net>) 1999-08-22 19:23:33 +00:00
yokota
9df459b9d7 Assorted bug fixes.
keyboard.c
- Call tcsetattr() in VGLKeyboardEnd() to restore tty, only when
  tty attributes have been previously saved.
  PR: misc/9524
  Submitted by: Katusyuki 'kei' Maeda (kei@nanet.co.jp)
- Set up the tty raw mode correctly.

main.c
- Restore VESA_800x600 raster text mode correctly in VGLEnd().
  Submitted by: des

text.c
- Allocate the correct size of a font buffer in VGLSetFontFile().
  I forgot the submitter ;-(

simple.c, bitmap.c
- Fix address calculation for the VGA mode X in VGLGetXY() and
  VGLBitmapCopy().
- Fix typo (dsty -> dstx) in __VGLBitmapCopy().

Reviewed by: sos
1999-08-22 03:31:13 +00:00
green
c50c45093a This is the addition of a syslog(3) security.* top-level category. This
should be used from now on for anything security but not auth-related.
Included are updates for all relevant manpages and also to /etc files,
creating a new /var/log/security. Nothing in the system logs to
/var/log/security yet as of the time of this commit.

Reviewed by:	rgrimes, imp, chris
1999-08-21 18:24:29 +00:00
imp
6a430d8130 Add warnings, ala mktemp, to tempnam and tmpnam as a reminder that
these are inherently unsafe interfaces.

Do not allow TMPDIR to override path for setuid/setgid programs.
1999-08-21 17:56:44 +00:00
alfred
ee936e16c1 move sanity check of timeval struct so as not to segfault when passed
a null pointer.

Pointed out by: Thomas Gellekum <tg@ihf.rwth-aachen.de>
Reviewed by:    eivind
1999-08-20 21:06:20 +00:00
abial
322c53f858 Restore INTERNALLIB.
Noticed by:	bde,jdp
1999-08-20 18:32:45 +00:00
mdodd
40bd11e3bb Fix MLINKS.
Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
1999-08-20 17:37:22 +00:00
jb
e9a19a6ecd When checking if there is a stack to free, observe the fact that it
might have been mmapped, and if so, passing the pointer to free() is
really not a good idea.

[ In the next millenium, when I've taken over the world, I'm going
  to ban 8 character tabs. You've been warned. ]
1999-08-20 12:17:09 +00:00
rse
ee879339ee Fix EINVAL related descriptions. 1999-08-20 07:00:22 +00:00
mdodd
b7c3c4e3c5 Add 2 functions: el_data_set() and el_data_get() which do what you
would expect.  (Allow user data to be associated with an EditLine context).

As this changes no existing interfaces and doesn't alter any structs
visable to the user I've been told that its not necessary to bump
the version of the library.
1999-08-20 01:17:12 +00:00
alfred
0b22396623 time_to_sleep->tv_nsec > 1000000000
-to-
time_to_sleep->tv_nsec >= 1000000000
1999-08-19 23:18:07 +00:00
alfred
33cfc05134 Sanity check time structures passed in, return EINVAL like the system
calls do to avoid corrupting the thread library's concept of wakeup
time.

PR:		kern/12141
Reviewed by:	deischen, eivind
1999-08-19 23:06:11 +00:00
alfred
db57e25335 handle under/overflow of time values in a more robust manner,
there may be an overflow that need to be adjusted more than once.

Pointed out by: Fabian Thylmann <fthylmann@stats.net>

Reviewed by:	eivind, jb
1999-08-19 16:49:53 +00:00
abial
88e94f60ad Add pam_radius.so manual page.
Reviewed by:	jdp
1999-08-18 19:04:24 +00:00
chris
24ff4e8603 Fix a bunch of broken cross-references 1999-08-18 05:55:22 +00:00
ken
a51cdda905 Take out a reference to ccb(4). I never got around to writing it.
Reported by:	"Alexey M. Zelkin" <phantom@cris.net>
1999-08-17 22:03:40 +00:00
rse
a22eac1817 Fix description of the _thread_autoinit_dummy_decl trick. 1999-08-17 09:50:21 +00:00
pho
b506aa9090 Reverted to revision 1.8 as previous fix causes fts_open with with a
path name argument with a trailing '/' to fail.

Reviewed by:	phk
1999-08-15 19:21:29 +00:00
mpp
eed3878b2e Various man page cleanup:
- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlines in mdoc(7)
- Other misc mdoc cleanup.

PR:		doc/13144
Submitted by:	Alexy M. Zelkin <phantom@cris.net>
1999-08-15 09:51:25 +00:00
pho
f7c4aa3c46 Reviewed by: phk
When fts_open is used with option FTS_NOCHDIR the full
path entry of type FTS_DP is returned with a trailing
'/' if the final directory is empty.
This fix coresponds to netbsd's __fts13.c v. 1.16
1999-08-14 12:19:40 +00:00
chris
1dadee8d9e Bad reference to exit(2) changed to exit(3). 1999-08-14 08:13:35 +00:00
chris
ee7e1d8253 Bad reference exit(2) changed to exit(3) 1999-08-14 08:05:46 +00:00
chris
610d1826b7 Add $Id$ tag. 1999-08-14 07:59:58 +00:00
chris
8abef875bc Bad reference time(2) changed to time(3) 1999-08-14 07:57:52 +00:00
chris
0ef3085422 Bad reference of termios(3) changed to termios(4). 1999-08-14 07:52:29 +00:00
chris
7ed1f2682c Bad reference of sysctl(1) changed to sysctl(8) 1999-08-14 07:46:50 +00:00
chris
54eac00e8d Bad reference to lstat(3) changed to lstat(2) 1999-08-14 07:43:02 +00:00
chris
238ce9709f Fix .Xr line for `getpagesize' 1999-08-14 07:33:15 +00:00
chris
1ea353cdca Fix some bad references:
fopen(2) -> fopen(3)
  fclose(2) -> fclose(3)
1999-08-14 07:07:46 +00:00
chris
f4cc4d201c Change reference to mount(1) to mount(8) 1999-08-14 06:17:24 +00:00
chris
22b7d9462e Change reference from kldload(3) to kldload(2) 1999-08-13 21:02:39 +00:00
sheldonh
3433d56199 Axe LOGIN_CAP_AUTH.
PR:	10115
Reported by:	Gene Skonicki <gene@cif.rochester.edu>
Requested by:	jdp
1999-08-13 16:51:40 +00:00
deischen
4ea5452d8e Add check for runnable threads before polling file descriptors.
Submitted by:	tegge
1999-08-12 19:34:39 +00:00
rnordier
eb3949813c Treat an attempt to read from a write-only stream more consistently.
Submitted by: Anton Berezin <tobez@plab.ku.dk>
PR          : 12852
1999-08-10 21:36:51 +00:00
imp
8f46322297 Use the latest version of these files from OpenBSD.
1) Safty change from casper dik was added to OpenBSD's sources since I
   grabbed them. milltert@openbsd.org
2) Split up strlcpy to improve efficiency of the common case.
   milltert@openbsd.org
3) Cleanup of cross references for man page.  {alex,aaron}@openbsd.org

Pointed out by: deraadt@openbsd.org
1999-08-10 05:58:58 +00:00
imp
78cfe6712d Import strl{cat,cpy} from OpenBSD.
Obtained from: OpenBSD
1999-08-10 05:21:31 +00:00
bde
b3f39aa193 Fixed missing "G" in the list item for the main description of %g and
%G formats.
1999-08-08 11:00:01 +00:00
deischen
8360da5a51 Add RCS IDs to those files without them.
Fix copyrights (s/REGENTS/AUTHOR).

Suggested by:	tg
Approved by:	jb
1999-08-05 12:15:30 +00:00
deischen
1b727e5d6c Fix thread initialization to allow for the case where stdio file
descriptors are not opened.

PR:		bin/12853
Reviewed by:	jb
1999-08-05 12:08:10 +00:00
hoek
acf30dccd9 Mention that EXIT_SUCCESS and EXIT_FAILURE are preferred over
sysexits.h-values as exit codes for portable programs.
1999-08-01 20:46:45 +00:00
bde
3844178a57 Fixed $Id$.
Removed POSIX.1/NetBSD markup (braces) for NAME_MAX, etc.  We don't
define this.  Most FreeBSD man pages hard-code the limits; in fact,
utimes.2 recently became the only file in libc/sys/*.2 that mentions
NAME_MAX.  There probably should be mandoc macros for this.
1999-07-31 22:29:17 +00:00
bde
c098d5ee50 Removed a duplicate reference to System V.4. 1999-07-31 22:14:46 +00:00
bde
61b794e381 Fixed syntax error in previous commit. 1999-07-31 22:10:17 +00:00
bde
a9703cf9f6 FIxed disordering in previous commit. Fixed some old disorder. 1999-07-31 22:00:09 +00:00
nik
2c05c902a6 Document that writev(2) can fail with ENOBUFS.
Text is a compromise based on messages from Wes Peters, Ville-Pertti
Keinonen, and Matt Dillon.

PR:             docs/10512
Submitted by:   Howard Goldstein <hgoldst@mpcs.com>
1999-07-30 21:20:09 +00:00
mpp
26346575f1 Use the .At macro when referencing versions of AT&T UNIX.
Note: you need to install the current groff tmac macros for these
man pages to format correctly.  Specifically, rev 1.21 of
contrib_groff/tmac/doc-syms in -current, or rev 1.17.24 for 3.2-stable
1999-07-30 12:45:20 +00:00
mpp
c76792c742 Document the getdents(2) system call. The documentation was
added to the getdirentries(2) man page because 95%+ of that
man page comprised the text of the getdents(2) man page
I obtained from NetBSD.
1999-07-30 11:32:08 +00:00
mpp
159c6acd1d Document the lchmod(2) system call.
Pointed-out-by: bde
1999-07-30 10:08:21 +00:00
mpp
53056d39e0 Add a manual page for getdents(2). This was taken from NetBSD, but
still needs some cleanup which is why it hasn't been added to the
Makefile yet.

Obtained from:	NetBSD
Pointed-out-by: bde
1999-07-30 09:26:50 +00:00
mpp
e25e2d8a1a Document the lutimes() and futimes() system calls.
PR:		kern/11213
Obtained from:	NetBSD w/some minor changes by me
1999-07-30 09:01:45 +00:00
mpp
e622fdd531 Mdoc cleanup. 1999-07-30 07:45:40 +00:00
sheldonh
5c16f70ded Add missing cause for an EINVAL return (msgtype < 1).
PR:	12783
Submitted by:	Kevin Day <toasty@dragondata.com>
1999-07-26 11:39:02 +00:00
sheldonh
057a8b6379 Correct HISTORY section, according to CVS logs.
PR:	12810
Submitted by:	Alex Perel <veers@disturbed.net>
1999-07-26 09:37:47 +00:00
ache
0afb35f188 remove <ctype.h> - not needed 1999-07-26 05:50:43 +00:00
ache
13d3eaf67b unsigned char cleanup
fix wrong index from p_simp_re()

PR: 8790
Submitted by: Alexander Viro <viro@math.psu.edu> (partially)
1999-07-26 01:33:38 +00:00
hoek
d2dbe2f3db asprintf() does use realloc() internally, but saying so in the manpage can be
misinterpreted to mean that the pointer passed to asprintf() must be suitable
for passing to realloc() as-is (ie. either a NULL pointer or a valid pointer).
1999-07-25 17:38:59 +00:00
n_hibma
9f34db91c0 Update the manpage for the number of symlinks in ELOOP
PR:		12634 (partial)
Submitted by:	Julian H. Stacey jhs@FreeBSD.ORG
1999-07-24 16:45:57 +00:00
bde
19dbbef07f Backed out previous commit. devname.3 and devname.c were broken in Lite1
(devname() returned "??" when the lookup failed, but callers expected it
to return NULL).  This was fixed in Lite2, but until recently the changes
were only merged into devname.3.  A day or two after devname.c was fixed,
devname.3 was made inconsistent again by backing out most of the Lite2
changes.
1999-07-24 00:33:27 +00:00
nik
02e85ac2c1 Correct the information about the return value when no device matches
(or no information is available).

PR:             docs/12707
Submitted by:   Chris Costello <chris@calldei.com>
1999-07-20 20:48:40 +00:00
nik
12c6c332a7 Correct some grammar and style problems with this page.
Submitted by:   Kris Kennaway <root@rebel.net.au>
1999-07-20 20:46:26 +00:00
green
45d6d24729 Various cleanups. 1999-07-19 17:37:42 +00:00
phk
9a6b56110d Make devname(3) return something more intelligent than NULL if it doesn't
find anything in the database.
1999-07-18 10:19:48 +00:00
simokawa
e4dec531d7 Enable gmon/mcount on alpha. 1999-07-16 07:05:34 +00:00
simokawa
3587660f83 Enable gcrt1.o. 1999-07-16 06:59:27 +00:00
simokawa
948637b1f2 Make profil() 64bit-safe for alpha.
uintfptr_t may be better for offset, but we must wait until
the definition of uintfptr_t moves from machine/profile.h.

Reviewed by: bde
1999-07-16 06:28:55 +00:00
jlemon
01a7c02244 Reference correct sysctl: kern.maxsockbuf --> kern.ipc.maxsockbuf 1999-07-15 17:15:24 +00:00
nik
d72e9660fb Be a little clearer about login_getpwclass(3), and its penchant for
looking up a record called "root".

PR:             docs/12377
Submitted by:   Adrian Filipi-Martin <adrian@ubergeeks.com>
1999-07-14 22:36:10 +00:00
nik
44f9c90d19 Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:50:10 +00:00
nik
7e91e73b9f Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:24:20 +00:00
dt
eafcf93928 Use USRSTACK (defined in <machine/vmparam.h>) to get top of the initial stack.
PTHREAD_STACK_TOP was wrong for all supported architectures.
1999-07-12 16:09:30 +00:00
sheldonh
c7bb102692 Fix commented out CFLAGS addition for LOGIN_CAP_AUTH, which was missing
a make -D option.

PR:	12591
Submitted by:	Craig Leres <leres@ee.lbl.gov>
1999-07-12 14:27:58 +00:00
jasone
de55ccca20 Fix a couple more coding style nits. 1999-07-11 06:06:52 +00:00
jasone
07e23d6a2f Modify previous changes to conform better to libc_r's coding style.
Always use mmap() for default-size stack allocation.  Use MAP_ANON instead
of MAP_STACK on the alpha architecture.

Reduce the amount of code executed while owning _gc_mutex during stack
allocation.
1999-07-11 05:56:37 +00:00
wes
6ca85af477 Fixed a minor style nit in the EXAMPLE section. 1999-07-10 19:18:42 +00:00
phk
6f11af3324 Clarify an explanation a little bit. 1999-07-09 21:35:37 +00:00
des
c2e504968a Back out previous commit after discussing it with Dmitrij Tejblum. 1999-07-07 21:01:20 +00:00
des
71e220af31 Always set errno to ENOMEM when returning 0 from malloc() or realloc().
Approved by:	phk
1999-07-07 19:54:08 +00:00
obrien
c51992c135 Make the new %Z addition thread-safe. 1999-07-06 05:05:39 +00:00
jasone
abfd415407 Always use growable thread stacks on the i386. The VM_STACK kernel option
must be made default for the alpha before growable thread stacks are
enabled for the alpha.
1999-07-06 00:25:38 +00:00
msmith
d8cfa84e80 Merge from -stable; support for the 'ida' driver, move fla to major 102 1999-07-05 09:43:29 +00:00
jasone
57ccfe24a3 Disable growable stacks by default, as advertised. 1999-07-05 00:38:12 +00:00
jasone
b927d74c6f Use growable stacks for thread stacks that are the default stack size.
Cache discarded default thread stacks for use in subsequent thread creations.

Create a red zone at the end of each stack (including the initial thread
stack), with the hope of causing a segfault if a stack overflows.

To activate these modifications, add -D_PTHREAD_GSTACK to CFLAGS in
src/lib/libc_r/Makefile.  Since the modifications depend on the VM_STACK
kernel option, I'm not sure how to safely use growable stacks by default.

Testing, as well as algorithmic and stylistic comments are welcome.
1999-07-05 00:35:19 +00:00
obrien
898c549e5a Actually impliment the documented %Z specifier. 1999-07-04 08:54:26 +00:00
mpp
96041f60b9 Nuke the BUGS sections of these man pages because they are not appropriate. 1999-07-01 21:13:06 +00:00
mpp
46f2e082fe Fix typos/spelling errors. 1999-07-01 21:09:57 +00:00
mks
c12e85162e Modify code to be -Wall'able.
PR: bin/11315
1999-07-01 20:48:59 +00:00
wes
d3b7cd630d Add mising aio_* man pages. Fixed a minor typo in aio_read.2,
and "corrected" statement of Posix conformance.
1999-07-01 19:58:12 +00:00
kris
888c8a3dba Spelll 'asynchronous' coriectly 1999-07-01 13:31:30 +00:00
sheldonh
6dcae7f011 Fix the NAME section of the kldload.2 manpage, which made reference to
kldunload. Add proper cross-references to the whole family.

PR:	12472
Submitted by:	Chris Costello <chris@calldei.com>
1999-07-01 12:16:06 +00:00
dt
ddb728d936 Defer signals, so we will not wait for SIGCHLD after it was delivered. 1999-06-29 19:57:07 +00:00
billf
e476cc2667 Clarify what happens if fd is set to -1
Submitted by:	Alfred Perlstein <bright@rush.net>
1999-06-29 16:32:22 +00:00
pb
76f1b19c23 Move call to umask(0) back into pw_util(), because the latter
function is also used by chpass(1) and passwd(1).
1999-06-29 01:04:10 +00:00
mpp
5eb8f821ef Document that mlock() and munlock() can return EPERM if the
caller is not the super-user.  Also document that we do not
currently support the per-process RLIMIT_MEMLOCK limit.

PR:		doc/11607
1999-06-27 00:28:55 +00:00
simokawa
db7f2501e9 Just return `curbrk' for sbrk(0) to avoid syscall overhead. 1999-06-26 15:22:33 +00:00
pb
f79578648f Force umask to 077 (instead of 000) during the edit phase, to get
secure permissions in case the user attempts to save something to
a file of his own.

Move umask stuff out of pw_init() into main() for better visibility
of overall umask tweaking logic.

PR:		misc/11797
1999-06-26 12:15:39 +00:00
sheldonh
6a6011a9a8 Add -d option to vipw(8) to allow selection of an alternative directory
for the password files.

PR:	2703
Submitted by:	jmg
1999-06-26 07:16:42 +00:00
dt
5760ab8fe1 Fix few warnings on the alpha. 1999-06-23 15:01:22 +00:00
brian
f4f24ff47d Don't get caught in an infinite recursion when PKT_ALIAS_REVERSE
is set.
Document PKT_ALIAS_REVERSE.

Pointed out by:	Jonathan Hanna <jh@cr1003333-a.crdva1.bc.home.com>
PR:		12304
1999-06-22 11:20:03 +00:00
jkoshy
9653bd40fa Correct troff sequence for backslashes in manual page.
PR:		docs/12322
Submitted by:   Marc Ramirez <mrami@gbtb.com>
1999-06-21 09:37:38 +00:00
jb
49ae834223 Remove -DNOPOLL from the compilation flags now that there is a poll wrapper
in libc_r.

Bump the library version number (the scheduler now uses a poll syscall
instead of select).
1999-06-20 08:32:37 +00:00
jb
2c27a39678 In the words of the author:
o The polling mechanism for I/O readiness was changed from
    select() to poll().  In additon, a wrapped version of poll()
    is now provided.

  o The wrapped select routine now converts each fd_set to a
    poll array so that the thread scheduler doesn't have to
    perform a bitwise search for selected fds each time file
    descriptors are polled for I/O readiness.

  o The thread scheduler was modified to use a new queue (_workq)
    for threads that need work.  Threads waiting for I/O readiness
    and spinblocks are added to the work queue in addition to the
    waiting queue.  This reduces the time spent forming/searching
    the array of file descriptors being polled.

  o The waiting queue (_waitingq) is now maintained in order of
    thread wakeup time.  This allows the thread scheduler to
    find the nearest wakeup time by looking at the first thread
    in the queue instead of searching the entire queue.

  o Removed file descriptor locking for select/poll routines.  An
    application should not rely on the threads library for providing
    this locking; if necessary, the application should use mutexes
    to protect selecting/polling of file descriptors.

  o Retrieve and use the kernel clock rate/resolution at startup
    instead of hardcoding the clock resolution to 10 msec (tested
    with kernel running at 1000 HZ).

  o All queues have been changed to use queue.h macros.  These
    include the queues of all threads, dead threads, and threads
    waiting for file descriptor locks.

  o Added reinitialization of the GC mutex and condition variable
    after a fork.  Also prevented reallocation of the ready queue
    after a fork.

  o Prevented the wrapped close routine from closing the thread
    kernel pipes.

  o Initialized file descriptor table for stdio entries at thread
    init.

  o Provided additional flags to indicate to what queues threads
    belong.

  o Moved TAILQ initialization for statically allocated mutex and
    condition variables to after the spinlock.

  o Added dispatching of signals to pthread_kill.  Removing the
    dispatching of signals from thread activation broke sigsuspend
    when pthread_kill was used to send a signal to a thread.

  o Temporarily set the state of a thread to PS_SUSPENDED when it
    is first created and placed in the list of threads so that it
    will not be accidentally scheduled before becoming a member
    of one of the scheduling queues.

  o Change the signal handler to queue signals to the thread kernel
    pipe if the scheduling queues are protected.  When scheduling
    queues are unprotected, signals are then dequeued and handled.

  o Ensured that all installed signal handlers block the scheduling
    signal and that the scheduling signal handler blocks all
    other signals.  This ensures that the signal handler is only
    interruptible for and by non-scheduling signals.  An atomic
    lock is used to decide which instance of the signal handler
    will handle pending signals.

  o Removed _lock_thread_list and _unlock_thread_list as they are
    no longer used to protect the thread list.

  o Added missing RCS IDs to modified files.

  o Added checks for appropriate queue membership and activity when
    adding, removing, and searching the scheduling queues.  These
    checks add very little overhead and are enabled when compiled
    with _PTHREADS_INVARIANTS defined.  Suggested and implemented
    by Tor Egge with some modification by me.

  o Close a race condition in uthread_close.  (Tor Egge)

  o Protect the scheduling queues while modifying them in
    pthread_cond_signal and _thread_fd_unlock.  (Tor Egge)

  o Ensure that when a thread gets a mutex, the mutex is on that
    threads list of owned mutexes.  (Tor Egge)

  o Set the kernel-in-scheduler flag in _thread_kern_sched_state
    and _thread_kern_sched_state_unlock to prevent a scheduling
    signal from calling the scheduler again.  (Tor Egge)

  o Don't use TAILQ_FOREACH macro while searching the waiting
    queue for threads in a sigwait state, because a change of
    state destroys the TAILQ link.  It is actually safe to do
    so, though, because once a sigwaiting thread is found, the
    loop ends and the function returns.  (Tor Egge)

  o When dispatching signals to threads, make the thread inherit
    the signal deferral flag of the currently running thread.
    (Tor Egge)

Submitted by: Daniel Eischen <eischen@vigrid.com> and
              Tor Egge <Tor.Egge@fast.no>
1999-06-20 08:28:48 +00:00
ru
607e129aa7 Typo in previous commit. 1999-06-18 10:41:13 +00:00
ru
9271164c76 Mention that pid 1 is not affected by kill(-1, SIGXXX) too. 1999-06-18 10:24:12 +00:00
ken
0f6688579d Add a MAINTAINER line to modules that I maintain.
Suggested by:	brian, markm
1999-06-18 00:41:47 +00:00
green
e59750e81a Minor English corrections were made; SEE ALSO was also fixed (no commas). 1999-06-17 23:43:35 +00:00
mpp
b1e9f10d07 cam_get_device() was returning 0 on failure, and 1 on success, while
camcontrol(8) and the documentation in camlib.c and cam(3) all expect
-1 on failure and 0 on success.  Updated camlib.c to return the values
specified by the documentation.

PR:	12023
1999-06-15 20:03:01 +00:00
mpp
2cd441b065 Fix a minor style nit in the NAME section. 1999-06-11 16:26:29 +00:00
mpp
1921df27de Move the description of the strncmp() function from the RETURN VALUES
section to the DESCRIPTION section.

PR: 12133
Submitted by:	Sheldon Hearn <sheldonh@uunet.co.za>
1999-06-11 16:16:32 +00:00
markm
07cd729a94 Improvement in the description of what this does.
Prompted by (and thanks to): W Richard Stevens
1999-06-10 22:48:27 +00:00
dt
5eed7ee7eb Ensure that host_addr (which is returned in struct hostent::h_addr_list[0])
is aligned so that pointer to it can be safely casted to struct in_addr *.
1999-06-07 16:30:27 +00:00
steve
b93efa8e55 Spell the .St macro correctly.
PR:		11704
1999-06-07 03:59:56 +00:00
steve
a6a4f80145 Spell isinf(3) correctly.
PR:		11974
1999-06-07 02:42:31 +00:00
jdp
df6425d8e9 Call do_ctors() and do_dtors() using indirect calls through function
pointers.  The calls are in different sections from the functions
being called, and they can potentially be far away.  On a very large
program, the 21-bit displacement field of the BSR instruction
overflowed at link time.
1999-06-06 15:59:08 +00:00
jseger
d6a2cd571b Update of intro(2)/errno(2) in the ongoing effort of the Programmer's
Documentation Project <http://home.wxs.nl/~asmodai/pdp.html>

Submitted by:	Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
PR:		docs/12030
1999-06-06 14:15:14 +00:00
peter
d28492077d Change an internal variable from "class" to "ns_class" for C++'s benefit.
Apparently BIND-8.2.1 uses ns_class.

Submitted by: John Plevyak <jplevyak@inktomi.com>
1999-06-04 22:38:27 +00:00
wpaul
9e3dfa908e Apply patch for PR #12008: remember to reset _yp_enabled flag in
endpwent() so we don't trip over a NULL db pointer later.

PR: 12008
Submitted by: Valentin Netchayev <netch@lucky.net>
1999-06-04 02:27:35 +00:00
pb
8c6059be55 Typo.
PR:		docs/11832
Submitted by:	Ralf S. Engelschall <rse@engelschall.com>
1999-05-25 11:52:30 +00:00
wes
837de9e025 Added Posix rand_r function. 1999-05-24 23:30:14 +00:00
jb
5364aaf8c4 Added a missing comma to the static condition variable initialisation
definition.

Submitted by: David Leonard <David.Leonard@csee.uq.edu.au>, an OpenBSD guy.
1999-05-24 07:22:55 +00:00
jb
31bb8b56d3 Remove the static declaration from the line[] variable to allow
openpty() to be called from a threaded application.
1999-05-24 01:15:28 +00:00
brian
5bbb43364b brucify
Mentioned by: sprice@hiwaay.net
1999-05-23 13:52:05 +00:00
jb
82586364a4 Fix a problem with static initialisation of mutexes and condition
variables.

Submitted by: Dan Eischen <eischen@vigrid.com>
1999-05-23 10:55:33 +00:00
dfr
5894a6cb32 Cope with non page-aligned arguments to ioperm. 1999-05-22 17:35:04 +00:00
obrien
30ee4a3e51 I seem to be having some CVS problems... I don't know why this wasn't
commited with the Makefile fixes.  CVS/Entries clearly show it being added...
1999-05-22 16:21:47 +00:00
obrien
0b384e01a5 Add an a.out ld.so so these distributions are standalone. 1999-05-21 18:40:54 +00:00
obrien
af7e227d79 Need a few more dependacies. 1999-05-21 18:37:33 +00:00