Commit Graph

5639 Commits

Author SHA1 Message Date
christos
ec4fa3bdcc remove redundant declaration of _seterr_reply. Already declared in
<rpc/rpc_msg.h>
2000-12-10 04:10:08 +00:00
christos
f92dc9c439 unnest nested extern declaration. 2000-12-10 03:59:00 +00:00
christos
94a9754eeb #ifdef out duplicate declaration for unlink. 2000-12-10 03:56:31 +00:00
christos
bfa2813aa9 remove duplicate declaration. 2000-12-10 03:54:22 +00:00
christos
a2df081a7e -Wredundant-declarations does not like nested extern declarations. 2000-12-10 03:52:16 +00:00
mycroft
10bfc7b1b3 Use the SYSTRAP() macro more uniformly. 2000-12-08 22:57:57 +00:00
tron
9ef96a455e Fix oversight in last commit. 2000-12-08 21:41:14 +00:00
scw
c762ba1426 Use A1 to save the return address, since A0 is no longer preserved across
system calls.
2000-12-07 14:13:43 +00:00
scw
4cc90c99f2 The last change broke things if SYS___vfork14 returned an error; fix it. 2000-12-07 14:12:49 +00:00
tron
a3a468eeaf Add two new passwd file update functions:
- The pw_setprefix() function defines the root directory used for passwd
  file updates. If the prefix is set to /newroot pw_lock() will operate on
  /newroot/etc/ptmp afterwards. The default prefix is an empty string.
- The pw_getprefix() function returns the root directory which is currently
  used for passwd file updates.
2000-12-06 13:37:53 +00:00
is
0bffee4893 The mapping is, effectively, an exclusive or with 0x01. Replace.
Savings: 10 bytes of code/constant data, 1 machine instruction (including
one memory access).
2000-12-04 12:02:08 +00:00
ad
c9305d1df0 Fix comment. 2000-12-03 13:01:37 +00:00
scw
6751bb4f81 Save the return address in %a1 across the vfork syscall instead of %a0. 2000-12-02 17:03:06 +00:00
scw
c586587e47 Restore %a0 after the call to sigprogmask(2) since an ELF kernel
will stomp on it due to SVR4 ABI compliance...
2000-12-02 16:25:39 +00:00
christos
ebb980fc21 This is for completeness only (to make fdopen symmetric with fopen and freopen)
and to match the documentation. Return an error if "f" was specified and the
file descriptor does not refer to a plain file.
2000-11-29 15:36:42 +00:00
christos
8955e88e2f Add checks for O_NDELAY [which indicates that we only want plain files],
and return an error if the file was not plain.
2000-11-29 15:31:10 +00:00
christos
2a213d0e9a make sure we preserve errno. 2000-11-29 15:30:20 +00:00
matt
1ebd90e347 Add -${MAKEFLAGS} so that make options (like -m) get used for the submake 2000-11-29 09:25:22 +00:00
jmc
50b6095c16 Alloc the keys structure with A_K_NKEYS as the multiplier rather than a
hardcoded value of 4.

A_K_NKEYS is currently 6 and this mismatch was stomping memory when
initializing the keys. (specifically gdb lost the exec file name if it was
a long path name).
2000-11-28 22:37:51 +00:00
is
a4fe32b56e Another change by Hiroshi Horimoto. 2000-11-28 15:23:09 +00:00
scw
c81e32f3dd Add missing register prefixes. 2000-11-28 11:37:20 +00:00
scw
4dab4ff2ca Add a missing `%' register prefix. 2000-11-28 11:34:14 +00:00
is
a3a6f324e6 Use dbeq loops, code submitted by Hiroshi Horimoto in PR 3223, integrated
and tested by Allen Briggs.
Needs 1/3 less time on 68030, 45% less time on 68040.
XXX On 68060, 1/2 less time for the padding part, but 40% more time on the
copy part. I've stared at the 68060 User Manual, but can't understand why;
must be some wierd (branch) cache interaction.
2000-11-27 22:35:30 +00:00
wiz
e7775dbf9e Be SUS-conformant regarding return value when option argument is missing.
Handle "-" correctly.
2000-11-26 23:39:11 +00:00
wiz
7af3cfc292 Reorder sections to conform more to mdoc.samples; remove non-mdoc
section header; fix two typos.
2000-11-26 22:35:53 +00:00
itojun
a1ce29330c sync with latest openbsd.
comment in strlcat(3) was wrong about return value.
2000-11-24 16:19:05 +00:00
itojun
1bc25f5914 strictly conform to RFC2553 (specifically ENXIO case). sync with KAME 2000-11-24 08:21:12 +00:00
wiz
efaced1f8c fix typo 2000-11-21 23:35:10 +00:00
jdolecek
b0074dd768 back out majority of rev 1.5, left stuff from rev. 1.5 is:
* () --> {} change
* removal of redundant explicit dependency 'asn1.h: asn1.hx'
2000-11-19 20:29:05 +00:00
itojun
4f72111370 re-introduce netbsd fix 1.5 -> 1.6, which was mistakenly removed.
pointed by Gui Harris.

---
Fix a hairy optimizer bug that causes the expression:
'ip and ((icmp and dst host 1.1.1.1 and not host 2.2.2.2) or (host 1.1.1.1 and src host 3.3.3.3))'
to compile incorrectly.  Details about to be mailed to LBL.
2000-11-19 13:18:03 +00:00
veego
4d9226fbc0 Backout parts of rev 1.5.
We need the SUBDIR here to create an obj directory in asn1_compile.
2000-11-19 10:56:05 +00:00
mrg
2d1d6239e4 document SWAP_DUMPDEV & SWAP_GETDUMPDEV. 2000-11-17 11:40:05 +00:00
pk
2c7ffcac2f Put back ${SRCS}: asn1.h', so a make depend' is not obligatory. 2000-11-17 09:57:55 +00:00
msaitoh
dedc9b2e09 Add forgotten initialization.
Fixed PR#11446.
2000-11-16 08:57:15 +00:00
lukem
73842568e7 english fixup 2000-11-16 07:25:36 +00:00
matt
f1ac0dd6e1 The prototype for fmtcheck is in <stdio.h> so we'd better include it. 2000-11-16 02:10:18 +00:00
jdolecek
794898fca8 clean up depends a little, add stuff to force compilation of
asn1_compile as needed, the SUBDIR stuff is no longer used
this is primarily to avoid parsing k5.asn1 on every visit here
2000-11-13 15:08:16 +00:00
jdolecek
cc6c70f0da make a bit more silent and avoid 'compile_et is up to date' message 2000-11-13 15:05:30 +00:00
christos
ff59a2fadd - add support for home and end keys.
- improve debugging support
2000-11-11 22:18:57 +00:00
wiz
1c35e133b0 Install html documentation for libbz2/bzip2.
Reviewed by Simon Burge.
2000-11-10 02:00:09 +00:00
wiz
3f39888ac6 Install (lib)bzip2 info file, as requested by NAKAJIMA Yoshihiro in PR 7402. 2000-11-08 02:15:13 +00:00
lukem
cff6006e56 improve description of line syntax 2000-11-08 00:09:38 +00:00
blymn
c2a9885658 Added libform specific error code. 2000-11-07 10:59:27 +00:00
lukem
279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
jdolecek
30ca1a2a3e add missing ' is ' in regerror() explanation 2000-11-06 13:20:58 +00:00
christos
119c9cb003 add a lint comment. 2000-11-05 20:05:29 +00:00
itojun
455900d894 always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
2000-11-04 15:35:43 +00:00
itojun
a09524d498 update bindtextdomain() handling to be conformant to spec. we need to
maintain database for (domain, path).  sync with citrus.
2000-11-03 14:29:22 +00:00
itojun
c070a07602 supply _nl_msg_cat_cntr, just to make gettext.m4 happy. sync with citrus.
(I do not get gettext.m4's approach here)
2000-11-02 10:24:48 +00:00
eeh
5d73d71676 Fix modf() (I hope. Can't be any worse than the old version.) 2000-11-01 23:32:41 +00:00
itojun
4dd96530bc make the following behavior compatible with GNU gettext.
bindtextdomain(foo, path)
	textdomain(foo)
and message file is found under "path" only.  sync with citrus.
2000-11-01 03:39:21 +00:00
itojun
a8735e2859 do not build libintl if MKNLS=no 2000-11-01 01:21:21 +00:00
briggs
2c5b165052 fmtcheck() should be declared as fmtcheck(), not __fmtcheck().
The weak_alias is __fmtcheck().  matt@3am-software.com pointed this out
as a problem when trying to build on a vax.
2000-11-01 01:17:20 +00:00
itojun
511f411d40 we do not allow relative pathname 2000-10-31 16:11:32 +00:00
itojun
099fdc2a17 less warnings on lint. be more friendly with align-picky arch. 2000-10-31 16:02:52 +00:00
itojun
0ad204abb5 fix default domain name handling. why textdomain() and bindtextdomain()
behaves so different?  sync with citrus.
2000-10-31 15:23:04 +00:00
itojun
953ed8c2ba declare .Lb symbol for libintl. 2000-10-31 15:08:29 +00:00
lukem
afc75b9e6d Don't getenv $HESIOD_CONFIG or $HES_DOMAIN if issetugid().
Initial problem noted by Danny Braniss <danny@cs.huji.ac.il>
via Jacques A.  Vidrine <n@nectar.com>
2000-10-31 12:47:21 +00:00
itojun
78c48ba46f remove confusing goto. sync with citrus 2000-10-31 11:08:18 +00:00
itojun
435b1e303d fix read(2) return value validation. sync with citrus 2000-10-31 11:05:22 +00:00
itojun
c70cd35ba7 bind_textdomain_codeset() always fails. sync with citrus 2000-10-31 10:53:49 +00:00
itojun
dd5efd6d45 enable lib/libintl. 2000-10-31 10:46:34 +00:00
itojun
bb42e65bfe BSD-licensed libintl, fully compatible with GNU libintl (in GNU gettext).
from Citrus project xpg4dl repository.
2000-10-31 10:45:04 +00:00
matt
6ea9494104 be consistent in the use of u_long. eventually they should be uintptr_t. 2000-10-27 21:38:10 +00:00
itojun
bcab9b6601 define HAVE_IFM_ADDRS for non-bsdi. sync with kame 2000-10-27 15:48:49 +00:00
jdolecek
1c7d8af31d rewrite KERN_MAXPTYS description to match reality 2000-10-26 07:24:00 +00:00
erh
a5c46ce842 Document the PROFDIR environment variable. 2000-10-24 19:31:59 +00:00
briggs
d00ebb12e9 Add {__,}fmtcheck(), a function specified by Bill Sommerfeld to check
a user-supplied format string against a fallback format string to ensure
that they will consume arguments of the same type.

libc minor bump for new API entry point.
2000-10-20 18:46:05 +00:00
kleink
78eeef4b49 Actually EINVAL fits the circumstances better. 2000-10-19 09:47:43 +00:00
kleink
20b0e10891 C99: Passing a null pointer as the buffer argument to snprintf() and
vsnprintf() is permitted when the size argument is zero as well; mostly
from Peter Seebach in PR standards/9603.
2000-10-19 09:45:31 +00:00
kim
6ec737498a Make "f" standout better. 2000-10-18 15:40:52 +00:00
erh
2686020623 Squash lint errors by using size_t instead of u_int to avoid differing sizes of data. 2000-10-16 04:12:55 +00:00
itojun
4c0a48380a /etc/login.conf is optional, so don't return NULL even if
there's none found.  addresses part of PR 11150.  sync with openbsd.
2000-10-12 00:28:33 +00:00
itojun
11ede04dd7 cosmetic; indentation 2000-10-12 00:19:57 +00:00
phil
cc543121c5 Document the behaviour with consecutive separator characters. 2000-10-11 18:26:04 +00:00
jeffs
4912e50a59 Make memcpy and memmove use bcopy assembly for mips. Tweak forward copy
code for backward copy to make overlap copy faster.  This happens in
some SW like sleepycat db.  Use temp labels in order to not confused
the profiling tools.
2000-10-10 21:51:54 +00:00
he
dd0d61e300 Use %lx instead of %x with _kvm_err when arg is u_long. 2000-10-10 20:44:16 +00:00
is
a9006f3ed5 Format string cleanup by sommerfeld. 2000-10-10 19:23:58 +00:00
is
e999d8013c Format string cleanups by sommerfeld. 2000-10-10 19:12:48 +00:00
is
8d4a392e3d Format string cleanup by sommerfeld. 2000-10-10 19:09:38 +00:00
is
f518246fc1 Format string cleanup, by Bill Sommerfeld. 2000-10-10 18:09:25 +00:00
itojun
5e09a97a4e login_cap.h requires sys/types.h (or should it pull sys/types.h in?) 2000-10-10 13:17:28 +00:00
toshii
4acc4fc7fe lfs_bmapv -> lfs_markv 2000-10-09 09:34:00 +00:00
itojun
ffc3a749e5 we already have all fixes toward 0.4 (v0.4 Sat Jul 25 12:40:09 PDT 1998 -
note that there are MULTIPLE 0.4), so update version identification.
2000-10-08 14:28:05 +00:00
nathanw
76bc7abc93 Use ".Fa stat" instead of ".Fn stat" when referring to the structure
rather than the function.
2000-10-07 16:48:24 +00:00
itojun
c68d2a0c47 s/MAN1/MAN/ 2000-10-07 04:23:32 +00:00
jdolecek
f5cb6bbd84 update(8) is gone, put in some info about ioflush
this addresses bin/11141 by Nick Hudson
2000-10-06 19:54:26 +00:00
jdolecek
a69cc94b83 kill references to update(8), it doesn't exist any more
this addresses bin/11141 by Nick Hudson
2000-10-06 18:53:28 +00:00
thorpej
761a000d3c Add pcap_compile_nopcap() from the most recent libpcap release
from tcpdump.org, although with a slightly different signature.
The tcpdump.org version has no way to report an error string back
to the caller.  This version takes an additional "errbuf" argument
(similar to pcap_open_*()).
2000-10-06 16:39:24 +00:00
ad
5b09090e8e insure -> ensure 2000-10-05 12:35:33 +00:00
itojun
8f6dee4c39 make random(3) manpage meet with actual implementation.
argument to srandom() and initstate() were changed in
lib/libc/stdlib/random.c 1.28 -> 1.29, and manpage was left behind.
2000-10-05 06:21:53 +00:00
enami
3cc984aab8 Make this file compiles on alpha. 2000-10-05 03:21:01 +00:00
itojun
05a03575d1 avoid conflicting manpage filenames (like err.3) 2000-10-05 01:55:49 +00:00
sommerfeld
934ef16427 Format size mismatch 2000-10-04 18:12:01 +00:00
sommerfeld
12c2f5bd9a Add format checking 2000-10-04 17:12:01 +00:00
sommerfeld
8aefd97377 Format string audit cleanup (increase format checking) 2000-10-04 16:24:49 +00:00
sommerfeld
acf589519a format string audit (silence warnings, save space) 2000-10-04 16:21:39 +00:00
sommerfeld
f9d3ae0fbb format-string audit cleanups 2000-10-04 16:11:27 +00:00
sommerfeld
4c38fc5aac Varargsify dprintf to allow for format string checking 2000-10-04 14:56:24 +00:00
sommerfeld
76a009b2be Avoid compile-time variable format string (format audit) 2000-10-04 14:52:27 +00:00