Commit Graph

985 Commits

Author SHA1 Message Date
christos 3911c122ef add fts_safe_changedir() function and use it everywhere.
Idea from Todd Miller <millert@openbsd.org>
2001-07-09 21:33:03 +00:00
simonb 1704d52d02 Don't need to include <string.h> unless REALLY_SET_PROGNAME is true. 2001-07-09 00:58:22 +00:00
simonb 9bcd87074c Don't need to include <string.h>. 2001-07-09 00:57:58 +00:00
mrg 5812b2fe67 avoid an underrun in "buf". noted by dean@huxley.org in PR#13292 2001-06-25 15:34:08 +00:00
christos e4ad645398 oops, make sure we close the file descriptor... 2001-06-06 14:10:46 +00:00
christos 4a37917f04 Fix problem reported by Kris Kennaway <kris@obsecurity.org>; In
the default case fts(3) uses chdir("..") to ascend the tree. The
sequence of chdir's can be intercepted by a malicious user who
moves a subtree that fts is currently traversing to a higher level,
thus making fts operate outside it's original starting directory.
2001-06-05 17:05:11 +00:00
wiz 8810d7f022 Whitespace fixes, punctuation fix, NetBSD -> Nx. 2001-06-05 13:25:57 +00:00
wiz e93878b173 Uppercase Dt argument, fix AUTHORS section name. 2001-06-05 12:18:10 +00:00
wiz cacd6836b5 Uppercase Dt argument, fix typos, remove an empty line. 2001-06-05 12:16:23 +00:00
kleink b93e84a4ee Fix return value interval; from Tadayuki OKADA in PR lib/12984. 2001-05-23 01:08:50 +00:00
kleink 15318b7678 Internally rename sysconf() to __sysconf() to make its latter name suitable
for use from public headers.  Also, do so on all platforms.
2001-05-07 17:25:57 +00:00
matt 78aee7b9ec Enable ELF32 support for VAX. 2001-05-03 08:23:13 +00:00
kleink 08c6392504 Need <limits.h> in _CTYPE_PRIVATE environments. 2001-04-17 20:12:31 +00:00
toshii e81e43cbf6 KERN_RTC_OFFSET sysctl has been readonly. 2001-04-12 07:20:39 +00:00
christos 4331e2615e Fix sentinel for the buffer in globtilde. It was off by x 2. Noted by Theo. 2001-04-03 14:50:37 +00:00
wiz feb5cd7b0b Remove trailing space from comment line. 2001-04-02 18:27:13 +00:00
kleink d665068674 Emit a link warning for the old timezone() interface; from Nick Hudson. 2001-03-31 19:13:00 +00:00
kleink a495a577a0 Finally deprecate the old timezone() interface in favor of an XSH5
timezone/daytime pair; as proposed by J.T. in September, 1996.
Fixes PR standards/11807 by Nick Hudson.
2001-03-31 18:29:20 +00:00
christos c5da7a4cfa try to make this compile on 1.4.x 2001-03-28 22:53:40 +00:00
christos 5bc6f3f69d deal with buffer overflows for fixed length buffers. 2001-03-28 22:13:06 +00:00
christos 6f6e7c44eb KNF. no functional differences. 2001-03-28 21:16:48 +00:00
itojun 4b72eeeee5 net.inet.ip.maxfragpackets defines the maximum size of ip reass queue
(prevents fragment flood from chewing up mbuf memory space).
derived from KAME net.inet6.ip6.maxfragpackets.
2001-03-27 02:24:38 +00:00
cgd 1da7909939 clean up a bit, xref exit(3), and suggest use of EXIT_FAILURE. 2001-03-22 01:47:17 +00:00
christos 317bb0ea2f set gl_pathv to NULL after we free it. 2001-03-18 22:40:20 +00:00
christos 93b3db97f3 limit the amount of memory used, not the number of arguments used. 2001-03-16 21:09:05 +00:00
christos f913546a2e Implement GLOB_LIMIT that limits number of matches to ARG_MAX. 2001-03-16 20:34:08 +00:00
lukem c9cccc1354 reference <stdarg.h> not <varargs.h>, and separate out the synopsis
for vsyslog(3) from the rest after <stdarg.h>, as per printf(3)/vsprintf(3)
2001-03-14 06:12:35 +00:00
simonb 61bb060b34 Include <string.h> for memcpy() prototype. 2001-03-12 03:20:10 +00:00
cgd b42009b570 actually, don't define SHQUOTE_USE_MULTIBYTE 2001-03-10 22:37:54 +00:00
christos fc701562b4 make these lint properly.
1. don't use MB_CUR_MAX, but MB_LEN_MAX because MB_CUR_MAX is a variable.
2. return a size_t type.
3. added const cond on do while macros.
4. remove unused variables and code,
2001-03-10 20:54:53 +00:00
cgd 360514740c Add shquote() and shquotev(). From the manual page:
The shquote() and shquotev() functions copy strings and transform the
     copies by adding shell escape and quoting characters.  They are used to
     encapsulate arguments to be included in command strings passed to the
     system() and popen() functions, so that the arguments will have the cor-
     rect values after being evaluated by the shell.
2001-03-10 01:51:49 +00:00
cgd 82f3142780 fix NetBSD RCS id tags 2001-02-27 19:04:39 +00:00
cgd 6ec85a49fd nuke a last-minute addition in the getprogname() cleanup that didn't work. 2001-02-20 01:17:37 +00:00
cgd 6b25d77513 convert from __progname to getprogname() 2001-02-19 22:22:16 +00:00
cgd 337d03ef63 add cross-reff to getprogname(3) 2001-02-19 22:20:15 +00:00
cgd dd482e4f34 add getprogname() and setprogname() 2001-02-19 22:14:20 +00:00
cgd 21202a2cb3 add getprogname() and setprogname(). These allow uses of __progname to
be wrapped in some sane fashion, for portability.
2001-02-19 22:13:23 +00:00
bjh21 d47ff437ed Make both ARM ports support both NLIST_AOUT and NLIST_ELF32. 2001-02-17 21:18:40 +00:00
briggs 4d91dcef0e Remove extra #include. 2001-02-10 05:36:35 +00:00
itojun 109fcc5522 implement upper limit to icmp6 redirects (experimental, turned off)
negative value to {mtudisc,redirect}_{hi,lo}wat will turn off the limitation.
sync with kame.
2001-02-08 16:07:39 +00:00
itojun 22b473e0f6 during ip6/icmp6 inbound packet processing, do not call log() nor printf() in
normal operation (/var can get filled up by flodding bogus packets).
sysctl net.inet6.icmp6.nd6_debug will turn on diagnostic messages.
(#define ND6_DEBUG will turn it on by default)

improve stats in ND6 code.

lots of synchronziation with kame (including comments and cometic ones).
2001-02-07 08:59:47 +00:00
hubertf 44d7ee0289 * Document the vendor.* sysctl branch
* in sysctl.3, sort the list of CTL_ prefixes and sync with sysctl.h
2001-01-10 03:03:02 +00:00
lukem aa330a1e25 * Change __diagassert13() so that by default it only syslogs the error (it
used to syslog and also send to stderr).

  This behaviour can be changed by setting $LIBC_DIAGASSERT to a
  string containing one or more of the following letters:
	a	abort() after syslog and/or print to stderr
	A	opposite of a
	e	print assertion message to stderr
	E	opposite of e
	l	log assertion message to syslog
	L	opposite of l

  This allows per-process control of the _DIAGASSERT() behaviour (e.g,
  if you want to abort() after the assertion is raised) by modifying the
  environment before starting the process.

  Note that __DIAGASSERT() is still a no-op unless libc is compiled
  with -D_DIAGNOSTIC.

* Implement __assert()/__diagassert() by calling __assert13()/__diagassert13()
  with a function of NULL, reducing unnecessary code duplication
2001-01-03 12:44:53 +00:00
martin 7c10055175 Be consistent with argument types vs. prototype; use _BSD_VA_LIST_ as
the argument, instead of va_list. Might not make a difference on most
ports, depending on toolchain/MD typedefs. Does make a difference on sparc64,
where it wouldn't compile otherwise.
2000-12-30 16:27:33 +00:00
itojun 8f5f80ebfe document net.inet6.icmp6.mtudisc_{lo,hi}wat. 2000-12-21 01:10:52 +00:00
christos c9f588eab4 fix nested extern 2000-12-20 20:54:30 +00:00
christos 5b7386b25e fix missing formatting escape. 2000-12-19 21:17:16 +00:00
kleink f02540ff10 C99: Print the name of the function enclosing the assertion, if possible. 2000-12-19 14:32:59 +00:00
lukem 741ea8dc94 fix typo in _nis_grscan(). "if (data); free(data);" -> "if (data) free(data);"
noted by Jacques Vidrine <nectar@FreeBSD.org>
2000-12-17 22:09:12 +00:00
briggs 9875721d50 Fix an old typo: s/ket_t/key_t/ 2000-12-12 17:07:49 +00:00