Tim J. Robbins
bae7e9ec5e
Document the named semaphore functions. This could still use a bit
...
of polishing.
2003-01-15 03:07:40 +00:00
Tim J. Robbins
74e03642ee
Back out previous; sharing semaphores between processes only works
...
in certain special cases.
2003-01-14 07:14:06 +00:00
Tim J. Robbins
ab099bd309
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
Tim J. Robbins
51f2ddd7af
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
Tim J. Robbins
a91b25dc1c
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
Tim J. Robbins
098b8611cb
Avoid a memory leak by using reallocf() instead of realloc().
2003-01-10 02:58:25 +00:00
Tim J. Robbins
73e8989de8
Prototype __getcwd() to avoid a warning.
2003-01-10 02:54:37 +00:00
Tim J. Robbins
826f01cb9e
#include <ctype.h> for prototypes (or macro versions) of
...
tolower() and isdigit().
2003-01-10 02:46:32 +00:00
Tim J. Robbins
6398b9c017
#include "namespace.h" to get a prototype for _err().
2003-01-07 06:55:58 +00:00
Tim J. Robbins
2005f192e5
Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.
2003-01-07 06:07:56 +00:00
Tim J. Robbins
fe634ca75f
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
Tim J. Robbins
86e1d4729f
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
Tim J. Robbins
f2bc7cd262
Remove unused variable: sz.
2003-01-04 00:24:35 +00:00
Tim J. Robbins
e61ca145b8
Remove unused variable: size.
2003-01-04 00:20:54 +00:00
Tim J. Robbins
81b3ad59c2
#include <string.h> for strcmp()'s prototype.
2003-01-04 00:18:50 +00:00
Tim J. Robbins
a97ab40a26
Remove unused variable: omask.
2003-01-04 00:15:15 +00:00
Tim J. Robbins
4ee99abcd1
#include <sys/linker.h> for kldload()'s prototype.
2003-01-04 00:13:00 +00:00
Tim J. Robbins
e8cfa64a75
#include <string.h> for strlen()'s prototype.
2003-01-04 00:11:11 +00:00
Tim J. Robbins
185ec971c5
#include <ctype.h> for isspace()'s prototype (or a macro version).
2003-01-03 23:55:58 +00:00
Tim J. Robbins
02ba3221ff
Remove an unused variable: `sb' in fts_read().
2003-01-03 23:25:25 +00:00
Tim J. Robbins
d3701b0441
Remove an unused variable, `sverrno', which has not been used since 1.11.
2003-01-03 23:16:55 +00:00
Tim J. Robbins
7d3125b3ac
It is no longer necessary to include sys/types.h before wordexp.h.
2003-01-03 12:04:36 +00:00
Tim J. Robbins
c0595bfc20
popen() is a function, not an argument.
2003-01-03 05:21:59 +00:00
Tim J. Robbins
77e2381a3e
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
Thomas Quinot
464ef179a0
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
Jens Schweikhardt
9d5abbddbf
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
Jens Schweikhardt
d64ada501a
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
David E. O'Brien
c2e55537ec
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
Marcel Moolenaar
2bc46a6452
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
Mike Barcroft
07842325eb
Use useconds_t' instead of
u_int' or `unsigned int' where appropriate.
2002-12-29 00:59:09 +00:00
Jens Schweikhardt
57bd0fc6e8
english(4) police.
2002-12-27 12:15:40 +00:00
Alfred Perlstein
beb24986a7
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
Tim J. Robbins
cd203b8ead
Fix a small typo.
2002-12-27 08:28:53 +00:00
Tim J. Robbins
97c1c8f886
Be more consistent with "static".
2002-12-27 01:01:03 +00:00
Tim J. Robbins
faea1495bf
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
Rob Braun
81781ca042
Reduce libc's memory footprint by lazily allocating memory used internally
...
by setproctitle().
Reviewed by: jkh
2002-12-21 22:04:50 +00:00
Rob Braun
5fb691beab
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
Ruslan Ermilov
2efeeba554
mdoc(7) police: "The .Fa argument.".
2002-12-19 09:40:28 +00:00
Ruslan Ermilov
5c564bae0a
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
2002-12-18 13:33:04 +00:00
Ruslan Ermilov
95f4226b27
mdoc(7) police: "The .Fn function".
2002-12-18 10:13:54 +00:00
Ruslan Ermilov
b92cc9b878
mdoc(7) police: Fixed the .Nm abuse.
2002-12-18 10:10:32 +00:00
Maxim Konovalov
a61f5b202b
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
Maxim Konovalov
04e30a1ce6
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
Ruslan Ermilov
8d5d039f80
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
Ruslan Ermilov
db8993ce9e
Capitalize ASCII code names.
...
Approved by: re
2002-12-05 08:50:00 +00:00
Ruslan Ermilov
ae82896268
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
Ruslan Ermilov
304d1f73fe
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-04 15:47:41 +00:00
Ruslan Ermilov
1798791d24
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00
Ruslan Ermilov
c51d717f0c
libc_r wasn't so tied to libc for 22 months.
2002-11-18 09:50:57 +00:00
Doug Barton
7fd268cce6
goto break; != break;
...
I've no idea if this is the right behavior for the library, but this
at least fixes the build, and matches what seems to be alfred's intent
in the commit message for 1.19.
2002-11-17 08:54:29 +00:00