Commit Graph

3274 Commits

Author SHA1 Message Date
dt
a7384847f3 Add (FILE *) locking. 1999-11-20 14:52:03 +00:00
dt
f9b921b5dc Make __sfp() (FILE allocator) thread-safe: added locking like in malloc(). 1999-11-20 14:01:48 +00:00
obrien
5784932e27 Fix HISTORY - the copyright header on the file of the GCC version was
misleading.

Submitted by:	Theo de Raadt <deraadt@cvs.openbsd.org>
1999-11-20 00:15:17 +00:00
obrien
d599d4597c Add to the HISTORY. 1999-11-19 17:13:31 +00:00
roberto
8eb32b0a5c The "acfcomp" field is not in the structure anymore. There may be a better
way to do that but it fixes buildworld.

World broken by: archie :-)
1999-11-19 10:51:16 +00:00
jdp
e6ef049a31 For the TCP transport, put the listening socket in non-blocking
mode.  This addresses a well-known race condition that can cause
servers to hang in accept().  The relevant case is when somebody
connects to the server and then immediately kills the connection
by sending a TCP reset.  On the server this causes select to report
a ready condition on the socket, after which the accept call blocks
because there is no longer any pending connection to accept.

In -current there is already a work-around for this in the kernel.
It was merged into -stable some time ago, but then David Greenman
reverted it because it seemed to be causing a socket leak in some
cases.  (See uipc_socket.c revision 1.51.2.3.)  Hence this userland
fix is needed in -stable, and I plan to merge it into that branch
soon because it fixes a potential DoS attack.  It may also be needed
in -current if the suspected socket leak turns out to be real.  In
any case, after thinking it over I believe the fix belongs in
userland.  An application shouldn't assume that a ready return from
select guarantees that the subsequent I/O operation cannot block.
A lot can happen between the select and the accept.

A similar fix should most likely be applied to the Unix domain
socket transport too.

Submitted by:	peter
Reviewed by:	jdp
1999-11-18 03:01:06 +00:00
brian
74c8c41cdf Make setproctitle(NULL) restore all of the original arguments
(if it's able).
1999-11-17 21:12:17 +00:00
jdp
1e25443f78 Fix a bug in the hack that protects against FTP bounce attacks.
It used to loop back up to the accept() call and block there,
shutting out all other transports until a new connection came in.
Now it returns instead after dropping the connection.  That will
take it back to the select() loop where all transports can be
serviced.  I intend to MFC this within a day or two since it
fixes a DoS vulnerability.
1999-11-17 01:54:17 +00:00
peter
42492554c2 Don't complain loudly about unknown termcap capabilities, eg:
{vladivostok:/usr/home/ken:1:0} echo |more
"TERMCAP", line 0, col 60, terminal 'screen': unknown capability 'G0'
"TERMCAP", line 0, col 806, terminal 'screen': unknown capability 'AX'

Submitted by:	Kenneth D. Merry <ken@kdm.org>
1999-11-17 01:01:02 +00:00
phk
9e8e07135f Introduce commandline caching in the kernel.
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster,
and makes ps(1) even less dependent on /proc which will aid chroot and
jails alike.

To disable this facility and revert to previous behaviour:
        sysctl -w kern.ps_arg_cache_limit=0

For full details see the current@FreeBSD.org mail-archives.
1999-11-16 20:31:58 +00:00
sheldonh
d184788f57 Add to pwd_mkdb a -q option to silence warnings about large IDs. Add a
suitably ominous warning in the manual page.

The diff applied is not the one provided in the attributed PR.

PR:		13344
Reviewed by:	bde
1999-11-15 16:45:37 +00:00
kris
bd25d03150 fts_pathlen and fts_namelen are u_short, not short
Obtained from:	OpenBSD
1999-11-15 03:29:19 +00:00
kris
0bd1e877d6 Typo
Obtained from:	OpenBSD
1999-11-15 03:13:23 +00:00
chris
0a858ce84b Properly document what ENOENT really means for kldfind(2). 1999-11-14 18:15:33 +00:00
marcel
e753d26909 Don't include Kerberos if NOCRYPT is defined, because it isn't build
if NOCRYPT is defined. Likewise, don't include DES if NOSECURE is
defined.
1999-11-14 15:48:29 +00:00
marcel
b6a67d6d2b ${MACHINE} -> ${MACHINE_ARCH}
All Makefiles now use MACHINE_ARCH for the target architecture.
Unification is required for cross-building.

Tags added to:
	sys/boot/Makefile
	sys/boot/arc/loader/Makefile
	sys/kern/Makefile
	usr.bin/cpp/Makefile
	usr.bin/gcore/Makefile
	usr.bin/truss/Makefile

usr.bin/gcore/Makefile:
	fixed typo: MACHINDE -> MACHINE_ARCH
1999-11-14 13:54:44 +00:00
peter
2df6207632 Go to a bit more trouble to make it absolutely clear that malloc(3)
does not zero the allocated memory.
1999-11-12 16:41:21 +00:00
peter
c410dc5e8e Repo copy ncp_cfg.h ncp_lib.h ncp_file.h ncp_rcfile.h from here to
sys/netncp/*.  Disconnect them from here to avoid breakage.

Submitted by:	 bp
1999-11-12 15:09:58 +00:00
sheldonh
1a395d7546 Decremement by 1 the value taken for %j before assigning it to tm_yday,
which is zero-based.

Correct the range checking for the value taken for %S.

Add %w for the day of the week (0-6).

Accept (but do nothing with) %U and %W.  The comment for this change was
taken from NetBSD.

These changes were made after several failed attempts to contact the
author of our strptime.c .

PR:		10131
Submitted by:	tadf@kt.rim.or.jp (Tadayoshi Funaba)
1999-11-10 14:40:59 +00:00
yokota
b4f4905f17 Fix the VGLBITMAP_INITIALIZER macro; VXsize and VYsize should
be the same as Xsize and Ysize.
1999-11-09 12:11:24 +00:00
ache
463b815325 Fix dead loop if locale contains / and not all categories specified
PR:		14742
Submitted by:	peter@wahoo.com.tw
1999-11-09 11:09:16 +00:00
phantom
fa5ed2a6f3 Remove useless section.
PR:		docs/14764
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-11-09 00:28:34 +00:00
phantom
6ebe6aadcb Restore sub-chapters order.
PR:		docs/14766
Submitted by:	Kazutoshi Kubota <kazu@iworks.co.jp>
1999-11-09 00:24:09 +00:00
phantom
231f0c06b8 style fix
PR:		docs/14737
Submitted by:	Norihiro Kumagai <kuma@nk.rim.or.jp>
1999-11-09 00:18:22 +00:00
yokota
7cf34e340e - This is the new version of libvgl jointly developed by sos and I.
It adds new functions and extend some structures and can handle
  VESA modes.
- Update the man page.
- Bump the library version number.

(The old version will be added to compat3x.)
1999-11-08 11:37:46 +00:00
eivind
406386445d Flag empty UID entries as errors (to stop typos from turning into
alternate root accounts).
1999-11-06 20:21:04 +00:00
jkoshy
2c048b0d9a Link manual page for login_getpwclass(3) to login_cap(3).
PR:             docs/14673
Submitted by:   Andrew <andrew@ugh.net.au>
1999-11-04 08:33:18 +00:00
ache
9f1599b8c2 Add unsigned char cast to isalpha 1999-11-04 05:01:28 +00:00
ache
6da6a6c803 Add unsigned char cast to isdigit 1999-11-04 04:57:05 +00:00
ache
855400be49 Add unsigned char cast to is[x]digit 1999-11-04 04:52:34 +00:00
ache
258e127611 Add unsigned char cast to isdigit 1999-11-04 04:46:18 +00:00
ache
fc9900cdbf Add unsigned char cast to isupper 1999-11-04 04:40:56 +00:00
ache
9770c0df29 unsigned char cast to ctype macros 1999-11-04 04:35:33 +00:00
ache
e80431917e Add unsigned char cast to ctype macros arg 1999-11-04 04:30:44 +00:00
ache
006d9606ec Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
green
ba1203aa74 Fix a really lame buglet which broke with IPs of 34
(ERANGE...)
1999-11-03 04:18:34 +00:00
bp
447387e892 Change structure field tolower to to_lower. The same for the toupper. 1999-11-03 03:17:31 +00:00
joerg
86b55de701 It is no longer necessary to prepend underscores to external symbols under
ELF.

Submitted by:	A.Leidinger@WJPServer.CS.Uni-SB.de (Alexander Leidinger)
1999-11-02 18:18:26 +00:00
msmith
44d68af88d Teach libdisk about the AMI and Mylex RAID drivers. You should be able
to install directly to arrays managed by these controllers now.
1999-11-02 03:40:14 +00:00
nik
f61485a3ee Document that bind(2) can fail with EAGAIN.
PR:             docs/14173 docs/14181
Submitted by:   Charles Randall <crandall@matchlogic.com>
Submitted by:   Kelly Yancey <kbyanc@posi.net>
1999-11-01 19:43:07 +00:00
jdp
0a52299003 Add support for RADIUS accounting. Note, this changes the format
of the /etc/radius.conf file.   But the code contains hacks for
backward compatibility, so old files will continue to work.

I updated the man pages and made a couple of minor changes, but
everything else was submitted by Oleg.

PR:		misc/14284
Submitted by:	Oleg Semyonov <os@altavista.net>
1999-10-31 04:47:59 +00:00
green
910a2f435e Allow whitespace termination. Internal use of /etc/resolv.conf relies
on this, and who knows what else would, too...
1999-10-31 04:43:55 +00:00
green
b930fc417e This is the new inet_addr/inet_aton with proper error checking. This
should close all outstanding PRs on incorrect inet_aton behavior, and
since it has a decent parsing routine, doesn't allow some hysterically
working behavior.

PR:		13628
Submitted by:	Adrian Chadd <adrian@FreeBSD.org>
1999-10-31 04:07:56 +00:00
bp
2a2e1c0de0 Add support for C++ in the headers. Some style cleanup.
Pointed by:	bde
1999-10-31 03:39:03 +00:00
mpp
3bd6acff44 Minor mdoc cleanup. 1999-10-30 19:29:45 +00:00
phantom
4b7034d789 mdoc(7)'fy 1999-10-30 15:12:25 +00:00
obrien
88a2a06a57 Add HISTORY. 1999-10-29 16:50:22 +00:00
bp
e039eb5fe8 Handle SAP responces in a more correct way. Allow connection number
greater than 255 in the broadcast messages.
1999-10-29 12:59:59 +00:00
peter
11b8895b47 Add $FreeBSD$ - not that it makes much difference, but this is mainly meant
to try and persuade folks that it *is* possible to add comments/text/etc
to uuencoded files and so they don't keep asking me about it.
1999-10-29 01:20:50 +00:00
phantom
789d64958d Complete page reorganization. I have splited FUNCTIONS section into
two subsections: SINOPSIS (declarations) and DESCRIPTION (descriptions)
All functions now mentioned in NAME section (apropos capable manpage :)
Various mdoc fixe
1999-10-28 15:51:50 +00:00