jruoho
a80a543b80
Add more markup.
2010-05-03 03:47:51 +00:00
jruoho
280488d6bc
Note that the return type sould arguably be intmax_t instead of long long.
2010-05-01 08:35:52 +00:00
jruoho
061351141b
Remove the (incorrect) note about inconsistent return values. Name the exit
...
code as EXIT_FAILURE instead of integer 1.
2010-05-01 08:30:00 +00:00
jruoho
413ef23a32
Add more bugs. Namely, besides the return values that are confusing, no
...
function in a modern standard C library, exposed by <stdlib.h>, should be as
easy to (buffer) overflow as strsuftollx(3).
In addition, improvements to wording and markup.
2010-05-01 08:12:30 +00:00
jruoho
4519228649
Improvements to wording and markup.
...
In addition, list more bugs and caveats. Namely, the NetBSD implementation
(like the FreeBSD one where this was ported to) requires that the comparison
keys are allocated dynamically, and that hdestroy() will try to free(3) each
key. This obviously severely limits the portability, given that other
implementations (for example, the Linux one) make no such assumptions. Both
approaches are legitimate, and thus the real bug is in the ambiguity of the
standard.
2010-05-01 06:18:03 +00:00
jruoho
a293ac8fcc
Rewrite the HISTORY section.
2010-04-30 10:24:02 +00:00
jruoho
eecb0b5e2c
Put the period outside the quotation marks.
2010-04-30 10:09:23 +00:00
jruoho
cb375ee477
Add STANDARDS and CAVEATS. The latter notes the ambiguity of tdelete() when
...
deleting the root node.
2010-04-30 10:06:52 +00:00
jruoho
68cb312101
Remove the note about eaccess(); no such thing in NetBSD.
2010-04-30 09:41:59 +00:00
jruoho
42e4725801
Also: in the example EOVERFLOW is probably better than ENOMEM.
2010-04-30 07:16:35 +00:00
jruoho
67e69a6bf8
As err(3) instructs, use EXIT_FAILURE in the example.
2010-04-30 07:14:15 +00:00
jruoho
75d4d306c5
Steal the "malloc() vs. calloc()" -idiom from the OpenBSD's malloc(3).
...
While it may be debated how useful this is, good idiomatic usage examples
are exactly the kind of thing one would hope to see more in manual pages.
2010-04-30 07:00:51 +00:00
wiz
779fbbb100
Wording.
2010-04-30 06:54:16 +00:00
wiz
5a5627574d
Sort errors.
2010-04-30 06:51:52 +00:00
wiz
0264ec21bd
Merge two entries for the same error.
2010-04-30 06:48:20 +00:00
jruoho
54f0f8584b
Use a SECURITY CONSIDERATIONS instead of the BUGS section, and steal this
...
section from FreeBSD (with minor modifications).
2010-04-30 06:34:23 +00:00
jruoho
1ad0e6c25b
Put SECURITY CONSIDERATIONS as the last section.
2010-04-30 06:23:56 +00:00
jruoho
2f941c83c7
Fix the mess in the sections; someone went to sleep in the middle of a
...
sentence...
2010-04-30 06:22:28 +00:00
jruoho
b0e9ddf609
They've finally made gets(3) obsolete (in POSIX, at least).
2010-04-30 06:00:14 +00:00
jruoho
1b80a21f09
Add HISTORY.
2010-04-30 05:56:14 +00:00
jruoho
fba71b9825
Marked as legacy already in SUSv2; removed in POSIX 2001.
2010-04-30 05:50:46 +00:00
jruoho
d307542670
Deprecated in POSIX (rev. 2008).
2010-04-30 05:09:23 +00:00
jruoho
4078f3e9d1
Also tmpnam(3) and tempnam(3) are now obsolete in POSIX.
2010-04-30 04:55:10 +00:00
jruoho
92370ee67d
Interestingly, the committees plan to remove also isascii(3) and toascii(3)
...
in the future.
2010-04-30 04:46:18 +00:00
jruoho
70d2311835
More obsolete things. These are all already deprecated in NetBSD, but it is
...
worth noting that also the standard has marked these as legacy.
2010-04-30 04:39:16 +00:00
jruoho
a2ebffc113
Reference timeradd(3).
2010-04-30 04:17:45 +00:00
jruoho
eccc1c42e1
Add STANDARDS section. Note that both functions were marked as obsolescent
...
in POSIX (2008); "timer_gettime(2) and timer_settime(2) should be used".
2010-04-30 04:15:49 +00:00
jruoho
71a03dd7f6
Small improvements to wording and markup.
2010-04-30 04:06:20 +00:00
jruoho
c6d218be32
.Nm -> .Fn.
2010-04-30 03:52:13 +00:00
jruoho
ec4fdaa41e
It was nice to expect fts(3) to appear in the '88 revision. But perhaps
...
people had too high hopes.
2010-04-29 17:39:03 +00:00
jruoho
934551e44a
No more usleep(3) in POSIX; "use nanosleep(2) instead".
2010-04-29 17:29:56 +00:00
jruoho
6adec4717c
Fix markup.
2010-04-29 17:17:18 +00:00
jruoho
3d0a5d8f1c
Note that also POSIX has deprecated utime(3).
2010-04-29 17:07:00 +00:00
jruoho
648a1295d8
Fix the standards: utimes(2) is still in SUSv4, although marked as legacy.
2010-04-29 17:02:38 +00:00
jruoho
61564b38a1
Note the ambiguity of the return value in the BUGS section.
...
From Christian Biere <christianbiere@gmx.de> in PR #39392 .
2010-04-29 10:03:12 +00:00
jruoho
c25207d763
Note POSIX compliance.
2010-04-29 08:06:21 +00:00
wiz
0c57838d7b
Sort errors.
2010-04-29 07:31:02 +00:00
wiz
3292536e4b
Add punctuation.
2010-04-29 07:27:30 +00:00
wiz
a917229f2a
Improve a sentence.
2010-04-29 07:26:39 +00:00
jruoho
c792ab3e8e
Note that utimes(2) no longer enjoys the blessing of POSIX.
2010-04-29 07:14:35 +00:00
jruoho
157d0c3eea
Add some STANDARDS lingo, mainly to note the functions that have been
...
removed from POSIX (2008).
2010-04-29 06:54:26 +00:00
jruoho
c329b28a22
Properly mark the standard that "deprecated" all of these.
2010-04-29 06:07:35 +00:00
jruoho
8cd9bb9479
Note the recent changes.
2010-04-29 05:42:04 +00:00
jruoho
092ff05778
Note that the ucontext(2) et. al. were first moved from X/OPEN extensions to
...
the base POSIX-2001 and later marked as obsolete in POSIX-2008.
2010-04-28 14:07:03 +00:00
jruoho
2da6d4a4d9
Only put the actual header for the .In line.
2010-04-28 07:47:09 +00:00
jruoho
494f19760f
Reference ffs32(3). Also note POSIX compliance and the movement of the
...
header from <string.h> to <strings.h>.
2010-04-28 07:44:04 +00:00
jruoho
fca63cde02
Note POSIX compliance.
2010-04-27 15:26:59 +00:00
jruoho
4efab6a05e
Use .In for includes and .Va when listing the structure members.
2010-04-27 15:16:28 +00:00
jruoho
5430c65883
.Pp after .Ed.
2010-04-27 14:26:52 +00:00
wiz
eba2c99734
Various fixes, mostly for typos.
2010-04-25 10:32:44 +00:00
joerg
b9cf7d31ab
Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
...
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
dholland
df62afc03b
Edit previous HISTORY patch for style; note our 64-bit time_t change.
...
Bump date.
2010-04-24 01:35:50 +00:00
drochner
87941501db
use the local versions of ldexp/frexp/modf again rather than pulling
...
in libm source code. The libm functions depend on other libm functions,
this requires symbol renaming, and with the reachover method this
is going to be a mess. Also, bundling the dependencies into one .o
file has the potential to cause symbol conflicts on static linking.
2010-04-23 19:04:54 +00:00
jruoho
829390ffbf
gcc -> GCC, offset indent.
2010-04-22 13:41:40 +00:00
jruoho
69cf4af7f3
Use .In for includes.
2010-04-22 08:00:34 +00:00
apb
67ca6b24d2
The number of byte pairs to swap is len/2, not len/2+1.
2010-04-18 11:39:39 +00:00
apb
fa3abaaeb7
Bitwise operations on signed types are well-defined if the values
...
happen to be positive, and indeed the values here were guaranteed
to be positive, but some compilers complained anyway, so convert
the bitwise operations to arithmetic operations.
2010-04-18 10:51:33 +00:00
christos
d403570167
simplify
2010-04-18 04:54:33 +00:00
christos
665a4f86a1
fix lint
2010-04-17 21:42:43 +00:00
wiz
96a3ffaf7c
Remove trailing whitespace.
2010-04-17 20:29:20 +00:00
wiz
8cd16a22d0
Join URL.
2010-04-17 20:28:47 +00:00
christos
885d0edc52
Change and document for POSIX compliance.
2010-04-17 17:57:39 +00:00
christos
b2cf198a4c
add restrict
2010-04-17 17:50:13 +00:00
jruoho
6d890644fe
Use the common template for the USENIX paper. Add URL.
2010-04-17 10:08:21 +00:00
wiz
24e353786d
Join URL.
2010-04-14 13:07:19 +00:00
jruoho
16a83e93ba
Add the USENIX paper of Miller and de Raadt to SEE ALSO.
2010-04-14 11:07:20 +00:00
wiz
3877f39979
Sort ERRORS.
2010-04-14 09:10:30 +00:00
jruoho
99e0ab963b
Use a list and sort it by the entries in the structure.
2010-04-14 09:06:00 +00:00
jruoho
354bfa433d
Add offsets to the indentation in couple of places.
2010-04-14 08:57:21 +00:00
jruoho
8e36ebc45f
Bump date for previous. (How hard can it be to remember this.)
2010-04-14 08:49:49 +00:00
jruoho
85eede30d6
Use subtitles instead of a list.
2010-04-14 08:47:19 +00:00
njoly
378ab16605
Add missing double quote.
2010-04-14 07:20:27 +00:00
wiz
957fbddadb
Uncomment pdf link for paper.
2010-04-13 10:45:46 +00:00
jruoho
175f8fdaa8
Add the USENIX paper of Jonathan Lemon to SEE ALSO.
2010-04-13 09:24:09 +00:00
wiz
e80bcec341
New sentence, new line. Sort errors. Remove trailing whitespace.
2010-04-06 14:26:59 +00:00
christos
ca843a73b0
PR/43128: Paul Koning: Threads support in ptrace() is insufficient for gdb to
...
debug threaded live apps: Add an optional lwpid in PT_STEP and PT_CONTINUE to
indicate which lwp to operate on, and implement the glue required to make it
work.
2010-04-06 13:50:22 +00:00
joerg
20fc76af98
Fix escape sequences
2010-04-05 21:35:36 +00:00
joerg
727da1104c
\\ -> \e
2010-04-05 21:33:54 +00:00
joerg
eff7f134e1
\\ -> \e
2010-04-05 21:29:47 +00:00
joerg
1ff41cb93a
Fix escape sequences
2010-04-05 21:29:09 +00:00
joerg
a3d484cd9e
\\ -> \e
2010-04-05 21:25:01 +00:00
wiz
1bc7bb47a0
Sort ERRORS section.
2010-04-05 07:53:47 +00:00
wiz
a59af7eb39
Fix date.
2010-04-05 07:44:28 +00:00
jruoho
a6664c93e0
Mention the history of stat(2) and fix the history of open(2).
2010-04-03 15:48:52 +00:00
jruoho
22451322a2
The functions read(), wait(), and write() appeared already in v2 UNIX.
2010-04-03 15:43:46 +00:00
jruoho
7e0f77d0f3
Add a history section. From OpenBSD.
2010-04-03 15:42:22 +00:00
jruoho
e029f37fb0
An unlink() appeared already in v2 UNIX.
2010-04-03 15:35:06 +00:00
jruoho
22c60c14ce
Add some history.
2010-04-03 15:13:43 +00:00
jruoho
c1b7f739cf
Some interesting additions to the history section. From OpenBSD.
2010-04-03 14:49:31 +00:00
jruoho
086a18e995
Trivia: one .Pp after .El, speak about NULL instead of nil pointers, etc.
2010-04-03 14:40:34 +00:00
tnozaki
542176520a
woops, fogot to include limits.h.
2010-03-28 18:19:52 +00:00
tnozaki
19f5aa7162
MB_LEN_MAX should moved from MD to MI.
2010-03-28 14:08:22 +00:00
tnozaki
186e12cc6b
avoid mbrtowc/wcrtomb buffer overrun when CPUARCH=hppa and MB_CUR_MAX > 6.
...
it is not usual case(merely used such mutibyte locale, eg. ja_JP.ISO-2022-JP).
[background]
before merging minoura-xpg4dl branch(2001), we argued and decided to increase
MB_LEN_MAX 1 -> 32 all CPUARCH(*but* we forgot to change it MD to MI).
without knowing that NetBSD/hp700(mergeing -current 2002) incorrectly set
MB_LEN_MAX=6 (maybe this value taken from FreeBSD). but our setlocale(3)
assumes __mb_len_max_runtime as 32, so that mbrtowc/wcrtomb may overrun.
we have to increase hppa's MB_LEN_MAX upto 32, and change it MD to MI
next libc major bump(scheduled next release 6.0).
2010-03-28 14:05:09 +00:00
tnozaki
377cb4e4f9
1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
...
libc implementation (such as *BSD and glibc2).
2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
it may pass through compiler type check, it's harmful.
so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).
no ABI change was made.
2010-03-27 22:14:09 +00:00
christos
533e2fe94f
fix tpo.
2010-03-27 16:47:05 +00:00
tnozaki
5ad520e6d1
_locale_cache_t: change ldata and items to pointer for future binary compatibility.
2010-03-27 15:25:21 +00:00
drochner
ebfe3c0a28
remove some stray __weak_aliases, where the target functions were
...
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
joerg
1c3412fa2f
Use .In for header files instead of .Ar Pa and variations.
2010-03-22 19:30:53 +00:00
jruoho
66475d5b9d
Break the (too) big lead paragraph into three smaller ones.
2010-03-22 13:15:54 +00:00
mrg
3bdcb2e4b5
add a nop to provide enough space for the linker and long calls.
...
fixes link errors with 'cerror' and libposix.
from dennis.c.ferguson@gmail.com in PR#43010.
2010-03-22 02:17:23 +00:00
mrg
093c642fac
replace kernel-only 'stmd' and 'lmd' operations in userland with equivalent
...
sequences of code, as done in eg, powerpc64/gen/_setjmp.S rev 1.2.
from dennis.c.ferguson@gmail.com in PR#43009.
2010-03-22 01:39:11 +00:00
mrg
4e60bef737
convert -idirafter to -isystem, as recommended by cgd in PR 11843.
...
most of the list in that PR were already done.
2010-03-22 01:29:29 +00:00
jruoho
67dcd1d1f0
Bump date for previous.
2010-03-21 20:38:20 +00:00
jruoho
341372abaa
Note inttypes(3) also here.
2010-03-21 20:34:52 +00:00
jruoho
61f4a4ebdc
Mention the recommended usage of inttypes(3) when applicable.
2010-03-21 19:55:19 +00:00
jruoho
ab524958e3
Emphasize imaxint_t.
2010-03-21 13:39:51 +00:00
tnozaki
56bf19aaea
fix byte order mark related bug introduced by previous commit,
...
reported by Sverre Froyen via current-user, thanks!
2010-03-20 18:15:32 +00:00
joerg
ec66a10c91
Namespace protection for mi_vector_hash.
2010-03-19 18:11:30 +00:00
tnozaki
36a8b8869c
1. fix wrong byte order mark of utf-16, reported by NARUSE Yui -san.
...
patch provided by tshiozak@ -san.
2. don't eat 0xfeff/0xfffe if they don't appear at the first of bytestream.
noticed y tshiozak@ -san, patch provied by me.
thanks a lot.
2010-03-15 15:00:58 +00:00
mrg
19499f3f8d
update all of these makefiles for the .so -> .pico change.
...
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled. this caused c++ exceptions not to
work on sparc64.
this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
uwe
6fc217346b
Add memset to libkern on vax, moving existing memset.S to src/common.
...
While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.
Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().
2010-03-12 09:12:34 +00:00
dholland
d5343f0177
indentation/whitespace
2010-03-07 23:49:14 +00:00
dholland
97e205be98
remove stray semicolon
2010-03-07 23:45:22 +00:00
enami
3df6d33667
Fix race condition on reallocation of huge category.
...
We need to remove the old region before mremap() since if it relesae the
old region, other thread may map it for the same huge category allocation
and insert it to the tree before we acquire a lock after mremap().
Fixes PR/42876.
2010-03-04 22:48:31 +00:00
christos
4fc887422c
- KNF
...
- fix hertz()
- fix error and warning messages
2010-03-01 19:52:38 +00:00
wiz
d2a81ca5b2
Uncomment crash(8) reference.
2010-02-25 17:15:55 +00:00
christos
48bf0eec29
Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredump
...
if the timezone file fails to load, due to late initialization of sp->goahead
to false in tzload, causing localsub to return NULL in the "cannot happen"
case. The fix is belt and suspenders:
- initialize sp->goback and sp->goahead very early in tzload
- replace all malloc calls with callocs, and remove the bogus
casts (it is not the 70's anymore!)
2010-02-17 17:25:55 +00:00
dyoung
20ecd150d5
Link atomic_cas.3 to atomic_cas_{32,64,ptr,uint,ulong}_ni.3.
2010-02-12 22:34:38 +00:00
dyoung
ba71f034aa
With help from rmind@, describe the non-interlocked (*_ni) variants of
...
the standard atomic compare-and-swap operations. Tell some caveats.
Manual page links, *_ni.3 -> atomic_cas.3 are coming up after a
successful 'build.sh distribution'.
2010-02-12 22:23:17 +00:00
wiz
3127fa5dcf
Fix typo.
2010-02-12 12:29:10 +00:00
roy
7ffeaa6526
Include nbtool_config.h as we need to be part of the terminfo toolchain.
2010-02-04 10:27:08 +00:00
wiz
368f216930
Remove trailing whitespace. Use Fn when referencing functions. Sort sections.
...
New sentence, new line.
2010-02-03 08:47:40 +00:00
christos
e89ba73a47
According to TOG:
...
- asctime{,_r}, ctime{,_r} may return NULL; document that, and avoid coredumps.
- gmtime{,_r}, localtime{,_r} may return NULL and set EOVERFLOW, document and
set errno.
- when mktime returns (time_t)-1, make it set EOVERFLOW and document it.
XXX: Should be pulled up to 5.x
2010-02-02 19:04:37 +00:00
is
45845cf0d7
Print AppleTalk phase 2 range, too, if available.
2010-01-29 22:26:48 +00:00
drochner
6cbc5cbff1
fix behavior in case of +-Inf or NaN input: return the proper
...
values and set *iptr
(This code is only used under non-default build options, and on m68k.)
2010-01-27 14:10:41 +00:00
is
000fbf6b41
Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
...
Doesn't print "ranges" yet (should it be done here?); only numeric
output.
2010-01-26 21:27:54 +00:00
wiz
f9884f518a
Free malloc()ed buffer in error case. Found by cppcheck.
2010-01-17 23:13:32 +00:00
wiz
62523e18d5
Close file handles in error cases. Found by cppcheck.
2010-01-17 23:12:30 +00:00
wiz
ccf859cb7b
Close file handle in error case. Found by cppcheck.
2010-01-17 23:10:20 +00:00
wiz
7bd4f0a241
Close log file handle after using it. Found by cppcheck.
2010-01-17 23:09:02 +00:00
wiz
15989318ee
Close file handle after using it. Found by cppcheck.
2010-01-17 23:06:31 +00:00
joerg
56da4fa7b5
Move AMD64's bswap64 implementation from libc to src/common and share it
...
with the kernel.
2010-01-14 02:09:46 +00:00
joerg
00711901b6
Use a proper char */size_t pair in __sfileext to keep track of the line
...
buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX
related logic. Drop conditionals around FREELB, free(NULL) is valid.
2010-01-11 20:39:29 +00:00
joerg
635076e0b1
Fix mdoc(7)/man(7) mix up.
2010-01-08 23:14:13 +00:00
joerg
69ebc5167f
Fix up mix of man(7)/mdoc(7).
2010-01-08 19:20:21 +00:00
joerg
71f3cc8605
Try to fixup the mess of mdoc(7)/man(7) mixture as created by the merge.
2010-01-08 17:16:56 +00:00
skrll
5ddaffd107
Deal with PLABELs in _lwp_makecontext
2010-01-07 12:31:10 +00:00
tsutsui
47ef4e54e9
Include "nbtool_config.h" for src/tools/zic/ and
...
remove bogus -DNOID to disable __RCSID().
XXX: should we also remove #ifndef lint from scheck.c and zic.c?
2010-01-02 10:42:49 +00:00
dholland
c281fbb701
POSIX says realpath(NULL, foo) is supposed to yield EINVAL rather than
...
being allowed to crash. Go figure. Closes PR lib/42559 from Stathis Kamperis.
2010-01-01 19:59:21 +00:00
mlelstv
86162a51cc
Import tzcode2009k.
...
- now understands 64bit time_t and 64bit data in timezone files.
- localtime(), gmtime(), asctime() and ctime() may now fail with
a NULL result if time_t cannot be represented by struct tm.
2009-12-31 22:49:15 +00:00
wiz
16aa486655
Sort ERRORS.
2009-12-20 02:16:40 +00:00
pooka
0a9d896555
Remove note about portability, since PF_UNSPEC will cause socketpair()
...
to EAFNOSUPPORT on NetBSD(!). Additionally, at least slowaris and
linux talk only about PF_LOCAL. Finally, since I'm reading a NetBSD
man page, I foremost care about the code working on NetBSD.
2009-12-19 23:00:10 +00:00
christos
b56987f3f3
PR/42466: Yasuoka Masahiko: vsnprintf_ss() causes infinite loop
2009-12-17 15:19:48 +00:00
mrg
1a9afd2643
don't warn about mcount on mips64* as well.
...
XXX: someone really should fix mips profile.h's MCOUNT!
2009-12-17 06:54:51 +00:00
enami
08464abb1e
Put space after comma in the C code example.
2009-12-15 00:35:36 +00:00
matt
f3848e2eb2
Back errant change due to botched merge.
2009-12-14 20:45:02 +00:00
wiz
663935444d
Bump date for previous.
2009-12-14 07:31:49 +00:00
wiz
6277279df4
Whitespace nit.
2009-12-14 07:29:23 +00:00
matt
c7af27854b
Suppress a warning if time_t is __int64_t
2009-12-14 05:51:56 +00:00
dholland
34a411910a
whoops, bump date for previous.
2009-12-14 04:40:29 +00:00