Commit Graph

8012 Commits

Author SHA1 Message Date
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