Commit Graph

9168 Commits

Author SHA1 Message Date
para
bc91d7fa79 two more type casts after type changes 2013-02-16 13:45:45 +00:00
christos
61fab15480 more type changes 2013-02-16 13:37:01 +00:00
christos
72e5329b53 using the proper types eliminate a whole bunch of casts 2013-02-16 13:29:34 +00:00
christos
650d188146 - make all filedescriptors close-on-exec
- use SOCK_NOSIGPIPE.
- add kqueue handling (not enabled by default, from FreeBSD)
- add RES_INSECURE1 handling (from FreeBSD)
2013-02-15 14:08:25 +00:00
martin
38e436ce90 While we are using softfloat for 128 bit long double values, make fpsetround
update the softfloat rounding mode as well.
2013-02-15 09:25:03 +00:00
martin
33794f1e61 Make all conversions from 128bit (long double) floats to integral types
use rounding towards zero (casts to int/long are not affected by current
rounding mode).
Fixes PR port-sparc64/47535.
2013-02-15 09:24:05 +00:00
christos
66ae8c4557 More fixes from: J.R. Oldroyd
- The input loop control that I changed yesterday to:
	while (mbslength >= 0) {
  There are circumstances where this causes an extra \000 to
  be added at the end of some tests.  This error was showing
  in my own tests here, but I did not notice it yesterday.
  (I really need to add my tests to the test suite, catching
  every error by eye is hard.)  To fix, I've now changed the
  code to increment mbslength only if mbslength == 1 to start
  with.  (Note that this check for "== 1" is why the arg to
  strvisx() in vis(1) must be 1, not mbilen.)

- The cast sequence when manually inserting bytes after a
  multibyte conversion error:
	*src = (wint_t)(u_char)*mbsrc;
  is wrong.  This is causing problems in the case when an
  8859-1 input string is processed in the UTF-8 locale.
  It needs to be:
	*src = (wint_t)*mbsrc;
  Without the (u_char) all the locale mismatch combinations
  then work.

- The code:
	if (mblength < len)
		len = mblength;
  needs to be there.  It resets len for the single character
  input case after we've actually processed two input
  characters (c and nextc) because we incremented mbslength
  at the start of the loop.  Without this code, single
  character conversions end up with a \000 or other byte
  appended.
2013-02-15 00:28:10 +00:00
christos
c64f43b851 off by one. 2013-02-14 13:57:53 +00:00
wiz
4029d1a5ce Fix typo in error code; from Henning Petersen in PR 47565.
While here, sort errors.
2013-02-14 09:31:48 +00:00
wiz
0dab657ed9 Mark up LC_CTYPE as environment variable. 2013-02-13 22:19:48 +00:00
christos
b4ca5d44a0 remove patch botches. 2013-02-13 22:19:18 +00:00
christos
bab4584669 multi-byte doc from J.R. Oldroyd 2013-02-13 22:17:12 +00:00
christos
7ac573dac7 Fix from J.R. Oldroyd for wide chars > 2 2013-02-13 22:15:43 +00:00
christos
a41a849901 Handle invalid character sequences. 2013-02-13 15:22:09 +00:00
pooka
a42a57f022 Match prototype with reality to fix tool build on platforms where
wint_t != int.
2013-02-13 12:15:09 +00:00
christos
6f46fd439e explain we we want wide character support here. 2013-02-13 04:58:17 +00:00
christos
ec33e596f5 Wide char support from J.R. Oldroyd 2013-02-13 04:49:59 +00:00
joerg
6c3b61dddd Remove remnants of AF_IMPLINK. 2013-02-05 17:30:01 +00:00
wiz
8e0e98065f Xref getcwd(3).
Sort errors.
Bump date.
2013-02-05 13:36:59 +00:00
wiz
49573e6ea1 Bump date for previous. 2013-02-04 20:03:11 +00:00
njoly
c6bbf9b2f9 According to the opengroup document [1], we should include fcntl.h (not
sys/fcntl.h) for posix_fadvise().

[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html
2013-02-04 19:29:38 +00:00
matt
f3e2916319 Add hardfloat version of fabs using the vabs.f64 instruction 2013-02-03 07:14:41 +00:00
matt
c2bb80258f Add support for earmhf and earmhfeb and add SRCS.hardfloat. 2013-02-03 01:55:19 +00:00
matt
5e9ff8d257 include <arm/vfpreg.h> 2013-02-03 01:50:54 +00:00
matt
90408fa94f Adapt to earm hard float by including softfloat-for-gcc.h even if __ARM_EABI__
so we can get the __aeabi aliases.
2013-02-03 01:48:53 +00:00
christos
0465120426 include private.h to get access to TM_GMTOFF 2013-01-31 15:47:53 +00:00
matt
8c98e4a90f Reorganize to appease lint. 2013-01-31 06:47:55 +00:00
matt
23ce88cd93 AAPCS (EABI) requires that VFP D8-D15 are always saved, regardless whether
the soft float or hard float ABI is being used.  However, if there isn't a
FPU that can't be done.  So only save/restore them if a FPU is present. When
libc initializes, it does a sysctl to determine if there is a FPU and stores
the result which _setjmp/setjmp uses.  If there was a FPU, the magic in the
jmp_buf is changed to reflect that the VFP registers were saved.  longjmp uses
the magic to determine if it needs to restore the VFP registers.
2013-01-29 19:23:09 +00:00
matt
eafb63402e for earm*, add arm_initfini.c 2013-01-29 19:15:52 +00:00
matt
c910167987 Add a constructor for EABI to determine if a FPU is present on the system. 2013-01-29 19:14:54 +00:00
matt
ec3a3eac3f Add ${ARCHDIR}/misc to path 2013-01-29 19:14:02 +00:00
matt
ce0c445114 When building for earm*, compile __aeabi_[df]cmpun.c and __aeabi_[il]div0.c 2013-01-26 07:09:41 +00:00
matt
44fb56c3b5 Appease clang by making 64-bit literals use ULL 2013-01-26 07:08:14 +00:00
matt
89bd1391e1 Add __aeabi_[fd]cmpun for IEEE unordered compares (requires by ARM RTABI). 2013-01-26 07:04:22 +00:00
wiz
94a4d029bf Replace dagger ("\(dg") with hash mark ("#") for marking up differences.
Dagger wasn't displayed on terminals and replaced with a minus, which
was hard to read.

Requested by agc.
2013-01-25 11:51:42 +00:00
matt
b9421e37cf Use __ARM_PCS_VFP to determine whether the VFP is being used. 2013-01-25 08:52:16 +00:00
matt
2b36c3f081 Add simple version of strncat for ARM. 2013-01-23 05:44:52 +00:00
uwe
3d030c8904 Mark up occurence of printf() in text with .Fn 2013-01-20 11:01:17 +00:00
uwe
dd48d6e3aa In newfmt() example one level of indentation is enough. 2013-01-20 10:57:19 +00:00
uwe
ad85e477e1 Fix typo. 2013-01-19 15:25:58 +00:00
apb
1a0c3376f6 Document the fact that ctime_rz, localtime_rz, and mktime_z,
accept a NULL timezone_t pointer as a reference to UTC,
and the fact that tzalloc accepts a NULL zone name.
2013-01-19 11:56:17 +00:00
dholland
ab137c90f7 Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
   - it is incorrect in a whole variety of ways (but fortunately, one
     of them is that the missing and improper permission checks have
     no net effect);
   - it was committed without review or discussion;
   - core ruled that all the new O_* flags pertaining to the *at calls
     needed to wait until their semantics could be clarified.

manu was asked to revert it on these grounds but has ignored the request.

I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
2013-01-13 08:15:02 +00:00
dholland
1239b9dce6 One more bit: explicitly state what calls to faccessat() are equivalent
to access().
2013-01-12 19:21:48 +00:00
dholland
c0a0e3174b Rewrite heavily. This was originally going to be just an improvement of
some wording related to the *at form... but it needed a general overhaul.

Add some missing errors for the *at form... plus EINVAL for the
traditional form for when you pass a bogus check mode.

Note that the AT_EACCESS flag is useless and strengthen the security
warning.
2013-01-12 19:19:24 +00:00
matt
60e851836f Remove all FPA code.
Support VFP for hard float
Allow MKSOFTFLOAT=no
2013-01-11 13:55:25 +00:00
matt
536ad83369 Add hooks to softfloat to support per-lwp exception state. 2013-01-10 08:16:10 +00:00
wiz
b1a47481aa Remove trailing whitespace. 2013-01-08 19:55:43 +00:00
dholland
2f4276ca8c Rework the description of the const issue to improve the wording,
avoid saying "we", fix typos, etc.

XXX: groff and mandoc handle the URLs in here differently but both
XXX: mangle them, apparently because they're wider than one line.
XXX: Does anyone know how to fix this or do we need an URL shortener
XXX: on www.NetBSD.org?
2013-01-08 19:19:24 +00:00
wiz
e17e68c7fd Use Lk for links. 2013-01-04 07:27:57 +00:00
christos
1decb32e9b Explain why we did not follow the standard.
Worth revisiting the proposal:
http://marc.info/?l=netbsd-tech-userlevel&m=110019726222841
2013-01-04 01:21:45 +00:00