Commit Graph

9697 Commits

Author SHA1 Message Date
apb
e7f11a1a5a fix missing backslash in previous 2014-06-12 19:12:19 +00:00
apb
bb0d3eec51 Wrap complex macros in do { ... } while (0). Also replace the magic
number 1600000 with a macro.
2014-06-12 19:05:37 +00:00
christos
b27e135433 rename to 60 2014-06-12 18:49:37 +00:00
christos
32baae8990 update for new signatures 2014-06-12 18:46:12 +00:00
christos
1eb0dcbb1d fix srandom and initstate signatures (from enh at google) 2014-06-12 18:44:36 +00:00
njoly
e4ae04a902 Replace wrong numeric values with corresponding symbolic constants.
While here, remove unneeded paragraph macro.
2014-06-09 09:15:48 +00:00
roy
c7009a57fe Re-stir after forking, fixes PR lib/25367.
Re-stir after consuming 1600000 bytes, fixes PR lib/45952.
2014-06-07 20:55:47 +00:00
joerg
86ed47b359 Fix conditionals. 2014-06-06 11:38:41 +00:00
christos
955a80396c be friendlier to nbcompat 2014-06-06 01:41:00 +00:00
wiz
abf14c83e2 Remove trailing whitespace. 2014-06-05 22:09:50 +00:00
christos
78d38aa25c Bring getopt(3) inline with getopt_long(3): recognize option:: as an optional
option.
2014-06-05 22:00:22 +00:00
njoly
4dd55950ee len argument is of unsigned type (size_t) and thus cannot be negative;
remove corresponding statement in ERRORS.
2014-05-30 16:11:01 +00:00
christos
f75f663858 Don't try to listen on UDP sockets. 2014-05-29 12:35:45 +00:00
christos
032a656e95 welcome to 2014d; zic big bang fixes:
some programs did not handle large negative time_t values well (gnome)
2014-05-28 19:13:27 +00:00
christos
721439951a CID 975117: check listen(2) return . 2014-05-28 14:49:28 +00:00
christos
bf67527d19 CID 97511{4,5}: Ignore bindresvport return. It only works for root. 2014-05-28 14:45:57 +00:00
christos
226875968c CID 975113: Ignore __rpc_setnodelay error, it is not fatal 2014-05-28 14:45:19 +00:00
christos
e05a011b8f CID 975112: Ignore bindresvport() return. This is can only succeed for root 2014-05-28 14:41:47 +00:00
christos
b33a0c98e1 CID 975111: Ignore return value from initgroups(). If we failed, then
the failure would be that we could not open the .rhosts file so we fail
closed.
2014-05-28 14:39:02 +00:00
uebayasi
d3e9bed41f Fix previous. 2014-05-23 03:05:56 +00:00
uebayasi
0d34bfa26d Put missing END() markers to set ELF symbol size. 2014-05-23 02:34:19 +00:00
uebayasi
d6b02e86d1 Put missing END() markers to set ELF symbol size. 2014-05-23 02:17:43 +00:00
uebayasi
44f0e5275c Define hacked version of END() in addition to ENTRY(). 2014-05-23 02:03:41 +00:00
uebayasi
502c621104 Put missing END() markers to set ELF symbol size. 2014-05-22 15:21:13 +00:00
uebayasi
92d1d4411b Put missing END() markers to set ELF symbol size. 2014-05-22 15:01:56 +00:00
uebayasi
88c3252136 Put missing END() markers to set ELF symbol size. 2014-05-22 14:38:38 +00:00
joerg
8883847bdf For the moment, don't complain about const casts. 2014-05-20 12:23:47 +00:00
martin
804dc5f91b Get rid of all sysc_init_field uses - initialize fields directly in C99
notation.
2014-05-16 12:22:32 +00:00
martin
5dd9bd30f5 When creating the descriptions for the "user" node, advance the output
pointer properly.
2014-05-16 09:41:42 +00:00
joerg
718b124a41 Prepare in case we want to hook up the profile init code later. 2014-05-16 00:11:30 +00:00
joerg
8f1ac24727 Deal with PGO rename. 2014-05-16 00:10:57 +00:00
uebayasi
b178885539 Whitespace. 2014-05-14 06:38:09 +00:00
christos
4df4d972d3 Welcome to 2014c
Changes affecting code

     zic now generates transitions for minimum time values, eliminating
     guesswork when handling low-valued time stamps.  (Thanks to Arthur
     David Olson.)

     Port to Cygwin sans glibc.  (Thanks to Arthur David Olson.)

   Changes affecting commentary and documentation

     Remove now-confusing comment about Jordan.  (Thanks to Oleksii
     Nochovnyi.)
2014-05-13 16:33:56 +00:00
njoly
d6ab72b9c6 Remove error condition for negative length parameter; the
corresponding type is unsigned (size_t) and thus the value cannot be
negative.
2014-05-09 17:25:11 +00:00
wiz
49f7bce00f Mention the word 'inode' next to st_ino so it's easier to find.
Bump date.
2014-04-10 17:11:15 +00:00
pooka
889d7bb33a play the "documentation matches implementation" game 2014-04-08 13:02:14 +00:00
christos
b02e0dfacc add __stpncpy_chk 2014-04-06 19:29:37 +00:00
christos
d5aa7d4d63 fix incorrect bounds check 2014-04-06 19:29:25 +00:00
christos
2d04609248 fix the limit check. 2014-04-06 01:13:59 +00:00
christos
18305a4758 fix off by one in stpcpy_chk.
christos
2014-04-06 01:01:49 +00:00
dholland
120fd4cb9a add "move gethostbyname to a compat library" to the list of things to do
on the mythical libc bump
2014-03-29 19:30:12 +00:00
wiz
59200c73fc Remove trailing whitespace. Merge EINVAL entries. 2014-03-28 15:35:55 +00:00
degroote
b45684b49b Document a bit CLOCK_VIRTUAL and CLOCK_PROF 2014-03-28 15:03:41 +00:00
christos
13ec391985 CID 273814, don't confuse coverity. 2014-03-20 17:25:23 +00:00
uwe
66df54162c On sh3 __udivsi3 is gcc "millicode" with special calling convention
(less registers clobbered than usual).  Each DSO that needs it gets
its own hidden copy from libgcc.a.  Do not compile udivsi3.c for sh3
here since this C version doesn't conform to what gcc expects and
overrides the libgcc.a version.

This makes binaries compiled with gcc4.8 work.  The issue was not
exposed with gcc4.5 since it uses different division strategy by
default.
2014-03-19 20:30:53 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos
e2ecf243c3 fix memory leak
XXX: pullup 6
2014-03-17 13:24:23 +00:00
christos
9669e36fb7 reduce diffs with other copies of this code. 2014-03-07 01:07:01 +00:00
christos
32a8f22f2c Fix incorrect overflow test: https://android-review.googlesource.com/#/c/50570/ 2014-03-07 01:00:58 +00:00
skrll
1b5cff8f1d Move to a flat space register convention. %sr[4-7] are all now the space
number allocated to the process.  gcc produces (slightly) better code
with this convention.

Retain backwards compatiblity.

Welcome to 6.99.36
2014-03-06 19:02:58 +00:00
joerg
9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
matt
94c30368e1 The fixuns* come from compiler_rt so softfloat doesn't need to provide them. 2014-03-04 06:30:40 +00:00
matt
c479ba2f5a Avoid a warning and just do the trap #1 instead of calling sigreturn inline.
If it fails, it'll fall into the botch case so don't bother calling CERROR
on failure.
2014-03-04 06:27:00 +00:00
matt
e0c9b05e1a Change remaining "MACHINE_ARCH" to "LIBC_MACHINE_ARCH" 2014-03-02 03:04:52 +00:00
joerg
a48c968746 Update compiler-rt glue for the new source layout. 2014-02-26 22:37:55 +00:00
martin
b67fdf35da Powerpc seems to expect minimum 8 byte alignment from malloc as well. 2014-02-25 12:13:19 +00:00
dholland
56052b0a66 pipe2 requires fcntl.h for its flags; PR 48614 from Steffen Daode Nurpmeso.
Also fix the wording for EINVAL as suggested by Robert Elz.
2014-02-22 17:26:41 +00:00
skrll
4c855bdfea Provide a genassym.cf in libc for hppa and use it. 2014-02-19 13:01:51 +00:00
martin
ce92aca1d5 Bounce the minimum allocation alignement for sparc64 and amd64 as well,
to sync with their default gcc configuration.
We could relax this again later, after a filing a defect report with the
ISO C comitee and getting an answer contradicting the gcc teams
interpretation (and then fix the gcc target configurations instead).
2014-02-17 08:50:50 +00:00
christos
3c501c2028 remove unneeded code, and kill parens from return 2014-02-10 16:30:54 +00:00
christos
72d54c1762 PR/48585: Henning Petersen: Always set errno when returning NULL. 2014-02-10 16:29:30 +00:00
christos
10b0462e36 don't lie about function signatures. 2014-02-07 20:20:56 +00:00
christos
4f4753b8fe RFC 3542 (section 10.1) states that optlen should only be checked when
opt != NULL (Eitan Adler)
2014-02-07 02:36:06 +00:00
rmind
aac4ad500b bump the date 2014-02-06 15:50:40 +00:00
rmind
290732ce3d cdbw(3) man page: fix the header file name and use .Fa for function arguments. 2014-02-06 15:47:20 +00:00
skrll
03dbd38792 Err on the safe side for small memory allocations and provide 4byte
alignment by default.  Override this to 8byte alignment for alpha and arm
eabi.

Someone (tm) can review this change once the standards and compiler(s)
have sorted themselves out.
2014-02-05 11:32:15 +00:00
dholland
7f6461e52c bump date for previous 2014-02-02 18:06:33 +00:00
dholland
74b6f13039 Reorg second paragraph too, to group related info together. 2014-02-02 17:32:38 +00:00
dholland
61bb893049 Rework description for clarity; prompted by chat comments from bad@. 2014-02-02 17:30:06 +00:00
wiz
d88140fcc8 Sort errors. Bump date for previous. 2014-02-02 16:59:13 +00:00
wiz
08c720a8d8 Bump date for previous. 2014-02-02 16:59:06 +00:00
martin
b450cd5b5f Remove paranthesis from return operands. 2014-02-02 14:54:39 +00:00
martin
2934fa70dc Limit the amount of kernel memory a posix_spawn syscall can use (for handling
the file action list) by limiting the maximum number of file actions to
twice the current file descriptor limit.
Fix a few bugs in the support functions and document the new limit.
From Maxime Villard.
2014-02-02 14:48:57 +00:00
wiz
0717db96f8 Mark up HZ. 2014-02-02 08:31:49 +00:00
martin
a7682b765e Fix unsigned 64 bit int to long double conversion for numbers that would not
fit into a signed 64 bit int. Found by latest t_floatunditf test case
failuer, hint from Matt Thomas.
2014-02-02 08:14:39 +00:00
christos
4acd8c5085 mention how HZ affects us 2014-02-01 22:42:45 +00:00
matt
193dbcdaae Since powerpc passes 8 arguments in registers and the syscall number in r0,
shuffle register argument so the kernel won't need to access the stack to
retrieve that last argument.
2014-02-01 20:26:21 +00:00
wiz
56c73caebc Fix prototype in SYNOPSIS, mark up NULL with Dv. 2014-01-31 21:11:05 +00:00
christos
b2a02f6aa7 expose __lwp_park60 2014-01-31 20:45:48 +00:00
matt
969b8a91e4 Since N32/N64 pass the first 8 arguments in registers, we can load all
the arguments into those registers before invoking the syscall having
the kernel syscall handler from having to do that.
2014-01-31 18:06:26 +00:00
matt
7b24ff02b9 Add unordtf2.c 2014-01-30 19:11:54 +00:00
matt
cf45a84019 Make confiditon on FLOAT128 2014-01-30 19:11:41 +00:00
matt
cb4b3194bc unord for float128 long double 2014-01-30 19:06:54 +00:00
joerg
074e94778c Provide a simple floatunditf implementation, at least mips64 needs one. 2014-01-30 15:06:18 +00:00
joerg
171c68668f Use fixunssfsi and fixunsdfsi from compiler-rt. 2014-01-30 15:05:49 +00:00
joerg
720b2586bd Include compiler-rt in libc, libm and libkern. 2014-01-29 23:37:18 +00:00
joerg
8436f0d0c6 Long double support builds for PPC now. 2014-01-29 22:38:18 +00:00
macallan
b2f3ff1f14 no need to duplicate the generic fabs_ieee754.c here 2014-01-28 14:10:39 +00:00
macallan
8a85f2a73f split fabs.c into hardfloat .S and softfloat .c as requested by joerg 2014-01-28 13:47:04 +00:00
apb
36ef98548b Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
2014-01-27 08:18:07 +00:00
christos
c5e15b0d42 CID 1163170, 1164171, resource leak
CID 1161172 double free
2014-01-24 17:26:18 +00:00
skrll
b8d67b7599 Load the magic into the right register for the comparison in _longjmp 2014-01-24 10:19:18 +00:00
christos
49a87ab418 remove bogus comment, we are not working around an assembler issue. 2014-01-24 00:20:54 +00:00
christos
eb850bda79 Use a constant in the text segment to avoid the .lit8 out of range relocation
error.
2014-01-23 03:08:50 +00:00
joerg
0369ac6673 One vmsr is enough. 2014-01-23 00:00:16 +00:00
seanb
0c93806c37 Handle case where a 0 length template string or a template
of all 'X' would dereference, and maybe assign to, memory
before the template.  Simplify.
2014-01-21 19:09:48 +00:00
christos
002a6c3217 Increment to the value, not the pointer. (Thorsten Brehm) 2014-01-21 17:39:24 +00:00
joerg
3c3c6b7eef Use fabs_ieee754.c. 2014-01-20 17:14:38 +00:00
yamt
0136449606 vfwprintf: fix error propagation
PR/47660 (Julio Merino)
2014-01-20 14:11:03 +00:00
apb
f500068b4e If MKREPRO=yes, make the tags file refer to /usr/src
instead of referring to the actual source directory ${NETBSDSRC}.
2014-01-19 11:36:45 +00:00