Commit Graph

1706 Commits

Author SHA1 Message Date
Andrey A. Chernov 3c7ffaa1fe Add unsigned char cast to isupper 1999-11-04 04:40:56 +00:00
Andrey A. Chernov 3fb85bff81 unsigned char cast to ctype macros 1999-11-04 04:35:33 +00:00
Andrey A. Chernov 9ea99d349b Add unsigned char cast to ctype macros arg 1999-11-04 04:30:44 +00:00
Andrey A. Chernov 49435560cc Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
Brian Feldman 433a027b0e Fix a really lame buglet which broke with IPs of 34
(ERANGE...)
1999-11-03 04:18:34 +00:00
Joerg Wunsch c786c636ba 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
Nik Clayton de1efdfc1a 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
Brian Feldman 8308463eba 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
Brian Feldman 28585846d6 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
Alexey Zelkin e1e5fdf6d4 mdoc(7)'fy 1999-10-30 15:12:25 +00:00
David E. O'Brien dd4bd1e7ba Add HISTORY. 1999-10-29 16:50:22 +00:00
David E. O'Brien dd30998fb1 "S" comes before "U"...
Alphabet taught to Green by:	obrien
1999-10-25 03:51:01 +00:00
Andrey A. Chernov 5eb8ccf583 Remove UNSAFE_WARN ifdef for mktemp warning (never defined)
Use _mktemp internally
1999-10-24 11:57:24 +00:00
Andrey A. Chernov 0200080b60 YP/NIS code: remove unnecessary endgrent() calls which can cause fail on
next try over chroot (descriptor closed). getgrnam() used already handles
endgrent() properly and honors _gr_stayopen. Automatically call
setgroupent(1) when _pw_stayopen is set (for YP/NIS code).
1999-10-16 12:31:49 +00:00
Andrey A. Chernov 8b7690ea77 Fix longstanding bug "unused stayopen" introduced in rev1.11
PR:		14201
1999-10-16 11:50:37 +00:00
Marcel Moolenaar 7023c66887 Remove osig* from NOASM. It bogus now. 1999-10-14 10:00:39 +00:00
John Polstra bdf5faebaf In longjmp, call sigreturn instead of osigreturn. The latter isn't
visible from userland any more.

Reviewed by:	luoqi
1999-10-14 01:16:51 +00:00
Marcel Moolenaar e28ceff6d6 Not needed now the syscall matches the prototype. 1999-10-12 09:38:57 +00:00
Marcel Moolenaar 23cd96d8ce \begin{quote}
setjmp() gets the jmp_buf pointer from the wrong place (the place
where the return address is) in the shlib case, and uses it (only)
to fetch the current signal mask to address (return_address + 28).
This address is normally read-only (I hope), so the sigprocmask()
call has no effect except to return an error code.
\end{quote}

Submitted by: bde
1999-10-10 08:38:33 +00:00
Marcel Moolenaar 0cec71466c Remove syscall wrappers. 1999-10-09 15:27:09 +00:00
Doug Rabson a51c074b64 Remove old sig* wrappers. 1999-10-09 12:11:31 +00:00
Wes Peters 9466cad206 Correct the description of the timeout argument. I've examined
the code, which seems to implement the POSIX requirements, and
have described the behavior here.  Basically, it behaves the same
as select(2).

Noticed by: John Polstra
1999-10-09 01:35:58 +00:00
John Polstra 2bc2b29270 Fix sigvec(). When the sigset_t changes came in, it was altered
to call osigaction().  But that's wrong because it causes the
handler to receive a struct osigcontext instead of the expected
struct sigcontext.  Use sigaction() instead, copying the compatible
portion of the signal mask.

Reviewed by:	marcel
1999-10-09 00:25:29 +00:00
Marcel Moolenaar 075ff1d959 o Add $FreeBSD$ as a rcsid instead of in a comment
o  Remove bitrotted #undef directives
o  Actually set errno now and order the functions

Submitted by: bde
1999-10-02 19:37:14 +00:00
Marcel Moolenaar e25ad0cbaf o Add $FreeBSD$ as a rcsid instead of in a comment.
o  Fix formatting
o  Return the error if sigprocmask fails instead of undefined data.

Submitted by: bde
1999-10-02 19:24:24 +00:00
John Polstra e05d1ffe18 Fix misspelling of the "addq" opcode. 1999-09-29 21:10:25 +00:00
Marcel Moolenaar 3cf3c5d9dd sigset_t change (part 5 of 5)
-----------------------------

Most of the userland changes are in libc. For both the alpha
and the i386 setjmp has been changed to accomodate for the
new sigset_t. Internally, libc is mostly rewritten to use the
new syscalls. The exception is in compat-43/sigcompat.c

The POSIX thread library has also been rewritten to use the
new sigset_t. Except, that it currently only handles NSIG
signals instead of the maximum _SIG_MAXSIG. This should not
be a problem because current applications don't use any
signals higher than NSIG.

There are version bumps for the following libraries:
  libdialog
  libreadline
  libc
  libc_r
  libedit
  libftpio
  libss

These libraries either a) have one of the modified structures
visible in the interface, or b) use sigset_t internally and
may cause breakage if new binaries are used against libraries
that don't have the sigset_t change. This not an immediate
issue, but will be as soon as applications start using the
new range to its fullest.

NOTE: libncurses already had an version bump and has not been
      given one now.

NOTE: doscmd is a real casualty and has been disconnected for
      the moment. Reconnection will eventually happen after
      doscmd has been fixed. I'm aware that being the last one
      to touch it, I'm automaticly promoted to being maintainer.
      According to good taste this means that I will receive a
      badge which either will be glued or mechanically stapled,
      drilled or otherwise violently forced onto me :-)

NOTE: pcvt/vttest cannot be compiled with -traditional. The
      change cause sys/types to be included along the way which
      contains the const and volatile modifiers. I don't consider
      this a solution, but more a workaround.
1999-09-29 15:18:46 +00:00
Peter Wemm 1ce6e9e1c5 Back out my backout, it was already posix compliant. Any new fields are
required to be "announced" by a new bit in sa_flags to indicate the
program is aware of and has taken care of them.  eg: SA_SIGINFO means
the program has used the sa_siginfo field (versus sa_handler).
1999-09-28 16:58:46 +00:00
Peter Wemm cde8d55a02 Fix previous commit. The standards specifically say: "The structure
sigaction, used to describe an action to be taken, is defined in the
header <signal.h> to include at least the following members:"
                             ^^^^^^^^
A sigaction defined on stack with essentially random contents may have
just about anything underneath fields that the program doesn't know about.
It is not safe to delete the bzero.
1999-09-28 15:40:17 +00:00
Marcel Moolenaar 06ceca4d89 Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.
1999-09-28 13:26:11 +00:00
Marcel Moolenaar 4c9d9fc620 Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.

$FreeBSD$ tag added.
1999-09-28 13:24:13 +00:00
Warner Losh 4e2abf95a3 Xref strlcat, strlcpy
Inspired by: NetBSD commit message describing this.
1999-09-28 04:11:47 +00:00
Chris Costello 0df0b5481f Change .Fn to .Xr on a couple of lines where abort(3) is referenced. 1999-09-25 22:42:12 +00:00
Alexey Zelkin 96648c2dc8 mdoc(7)'fy 1999-09-23 13:45:43 +00:00
Alexey Zelkin 73bc9316d7 Nuke dlopen.3 -> dlversion.3 link.
This function was removed by jdp in rev.1.5 of dlopen.3

Forgoten by: jdp
1999-09-23 13:26:41 +00:00
Alexey Zelkin 466d6dc43b Add gencat(1) to SEE ALSO section.
PR:		docs/13658
Submitted by:	Zahemszky Gabor <zgabor@code.hu>
1999-09-22 22:44:42 +00:00
Alexey Zelkin 11d8c7ad68 Add links for errc.3, verrc.3, warnc.3, vwarnc.3.
PR:		docs/13222
Submitted by:	Ben Smithurst <ben@scientia.demos.co.uk>
1999-09-22 22:12:23 +00:00
Ruslan Ermilov bd8beb9b80 If `who' was not specified, set the appropriate bits as the chmod(1)
manual page states.  `chmod +s foo' and `chmod +t foodir' now work.

PR:		13889
1999-09-22 13:02:50 +00:00
Alexey Zelkin 3a049969b5 mdoc(7)'fy
Reviewed by:	mpp
1999-09-21 19:39:27 +00:00
Wes Peters 58ae401b79 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
Wes Peters 236cb8163d 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
Alexey Zelkin c6d6e7726f 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
Alexey Zelkin aec5b6f6af Fix typo
PR:		docs/13814
Submitted by:	Alex Vasylenko <lxv@mix.nest.org>
1999-09-19 17:57:35 +00:00
Poul-Henning Kamp 978f8d9300 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
Dmitrij Tejblum e755fb7671 __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
Dmitrij Tejblum 03a7efc234 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
Dmitrij Tejblum da3785ef12 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 Perlstein 07181581f9 Add FreeBSD history in 'HISTORY'
Pointed out by: obrien
1999-09-11 21:07:14 +00:00
Bruce Evans 665e2b8d01 Fixed disordering in previous commit. 1999-09-11 14:20:18 +00:00
Alfred Perlstein 6e5eff6270 Document fhopen, fhstat, and fhstatfs syscalls.
Obtained from:	NetBSD
1999-09-11 00:49:10 +00:00