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
dholland
cd1a57ae6d
Document %ll. Closes PR 42283.
2009-12-14 04:39:29 +00:00
matt
f45a8c29f5
Merge from matt-nb5-mips64
2009-12-14 03:04:33 +00:00
matt
42b55ff43a
Fix typo.
2009-12-14 02:53:52 +00:00
dholland
e2423fa273
getaddrinfo is defined to use the AF_* constants, even though perhaps its
...
interface ought to have been defined in terms of PF_*. Add a note about
how the distinction has been lost anyway. Fixes PR lib/42384.
2009-12-14 01:53:31 +00:00
matt
2288207161
Merge from matt-nb5-mips64.
2009-12-14 01:07:41 +00:00
matt
dc05324fb7
Make sure the kernel doesn't pass back 0 for pagesize.
2009-12-14 01:04:46 +00:00
joerg
f65504295d
Fix markup.
2009-12-09 18:06:08 +00:00
roy
c9c21f1ecc
Test against SSIZE_MAX as pointed out by enami tsugutomo.
2009-12-07 21:31:43 +00:00
uebayasi
37469dacdd
Provide the phony "tags" target as previous. Make it depend on the real
...
target. In case someone assumes the target as an interface.
2009-12-06 12:56:59 +00:00
uebayasi
0b52043222
Fix typo in previous.
2009-12-06 11:16:26 +00:00
uebayasi
09afef2063
Rename ${SRCS.{alpha,arm,...}.gen} to ${LSRCS.{alpha,arm,...}.gen} because
...
they ended up in ${LSRCS}, not ${SRCS}. ${SRCS.*} namespace will be used
for more useful things. No functional changes intended.
2009-12-06 07:12:17 +00:00
uebayasi
619e0bd90e
Set ${SRCS.softfloat}.
2009-12-06 07:05:50 +00:00
uebayasi
c1fa6bf05b
Make the local "tags" target an absolute path, ${.OBJDIR}/tags, otherwise
...
it conflicts with the "tags" target defined in bsd.own.mk, which is .PHONY,
which causes you to re-build "tags" everytime you re-run make.
2009-12-06 06:30:52 +00:00
uebayasi
f0d2ed931c
Assign quad / softfloat specific ${SRCS} to ${SRCS.quad} / ${SRCS.softfloat}
...
then append them to ${SRCS}. Those will be used to generate quad / softfloat
symbol lists.
2009-12-06 05:34:42 +00:00
pooka
5f6578a865
tyop de fix
2009-12-02 12:50:27 +00:00
pooka
304d27696e
Document that strtouq can return UQUAD_MAX.
2009-12-02 12:45:35 +00:00
roy
5eba354808
Pass lint.
2009-12-02 11:14:47 +00:00
enami
8f4cd2bee8
Retain old variables when failed to allocate memory.
2009-12-02 09:34:51 +00:00
roy
7cfa046806
Reinstate __getdelim which does no locking.
...
Callers are now required to FLOCKFILE so they can operate on fp as well.
2009-12-02 09:03:13 +00:00
uebayasi
5f297383d5
struct _locale_time_t _global_locale is a datum. Declare it as extern.
2009-12-02 08:53:03 +00:00
roy
142091db36
Protect getline.
2009-12-02 08:46:33 +00:00
wiz
9e3ffe49a3
Make HTML-ready, use standard section headers, fix Xr.
2009-12-01 08:15:50 +00:00
explorer
7ba2798f6e
Assign copyright to TNF
2009-12-01 01:33:25 +00:00
roy
3490b83a1f
Protect getdelim when used internally.
2009-12-01 00:52:13 +00:00
roy
755657be4b
Remove __getdelim and just use getdelim.
...
fgetstr now works with strings up to SSIZE_MAX as a result, but may
reallocate buffers needlessly just like it used to when the buffer size
exceeds INT_MAX.
fgetstr converts errno EOVERFLOW to EINVAL on getdelim error.
2009-12-01 00:03:53 +00:00
roy
ec4d484515
Note that callers should use feof(3) or ferror(3) to distinguish between
...
EOF or an error.
2009-11-30 23:23:29 +00:00
roy
4cf0472d7d
Note that EOF returns -1 when no characters are read.
...
Add code example.
2009-11-30 22:51:46 +00:00
christos
ad4d8ed92e
Add no/op routines for m68000 for the sticky, mask, and round settings.
2009-11-28 23:46:38 +00:00
tnozaki
3f8ca7c44a
guard single-dot from modification by the application
...
(SUSv3 spec don't forbid this brutal operation).
this idea taken from OpenBSD's version of basename(3) and dirname(3).
2009-11-24 13:34:20 +00:00
plunky
369de522d5
fix VIS_HTTPSTYLE to not convert "safe" ($-_.+) and "extra" (!*'(),)
...
characters as mentioned in rfc1738 and rfc1808 and, I think intended
all along in this code but the logic was inverted.
Don't use strchr as it also matches the NUL character which we want
to escape, just compare against the chars directly as done in the
FreeBSD code.
2009-11-23 10:08:47 +00:00
mbalmer
4c993ba354
one more the
2009-11-22 18:07:39 +00:00
mbalmer
ca310c45c1
remove one the to much.
2009-11-22 18:05:50 +00:00
mbalmer
25c6d8b7c2
the doo doo doo, the daa daa daa...
2009-11-22 18:04:37 +00:00
drochner
f7e3ae7c1f
-delete prototypes which are already in <ssp/ssp.h>
...
-make __fail __noreturn__
2009-11-17 20:46:20 +00:00
drochner
683ac0b2d3
make the "src" strings const as in the unchecked equivalents
2009-11-17 20:44:26 +00:00
wiz
567e675c3f
Mention that it is included in IEEE Std 1003.1-2008.
2009-11-17 15:02:08 +00:00
wiz
2e7202c574
Mention that getsubopt is an XSI extension for IEEE Std 1003.1, 2004 Edition. Bump date.
2009-11-17 14:52:21 +00:00
tnozaki
4c40fc3cdc
redo: change _RUNTYPE_SW0 bit, mklocale(1) can't treat SWIDTH0 correctly.
2009-11-09 14:22:31 +00:00
tnozaki
80c3941c48
revert previous change.
2009-11-09 14:20:49 +00:00
tnozaki
5ebbcf6e82
change _RUNTYPE_SW0 bit, mklocale(1) can't treat SWIDTH0 correctly.
2009-11-09 14:17:47 +00:00
joerg
f3abef9367
Improve portability and clarity by using uint8_t for the byte data
...
and expanding u_int to not depend on the !POSIX types.
2009-11-06 20:31:18 +00:00
snj
32381fa0dd
Follow upstream license changes for files with Michael Shalayeff's
...
copyright. In most cases, this means dropping the 3rd and 4th clauses.
2009-11-03 05:07:25 +00:00
stacktic
da8c43524c
Make sure fts_statp is NULL when FTS_NOSTAT is set
2009-11-02 17:17:34 +00:00
christos
2853bbf4b7
use %option instead of #define YY_NO_...
2009-10-29 14:49:02 +00:00
wiz
bd339365ac
Sort ERRORS. Add comma in enumeration.
2009-10-29 01:52:01 +00:00
njoly
b83467c466
Make flock(2) more robust to invalid operation, such as
...
(LOCK_EX|LOCK_SH).
2009-10-28 18:24:44 +00:00
jnemeth
906faa3823
mention MODULE_CLASS_SECMODEL
2009-10-26 20:43:37 +00:00
jnemeth
79487327f2
XXX - confirmed that ms_required is comma-delimited
...
XXX - MODULE_CLASS_ANY shouldn't be returned, but potentially could
be if a module were declared that way
2009-10-26 20:40:00 +00:00
dholland
f1c1c5ddec
Edit - expand descriptions; document data structures in English rather
...
than in C; use more markup; make nroff output not exceed 80 columns.
2009-10-26 05:57:36 +00:00
christos
cfbb35ed03
revert some of dsl's changes to make things build on i386; he can undo what
...
he wants when he comes back.
2009-10-25 20:44:13 +00:00
dsl
5f1a9bea9e
Lint is differentially far too picky...
...
Remove some warnings that only appear on i386 (not on amd64) and that
for some reason best known to others are deemed fatal for i386.
Making this code 'pass lint' does absolutely nothing for its readability (etc).
2009-10-25 17:09:34 +00:00
mlelstv
7aea3a0d0a
import tzcode2009k
2009-10-25 16:20:16 +00:00
christos
3b0d9a876a
don't read hostaliases using unbuffered reads. there is no security benefit.
2009-10-24 21:37:57 +00:00
christos
9d8aeaab57
simplify the example; only register the set of events to watch once since
...
it does not change. Also print that ATTR means changing times too.
2009-10-24 17:49:58 +00:00
christos
e942b6ecb2
expose res_check.
2009-10-24 17:24:01 +00:00
mlelstv
df0cec4903
With 64bit time_t years can be negative and lapyear computation
...
requires rounding down. This avoids an infinite loop in localtime().
2009-10-24 17:01:04 +00:00
dsl
0b807be843
Remove a load of pointless casts - one that even lint doesn't bleat about.
2009-10-24 15:20:15 +00:00
dsl
695bc79994
Check for EOF before erroring fgets() with length <= 0.
...
If length is invalid, set errno = EINVAL and __SERR as well returning NULL.
Should let me close PR/41992.
2009-10-24 14:50:48 +00:00
christos
249296c41c
Add a knote to keep track when resolv.conf gets changed and re-initialize.
...
While here fix a memory leak when calling res_vinit with an already inited
res_state.
2009-10-24 05:35:37 +00:00
bouyer
e0f9b22254
Remove closes 3 and 4 from my copyright.
2009-10-22 21:50:01 +00:00
snj
799a191e36
Pull in revisions 1.24 and 1.25 from upstream, which change this file's
...
license to ISC-style.
2009-10-22 01:38:18 +00:00
skrll
43f47d3c56
G/C bcopy.m4 and references to it.
2009-10-21 19:30:46 +00:00
snj
550147bd6a
Remove 3rd and 4th clauses in christos' license. OK christos.
2009-10-21 01:07:44 +00:00
jnemeth
1cadc32cd7
First pass at a manpage for modctl(2) (hi ad!).
2009-10-20 04:41:28 +00:00
joerg
be403b3398
Fix header to include. From Kristaps Dzonsons.
2009-10-19 22:38:56 +00:00
christos
236714187a
PR/42201: NAKAJIMA Yoshihiro: fts(3): broken compatibility
...
As new field types were added, we did not provide overrides for older compat
versions. This restores compatibility.
2009-10-19 17:52:01 +00:00
dsl
40f437887d
Reverse previous, committed by mistake.
2009-10-15 06:19:35 +00:00
roy
5f96926957
Handle errors from getdelim better.
2009-10-15 00:36:24 +00:00
dsl
01a0f8ea84
Change a while () {} into a do {} while() so that fgets(buf, 1, file)
...
detects EOF on an empty file.
Fixes most of PR/41992
2009-10-14 21:25:52 +00:00
roy
6e80fcc98f
Store the allocated buffer against FILE, plugging a memory leak.
...
Fixes PR bin/42183.
2009-10-14 20:54:51 +00:00
joerg
178d0fc825
Do not nest displays, use lists instead. Discussed with wiz.
...
Fix markup.
2009-10-14 17:24:03 +00:00
joerg
6fc39b6fcb
No .Pp inside .Rs/.Re.
2009-10-13 21:39:55 +00:00
pooka
50efcfca57
When converting the locking path of mutex+counter to a real recursive
...
mutex, it's a good idea to convert the unlock path too so that the
recursive mutex gets released as many times as it was locked.
Fixes pthread + cxa deadlock.
2009-10-08 16:33:45 +00:00
tnozaki
6c81c0d804
fix lib/42124: setlocale(3) never returns NULL with none existing locale.
...
reported by kambe-san, thanks!
2009-10-04 21:05:18 +00:00
phx
c9394f466a
SystemV-R4 ABI for M68k returns pointers in %a0, so we have to make sure
...
that CERROR returns -1 in %a0 in addition to %d0 and %d1, to make functions
like mmap(2), mremap(2), shmat(2) or sbrk(2) return -1 in case of an error.
A side effect of this bug was a segfault caused by jemalloc, when mmap()
failed.
2009-10-03 22:28:33 +00:00
wiz
3dee657aa5
Revert a -> an changes: Adding an 'n' follows pronunciation, not writing.
2009-10-02 07:41:08 +00:00
wiz
b9f34d69ea
Bump date for new allocaddrinfo.
2009-10-02 06:59:37 +00:00
cegger
45db136e91
fix grammar: a -> an
2009-10-02 06:49:23 +00:00
tsarna
1f4f234ea9
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
...
Discussed on tech-net.
2009-10-02 02:45:28 +00:00
elad
6780ec6543
CTLFLAG_READONLY[12] are long gone.
2009-09-26 04:43:48 +00:00
pooka
4c1e54d82b
Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
...
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
2009-09-24 21:21:33 +00:00
roy
86eafd3e05
__getdelim works on strings up to SIZE_MAX - 2 and returns 0 on EOF.
...
getdelim works on strings up to SSIZE_MAX and returns -1 on EOF.
__fgetstr is now just a wrapper around __getdelim and ensures that
the buffer doesn't overflow the one provided by FILE.
__slbexpand is now static in fgetwln as it is the only consumer of that func.
2009-09-24 20:38:53 +00:00
dsl
602976fff6
Ansify functions and remove __P/
2009-09-05 08:53:06 +00:00
dholland
9af4cd75f3
Add parentheses around a misleading string constant concatenation,
...
from (my own, very old) PR 36064.
2009-09-05 06:44:27 +00:00
apb
a9dda51fb1
Add cross references to new boothowto(9) man page.
2009-09-04 23:29:02 +00:00
wiz
9e5519cfe8
Make HTML-ready.
2009-09-01 22:12:05 +00:00
elad
8fbf70d4eb
Add useful example program from
...
http://mail-index.netbsd.org/tech-kern/2009/09/01/msg006020.html
2009-09-01 22:01:48 +00:00
wiz
0e46e32aae
Note some restrictions for getdelim arguments noted by joerg.
...
Bump date.
2009-08-25 16:28:26 +00:00
dsl
11bcd8ad6a
The 'table' of character weights is allowed to be NULL.
...
The SETUP define sorts it out (in the slowest and nastiest possible way!)
Broken by rev 1.12 almost 10 years ago!
2009-08-21 20:49:50 +00:00
he
6218a6dafa
Introduce a new accessor macro N_NAME() to access the n_name field
...
in struct nlist, since it's accessed differently depending on
whether we do a.out or not. Use this macro as appropriate in the
nlist* functions.
Also replace some includes of <a.out.h> with <nlist.h>, to fix build
problem for mips.
2009-08-21 08:42:02 +00:00
martin
bc27f3e093
forward declare struct nlist before including nlist_private.h to avoid a
...
compiler warning.
2009-08-20 11:08:59 +00:00
he
4cf9cdf39a
Actually, when we really need the a.out defines from <nlist.h>, we
...
need to include <a.out.h> anyway. Move it inside #ifdef NLIST_AOUT.
2009-08-20 10:19:36 +00:00
he
3a05737d04
Instead of including <a.out.h> to get at "struct nlist" (with a comment
...
to explain it), include <nlist.h> instead, so that our mips ports don't
error out in the absence of aout_machdep.h.
2009-08-20 08:30:04 +00:00
joerg
8a6f35af57
Fix markup.
2009-08-19 15:43:02 +00:00
christos
f227975929
Version fts one more time! This is the most versioned API ever... Bump
...
fts_level from short to int to avoid a potential DoS.
From Maksymilian Arciemowicz
2009-08-16 19:33:38 +00:00
matt
3308ff5cbf
Only include <sys/exec_aout.h> if NLIST_AOUT is defined.
...
Don't define NLIST_AOUT for mips anymore.
2009-08-16 03:56:26 +00:00
seanb
612dfc4de9
Watch getservbyport_r() semantics. sv needs scope
...
while results are being looked at which in turn
are no longer valid after a endservent_r().
2009-08-12 20:24:30 +00:00
dsl
a245205b96
Change NO_SRCS lines to specify .S in order to exclude the .c file from
...
SRCS but add it to LSRCS (sort of makes sense!).
2009-08-11 17:30:43 +00:00
dsl
05e1772663
Change (slightly) the way NO_SRCS is processed, update big comment!
...
Now the .c file is removed from SRCS for both .S and .c in NO_SRSC.
The .c file is added to LSRCS for .S files in NO_SRCS.
(.S files in SRCS have the same treatment - but also get compiled.)
Allows vax build to be fixed.
Also the previous version failed to add to LSRCS correctly.
2009-08-11 17:29:04 +00:00
dsl
4ef3fc9143
Add text to the description saying that normal applications should not
...
use syscall().
Add text to bugs saying that high bits of the syscall number may be masked.
Fixes bug PR/11088
2009-08-07 19:34:46 +00:00
wiz
9c8f6f63d2
Bump date for previous.
2009-08-05 23:15:52 +00:00
pooka
27db690df3
fhopen() needs sys/mount.h
...
(if someone disagrees, feel free to fix as much as your heart desires)
2009-08-05 23:03:08 +00:00
dsl
f687cf7e68
If the current locale doesn't define the 'thousands' grouping info
...
then use sane defaults (',' every 3 digits).
Fixes PR/40714
2009-08-05 20:46:01 +00:00
joerg
eb96fdd9a2
ffs(3) lives in strings.h, so include the correct header. ANSIfy.
2009-08-05 16:08:00 +00:00
joerg
466a3e5dee
Revert to revision 1.8. Blindly ignoring options is not acceptable
...
behavior and hides more problems than it is fixing.
Discussion:
http://mail-index.netbsd.org/current-users/2009/02/03/msg007761.html
Approved by: core@
2009-08-05 15:17:02 +00:00
dsl
d3c3d024a7
bzero.S defines memset(), so exclude memset.c
2009-08-03 06:26:41 +00:00
dsl
af129c0bc8
bzero.S also defines memset(), so exclude memset.c
2009-08-03 06:25:34 +00:00
dsl
8190cfe5fa
Don't remove imaxdiv.c
2009-07-31 20:54:35 +00:00
dsl
10ad5ffa71
Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.
...
Change the arch files only include the .S files.
This adds imaxdiv() to some archs where it was missing.
2009-07-31 20:39:59 +00:00
dsl
027bacee22
Use a 'register only' str[c]spn() on 64 bit systems.
2009-07-30 21:42:06 +00:00
dsl
f0a25cf095
Stop bcopy.c and bzero.c being compiled
2009-07-30 21:26:36 +00:00
dsl
0d34d14bb9
If SRCS contains any .S files then remove the corresponding .c file from
...
SRCS and add to LSRCS (for lint).
Change the 'string' Makefiles so that the arch/*/string/Makefile.inc
need only specify the .S files for that architecture and not the .c
files for all the files they don't override.
2009-07-30 20:57:15 +00:00
wiz
fa52b0ad23
Bump date for previous.
2009-07-23 13:37:34 +00:00
dholland
3cfdfcef43
Clarify the description of the errno behavior, based on the recent
...
thread in tech-userlevel.
2009-07-23 02:54:27 +00:00
dholland
6687b6883d
Mention, along with the behavior of succeeding system calls, the
...
normal behavior of succeeding library functions regarding errno.
(That is, they may leave arbitrary nonzero values in errno.)
Ok kleink@; related to PR lib/41567 as well as a recent thread on
tech-userlevel.
2009-07-23 02:31:56 +00:00
alc
3831d4ed46
Bump date.
2009-07-22 22:54:15 +00:00
alc
2f42139c8e
Constify the fourth argument of sysctlbtname(3) (ie. `newp', the pointer to
...
the new value).
This change sync sysctl(3) and sysctlbtname(3) prototypes.
No objection on <tech-userlevel>
2009-07-22 22:53:41 +00:00
kleink
9be4603670
Declare strsignal(3) in <string.h>, per POSIX-2008, and adjust
...
documentation accordingly.
Fixes PR standards/41325 from Perry E. Metzger.
2009-07-22 19:48:27 +00:00
wiz
f21bef181d
Add comma in enumeration.
2009-07-22 07:07:27 +00:00
joerg
0578c2ad0f
Move popcount et al to src/common and add popcount32/popcount64.
...
Requested by rmind@. MD should now override popcount32/popcount64 and
provide the aliases as fitting.
2009-07-21 14:55:32 +00:00
wiz
02079c4a1c
Xref popcount(3).
2009-07-21 13:22:15 +00:00
wiz
345d7916c5
Fix typo, add comma in enumeration.
2009-07-21 13:21:41 +00:00