mike
33e70583eb
Add an MLINK malloc.conf(5) -> malloc(3).
2003-01-24 13:58:56 +00:00
fjoe
52bbb9400b
remove #ifdef _THREAD_SAFE
2003-01-24 01:46:30 +00:00
jmallett
dd2fdc8704
bwrite, not sbwrite, needs to open for writing and write.
2003-01-23 23:58:22 +00:00
jmallett
070819018f
API to fillout a blank disk. For e.g. newfs.
2003-01-23 21:32:56 +00:00
phk
8d433414eb
For "sensitive" processes, we always set the 'A' flag which causes abort()
...
to be called on first sight of trouble.
"sensitive" is somewhat arbitrarily defined as "setuid, setgid, uid == root
or gid == wheel".
The 'A' option carries no performance penalty.
It is not possible to override this setting: fix the program instead.
Absentmindedly nodded OK to by: various
2003-01-23 21:26:47 +00:00
des
b80b0e22d8
Document .netrc support.
2003-01-22 18:27:25 +00:00
des
48ceb170df
Hook in the .netrc code + don't use pointers as if they were booleans.
2003-01-22 17:54:49 +00:00
des
ae10e138a9
Experimental support for .netrc.
2003-01-22 17:53:58 +00:00
des
cead81021c
Initialization paranoia.
2003-01-22 17:53:15 +00:00
des
a5ab2dd958
A negative offset means "get it all".
2003-01-22 17:52:27 +00:00
maxim
67e1984f47
Remove EOL whitespaces.
2003-01-20 11:30:08 +00:00
maxim
81c42fccd4
o Fix a typo.
...
o Prepend a function name by .Fn macro.
Reviewed by: archie
2003-01-20 11:28:41 +00:00
jmallett
ade073ea23
Store not only the current cylinder group in the series (i.e. next that needs
...
to be read in) but also the last cylinder group in the series (i.e. what is
stored in the structure).
2003-01-19 05:46:23 +00:00
ache
c60183cc58
Add (unsigned char) cast to ctype macros
...
Handle NULL return from malloc and strdup
2003-01-19 03:05:01 +00:00
jmallett
70c14dc49d
Don't crash when utilities are dumb and try to read less than the disk block
...
size (dumpfs may try to read the cylinder size (or is is sector size?) by way
of bread). Prevents a bounds error.
2003-01-19 01:39:53 +00:00
jmallett
445adec218
Add facility to read one, or a string of, cylinger groups.
2003-01-19 01:31:26 +00:00
obrien
8af24a10fd
Sync with NetBSD -- sl_add() now returns an int.
2003-01-19 01:16:01 +00:00
jmallett
0a0a65bb42
Hunt for a disk to operate on, if we're passed a partition mountpoint, etc.
...
Concept reviewed by: phk
2003-01-19 00:43:17 +00:00
obrien
6f344674a0
Use __FBSDID.
2003-01-19 00:17:03 +00:00
obrien
a390eae40f
We don't need our own personal definition of __CONCAT.
2003-01-18 23:26:04 +00:00
jmallett
291746d562
Fix typo.
2003-01-18 05:06:07 +00:00
jmallett
7284e7e47f
Nuke dumb error reporting code, people can just use disk::d_error. Unify the
...
DEBUG and d_error initialisation into an ERROR macro, which can both trace and
set the d_error field. Much a more meaningful thing, I should say.
2003-01-18 04:22:14 +00:00
tmm
0e609c0eb3
Document that listen() can return EINVAL now.
2003-01-17 19:25:27 +00:00
tjr
7516bf2b45
Do a better job of documenting mincore(2), esp. the MINCORE_* flags.
2003-01-17 04:06:57 +00:00
mbr
3262ba2f01
Fix memleak.
...
Reviewed by: rwatson
MFC after: 2 weeks
2003-01-16 16:43:58 +00:00
mbr
f209ccb0fd
Implement non-blocking tcp-connections.
...
Reviewed by: rwatson
Obtained from: NetBSD
MFC after: 1 day
2003-01-16 07:13:51 +00:00
johan
989f4676c5
realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.
...
This also reverts the PATH_MAX -> MAXPATHLEN part of
rev 1.3 of src/bin/realpath/realpath.c
Requested by: imp
Reviewed by: imp, bde
2003-01-15 21:22:55 +00:00
tjr
2ddffe4aa0
Add a missing word.
2003-01-15 09:48:15 +00:00
tjr
ad1ea71c7a
Document the named semaphore functions. This could still use a bit
...
of polishing.
2003-01-15 03:07:40 +00:00
chris
5a653c8876
Actually add mac_prepare.3.
...
Sponsored by: DARPA, Network Associates Laboratories
2003-01-15 03:05:21 +00:00
chris
c099a91124
Cross-reference mac(4)
...
Sponsored by: DARPA, Network Associates Laboratories
2003-01-15 03:03:05 +00:00
chris
5b68d68d2e
s/SEE_ALSO/SEE ALSO/
...
Cross-reference mac(4) and mac(9)
Sponsored by: DARPA, Network Associates Laboratories
2003-01-15 03:02:30 +00:00
chris
200d3a3d43
o Document mac_prepare() and associated functions
...
o Link mac_get_pid.3 to mac_get.3
o Update SEE ALSO to refer to mac_prepare, and added missing references
o Remove clause #3 on my work
o Update mac_get.3 for the updated MAC API
Sponsored by: DARPA, Network Associates Laboratories
Obtained from: TrustedBSD Project
2003-01-15 00:45:31 +00:00
chris
541ffd166f
o Remove clause #3
...
o Document mac_set_link().
Sponsored by: DARPA, Network Associates Labs
2003-01-14 23:20:40 +00:00
tjr
da4176c74d
Back out previous; sharing semaphores between processes only works
...
in certain special cases.
2003-01-14 07:14:06 +00:00
tjr
8f97c15f80
Sharing semaphores between processes works now, so remove the stale comments
...
about it always returning EPERM. Document that ENFILE occurs when the
limit on kernel semaphores is reached.
2003-01-14 04:12:33 +00:00
tjr
113303550d
Cross reference sem(4) so users know which kernel options are required
...
to use these semaphore functions.
2003-01-14 03:39:09 +00:00
tjr
fc5f7e9a8b
Add the newly created semaphore to the named semaphore list in sem_open()
...
so that multiple opens of the same semaphore without an intervening
sem_close() return the same object, and so that sem_close() does not
segfault while trying to remove the item from the list.
2003-01-14 03:36:45 +00:00
tjr
2715581ca4
Including <time.h> before <aio.h> has not been necessary for a while now.
2003-01-14 02:37:06 +00:00
joerg
d0082e294c
Mention the oddities and requirements for mount operations executed by
...
non-root users.
PR: docs/42651
Submitted by: Thomas Seck <tmseck@netcologne.de>
MFC after: 3 days
2003-01-13 19:42:21 +00:00
tjr
e47bfa0079
Refer to 1003.1 instead of 1003.2 in the Standards section.
2003-01-13 10:37:11 +00:00
tjr
9adc11de8a
Lock the stream before calling __sfileno() to retrieve the file descriptor.
...
1003.1-2001 requires that fileno() behave as if it locks the stream.
2003-01-13 02:58:18 +00:00
tjr
7c6b8aca67
Add missing word to "Return Values" section.
2003-01-13 01:29:14 +00:00
mike
9a78589653
Fix struct iovec documentation to match reality.
...
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2003-01-12 15:18:47 +00:00
tjr
727a92d7cb
Add a manual page for the lio_listio() syscall. Still needs a bit
...
of polishing.
2003-01-12 09:28:16 +00:00
marcel
e2486fdf1a
Implement missing fpgetround() and fpsetround().
2003-01-11 07:24:54 +00:00
dillon
7060fb8de0
Remove all use of the LOG2() macro/inline, undoing some non-optimal cruft
...
that crept in recently. GCC will optimize the divides and multiplies for us.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 day
2003-01-11 01:09:51 +00:00
deischen
3155dbd99c
Increase the scheduler stack to 4 pages. This should prevent a stack
...
overflow when dumping thread info (generated by receipt of SIGINFO).
Reported by: jmallet
2003-01-11 00:43:20 +00:00
jhb
5fc7b42391
Use the fstype obtained from the GEOM dumpconf output to set the fstype
...
of BSD part chunks when opening a disk.
Reviewed by: phk
MFC after: 2 days
2003-01-10 19:45:10 +00:00
jhb
533d214b96
- Make New_Disk() non-static so it can be used in Create_Chunk_DWIM().
...
- In Create_Chunk_DWIM(), if there is a freebsd chunk that has no
children chunks, then trying to add a child part chunk will fail even
though there is free space. Handle this special case by adding an
unused chunk the full size of the freebsd chunk as a child of the
freebsd chunk before adding the new part chunk. This situation can
happen when changing the type of an existing slice to be a FreeBSD
slice type or when installing onto a blank disk on Alpha (which has
no slices.)
Reviewed by: phk
MFC after: 2 days
2003-01-10 19:25:38 +00:00
nectar
44a92fbc06
About September 2001, I consulted with all the previous authors of
...
pam_krb5 to consolidate the copyright texts. The semi-official
pam_krb5 module has been distributed with this new license text ever
since, but I'm just now getting around to updating the text here.
2003-01-10 13:38:44 +00:00
tjr
92b8a62ce5
The macro versions of putc() and putchar() are gone.
2003-01-10 07:47:12 +00:00
tjr
1728522b0e
There is no macro version of getc() anymore.
2003-01-10 07:45:24 +00:00
tjr
bd44cebe6a
Bring the list of function-like macros up to date with reality.
2003-01-10 07:38:38 +00:00
alfred
90d9ad7de5
spell multiple correctly.
2003-01-10 06:52:19 +00:00
tjr
5e6eecbdf0
Document clearerr_unlocked(), feof_unlocked(), ferror_unlocked()
...
and fileno_unlocked().
2003-01-10 06:22:28 +00:00
tjr
87092eb373
Add a manual page for flockfile(), ftrylockfile(), and funlockfile().
2003-01-10 05:34:11 +00:00
tjr
f07524edbc
Document getc_unlocked(), getchar_unlocked(), putc_unlocked(),
...
and putchar_unlocked().
2003-01-10 04:56:20 +00:00
tjr
b4a40863e5
Add function versions of getchar_unlocked(), getc_unlocked(),
...
putchar_unlocked(), putc_unlocked(), feof_unlocked(), ferror_unlocked(),
clearerr_unlocked(), and fileno_unlocked(). The first four are required
by POSIX. The rest are provided for consistency.
2003-01-10 04:35:08 +00:00
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
jmallett
a33543dd92
Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin
...
to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes
to the user being granted the pty.
Submitted by: Ryan Younce <ryany@pobox.com>
Reviewed by: security-officer@, standards@, mike@
2003-01-02 20:44:41 +00:00
thomas
c35e5c982e
In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.
...
This situation most notably arises in chkprintcap, when a /etc/printcap
entry has an empty rp= attribute. In that case, cgetmatch would enter
an infinite loop if any entry in the file has multiple names.
This causes lpd to hang at boot time on 5.0-DP2 when both conditions
are met (:rp=: and multiple names -- not necessarily on the same entry).
Reviewed by: roberto
2003-01-02 10:19:43 +00:00
schweikh
d3367c5f5d
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
schweikh
86f7487fb6
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
obrien
ec82053375
Back out the s/int */size_t */ commit.
...
It makes a difference on 64-bit arches, and no one really wants a 2^64
block size [yet].
2002-12-30 11:12:16 +00:00
obrien
b19af36602
This compiles fine w/WARNS.
2002-12-30 09:25:30 +00:00
marcel
078bc225e1
Fix LP64 architectures and especially ia64. Functions that return
...
a pointer and lack a prototype will have the return value (assumed
to be an integer) zero-extended to a pointer. On ia64 this is
unconditionally fatal as it zeroes-out the region bits, forming an
invalid pointer. Fix the sigsegv by including <stdlib.h>.
Pointy hat: bbraun
2002-12-30 01:41:14 +00:00
rwatson
8a785d8605
Remove BUGS section indicating that these calls are unimplemented.
...
Update copyrights.
Obtained from: TrustedBSD Project
2002-12-29 20:52:42 +00:00
rwatson
d2f1f50d1c
Update acl_set.3, missed in last round:
...
- Update BUGS: this stuff is implemented.
- Update last modified date.
- Document acl_set_link_np() call.
Obtained from: TrustedBSD Project
2002-12-29 20:50:30 +00:00
rwatson
bce6bfbbec
Update libc POSIX.1e code and documentation to reflect:
...
- Updated copyrights, modified dates
- Remove "BUGS" entry indicating that ACLs are unimplemented
- Implement acl_*_link() library wrapper variants for get, set,
delete, aclvalid.
- Document acl_*_link() calls.
Obtained from: TrustedBSD Project
2002-12-29 20:47:05 +00:00
mike
835ad61213
Use useconds_t' instead of
u_int' or `unsigned int' where appropriate.
2002-12-29 00:59:09 +00:00
deischen
72b611d69d
Fix typos in comment.
...
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2002-12-28 05:20:03 +00:00
schweikh
fec6546e12
english(4) police.
2002-12-27 12:15:40 +00:00
alfred
2078a4c774
Silence casting away constness warnings.
...
Make cgetmatch's locals const.
Make cdbget take a const string and copy it into a buffer.
2002-12-27 08:43:40 +00:00
tjr
baa27ec2ab
Fix a small typo.
2002-12-27 08:28:53 +00:00
julian
997c868ce3
Slight tuning if teh KSE man page to indicate some functionality is
...
not yet inplemented and to clear up some wording.
2002-12-27 08:21:15 +00:00
jake
49979268c1
Teach libkvm to deal with direct mapped addresses.
2002-12-27 01:45:05 +00:00
tjr
8c4109166a
Be more consistent with "static".
2002-12-27 01:01:03 +00:00
nyan
63904a7353
Return an error if the size of the sector is zero. This is for removable
...
devices that is not inserted any media.
This is MFC candidate.
Submitted by: ISAKA Yoji <isaka@cory.jp>
2002-12-26 15:50:45 +00:00
tjr
eeed1ed55b
Add an implementation of the POSIX wordexp() and wordfree() functions,
...
which perform shell-style word expansion on strings. This is still a
little rough around the edges.
PR: 13420
2002-12-26 14:34:18 +00:00
ru
f6006b0adb
Spelling: s/then/than/ where appropriate.
2002-12-24 16:52:31 +00:00
ru
4979ab8d81
mdoc(7) police: Deal with self-xrefs.
2002-12-24 13:41:48 +00:00
trhodes
fccac15692
Document protection bits.
...
PR: 46252
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
2002-12-23 19:25:03 +00:00
ru
301b96498b
Fixed the abuses of .Ql visible on stderr in troff mode.
...
PR: docs/37176
2002-12-23 16:04:51 +00:00
ru
30f31561da
mdoc(7) police: removed gratuitous .Pp call.
2002-12-23 15:21:57 +00:00
kan
7c2123d512
Back out the -fpcc-struct-return fixes.
...
Approved by: re (rwatson)
2002-12-22 06:41:09 +00:00
jmallett
785e008f9b
Fix style (no space after return, twice-too-big continuation) and
...
cast (casting long to a void pointer, rather than intptr_t to a
void pointer) bogons.
Reviewed by: bde
2002-12-22 03:20:16 +00:00
bbraun
d025aceb5b
Reduce libc's memory footprint by lazily allocating memory used internally
...
by setproctitle().
Reviewed by: jkh
2002-12-21 22:04:50 +00:00
bbraun
6e7d1bfe4c
Reduce libc.so's memory footprint by lazily allocating memory used internally
...
by basename() and dirname().
Reviewed by: eric
2002-12-21 07:12:35 +00:00
tjr
4d5ffd6782
Import newer versions of div() and ldiv() from NetBSD which handle
...
the -fpcc-struct-return calling convention properly instead of
returning garbage. This may break backwards compatibility with some old
binaries that were compiled when -fno-pcc-struct-return was the default.
2002-12-21 05:11:39 +00:00
tjr
08218617f4
Document the fact that the printf() family of functions return negative
...
values (EOF in our case) on error, and some of the possible errno values
in an Errors section.
PR: 39257
2002-12-20 08:28:10 +00:00
tjr
9b26000e8d
C99 standardised the vscanf() family of functions, update Standards
...
section to reflect this.
2002-12-20 07:46:01 +00:00
mike
dd4db7d1b4
Stylistic changes:
...
o Fix an English error (comma splice) and poorly worded sentence.
o Fix KNF ordering of variables (pointers come before arithmetic types).
o Restore hand-optimization of sizeof()-1, instead of strlen().
o Remove unneeded local variables in strerror_r().
Test by: strerror regression test
Requested by: bde
Reviewed by: bde
2002-12-20 05:26:10 +00:00
trhodes
71621c649c
Document what really occurs when we obtain an error.
...
PR: 43357
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
2002-12-20 01:01:24 +00:00
dillon
6dc747b608
The zalloc pool's size calculation breaks if sbrk() does not return
...
contiguous chunks of memory. It happens to do so in the bootstrap
code, but not necessarily in other places.
MFC after: 7 days
2002-12-19 23:23:20 +00:00
ceri
c32581acae
Grammatical fixup: s/be the -1/be -1/
...
MFC after: 1 day
2002-12-19 21:48:43 +00:00
jake
081cb688ba
Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.
2002-12-19 19:34:59 +00:00
ru
d5c27df6a8
Make accept(), connect(), recvfrom(), recvmsg(), sendmsg(),
...
and sendto() cancelation points, as required by POSIX.1-2001.
Reviewed by: deischen
2002-12-19 11:39:20 +00:00
tjr
8d1bd25993
Add back the Standards section claiming conformance to 1003.1-2001 and
...
C99 now that all known standards-related bugs have been fixed.
2002-12-19 10:24:52 +00:00
tjr
80abd67f59
Write the message to stderr, not file descriptor 2, so that perror()
...
writes to the correct stream if stderr has been redirected with freopen().
2002-12-19 09:53:26 +00:00
tjr
93b0a6ff83
Use strerror_r() to format the error message so that strerror()'s static
...
buffer does not get clobbered.
ISO/IEC 9899:1999 7.21.6.2 3:
"The implementation shall behave as if no library function calls the
strerror function."
2002-12-19 09:50:10 +00:00
ru
51fe7c1a88
mdoc(7) police: "The .Fa argument.".
2002-12-19 09:40:28 +00:00
ru
3424a53ebe
mdoc(7) police: Fixed a few .Fa abuses.
2002-12-19 09:33:34 +00:00
ru
51ba8864ca
mdoc(7) police: excessive quotes.
2002-12-19 08:13:27 +00:00
obrien
f1592d04ae
Update with the 4.7 libraries, and add libposix1e to the mix.
2002-12-18 18:05:07 +00:00
mike
91ae3fa45d
Rearrange strerror() so that its itoa procedure can be used with
...
strerror_r(). Doing this allows us to ensure that strerror_r() always
fills the supplied buffer regardless of EINVAL or ERANGE errors.
strerror()'s semantics have changed slightly such that an argument of
0 is now considered invalid and errno is set to EINVAL.
Remove internal regression test for strerror() and strerror_r(). This
will be reincarnated in src/tools/regression/lib/libc/string.
In strerror(3), add a comment about strerror()'s bogus return type.
PR: 44356
2002-12-18 16:53:31 +00:00
ru
863465c1ab
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
2002-12-18 13:33:04 +00:00
ru
8746d263e1
mdoc(7) police: "The .Fn function".
2002-12-18 12:45:11 +00:00
ru
1310701709
mdoc(7) police: "The .Fn system call".
2002-12-18 12:39:25 +00:00
ru
d0db69d964
mdoc(7) police: "The .Fn function".
2002-12-18 10:13:54 +00:00
ru
af6f15fd34
mdoc(7) police: Fixed the .Nm abuse.
2002-12-18 10:10:32 +00:00
ru
a4b155d7a2
mdoc(7) police: Tidy up the syscall language.
...
Stop calling system calls "function calls".
Use "The .Fn system call" a-la "The .Nm utility".
When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.
2002-12-18 09:22:32 +00:00
tjr
2e8159ab8c
Document what happens when the format string contains insufficient
...
conversion specifications to completely specify the resulting struct tm.
PR: 46331
Submitted by: Christian S.J. Peron
MFC after: 2 weeks
2002-12-18 05:00:54 +00:00
mbr
d975ae88c1
Change the name for the local unix-socket based protocol
...
from "unix" back to "local". Add some compat stuff so both
ways work for some time.
Reviewed by: phk
Approved by: imp (UPDATING)
Requested by: iedowse, lukem@netbsd.org
2002-12-16 22:24:26 +00:00
des
7966ff24b5
Merge in most non-style differences from Andrew Korty's pam_ssh 1.7.
2002-12-16 14:33:18 +00:00
maxim
8f9af30b0c
o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. It
...
does not hurt anything because uipc_ctloutput() does not check
sopt->sopt_level.
Pointed out by: ru
MFC after: 1 week
2002-12-16 13:42:13 +00:00
dillon
b43fb3e920
This is David Schultz's swapoff code which I am finally able to commit.
...
This should be considered highly experimental for the moment.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 3 weeks
2002-12-15 19:17:57 +00:00
maxim
c2efb986aa
o Fix bogus getsockopt(2) call: swap SOCK_STREAM and LOCAL_PEERCRED.
...
The bug does not affect anything because SOCK_STREAM == LOCAL_PEERCRED == 0x1.
PR: bin/46165
Submitted by: Alain Thivillon <at@rominet.net>
Reviewed by: dd
MFC after: 1 week
2002-12-15 09:37:54 +00:00
ru
ad42bf1099
mdoc(7) police: markup overhaul.
2002-12-14 15:29:27 +00:00
fenner
7435be9a24
Add an implementation of the POSIX.1 sockatmark(3).
2002-12-13 22:22:55 +00:00
ru
311f3f3656
mdoc(7) police: sort xrefs in SEE ALSO.
2002-12-13 16:53:51 +00:00
trhodes
eb277a30c8
Fix the HISTORY to match reality. They were never MFC'ed to 4.X.
...
Submitted by: R. Imura <imura@ryu16.org>
Approved by: re (murray)
2002-12-12 22:22:51 +00:00
ru
041d1287e8
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
ru
ea54687b0d
mdoc(7) police: .Dt is ALL UPPERCASE.
...
Approved by: re
2002-12-12 08:19:47 +00:00
ru
2a1141d1d9
mdoc(7) police: Added the missing .Os call; it's not strictly
...
necessary nowadays, but is documented as "required", and may
become so again in the future.
Approved by: re
2002-12-11 15:55:29 +00:00
ru
40d653afff
Fixed the parameter's name.
...
PR: docs/46183
Submitted by: Dirk Gouders <gouders@et.bocholt.fh-ge.de>
Approved by: re
2002-12-11 14:04:37 +00:00
ru
c3c9add94c
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:11:37 +00:00
ru
3ae151638f
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:04:05 +00:00
ru
bd8413493a
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-09 13:54:29 +00:00
ru
6ab573ad83
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 13:14:15 +00:00
ru
fe879635b2
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 12:47:18 +00:00
ru
f9f2ca15a5
mdoc(7) police: overhaul.
2002-12-09 12:41:29 +00:00
deischen
c27018b9df
For now, build and install this as libkse instead of libpthread.
...
This will avoid any accidental use of an experimental library.
Suggested by: rwatson
Approved by: re (jhb)
2002-12-08 22:43:31 +00:00
peter
1a6ee38c52
Do not guarantee an overflow of tm_year when doing the binary search in
...
localtime/mktime/tmcomp and friends on ia64.
Approved by: re
2002-12-05 19:54:47 +00:00
ru
4b97577172
Capitalize ASCII code names.
...
Approved by: re
2002-12-05 08:50:00 +00:00
ru
ea13b9803b
Consistently mark std(in|out|err) with .Dv, because that's how they
...
are marked up in stdio(3), and because they are defined expressions
of type "FILE *".
Approved by: re
2002-12-04 18:57:46 +00:00
ru
a4483b8cb5
mdoc(7) police: markup overhaul.
...
Approved by: re
2002-12-04 17:49:15 +00:00
ru
e8b4d1412a
mdoc(7) police: markup overhaul.
...
Approved by: re
2002-12-04 16:28:45 +00:00
ru
4e841ec498
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-04 15:47:41 +00:00
grehan
16182748bd
Minimal libc for PowerPC.
...
Reviewed by: benno
Approved by: re (blanket)
2002-12-04 07:25:14 +00:00
jake
4cbd3579e8
Reduce WARNS level to 3 in the non-crypto case to fix make release on sparc64.
...
This may only be turning up now to changes in the cpp predefines for sparc64,
which may be turning on more strict alignment checking.
Approved by: re
2002-12-04 04:34:59 +00:00
jake
9f73e3ef3d
Update the second copy of libstand to deal with the new ufs2 superblock
...
format. The one in sys/boot/libstand is not connected to the build.
Approved by: re
2002-12-03 16:25:29 +00:00
jhb
cfb76a5993
Break up a bunch of crazy if statements to use a case statement instead
...
to be cleaner. Also, when deleting a chunk, try to find the mother chunk
as a whole chunk by default if this isn't a BSD partition or a unused or
whole chunk. Before we just did this for FreeBSD and FAT slices, which
means that other chunk types such as EFI and mbr (mbr is used for slices
that don't have their own chunk type).
Submitted by: nyan (mostly)
Approved by: re
2002-12-02 21:42:29 +00:00
peter
86b5d0d658
Replace rev 1.33 with a real fix. The problem was integer overflows
...
when trying to store the year in a signed int. The maximum time_t on ia64
is around 292 billion years in the future, but 'int' and struct tm.tm_year
can only represent then ext 2.1 billion years or so.
This solves the problem of mktime/localtime looping on ia64. Unfortunately,
the standards say that tm_year is an 'int', so we are still stuck with a
y2147483647 bug. bash2's configure script looks for bugs in mktime() and
fails on ia64 because of this. However, mktime() on FreeBSD fails the test
normally anyway so this is no big loss.
This change does not affect any other platforms besides ia64.
Approved by: re
2002-12-02 01:05:08 +00:00
bde
1bae0a9e0c
Backed out previous commit (alignment suitable for RELENG_4) as planned
...
since it has been MFC'ed. See the log message for the previous commit
for more details. The alignment bug in gcc-3 has not been fixed, but
it is not very serious and the previous commit just moved it (as intended).
Approved by: re (murray)
2002-12-01 17:36:18 +00:00
ru
ec73cae726
mdoc(7) police: sweep.
2002-11-29 17:35:09 +00:00
ru
ecf768b1cc
mdoc(7) police: sweep.
2002-11-29 16:42:23 +00:00
ru
3f859aa2ab
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00
des
c88eb4583e
Whitespace nits.
...
Approved by: re (bmah)
2002-11-28 20:11:31 +00:00
des
29b2e3446c
Add a PAM_MODULE_ENTRY to this module so it'll actually do something.
...
Approved by: re (bmah)
2002-11-28 20:05:42 +00:00
ume
cdeea51f46
try SIOCGIFINDEX 1st to be able to use network aliasing.
...
Submitted by: jlemon
Approved by: re
2002-11-28 17:46:40 +00:00