Johan Karlsson
de216a83c2
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
Tim J. Robbins
b211af11e2
strfmon(3) does not correctly handle multibyte characters in the
...
format string.
2003-01-06 06:21:25 +00:00
Tim J. Robbins
051900864f
No need to include <assert.h> here.
2003-01-05 02:43:18 +00:00
Tim J. Robbins
2f69381059
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
Tim J. Robbins
33c0e6ef8b
style(9): return type on separate line from function name.
2003-01-04 07:34:41 +00:00
Tim J. Robbins
2b6839cf10
Add missing #include "namespace.h".
2003-01-03 23:38:21 +00:00
Tim J. Robbins
7599ad308f
Remove unused variable: ntmp.
2003-01-03 23:34:26 +00:00
Tim J. Robbins
3ecbeb2d3a
#include <string.h> for strcmp()'s prototype.
2003-01-03 23:31:50 +00:00
Juli Mallett
d3951ad162
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
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
Ruslan Ermilov
facc67676f
mdoc(7) police: Deal with self-xrefs.
2002-12-24 13:41:48 +00:00
Tom Rhodes
bd8dfc819e
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
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
1fae73b137
mdoc(7) police: "The .Fn function".
2002-12-18 12:45:11 +00:00
Ruslan Ermilov
c8d40b7d34
mdoc(7) police: sort xrefs in SEE ALSO.
2002-12-13 16:53:51 +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
187f61df61
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-09 13:54:29 +00:00
Ruslan Ermilov
142de08d3a
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 13:14:15 +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
92b1f2f7a3
mdoc(7) police: sweep.
2002-11-29 16:42:23 +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
Robert Drehmel
7ea630865e
Define `Sudden_Underflow' when compiling for the Alpha
...
architecture, mainly to avoid getting a SIGFPE signal sent
when calling strtod(3) with certain input.
The SIGFPE has been sent because the code was not aware that
a Gradual Underflow is handled in software via traps on the
Alpha architecture, but is not implemented in our Alpha kernel
layer.
With `Sudden_Underflow' defined, strtod(3) should not depend
on Gradual Underflow and adjust its calculations accordingly,
which means that other, more subtle errors than the sending of
SIGFPE could be solved by this.
Discussed with: bde
PR: alpha/12623
PR: alpha/17032
PR: alpha/43567
MFC after: 7 days
2002-11-14 17:06:01 +00:00
Alfred Perlstein
e6fc380cd2
de-__P()
2002-10-16 22:18:42 +00:00
Robert Drehmel
6c84d0b1a5
- Remove the lsearch() and lfind() functions and their manpage from
...
the compatibility library libcompat.
- Add new implementations of lsearch() and lfind() which conform to
IEEE Std 1003.1-2001 to libc. Add a new manual page for them and
add them to the makefile.
- Add function prototypes for lsearch() and lfind() to the search.h
header.
2002-10-16 14:29:23 +00:00
Robert Drehmel
e2830bc9e0
Remove unneeded $FreeBSD$ tags.
2002-10-16 14:05:29 +00:00
Robert Drehmel
e768c1be41
- Remove the old insque() and remque() functions and their manual
...
page from the compatibility library.
- Add new implementations of insque() and remque() which conform to
IEEE Std 1003.1-2001 to libc. Add a new manual page for them and
connect them to the build.
- Add the prototypes of insque() and remque() to the search.h
header.
2002-10-16 14:00:46 +00:00
Tim J. Robbins
bd26dcd103
Fix a typo causing incorrect formatting for negative values in some locales
...
(at least the French ones), a memory leak upon successful termination, a
pointer arithmetic error causing heap corruption, and an off-by-one bug
causing incorrect amounts of padding at the right of the value.
2002-10-12 04:38:35 +00:00
Tim J. Robbins
2e9212d966
Save errno around calls to free(); at least some code paths clobber it
...
and we are not interested in any errors it may report.
2002-10-11 23:31:50 +00:00
Tim J. Robbins
d0d87283e9
Document the kind of format string strfmon() expects. Sync the Errors
...
section with reality.
2002-10-11 23:17:17 +00:00
Tim J. Robbins
2621915fa7
Use the new struct lconv members to determine how to format international
...
monetary values.
2002-10-11 23:08:03 +00:00
Tim J. Robbins
40a48101d3
Non-negative amounts should not have an extra space in front of them
...
when the `(' flag is used.
2002-10-11 23:04:59 +00:00
Tim J. Robbins
284d56227c
"Left precision" and "right precision" are not flags, but separate parts
...
of the format string that appear after the field width.
2002-10-11 22:59:22 +00:00
Tim J. Robbins
ecab372b7e
Add cross-references to wide character versions of these functions.
2002-10-10 04:31:57 +00:00
Mike Barcroft
553c116dad
Add missing const qualifier in tfind().
2002-10-03 06:33:33 +00:00
Eric Melville
a35a7e761a
Add getopt_long(3).
...
Obtained from: NetBSD
Sponsored by: Apple
2002-09-29 04:14:37 +00:00
Mike Barcroft
883738f287
Add restrict type-qualifier.
2002-09-20 08:24:01 +00:00
Garrett Wollman
eca67d5104
Implement C99's _Exit() interface.
...
Implement a version of qsort that provides a thunk to the comparison function.
Update manual pages.
2002-09-10 02:04:49 +00:00
Garrett Wollman
2c5db8c62d
Include some verbage about not calling exit() from functions registered
...
by atexit().
2002-09-06 19:23:28 +00:00
Tim J. Robbins
58d38e2520
Style: One space between "restrict" qualifier and "*".
2002-09-06 11:24:06 +00:00
Poul-Henning Kamp
bb7d71b99f
s/EDOFUS/EDOOFUS/
...
Persuaded by: Google
2002-08-21 17:11:00 +00:00
Robert Drehmel
5618f72405
- Add the 'restrict' qualifier to the function prototypes and
...
definitions of the functions that convert strings to numbers
and are defined by IEEE Std 1003-1.2001.
- Use ANSI-C function definitions for all of the functions
mentioned above plus strtouq and strtoq.
- Update the prototypes in the manual pages.
2002-08-15 09:25:04 +00:00
Robert Drehmel
840b798c83
- Add the 'restrict' qualifier to match the IEEE Std 1003.1-2001
...
prototype of the tdelete(3) function.
- Remove duplicated space.
- Use an ANSI-C function definition for tdelete(3).
- Update the manual page.
2002-08-14 21:16:41 +00:00
David Malone
ea33013bc4
Use a union to access the words of a double as this is less likely
...
to cause bugs when gcc is more aggressively optimising things.
There are still problems with dtoa mentioned in the PR - maybe
Dan could suggest a patch.
PR: 40209
Submitted by: Dan Lukes <dan@obluda.cz>
Approved by: bde
MFC after: 2 weeks
2002-08-13 14:17:39 +00:00
Poul-Henning Kamp
f42f7c54c8
Make sure we set errno sensibly in case of failure.
...
Spotted by: ache
2002-08-09 10:16:24 +00:00
Andrey A. Chernov
27ebcacbb0
Nonexistent SIZE_MAX -> SIZE_T_MAX
2002-08-04 04:11:48 +00:00
Tim J. Robbins
d4ba1c2249
Signal an error instead of giving the caller less memory than they asked
...
for when num * size would cause integer overflow.
MFC after: 1 week
2002-08-04 02:52:11 +00:00
Garrett Wollman
f646fac5e0
Fix some comments.
2002-07-10 16:35:02 +00:00
Daniel Eischen
c40995b36a
Remove improper use of <namespace.h>
2002-06-27 13:18:27 +00:00