Commit Graph

9190 Commits

Author SHA1 Message Date
christos
2dec884d64 make this usable from RUMP 2013-03-05 19:55:22 +00:00
enami
de0e018a8c - Refer the argument with correct name.
- Mark up the function as a function like rest of this paragraph does.
2013-03-05 03:11:27 +00:00
soda
ac809960e5 a sequel to getcwd.c revision 1.52 and realpath.3 revision 1.13 by christos:
explicitly mention that NULL is allowed as second argument
in the description part as well.

PR/46618: Onno van der Linden: realpath(3) isn't SUSv4 compliant (and causes
flactag 2.0.4 to dump core). Fix to accept a NULL argument for resolvedpath.
2013-03-05 02:46:33 +00:00
joerg
bd48a85600 usage is dead. 2013-03-04 21:18:51 +00:00
christos
4ce5b0bd1b PR/47617: Thorsten Brehm: Memory and socket leak in librpc 2013-03-04 17:29:03 +00:00
christos
e24729def6 fix error messages and warnings. 2013-03-04 17:17:56 +00:00
christos
94b98e2733 but don't lose our own extensions 2013-03-02 21:56:28 +00:00
christos
79072b5545 use correct types. 2013-03-02 21:39:48 +00:00
christos
6e1e799722 resolve more diff 2013-03-02 21:28:06 +00:00
christos
ca5a334915 update to tzcode2013a 2013-03-02 21:24:28 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
christos
7ecc2916f6 PR/13082: Thorsten Brehm: Fix wrong memcpy that caused possible memory
corruption. XXX: pullup to 6.
2013-02-26 16:33:57 +00:00
christos
b1baeb1ce1 remove code that did special handling for . and .. at the end of the path.
From mouse@
2013-02-21 18:17:43 +00:00
joerg
2ef880c45c No ctassert in tool build 2013-02-21 16:21:20 +00:00
christos
43318fcb2c Minor nits, and make it compile in FreeBSD (NBBY needs sys/params.h) 2013-02-20 20:27:42 +00:00
christos
963defd907 we don't have multibyte.3 (yet) 2013-02-20 20:05:26 +00:00
tron
d352d77a08 Don't declare a variable inside a "for" construct because it breaks the
tool build which doesn't use C99.
2013-02-20 19:59:34 +00:00
wiz
8c68be56af Sort SEE ALSO.
XXX: multibyte(3) is dangling.
2013-02-20 19:49:26 +00:00
christos
3e6d0c8c98 Make the masks 64 bit wide so that they fit 6 character wide conversions.
Explain what's wrong with MB_LEN_MAX currently.
2013-02-20 18:40:49 +00:00
riz
6948e65203 Initialize 'clen' to 0, to avoid "may be used uninitialized" warning. 2013-02-20 18:09:13 +00:00
christos
1ee549bd74 Fix whitespace 2013-02-20 17:15:08 +00:00
christos
88d1b254b8 More fixes from J.R. Oldroyd. We introduce a new function that can
retrieve and return if there has been a conversion error, so that
it can keep performing char-by-char processing if a multi-byte
conversion occurred. Also some more code cleanups in the "extra"
processing.
2013-02-20 17:01:15 +00:00
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