Commit Graph

18401 Commits

Author SHA1 Message Date
maya
ae394a6300 use mktemp instead of $RANDOM for tmpdir
..$RANDOM won't work with our /bin/sh.

unsure if this script is used, but it is wrong.
might help the spurious build failures that occasionally
show up on autobuilds.
2016-10-17 18:24:42 +00:00
wiz
d42d91aeec Add missing word. 2016-10-16 05:28:33 +00:00
kamil
cc5d581159 Add NetBSD CVS Id on top of the wcsnlen.c file 2016-10-15 14:30:36 +00:00
kamil
6245abaafa Import wcsnlen(3) to libc
The wcsnlen(3) function conforms to POSIX.1-2008 and is an addition to the
ISO C standard.

size_t wcsnlen(const wchar_t *s, size_t maxlen);

The wcsnlen(3) function computes the number of wide-characters in a wide-
-string to which s points, not including NULL terminating wide-character
code and checking no more than maxlen wide-characters. This function never
examines wide-characters beyond a wide-string of maxlen size.


This function is a safer version of wcslen(3):

size_t wcslen(const wchar_t *s);


Update STANDARDS section of wmemchr(3) describing wide-character functions.
2016-10-15 14:21:59 +00:00
macallan
f61977ef47 build libc_fp only on mips64* 2016-10-14 17:29:29 +00:00
christos
6c1a8a7017 add strchrnul 2016-10-12 20:01:12 +00:00
macallan
8baff5f4bf build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat
2016-10-11 17:02:28 +00:00
macallan
8575febebd move shlib_version into the main directory 2016-10-11 16:55:22 +00:00
macallan
8de18d0a37 set MKSOFTFLOAT=no so we don't get another -msoft-float slapped on COPTS
now this actually builds
thanks to mrg for pointing me in the right direction
2016-10-10 18:49:30 +00:00
macallan
f21b7d7f2c fix tpyo 2016-10-09 17:18:32 +00:00
joerg
04b0597d11 Fix syntax for currently not compiled in code. From Henning Petersen in
PR lib/51538.
2016-10-09 11:48:24 +00:00
kre
3a37e001c7 Patch 0001 from upstream to tzcode2016g to restore full functionality
of zic -l
2016-10-07 19:47:16 +00:00
christos
9551d334d2 merge tzcode2016g 2016-10-07 15:29:42 +00:00
christos
1acb507c2d Sync with compat and remove dup implementations of ldexp and modf, switching
mips and m68k to the compat copies.
2016-10-07 11:10:43 +00:00
christos
c7db9c14b4 return 0 on unsupported bases. 2016-10-04 12:48:15 +00:00
wiz
33e9a4f901 Fix xref. 2016-10-04 10:46:40 +00:00
kamil
7f4b5eb156 Add timespec_get(3) in <time.h> and enable unconditionally struct timespec
These changes conforms to the C11 standard
References:
 - 7.27.1/3 Components of time (struct timespec)
 - 7.27.2.5 The timespec_get function

According to ISO/IEC 9899:201x (draft) <time.h> defines the timespec
structure and declares the timespec_get(3) function with TIME_UTC
definition.

According to a C++17 standard draft <ctime> offers the same interface in
the std:: namespace.

The timespec_get function modifies the timespec object pointed by ts
to hold the current calendar time in the given base. The standard notes
only the TIME_UTC base with implementation defined value, set it to 1
as zero is reserved for error handling. Once operation was successful this
function returns passed base, otherwise exits with zero.

The timespec struct was already part of the POSIX standard in <time.h>.

Enable this interface unconditionally in the header to allow to use it
in a code prior C11 and C++17 as an extension.

Review notes from <christos>
2016-10-04 09:41:40 +00:00
christos
beaa4a9608 bump warns 2016-10-03 17:06:58 +00:00
dholland
8536f06c47 Be more careful about preserving errno. Might conceivably be related
to PR 51432.
2016-09-30 06:22:21 +00:00
dholland
48faaeec69 Be consistent about returning -1 on error. Don't return random errnos
instead.
2016-09-30 06:16:47 +00:00
wiz
d6414e373d Remove duplicate Pp. 2016-09-27 11:11:43 +00:00
mrg
62ee7dc27b introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS.  the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node.  use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
2016-09-24 23:12:54 +00:00
christos
aae80e6be7 remove mpool_getf 2016-09-24 21:31:25 +00:00
christos
f3f19d16f2 bump for the flags version of db routines 2016-09-24 20:12:07 +00:00
christos
86147b1c32 Merge the recursive tree traversal changes from the mit kerberos tree. This
Also make the tracefile customizable. Unfortunately we can't merge any of
the hash changes because they have a different on-disk format. That does not
matter really because we've fixed most of the problems...
2016-09-24 20:11:12 +00:00
christos
d42d73761d When writing out pages in the "other endian" format, make a copy instead of
trashing the in-memory one.
2016-09-24 20:08:29 +00:00
christos
a49c1d21d7 move the description of CLOCK_REALTIME in the list. 2016-09-24 01:05:51 +00:00
pgoyette
9a9ece3b27 Since the argument buf is earlier described as a buffer, replace all
references to "the array" with "the buffer" for consistency.

Bump date.
2016-09-22 23:18:10 +00:00
christos
122a9a6480 deal with namespace issues and missing atanhf for vax. 2016-09-21 14:11:40 +00:00
roy
72d40e7cf4 Bump libc version for ifaddrs. 2016-09-21 10:54:36 +00:00
roy
45b7bd08f6 Add ifa_addrflags to ifaddrs. 2016-09-21 10:53:24 +00:00
skrll
46ef072377 Fix for [on]{32,64}
/usr/tests/lib/libc/sys/t_getcontext
/usr/tests/lib/libc/sys/t_swapcontext
/usr/tests/lib/libc/sys/t_ucontext
/usr/tests/lib/libpthread/t_swapcontext

All pass now.

Changes amount to

- saving GP from caller in context for n{32,64}
- performing (the equivalient of) PIC_PROLOGUE for swapcontext and
  __resumecontext
- Call setcontext via the PLT in __resumecontext
2016-09-21 06:49:39 +00:00
skrll
ed78dc9b59 Trailing whitespace. 2016-09-21 06:41:42 +00:00
christos
939877e98c fix VAX! 2016-09-20 18:25:20 +00:00
christos
a4f5c51335 use a define, and cast. 2016-09-20 15:03:07 +00:00
christos
42bfe206ef put back part of the code that determines the smallest of INT_MAX and
SIZE_MAX to avoid llvm truncation warning.
2016-09-20 13:09:08 +00:00
christos
0f266a6ca3 Add the complex trig functions from FreeBSD 2016-09-19 22:05:05 +00:00
christos
5698ccad84 PR/51484: gson@: Fix off by one (wrong merge) 2016-09-19 18:43:23 +00:00
christos
16bd23da7a welcome to tzcond-2016f 2016-09-16 17:12:06 +00:00
joerg
0f37b1b875 gethostbyname_r should die. 2016-09-15 16:23:05 +00:00
njoly
9018f13e85 Fix function name macro. 2016-09-15 07:53:59 +00:00
jakllsch
6b848d5cfa Actually get fma(3) and friends into ARM libm. 2016-09-07 14:41:33 +00:00
martin
832d276ed9 Redo previous by avoiding the casts and using PRIxREGISTER instead 2016-09-06 07:45:41 +00:00
martin
cccccd8360 Can not print register_t with %d, cast to long and use %ld instead. 2016-09-06 07:32:39 +00:00
martin
a4856ef48c Fix DPRINTF format 2016-09-06 07:12:48 +00:00
dholland
7bd425cccf printf functions should be tagged as printf functions. Noticed by
martin, whose build broke for some reason yet to be determined.
2016-09-05 20:41:59 +00:00
joerg
0f183be635 Bump the glob limits to 512KB for total string size and 64K path
entries. The old limits were too small for some important FTP use cases
like a pkgsrc repository.
2016-09-04 18:27:08 +00:00
mbalmer
fc37f15ca1 fix typo 2016-09-01 13:23:44 +00:00
christos
d2f713bbd1 don't shortcut closing if the metadata is dirty (from the krb5 tree) 2016-08-31 06:23:51 +00:00
uwe
2bd409d71f ___start is __dso_hidden, so use CALL_DATUM_LOCAL and drop the PIC
prologue from __start.
2016-08-29 21:27:03 +00:00