wiz
ae6b6d0795
Sort sections.
2011-06-21 09:36:43 +00:00
jruoho
706138d7ee
Note the potential danger in the options. Fixes PR lib/31112.
2011-06-21 03:02:57 +00:00
mrg
0a0dd75b65
add some XXX'd -Wno-foo if HAVE_GCC >= 45.
...
XXX: someone should look at these.
2011-06-21 02:32:55 +00:00
mrg
493d341048
various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
...
these work properly wtf pointer aliasing, but there are no casts at
least...
the lib/libpuffs/puffs_priv.h is definately a real bug fix.
from chuq.
2011-06-20 09:11:16 +00:00
nakayama
a2925d9cef
__udivdi3 isn't included in sparc compat libc on sparc64, so use
...
ARCHSUBDIR instead of MACHINE_ARCH for checking whether to include
quad/Makefile.inc.
This fixes undefined symbol __udivdi3 in /libexec/ld.elf_so-sparc
on sparc64 which is the cause of failure of hello32 test in
toolchain/cc/t_hello.
2011-06-19 11:31:55 +00:00
wiz
a7a30c8237
Fix wording (if I understand the sentence correctly).
2011-06-17 18:12:32 +00:00
wiz
e2be1556fd
New sentence, new line. Bump date for previous.
2011-06-17 18:08:53 +00:00
manu
448e1c49b2
Add mount -o extattr option to enable extended attributs (corrently only
...
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
christos
548c989a0b
don't modify tzname unless we are the non-reentrant version.
2011-06-16 22:40:17 +00:00
plunky
bdd01b22a1
Functions that return a struct or union, must set %eax to the value
...
of the original address of the callers area before it returns.
(System V ABI, i386 supplement, fourth edition, page 3-14)
2011-06-12 20:29:25 +00:00
matt
f3fc9a4693
Use excb before and after the mt_fpcr/mf_fpcr instructions as specified
...
in the alpha ARM 4.7.8.1 (Accessing the FPCR):
Because Alpha floating-point hardware can overlap the execution of
a number of floating-point instructions, accessing the FPCR must
be synchronized with other floating-point instructions. An EXCB
instruction must be issued both prior to and after accessing the
FPCR to ensure that the FPCR access is synchronized with the
execution of previous and subsequent floating-point instructions;
otherwise synchronization is not ensured.
Use unions to convert between double and uint64_t to avoid casting.
2011-06-12 05:44:36 +00:00
njoly
7acc235b8f
Do not indent RETURN VALUES section (which was ignored because of
...
missing dash).
2011-06-09 12:13:00 +00:00
sjg
82f4eed556
_gr_copy() can get called with fromgrp->gr_mem == NULL.
2011-06-09 05:11:17 +00:00
njoly
463c1a0c0f
Fix prologue macros order.
2011-06-08 18:09:57 +00:00
drochner
a4fc3a054f
make sure the infinity returned by HUGE_VALL has the "implicit"
...
bit set, otherwise it is invalid
This code is unlikely to be hit because gcc (and clang) use
their builtins for these special values.
2011-06-06 17:02:29 +00:00
christos
33c7476cb2
Revert previous and make frach be 0xc0000000 for NAN's generated by strtold()
...
as suggested by tron.
2011-06-05 14:43:12 +00:00
christos
093aa7c0f7
Make NAN tests consistent with other platforms and FreeBSD.
2011-06-04 15:45:41 +00:00
christos
85d18e0c63
remove string placed by error(1)
2011-06-04 14:18:10 +00:00
wiz
d5982f0fd8
Sort errors.
2011-06-03 08:07:48 +00:00
jruoho
7a7aafd699
Note STANDARDS and use more markup.
2011-06-03 05:50:07 +00:00
yamt
63b82de8a6
compatibility note
2011-06-02 01:04:18 +00:00
christos
98715cd1ec
PR/45007: rcmd_af(3) and thusly rsh(1) ignore requested address family
...
Pass in the address family to rshrcmd and DTRT.
While here KNF.
2011-05-31 06:49:26 +00:00
drochner
53cdf0b54e
make the "tags" target non-.PHONY because it reflects a real file,
...
and remove some nonsense in libc Makefile which caused that
a "tags" file was written in my source tree
2011-05-27 17:06:54 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
christos
178153b0c2
use _ALIGN consistently.
2011-05-25 02:11:16 +00:00
christos
bde00486af
make this compile with DEBUG (_ALIGN was not defined).
2011-05-24 22:39:47 +00:00
ryo
52e6dde2a6
fix incorrect variable name
2011-05-24 02:31:11 +00:00
joerg
998c5d780f
Make intermediate size variable size_t like the rest to avoid
...
unnecessary casting.
2011-05-23 14:53:46 +00:00
joerg
04d16b5c6d
Use C99-style init in _CITRUS_PROP_HINT_END to avoid warnings for
...
uninitialised type field.
2011-05-23 14:52:32 +00:00
joerg
939ab48f97
Actually return something deterministic
2011-05-23 14:45:44 +00:00
joerg
608276435f
Remove self-assignment of an argument that is later used.
2011-05-23 14:34:29 +00:00
joerg
b53ad3df44
Use a plain float constant, no need to deal with messy 0r prefix
2011-05-22 20:11:47 +00:00
dholland
d392ff6e7a
Clarify paragraph about calling setprogname, requested by Tobias Ulmer on
...
freenode. Bump date.
2011-05-21 19:06:44 +00:00
dsl
67d513dd66
Remove __P()
2011-05-18 19:36:36 +00:00
christos
713ea1897d
cleanup saving and restoring errno, and make it similar.
2011-05-18 01:59:39 +00:00
joerg
c98c805c05
Trailing white space
2011-05-17 07:10:39 +00:00
enami
bde048cc49
Use Pq or Po macro for better output rather than putting raw open paren
...
at the end of line.
2011-05-17 03:35:38 +00:00
christos
ec3000cfb2
PR/44959: Henning Petersen: glob forgets to closedir on out of space condition.
2011-05-14 22:44:06 +00:00
nonaka
9af4d11fa4
Use "_end" instead of "end" for consistency with other architectures.
2011-05-13 23:14:36 +00:00
christos
1ff5a5dfd6
don't let readlink trash errno.;
2011-05-13 23:11:00 +00:00
jruoho
fa096afe20
Xref raise_default_signal(3).
2011-05-09 09:06:21 +00:00
wiz
93cfe89ec0
Add missing preposition.
2011-05-05 07:36:44 +00:00
jruoho
19742b4964
Fix lead paragraph.
2011-05-05 05:58:14 +00:00
wiz
daf04c06a3
Remove \*[q] -- not necessary, just use plain double quotes instead.
2011-05-03 09:36:24 +00:00
jruoho
5517207853
Xref bswap(3). Simplify STANDARDS.
2011-05-03 04:07:39 +00:00
jruoho
db3b8477d4
Clarify STANDARDS (i.e. cf. ualarm(3) is no longer in POSIX).
2011-05-02 17:34:05 +00:00
jruoho
a192422bb6
Note also that the interaction between setitimer(2) and alarm(3) or sleep(3)
...
is unspecified.
2011-05-02 17:14:20 +00:00
jruoho
04b57bd832
Remove NOTES as it is documented in itimerval(3). Remove #ifdefs from
...
SYNOPSIS (these are visible enough in the body of the text). Use a list for
the timers. Improve wording and markup.
2011-05-02 17:01:52 +00:00
christos
89d0622f3e
Start eliminating "super-user" from the documentation.
2011-05-01 02:54:22 +00:00
christos
0a101028d4
nice should always return EPERM, not EACCES
2011-05-01 02:49:54 +00:00
martin
251de2dee0
Save a few global registers during set/longjmp - at least the application
...
registers and the only currently used system register (%g7).
Sparc now passes the setjmp tests (and should be able to build perl again).
2011-04-30 23:41:12 +00:00
martin
9881f8de04
Fix previous: the way we calculate, we need to test the size of sigjmp_buf
2011-04-30 23:39:08 +00:00
martin
c670087695
Add another compile time assert: catch overflows of jmp_buf
2011-04-30 23:30:27 +00:00
martin
b549c67469
Save/restore some global registers (sigsetjmp compatible). Does not realy
...
make a difference currently, but is a hard to spot blackhole if something
ever starts using the application registers.
2011-04-30 19:43:17 +00:00
martin
44283e6e19
Rearange jmp_buf content again: storing the sigsetjmp() save_mask midway
...
inside the environment is not a good idea, we may overwrite it when
fetching other details of the sigjmp environment.
Instead move it to the very end again.
Do not bother to save volatile (caller saved) global registers.
Fixes PR port-sparc64/44918.
2011-04-30 19:39:38 +00:00
wiz
3ecc6ccf87
Mark up NULL.
2011-04-29 09:43:28 +00:00
matt
e148e1968d
Use correct CALLFRAME_SIZ depending on ABI.
2011-04-29 08:05:22 +00:00
wiz
83e8266979
Sort sections and errors.
2011-04-28 16:34:01 +00:00
wiz
1536c249f7
Markup fixes.
2011-04-28 16:16:23 +00:00
wiz
29e0fd69e9
Sort sections.
2011-04-28 12:00:55 +00:00
wiz
3652074286
Sort ERRORS.
2011-04-28 11:58:50 +00:00
wiz
560b21b44e
Fix a typo.
2011-04-28 11:56:26 +00:00
wiz
dbd13d8219
Spelling.
2011-04-28 11:22:44 +00:00
martin
d21307a5d2
Fix offsets used in the assembly code to save global registers into a
...
jmp_buf, add a compile time assert to catch this kind of divergence
in the C code.
Move the fixed "%npc = %pc + 4" computation to longjmp, this frees
the sigcontext sc_npc value. Use this space to save the savemask
for siglongjmp (we have run out of space behind the globals).
Fixes the tests/lib/libc/setjmp/t_threadjmp tests, and also hopefully
fixes PR port-sparc64/44902.
2011-04-27 21:08:48 +00:00
wiz
3f4e964f9f
Sort errors.
2011-04-25 22:38:34 +00:00
enami
9aed075519
- Put empty line after the local variable definition in the sample code
...
to improve readability.
- Remove indirection operator to clarify error condition.
2011-04-20 23:37:51 +00:00
christos
57ddf70a57
sync with reality (prototype of open is varyadic)
2011-04-20 19:57:58 +00:00
christos
4957358ed5
Correct check for snprintf() overflow via Maksymilian Arciemowicz from FreeBSD.
...
(the bt one was ok, but set errno and make it the same for consistency).
[to be pulled up]
2011-04-17 23:12:38 +00:00
jruoho
ff8dfca355
Xref tm(3).
2011-04-14 05:50:49 +00:00
jruoho
b29fd93227
Collect also the division functions to single place, div(3).
2011-04-13 07:12:52 +00:00
jruoho
19606f522d
Collect abs(3), labs(3), llabs(3), and imaxabs(3) to a single small page.
2011-04-13 06:56:50 +00:00
jruoho
2ba8acef07
Fix another bug (no 'imaxint_t' type).
2011-04-13 06:41:11 +00:00
jruoho
5bbfa36d7b
Fix obvious bug.
2011-04-13 06:35:48 +00:00
jruoho
e615e396bd
Split out FUNCTIONS to make this tolerable to read. Also improve readability
...
with lists. Describe the functions in the order of appearance in SYNOPSIS.
Use CAVEATS instead of NOTES. Remove "man page spam". Etc.
2011-04-12 13:46:38 +00:00
jruoho
72e27957d4
Xref tm(3).
2011-04-12 08:40:34 +00:00
jruoho
47a900e8bc
Move some of the discussion from the messy ctime(3) to tm(3).
2011-04-12 08:39:26 +00:00
jruoho
8ee666bc1f
.Dv NULL.
2011-04-12 05:41:22 +00:00
jruoho
28629a5be1
Use RETURN VALUES rather than DIAGNOSTIC for... return values.
2011-04-12 04:55:05 +00:00
mrg
e9f4b70f7d
rm -f ${.TARGET} before trying to > write to it; some how mine ended up
...
being mode 444 and the build failed.
2011-04-12 03:35:47 +00:00
jruoho
32e685d288
Markup improvements.
2011-04-11 05:59:11 +00:00
wiz
a4af43db58
exec is on a higher plane of existence.
2011-04-11 00:21:45 +00:00
christos
a87c855671
Document O_CLOEXEC.
2011-04-10 15:46:15 +00:00
christos
037499057e
make infinityl match what gdtoa thinks.
2011-04-10 13:51:18 +00:00
matt
14d704c9e9
Add a workaround for older crt0.o that overwrite r2 (tcb pointer).
...
(save tcb pointer using _lwp_setprivate in ld.elf_so and retrieve the tcb
via _lwp_getprivate in libc and use it to restore the value in r2).
2011-04-07 02:19:28 +00:00
christos
962e9ad63f
fix long double infinity.
2011-04-06 21:55:36 +00:00
jruoho
cbe6dc2e1c
Use .Fn for functions.
2011-04-04 08:00:53 +00:00
christos
8056bccd98
Protect against stack smashes (Maksymilian Arciemowicz)
2011-04-03 22:14:15 +00:00
jruoho
dc9fc4f125
.Xr uvm_map_protect, not .Fn.
2011-04-03 06:54:30 +00:00
jruoho
f364f2ef05
Offset indent.
2011-04-03 06:05:21 +00:00
jruoho
132da5fb56
Offset indent.
2011-03-31 07:52:34 +00:00
jruoho
88d19f0f7c
.Li -> .Em.
2011-03-30 16:41:00 +00:00
jruoho
d1a07d838a
+ .Pp.
2011-03-30 16:37:09 +00:00
jruoho
423f8d7704
Improve -width.
2011-03-30 16:29:26 +00:00
jruoho
29a43bf561
From Henning Petersen in PR # 44641: C99 primitive type 'bool' used
...
as a variable name. Also small KNF, as in FreeBSD.
2011-03-30 08:22:01 +00:00
jruoho
cb0f983e60
Improve -width.
2011-03-29 18:54:54 +00:00
martin
ecf8c9b0f0
ABI police: avoid cluttering global registers %g2 and %g7. Not quite there
...
yet for %g2, but the target is not very well defined. %g7 should be clean
now.
2011-03-28 11:19:12 +00:00
wiz
7091eebfa9
Whitespace and punctuation.
2011-03-27 22:55:07 +00:00
he
08a8bf5254
Fix this so that it builds for vax; where the compiler balks at the
...
mixture of a union and a double in an expression (imagine that!)
I see other similar uses, and how they pass through for other ports
is beyond me, but I have not touched them in this round.
OK'ed by christos@
2011-03-27 11:21:54 +00:00
christos
2587e6e437
add fpgetprec/fpsetprec
2011-03-26 19:51:41 +00:00
njoly
82815469fb
Add quotes for multi-words width string.
2011-03-25 17:15:26 +00:00
joerg
6c7179c5fb
Remove support for the old BSDCTYPE format.
2011-03-25 00:45:24 +00:00
dholland
8ba9dddb47
Eliminate dead store. From Henning Petersen in PR 42776. Doesn't change
...
the output .o file.
2011-03-24 02:29:33 +00:00
martin
d2c615416b
Avoid using %g7
2011-03-23 20:54:35 +00:00
martin
0c3a269fd8
Remove the sparc-v7 compatibility wrapper functions (.div, .mul, ... .urem),
...
the compiler never generates (or did generate in the past) 64bit code to call
them, and they are still present in our 32bit compat library.
2011-03-22 12:24:53 +00:00
enami
df36fea7b7
Don't use #endif where #else is expected.
2011-03-21 23:37:42 +00:00
christos
2b13247b7f
pacify lint.
2011-03-21 22:33:46 +00:00
christos
a9f77bad7a
Add Emin for the vax. Need to check
2011-03-21 22:33:29 +00:00
christos
ab9f1e36c8
fix vax typo.
2011-03-21 19:46:41 +00:00
christos
374ecd4b4c
more de-linting.
2011-03-21 12:53:50 +00:00
christos
a23ced05b4
fix some lint on i386
2011-03-21 04:52:09 +00:00
jruoho
e1897fd6ba
Fix xref; security(8) -> security(7).
2011-03-21 04:42:50 +00:00
christos
a46656e6ee
Add ld formats for the unit-tests.
2011-03-20 23:16:07 +00:00
christos
61e56760bc
Merge the new gdtoa: Note that the built-in tests fail the same way as with
...
the old gdtoa.
2011-03-20 23:15:35 +00:00
christos
3e812ebec1
don't need these and they break the build
2011-03-19 21:26:02 +00:00
christos
185969dd49
from www.netlib.org
2011-03-19 16:26:36 +00:00
he
83a6b62058
It would be nice if lint knew that abort() will never return.
...
For now just insert a /* NOTREACHED */ comment to fix the build failure.
2011-03-18 14:56:01 +00:00
martin
30b9b129ac
Test the proper array index. Discovered by sparc64 automatic test runs.
2011-03-18 09:07:20 +00:00
skrll
a59f1998c0
Appease the hppa linker.
2011-03-17 22:13:58 +00:00
wiz
b8e9a97310
Fix SYNOPSIS. Error found by martin.
2011-03-17 14:06:29 +00:00
mbalmer
7d564f115e
Crosslink wcstombs(3) and mbstowcs(3).
2011-03-16 09:32:12 +00:00
erh
dba1735a6e
Remove one last reference to commaize_number.3
2011-03-16 01:30:24 +00:00
christos
ab077958c3
goodbye short-live commaize_number(3), if you liked it:
...
#define commaize_number(s, l, n) snprintf(s, l, "%'llu", (unsigned long long)n)
2011-03-16 00:50:28 +00:00
wiz
f675b9e58c
Shorten Nd by putting the comment there in a paragraph in the body.
...
Use more markup. Sort SEE ALSO. Fix typo. Capitalize NetBSD like
we all love it.
2011-03-15 08:33:35 +00:00
matt
c5d79d45e3
Properly support the MIPS TLS ABI.
2011-03-15 07:40:18 +00:00
erh
9a5590a540
PR#7540, add a commaize_number function, which inserts comma into a string
...
of digits to make it more readable. This is soon to be used in /bin/ls.
2011-03-15 03:47:04 +00:00
wiz
b84d433045
Add serial comma, quote minus, fix NetBSD version in HISTORY.
2011-03-13 09:12:35 +00:00
wiz
afb4355ad9
Add serial comma, quote minus, add HISTORY for strnunvis and strnunvisx.
2011-03-13 09:11:54 +00:00
mrg
8254d24b84
cast "~0" to (size_t) when passing to a size_t taking function.
...
fixes lint build errors.
2011-03-13 07:40:44 +00:00
joerg
fecb31745a
Avoid a dependency issue between pthread TLS by using simple atomic
...
initialisation, possibly running the initialisation loop more than once.
2011-03-12 21:55:09 +00:00
christos
2d8f83e77b
Fix various vis/unvis issues:
...
- no need for all the weak symbols
- define a new _VIS_END flag for UNVIS_END so that there are no collisions
between and vis and unvis flags.
- add bound versions of the vis and unvis functions that take the length of
the destination buffer. Unlike the OpenBSD ones they return -1 or NULL if
the buffer is not large enough, instead of silently truncating.
2011-03-12 19:52:45 +00:00
matt
69358e3723
Add PPC TLS support. Add -D_LIBC_SOURCE for tls.c and _lwp.c (powerpc)
...
so that __lwp_gettcb_fast and __lwp_settcb inlines are define.
2011-03-12 07:55:09 +00:00
matt
d972b61c0e
Use __lwp_settcb if available.
2011-03-12 07:52:37 +00:00
christos
2dec048cbe
avoid c99
2011-03-12 05:23:41 +00:00
christos
5dc359e2dd
Prepare for strnvis functionality by providing a length to the encoding
...
functions.
2011-03-12 03:24:08 +00:00
joerg
3b9c90a96e
Define namespace remap macros before including sys/tls.h.
2011-03-09 23:50:40 +00:00
joerg
aad599979d
Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
...
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.
Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.
This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
2011-03-09 23:10:05 +00:00
tsutsui
7e1a38b9b3
Reorder insns to fix more load delay hazard botches on R3000.
...
Fixes floating point exceptions in _longjmp() during /etc/rc and
now NWS-3470D boots up to multi user with -current userland binaries.
Also fill BDslots in error path properly.
2011-03-09 16:10:29 +00:00
joerg
5c3ccd6eba
Pass down ELF Auxillary Vectors for static NetBSD binaries too.
...
Rename __libc_init to _libc_init and call it explicitly from CSU code.
This enforces the constructor run order for newly linked programs.
Keep it as constructor with run-once semantic for binary compatibility.
Implement dl_iterate_phdr for statically linked programs.
This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-07 05:09:09 +00:00
wiz
9ef313636b
Various fixes:
...
Remove trailing whitespace.
Sort sections.
Sort errors.
Fix typos.
Use more markup.
Probably something else I forgot.
2011-03-06 17:19:25 +00:00
bouyer
063f96f3c2
merge the bouyer-quota2 branch. This adds a new on-disk format
...
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
christos
ce009e37f0
Check bits on each loop to prevent integer oveflow.
...
Reported by Maksymilian Arciemowicz
2011-03-06 16:00:20 +00:00
martin
49f1dcc8e5
While we use hardware (for float and double), but cooperate with softfloat
...
(to do long double), we need to not only handle the hardware exception
mask and cummulated flags, but also update/query the softfloat variables.
Since this may go away sometime (to make us psABI compliant), ifdef it
properly.
2011-03-06 10:32:47 +00:00
martin
598174eb2b
Apply local namespace protection equivalent to the weak alias done
...
in softfloat-for-gcc.h, which we can't include here, to move
"float_exception_mask" into implementation namespace.
2011-03-06 10:27:37 +00:00
martin
a5ad420211
Use sigqueueinfo() instead of raise() to generate exceptions. Provide
...
minimalistic siginfo data.
2011-03-04 11:48:58 +00:00
wiz
9e76b48586
Merge EINVAL descriptions; sort errors alphabetically; bump date.
2011-02-28 07:17:02 +00:00
dholland
4669b00fb3
Improve discussion of alignment and rounding per PR 33527.
2011-02-28 04:03:00 +00:00
christos
ebc56329ec
Add <stdint.h> for uint8_t from Jess Thrysoee
2011-02-27 01:53:22 +00:00
njoly
51cca89d16
Switch from floating point to fixed point integer for run sizes maths.
...
From FreeBSD (part of revision 1.154).
2011-02-26 23:27:49 +00:00
pooka
74ed8d21f3
fix my whitespace copypaste
2011-02-25 11:55:28 +00:00
pooka
ba7613308e
Fix LE softfloat (mostly theoretical) and comment.
...
from Alessandro Forin
2011-02-25 11:53:07 +00:00