Commit Graph

18387 Commits

Author SHA1 Message Date
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
tnn
523a6b00a9 mention puffs_node_pathconf and puffs_node_advlock 2016-08-29 01:13:56 +00:00
christos
a0c7fda095 fix pic code; otherwise we generate text relocations. 2016-08-28 13:50:25 +00:00
wiz
0c9a844188 Merge ENOMEM descriptions. 2016-08-28 05:07:50 +00:00
dholland
880009a06c fix broken xrefs 2016-08-28 00:15:01 +00:00
dholland
c959793a57 Rework pursuant to PR 7934: be more clear about the page granularity
behavior and when new memory is zeroed.

Also, strengthen the warning about mixing with calls to malloc (which
is not a bug) and mention that the portable way to fetch the initial
break is to call sbrk(0). There are implementations in the wild where
using _end as the initial break doesn't work.
2016-08-27 23:06:01 +00:00
christos
e222705068 Improvements to fgetwln(3) from Andrey Chernov:
1) Set the stdio error indicator on __slbexpand() failure.

2) fgetwc(3) may succeed even when ferror(3) is already set
   (for example, consider a program using SIG_IGN on SIGTTIN,
   reading from the tty while in the background, getting EIO,
   then coming to the foreground and reading again).
   So do not force fgetwln(3) to fail in such a case either.
   (Yes, the program should probably clearerr(3) before
   reading again, but let's be nicer in case it forgets.)
2016-08-27 13:15:48 +00:00
christos
fac93a1e7a no need for stdio. 2016-08-27 10:03:16 +00:00
christos
c898927fa5 sync with FreeBSD 2016-08-27 10:01:08 +00:00
christos
53b6bfd5c1 correct case 23 for -0.0 2016-08-27 10:00:38 +00:00
christos
bb5114e4e0 remove debugging 2016-08-27 09:35:13 +00:00
christos
394a54cbfc skip buggy assembly for libm_g.a 2016-08-27 09:15:44 +00:00
christos
a66a750e64 detect overflow in oldexp + newexp 2016-08-27 09:11:56 +00:00
dholland
8c87f52cc0 Add MLINKS for atomic_add_nv, atomic_cas_ni, and so forth - otherwise
you have to remember that they're the same page as plain atomic_add and
atomic_cas, or remember one of the types that they're defined on.
PR 51033.
2016-08-27 08:03:13 +00:00
dholland
f3ab3c700b strtod, not strod. 2016-08-27 02:56:26 +00:00