tjr
452c783e30
Avoid a memory leak by using reallocf() instead of realloc().
2003-01-10 02:58:25 +00:00
tjr
b329764a92
Prototype __getcwd() to avoid a warning.
2003-01-10 02:54:37 +00:00
tjr
c985c3536d
#include <ctype.h> for prototypes (or macro versions) of
...
tolower() and isdigit().
2003-01-10 02:46:32 +00:00
fjoe
d0b3cca289
pthread_attr_get_np() now takes 'pthread_t' (not 'pthread_t *')
...
to be consistent with other pthread_XXX functions
2003-01-07 21:43:30 +00:00
chris
69abe13c7f
Correct a couple small typos.
...
Submitted by: Attila Nagy <bra@fsn.hu>
2003-01-07 13:18:21 +00:00
chris
788e08dc50
Document the file system firewall interface library functions.
...
Sponsored by: DARPA, Network Associates Laboratories
2003-01-07 11:23:43 +00:00
tjr
cf3d82de73
#include "namespace.h" to get a prototype for _err().
2003-01-07 06:55:58 +00:00
tjr
cce4ee0815
Remove an unused variable: mbresult.
2003-01-07 06:20:47 +00:00
tjr
2785027057
#include <stdlib.h> for free()'s prototype.
2003-01-07 06:17:13 +00:00
tjr
a1a372be06
Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.
2003-01-07 06:07:56 +00:00
tjr
34f8e1bd73
Add waitpid to the list of hidden names for use by wordexp.c and grantpt.c.
2003-01-07 06:05:35 +00:00
keramida
d8846eabc5
Typo fixes.
...
PR: docs/46815
Submitted by: SUZUKI Koichi <koich@cac.co.jp>
2003-01-07 05:06:27 +00:00
trhodes
ef408d5a3a
Remove redundant documenation.
...
PR: 46253
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
2003-01-06 23:20:55 +00:00
tjr
3d36ec8575
strfmon(3) does not correctly handle multibyte characters in the
...
format string.
2003-01-06 06:21:25 +00:00
tjr
0c0f5aecab
Note that the printf(3) and scanf(3) family of functions don't deal with
...
multibyte characters in the format string correctly.
2003-01-06 06:19:19 +00:00
marcel
e9cd0e2e14
Port libc_r to ia64. We need to do things slightly different
...
because we have 2 stacks per thread: the regular downward
memory stack and the irregular upward register stack. This
implementation lets both stacks grow toward each other. An
alternative scheme is to have them grow away from each other.
The alternate scheme has the advantage that both stack grow
toward guard pages. Since libc_r is virtually dead and we
really want the *context stuff for thread switching, we don't
try to be perfect, just functional.
2003-01-06 00:56:23 +00:00
tmm
425245353b
Build libc_r on sparc64, it should work now.
2003-01-05 22:37:54 +00:00
tmm
3c69015b49
Add MD definitions for sparc64. This is based on work by des.
2003-01-05 22:37:03 +00:00
tmm
7089000c6c
Add an implementation of _atomic_lock for sparc64. This was submitted by
...
des; I tweaked it slightly by extending the membar and making it match
the style of the rest of the sparc64 assembler code.
2003-01-05 22:23:11 +00:00
tmm
6e68a2b1ca
Rewrite longjmp() and _longjmp() to directly restore the saved frame,
...
instead of unwinding the call stack. This makes them usable to switch
stacks, e.g. for libc_r.
Do not save the frame pointer in setjmp() and _setjmp(), it is not needed
any more.
Rename _longjmp() to ___longjmp(), with a weak alias to _longjmp(), like
the other architectures did.
2003-01-05 22:17:32 +00:00
tmm
e40f9005a3
Rename siglongjmp() to __siglongjmp(), with a weak alias to siglongjmp(),
...
like the other architectures do.
2003-01-05 22:10:06 +00:00
fenner
dde73f1de4
Use in_addr_t for the right size of an IPv4 address, and copy into
...
an unaligned destination using bcopy instead of an assignment.
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
PR: sparc64/46729
2003-01-05 14:05:24 +00:00
tjr
5b582a2ed1
No need to include <assert.h> here.
2003-01-05 02:43:18 +00:00
tjr
a89644e51c
strptime(), like strftime(), does not handle multibyte characters
...
in the format string correctly.
2003-01-04 09:50:04 +00:00
tjr
9064b8d6f7
Mention in the BUGS section that strftime() does not handle multibyte
...
characters in the format string correctly.
2003-01-04 09:47:40 +00:00
nyan
864080610e
Rename the dos_partition structure for pc98 to pc98_partition.
2003-01-04 08:50:48 +00:00
tjr
b51b1e81ea
Fix three warnings:
...
o #include <stdio.h> to make sprintf()'s prototype visible.
o Remove unused variable: sbuf.
o Don't use assignment as truth value.
2003-01-04 08:10:55 +00:00
tjr
30246458a2
style(9): return type on separate line from function name.
2003-01-04 07:34:41 +00:00
tjr
ac985d2b0a
Fix a number of bugs noticed by more extensive testing:
...
o Call waitpid() if an error occurs after forking the child process
to avoid leaving zombies around.
o Handle the WRDE_DOOFS|WRDE_APPEND combination correctly
o Do not confuse $( substitution with $(( shell arithmetic
(noticed by wollman)
o Handle backslash escaping properly
o Allow $( and ${ to be quoted
2003-01-04 06:07:44 +00:00
tjr
550b215d09
Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are
...
the names required by 1003.1-2001. The old names are retained for
source compatibility with FreeBSD 5.0 and will be removed before 6.0.
2003-01-04 01:11:49 +00:00
tjr
5b93b0c98e
Remove unused variable: sz.
2003-01-04 00:24:35 +00:00
tjr
21a950ba8e
Remove unused variable: size.
2003-01-04 00:20:54 +00:00
tjr
423d60ce9d
#include <string.h> for strcmp()'s prototype.
2003-01-04 00:18:50 +00:00
tjr
6634305555
Remove unused variable: omask.
2003-01-04 00:15:15 +00:00
tjr
e66ec2707a
#include <sys/linker.h> for kldload()'s prototype.
2003-01-04 00:13:00 +00:00
tjr
037ba0f24b
#include <string.h> for strlen()'s prototype.
2003-01-04 00:11:11 +00:00
tjr
5b887fd56d
#include <ctype.h> for isspace()'s prototype (or a macro version).
2003-01-03 23:55:58 +00:00
tjr
2eb0772712
Add missing #include "namespace.h".
2003-01-03 23:38:21 +00:00
tjr
f027795617
Remove unused variable: ntmp.
2003-01-03 23:34:26 +00:00
tjr
c3c81fd441
#include <string.h> for strcmp()'s prototype.
2003-01-03 23:31:50 +00:00
tjr
d0b52ce8cc
#include "local.h" to make __svfscanf()'s prototype visible.
2003-01-03 23:27:27 +00:00
tjr
d7c9b91a26
Remove an unused variable: `sb' in fts_read().
2003-01-03 23:25:25 +00:00
tjr
5ba4caf3bc
Remove an unused variable, `sverrno', which has not been used since 1.11.
2003-01-03 23:16:55 +00:00
mike
d6f399392e
Optimize errstr() by reducing the number of times it walks a string.
...
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.
Test by: strerror regression test
Submitted by: Tim Kientzle <kientzle@acm.org>
2003-01-03 16:44:42 +00:00
phk
b884c995db
Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
...
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.
2003-01-03 16:23:12 +00:00
tjr
c1a0e9934f
Reset the stream orientation to 0 (unoriented) in freopen(), as required
...
by the C standard.
2003-01-03 12:27:19 +00:00
tjr
89dea00d7b
It is no longer necessary to include sys/types.h before wordexp.h.
2003-01-03 12:04:36 +00:00
tjr
dcb655257f
popen() is a function, not an argument.
2003-01-03 05:21:59 +00:00
tjr
bfa661b0f8
Protect pidlist with a mutex to avoid a race causing a duplicate free()
...
when the same pipe FILE is pclosed()'d in different threads, and to avoid
corrupting the linked list when adding or removing items. The symptoms of
the linked list getting corrupted were pclose() either not finding the pipe
on the list, or the list becoming circular and pclose() looping infinitely.
2003-01-03 04:35:04 +00:00
des
a91193c322
Set auto-retry mode to avoid some spurious errors.
...
Submitted by: Andre Albsmeier <andre.albsmeier@siemens.com>
MFC after: 7 days
2003-01-03 02:45:10 +00:00