Commit Graph

17079 Commits

Author SHA1 Message Date
christos
e73d0381b5 It's been many years since realloc(NULL, size) == malloc(size). Also don't
destroy pointers on allocation errors so someone can free them later.
2013-12-14 18:04:56 +00:00
christos
4008ee50a3 knf, reduce pointer gymnastics 2013-12-14 18:04:00 +00:00
christos
dd8afc980f time_t_{min,max} are only used in localtime.c 2013-12-13 10:37:24 +00:00
christos
71b51eb841 add a cast for sparc64 where int_fast32_t is long (should it be?), and
time_t is int32_t (for compat)
2013-12-13 10:34:47 +00:00
matt
7118e2b334 Make sure the __CTOR_LIST__ is just aligned to a pointer boundary.
By default, mips N32 will aligned to a 64-bit boundary not 32-bit
which causes an extra NULL entry to be added.
2013-12-11 06:55:24 +00:00
joerg
75a5993e4d Moved to src/common. 2013-12-11 01:29:29 +00:00
joerg
aceb213538 Allow kernel code to access constant databases by moving cdbr(3) and the
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00
christos
2c96d15abe CID 1135779: Fix resource leak 2013-12-10 20:58:45 +00:00
wiz
d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
dholland
79ecfd8450 add note about gets() 2013-12-08 21:29:15 +00:00
matt
36a2626fcd Make sure t9 ($25) is properly set before calling ___start 2013-12-08 06:32:36 +00:00
blymn
d345484675 Make the touch family of calls actually force an update of the
terminal bypassing optimisations.  Previously if curses thought curscr
was in sync with virtscr (curses concept of what is on the screen) then
nothing would be output.  This change forces an update out to the terminal
regardless.
2013-12-06 11:23:47 +00:00
joerg
fcff7df126 Add cdbr_open_mem. 2013-12-05 21:17:23 +00:00
joerg
094e2c7925 Don't include bswap for ARM right now, the routines require ARMv6.
Separate the soft-float code and don't include it in the libgcc case.
2013-12-03 16:14:50 +00:00
joerg
baf8298edf Add ARM (EABI) specific sources. Split off code that requires C11,
unwind support in libc or overlaps with soft-float in preparation for
using compiler-rt in the non-clang case.
2013-12-03 02:28:51 +00:00
lneto
c4a02e0a12 changed lua_Number to int64_t 2013-12-02 04:39:10 +00:00
christos
b605a13ba6 - centralize opening of regular and temp files to avoid code duplication
- don't cast malloc
- use malloc sizeof(*var) instead of sizeof(type)
2013-12-01 00:22:48 +00:00
joerg
828e70428b fabsl alias. 2013-11-30 22:39:04 +00:00
joerg
526051f644 Use PLT_SYM. 2013-11-30 20:54:14 +00:00
joerg
d0dcd65c88 Use PLT_SYM. 2013-11-30 20:20:42 +00:00
joerg
cd32ef253c Include crtbegin.h first to make it possible to build with the stricter
attribute consistency checks in clang.
2013-11-29 23:00:48 +00:00
joerg
07d3f56792 Use normal style for checking for long double support. Add missing
aliases for fminl and fmaxl, fabsl is here just for symmetry.
2013-11-29 22:16:10 +00:00
joerg
6a37a8bcd1 Add fabsl alias if necessary. 2013-11-29 22:15:26 +00:00
mrg
75219f3a01 update to MPC 1.0.1. 2013-11-28 12:08:56 +00:00
khorben
cb0d35143e The document date was not updated as it should have been. 2013-11-28 03:45:31 +00:00
khorben
c45aa5be46 Fixed a typo in the example code for select(2) 2013-11-28 02:46:37 +00:00
christos
f1abc9f9db goodbye CIRCLEQ, welcome TAILQ 2013-11-26 01:17:00 +00:00
martin
3807220809 Provide expm1f() 2013-11-24 18:50:58 +00:00
martin
56e076908e Provide erff() and erfcf(). 2013-11-24 15:16:49 +00:00
martin
d506da106c Provide cbrtl() and cbrtf() for vax 2013-11-24 15:12:10 +00:00
martin
707fcaf05d Provide cbrtf() and cbrtl() 2013-11-24 14:49:00 +00:00
martin
8a90528455 Provide powl() 2013-11-24 14:46:18 +00:00
martin
d8880f8387 Provide (very stupid) versions of atanf(), asinf() and acosf() 2013-11-24 14:41:53 +00:00
christos
46b322ca46 No need for bzero, memset provides it. 2013-11-24 03:50:17 +00:00
jakllsch
40814e46f2 Remove now-non-existant bzero.S from sources list. 2013-11-23 22:23:31 +00:00
martin
e2f095e02f Fix very stupid typo 2013-11-23 11:40:56 +00:00
martin
f4e3824c84 For the non-fenv archs: just use double - punt 2013-11-22 20:15:06 +00:00
martin
1751681322 Fix a cast from the lint cleanup that made small exponents (i.e. values < 1)
sign extend wrong and overflow, causing an underflow in all 128 bit sqrt
calculations.
2013-11-22 17:04:24 +00:00
christos
c64e72248f switch from circleq to tailq, from FreeBSD 2013-11-22 16:25:51 +00:00
martin
e37a907951 Try to fix the build (again): move e_sqrtl.c to common soure, but
move the include of fenv.h into the #ifdef __HAVE_LONG_DOUBLE block
and also provide a -DHAVE_FENV_H from the makefile for archs that have
it - leaving out exception settings on architectures that do not provide
it.
2013-11-22 13:37:24 +00:00
martin
b2718b01b0 Fix stupid bug in previous (fixing fmodf) 2013-11-22 10:59:31 +00:00
rmind
805a41fbfe Add npf_tableset_syncdict() to sync the table IDs in the proplib dictionary,
as they can change on reload now.  Also, fix table name checking in npfctl.
2013-11-22 00:25:51 +00:00
christos
9e14bd8cd4 From Ed Maste:
libexecinfo: Include terminating null in byte count

  Otherwise, a formatted string with a strlen equal to the remaining
  buffer space would have the last character omitted (because vsnprintf
  always null-terminates), and later the assert in backtrace_symbols_fmt
  would fail.
2013-11-21 16:02:21 +00:00
christos
cdffa8c1c4 Simplify previous. 2013-11-21 15:40:17 +00:00
martin
60fdeb717f Make ext_fraclm and ext_frachm parts of the long double mantissa optional
in generic code
2013-11-21 14:14:13 +00:00
martin
497f604871 Fix copy & pasto (make temp variable long double).
Fixes fmodl() test failure on sparc64
2013-11-21 13:41:10 +00:00
martin
d2eda6d998 e_sqrtl.c requires fenv.h, so only build it on platfomrs supporting that 2013-11-21 11:21:54 +00:00
martin
cd0bb19b28 Add fmodf and fmodl 2013-11-21 10:48:11 +00:00
blymn
0eefb0f72f Correct the allocation for the reformat buffer, thanks to mlelstv for
the fix.
2013-11-21 09:40:19 +00:00
martin
acdd726fe5 PR 48384: reorganize struct ieee_ext for sparc64 to only use a high/low
part for the mantissa.
Adjust arch specific code accordingly.
2013-11-20 22:22:20 +00:00
martin
42e0203237 Make it compile on archs with implicit NBIT 2013-11-20 21:12:30 +00:00
joerg
f1faa48b8c Fix operand order. 2013-11-20 12:29:13 +00:00
joerg
f20cb70dbc Long double conditional. 2013-11-20 11:39:00 +00:00
joerg
f63f9867dd Add cbrtl(3) and sqrtl(3), from FreeBSD. 2013-11-19 19:24:33 +00:00
joerg
4281b1a8f9 Report correct exception for fmodl. 2013-11-19 14:04:24 +00:00
joerg
af35a9928f Alias to fmod for platforms with double == long double 2013-11-19 14:02:59 +00:00
joerg
2786173415 Use an empty string, not a null pointer for nullname. 2013-11-18 20:51:03 +00:00
martin
44525f39e0 Simplify previous by using CSU_MACHINE_ARCH. Hint from Takeshi Nakayama. 2013-11-17 11:16:09 +00:00
martin
3fb362f863 We do not want to build the code model markes when creating the 32bit
compat libs for sparc64
2013-11-16 10:50:43 +00:00
martin
6aa2ab9e22 Make it compile on archs with implicit NBIT 2013-11-14 15:25:22 +00:00
martin
591a8c0745 On sparc64: create additional "marker" object files, that can be used by the
compiler to encode the used code model in binaries.
2013-11-14 12:19:34 +00:00
wiz
c0e2590a8c Remove annoying comma and sort SEE ALSO. 2013-11-14 00:13:41 +00:00
christos
fad7083044 PR/48379: mention kqueue functionality 2013-11-13 23:58:51 +00:00
wiz
a987b5b309 Add missing comma. 2013-11-13 22:11:52 +00:00
joerg
bc2f32b2d9 truncl(3) 2013-11-13 22:09:55 +00:00
joerg
cbc2f8caeb Add FreeBSD's truncl and minimal testing. 2013-11-13 12:58:11 +00:00
mbalmer
d84d598888 Add the syslog(3) Lua binding to the build. 2013-11-13 09:49:08 +00:00
joerg
e53a269b0d Add missing __HAVE_LONG_DOUBLE protection. 2013-11-13 01:03:08 +00:00
joerg
3988594e8b Typo. 2013-11-12 17:37:43 +00:00
joerg
06b4b3a613 Add some fake long double -> double wrappers for various transcendental
functions. They are expected to be implement properly at a later time.
2013-11-12 17:36:14 +00:00
joerg
d0d4402155 Initial version of fmodl from FreeBSD.
Basic test case for the fmod family.
2013-11-12 16:48:39 +00:00
mbalmer
f9cf0d6e6c Add a syslog(3) binding for Lua (not yet linked to the build.) 2013-11-12 14:32:03 +00:00
wiz
32db1dc333 Remove superfluous comma. 2013-11-12 06:06:21 +00:00
rmind
1e7342c150 NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes.  Bump NPF_VERSION.
2013-11-12 00:46:34 +00:00
joerg
80f3dc5a69 Man page entries for ceill, floorl and roundl. 2013-11-12 00:10:29 +00:00
joerg
2e412cf6b8 Add initial version of ceill, floorl and roundl from FreeBSD. 2013-11-11 23:57:34 +00:00
joerg
f0495d06b6 Explicitly depend on sys/param.h to pick up __NetBSD_Version changes. 2013-11-11 10:24:27 +00:00
joerg
0c8d18a9b2 Preserve the initial x87 control word in the global FP environment
in preparation for adjusting the default based on the main binary
version.
2013-11-11 00:31:51 +00:00
joerg
367a793559 Sort out relationship with crt0.o on major bump. 2013-11-10 20:59:27 +00:00
christos
5fe8b8f1c1 remove unused variable 2013-11-10 03:14:16 +00:00
christos
25dc998745 fix unused variable warnings 2013-11-09 21:41:03 +00:00
njoly
1efda77ecf Add utimens/lutimens man pages links. 2013-11-09 13:05:59 +00:00
blymn
69b405aa23 Rename the old __waddbytes function to _cursesi_waddbytes and add a
parameter that controls whether or not certain characters in the
string are interpreted or not (things like tab being expanded).

Make __waddbytes a wrapper for _cursesi_waddbytes that passes all
parameters and sets the flag for character interpretation for backward
compatibility.

Fix an incipient bug in _cursesi_waddbytes where garbage would have
been written to the terminal if the terminal TABSIZE was set > 8 and
character interpretation is on.

Convert all internal __waddbytes calls to use _cursesi_waddbytes, fix
the function prototypes and add a new flag that will be used later.

Fix the addchstr family functions so that they call _cursesi_waddbytes
with character interpretation off as per SUSV2.
2013-11-09 11:16:59 +00:00
wiz
918ebd8ff7 Mark up NULL with Dv. 2013-11-08 13:17:45 +00:00
rmind
a79812ea10 NPF: add support for specifying the interfaces before they are attached.
If an interface is or gets detached, all associated rules and connections
will be deactivated (it might be useful to have an option to invalidate
the associated connections).  Once the interface is reattached they will
become active.

Bump NPF_VERSION.
2013-11-08 00:38:26 +00:00
christos
baa7071088 we don't support stpncpy until gcc does 2013-11-07 02:01:42 +00:00
tron
27c36eab53 Fix build problems. 2013-11-06 21:05:27 +00:00
christos
27c90c0e19 revert previous, will turn off globally. 2013-11-06 19:56:38 +00:00
christos
48ec4b4e3a XXX: gcc initialization (mc68k gcc-4.5.x gcc-4.8.x) 2013-11-06 19:50:10 +00:00
christos
eb33cee45c handle old gcc 2013-11-06 16:58:58 +00:00
christos
6c5b63c739 simplify. 2013-11-06 16:49:21 +00:00
christos
c15ffc1416 add stp{,n}cpy 2013-11-06 16:31:08 +00:00
christos
cd2724da71 fix doc for strcpy, strcat
add stp{,n}cpy
2013-11-06 16:30:55 +00:00
christos
1fd1820dad simplify 2013-11-06 16:30:27 +00:00
christos
c67d63d207 fix old style decls 2013-11-02 23:54:04 +00:00
pooka
9f9913cebe Workaround a gcc -Wuninitilized whine
github/buildrump.sh issue #44
2013-11-01 23:22:13 +00:00
wiz
acfbbe39c1 Try improving the description. 2013-10-31 00:30:14 +00:00
pooka
d3852222c9 Oh, stdint.h isn't written with a comma ... 2013-10-30 13:08:14 +00:00
pooka
e5aed19d72 need to include stdint.h before rump/rumpuser.h 2013-10-30 12:55:53 +00:00
pooka
079cd2100d glibc on MIPS uses the same DYN d_ptr variant as NetBSD and musl.
from Justin Cormack
2013-10-30 12:30:32 +00:00
mrg
a078c85622 convert to ANSI C definitions. 2013-10-28 01:06:36 +00:00
rmind
d60eb8c12f librumpuser: add some #ifdef __APPLE__ and missing bits to build it on OS X.
OK pooka@
2013-10-27 16:39:46 +00:00
mbalmer
e94b90148d More user friendly sqlite.open() function.
Add a few more symbols.
Register all function in the sqlite table.
2013-10-27 12:38:08 +00:00
mbalmer
36e5572b84 also register gpio_methods on the gpio table 2013-10-26 09:18:00 +00:00
joerg
2f95103bdc Add entries for ctor/dtor switch. 2013-10-24 19:37:35 +00:00
matt
9818090a90 Reduce amount of casts and make LP64 safe. 2013-10-22 08:08:51 +00:00
skrll
c78bffbcda Fix bug introduced in revision 1.13 which meant longjmp would never
work on EABI where VFP didn't exist.

Hi gimpy!
2013-10-21 08:28:14 +00:00
wiz
db0dcb5a00 Minor fixes. 2013-10-19 23:34:48 +00:00
mrg
5ff07852c5 remove useless variable 2013-10-19 22:57:46 +00:00
christos
e29c34aa52 document the scopeid functions 2013-10-19 19:56:56 +00:00
christos
1f484a2734 use new constants 2013-10-19 15:47:02 +00:00
christos
c2541c7c76 add inet6_scopeid 2013-10-19 00:08:34 +00:00
christos
9912eb3f0e bump for scopeid functions 2013-10-19 00:06:50 +00:00
christos
cbdcb619b0 fix unused warnings 2013-10-18 19:53:59 +00:00
christos
eca2236bd9 use the masked variable 2013-10-18 17:03:02 +00:00
mrg
23d3e330cb convert to full ANSI C. 2013-10-18 02:19:12 +00:00
christos
fc8781bab9 Avoid casting gymnastics that lead to pointer aliasing by introducing an
inline function.
2013-10-17 23:58:05 +00:00
christos
b9ba14885c remove always inline because new gcc bitches. 2013-10-17 23:56:17 +00:00
njoly
349036b521 Change mknodat(2) device argument type from uint32_t to dev_t.
Adds needed extra PAD argument for 64bit alignment, and libc wrapper.
2013-10-17 18:01:11 +00:00
roy
2e2213ef89 Add TABSIZE, which is derived from terminfo init_tabs.
Use this when processing \t.
If TABSIZE is set in the environment, this takes precedence.
2013-10-16 19:59:29 +00:00
roy
0f3cb8baf7 Define WA_NORMAL 2013-10-16 12:43:35 +00:00
joerg
50850b07af Hook complex operation support into libm when not using libgcc. 2013-10-15 23:59:36 +00:00
roy
f8157294d8 Note that delwin(3) is a null-op if win is NULL. 2013-10-15 22:15:17 +00:00
christos
8fd1aec131 Instead of turning off the 8th bit on resume, turn it on, as it is on by
default. Problem reported by atatat@ when suspending vi and resuming loses
the ability to use the alt key.
2013-10-15 13:00:52 +00:00
njoly
a837ea1a5b Adjust needed includes for fchmodat/mkdirat/mkfifoat/mknodat/fstatat
syscalls.
2013-10-15 11:43:21 +00:00
joerg
aa6e9499ca Rename USE_LIBGCC to HAVE_LIBGCC and retry using it as flag on unwind.h. 2013-10-14 16:00:16 +00:00
joerg
d06922ddf4 Include compiler-rt and libunwind in libc for Clang/x86 builds. 2013-10-14 01:30:21 +00:00
matt
fa741d8823 Use MACHINE_CPU for m68k. Use similar logic for both tests. 2013-10-09 22:33:41 +00:00
ast
9994c709c8 Fixed spelling of 'appeared'. 2013-10-05 21:24:36 +00:00
njoly
6c208a44f4 Add missing El macro. 2013-10-05 09:18:56 +00:00
christos
fda5f877e5 prefix compat with __ in case __dso_hidden is not available 2013-10-04 21:07:37 +00:00
christos
ca2d95d15f avoid linker warning for compat symbols that are used internally in libc,
by introducing a hidden compat_foo() function, using that internally in
libc, and exposing foo as a strong alias to compat_foo(). I am open for
better ideas.
2013-10-04 20:49:16 +00:00
mrg
e2079e269f move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon.  netpgp wants libz, lua wants libm,
and npf wants libnpf.
2013-10-03 20:02:58 +00:00
christos
5d90f91c6a use -Wa, 2013-10-02 15:43:02 +00:00
mrg
79175743d7 pass -Av8 to the assembler. binutils 2.23 insists on it for v8
instructions.
2013-10-01 17:37:08 +00:00
blymn
873b5b8698 Use the internal version of touchline to update the line. 2013-10-01 11:41:14 +00:00
mlelstv
6bd854d718 Don't return 0x1.0p31 for every input value 2^N.
There is also no need to special case the value 1.
2013-09-30 19:32:14 +00:00
rmind
0f412aba18 Give RUMP mutex and rwlock their own cache-line. Also give a separate
cache-line for the rwlock's reader counter.
2013-09-26 00:41:51 +00:00
dsainty
8ed5bc1d62 Fix a NULL dereference if the exit_alt_charset_mode capability is not defined.
The previous version of this file changed a terminal initialisation test on
the exit_attribute_mode capability, checking for the exit_alt_charset_mode
capability as a substring, rather than performing a search for the hard-coded
^O character.

That works better on terminals where ^O is not the correct value for
exit_alt_charset_mode.  But it works worse on terminals that don't have a
definition specified for exit_alt_charset_mode.

For example:

% TERMCAP='xterm:me=\E[m:' TERM=xterm vi
segmentation fault (core dumped)  TERMCAP='xterm:me=\E[m:' TERM=xterm vi

The crash can be avoided (without fixing the bug) by defining
exit_alt_charset_mode:

% TERMCAP='xterm|:me=\E[m:ae=:' TERM=xterm vi
ex/vi: Error: xterm: No such process

We now test exit_alt_charset_mode for NULL before continuing with the fatal
test, restoring the original no-crash behaviour.

XXX does_ctrl_o() is now just a naive reimplementation of strstr(), so should
probably just use strstr() instead.
2013-09-25 03:28:20 +00:00
rmind
72b022939e rumpuser_rwlock: replace internal pthread_spin_lock (for protecting reader
count) with atomic operations.  As pthread_spin_lock is not adaptive lock, it
can have hugely negative impact if contended here, especially with priority
inversions.  Now contended rwlock(9) no longer falls flat in RUMP kernels.
2013-09-24 23:45:16 +00:00
pooka
f42f517708 Make compile with -DNO_FLOATING_POINT 2013-09-23 12:41:37 +00:00
pooka
4be69cd08b If pthread_create() fails with EAGAIN, try a few more times with short
sleeps in between.  If it helps, good.  If it doesn't, oh well, at
least we tried.  pthread_create() returning EAGAIN has been observed in
real life at least on Linux (buildrump.sh issue #40)
2013-09-23 10:35:20 +00:00
apb
b2b514d90a Attempt to clarify that fsync() is like fsync_range() with the
FFILESYNC flag but not the FDISKSYNC flag.

Add a paragraph of weasel words about how writing to a permanent
storage device does not necessarily write to permanent storage media
within that device.

Move the description of FDISKSYNC into the same list as FDATASYNC
and FFILESYNC.

Change the order of paragraphs or sentences in an attempt to
improve the flow.
2013-09-22 10:02:05 +00:00
joerg
3657cb7f1d Update LLVM/Clang snapshot to r191105. This brings in a better detection
of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
2013-09-21 22:28:12 +00:00
christos
33d9f9e08d Welcome to tzcode 2013e:
Changes affecting API

    The 'zic' command now outputs a dummy transition when far-future
    data can't be summarized using a TZ string, and uses a 402-year
    window rather than a 400-year window.  For the current data, this
    affects only the Asia/Tehran file.  It does not affect any of the
    time stamps that this file represents, so zdump outputs the same
    information as before.  (Thanks to Andrew Main (Zefram).)

    The 'date' command has a new '-r' option, which lets you specify
    the integer time to display, a la FreeBSD.

    The 'tzselect' command has two new options '-c' and '-n', which lets you
    select a zone based on latitude and longitude.

    The 'zic' command's '-v' option now warns about constructs that
    require the new version-3 binary file format.  (Thanks to Arthur
    David Olson for the suggestion.)

    Support for floating-point time_t has been removed.
    It was always dicey, and POSIX no longer requires it.
    (Thanks to Eric Blake for suggesting to the POSIX committee to
    remove it, and thanks to Alan Barrett, Clive D.W. Feather, Andy
    Heninger, Arthur David Olson, and Alois Treindl, for reporting
    bugs and elucidating some of the corners of the old floating-point
    implementation.)

    The signatures of 'offtime', 'timeoff', and 'gtime' have been
    changed back to the old practice of using 'long' to represent UT
    offsets.  This had been inadvertently and mistakenly changed to
    'int_fast32_t'.  (Thanks to Christos Zoulos.)

    The code avoids undefined behavior on integer overflow in some
    more places, including gmtime, localtime, mktime and zdump.

  Changes affecting the zdump utility

    zdump now outputs "UT" when referring to Universal Time, not "UTC".
    "UTC" does not make sense for time stamps that predate the introduction
    of UTC, whereas "UT", a more-generic term, does.  (Thanks to Steve Allen
    for clarifying UT vs UTC.)

  Data changes affecting behavior of tzselect and similar programs

    Country code BQ is now called the more-common name "Caribbean Netherlands"
    rather than the more-official "Bonaire, St Eustatius & Saba".

    Remove from zone.tab the names America/Montreal, America/Shiprock,
    and Antarctica/South_Pole, as they are equivalent to existing
    same-country-code zones for post-1970 time stamps.  The data for
    these names are unchanged, so the names continue to work as before.

  Changes affecting code internals

    zic -c now runs way faster on 64-bit hosts when given large numbers.

    zic now uses vfprintf to avoid allocating and freeing some memory.

    tzselect now computes the list of continents from the data,
    rather than have it hard-coded.

    Minor changes pacify GCC 4.7.3 and GCC 4.8.1.

  Changes affecting the build procedure

    The 'leapseconds' file is now generated automatically from a
    new file 'leap-seconds.list', which is a copy of
    <ftp://time.nist.gov/pub/leap-seconds.list>.
    A new source file 'leapseconds.awk' implements this.
    The goal is simplification of the future maintenance of 'leapseconds'.

    When building the 'posix' or 'right' subdirectories, if the
    subdirectory would be a copy of the default subdirectory, it is
    now made a symbolic link if that is supported.  This saves about
    2 MB of file system space.

    The links America/Shiprock and Antarctica/South_Pole have been
    moved to the 'backward' file.  This affects only nondefault builds
    that omit 'backward'.

  Changes affecting documentation and commentary

    Changes to the 'tzfile' man page

      It now mentions that the binary file format may be extended in
      future versions by appending data.

      It now refers to the 'zdump' and 'zic' man pages.

    Changes to the 'zic' man page

      It lists conditions that elicit a warning with '-v'.

      It says that the behavior is unspecified when duplicate names
      are given, or if the source of one link is the target of another.

      Its examples are updated to match the latest data.

      The definition of white space has been clarified slightly.
      (Thanks to Michael Deckers.)

    Changes to the 'Theory' file

      There is a new section about the accuracy of the tz database,
      describing the many ways that errors can creep in, and
      explaining why so many of the pre-1970 time stamps are wrong or
      misleading (thanks to Steve Allen, Lester Caine, and Garrett
      Wollman for discussions that contributed to this).

      The 'Theory' file describes LMT better (this follows a
      suggestion by Guy Harris).

      It refers to the 2013 edition of POSIX rather than the 2004 edition.

      It's mentioned that excluding 'backward' should not affect the
      other data, and it suggests at least one zone.tab name per
      inhabited country (thanks to Stephen Colebourne).

      Some longstanding restrictions on names are documented, e.g.,
      'America/New_York' precludes 'America/New_York/Bronx'.

      It gives more reasons for the 1970 cutoff.

      It now mentions which time_t variants are supported, such as
      signed integer time_t.  (Thanks to Paul Goyette for reporting
      typos in an experimental version of this change.)

      (Thanks to Philip Newton for correcting typos in these changes.)

    Documentation and commentary is more careful to distinguish UT in
    general from UTC in particular.  (Thanks to Steve Allen.)

    Add a better source for the Zurich 1894 transition.
    (Thanks to Pierre-Yves Berger.)

    Update shapefile citations in tz-link.htm.  (Thanks to Guy Harris.)
2013-09-20 19:06:54 +00:00
christos
4fd46030a6 look in the right place for the modules of compat binaries 2013-09-19 21:19:13 +00:00
christos
8bdd0253b8 Pass MLIBDIR to CPPFLAGS. 2013-09-19 21:18:17 +00:00
rmind
c19ced7da2 G/C npf_ncode(9) 2013-09-19 17:29:06 +00:00
rmind
7b5edfdc0d NPF: G/C n-code in favour of BPF byte-code. Delete lots of code, mmm! 2013-09-19 01:49:07 +00:00
rmind
4e592132ab - Convert NPF to use BPF byte-code by default. Compile BPF byte-code in
npfctl(8) and generate separate marks to describe the filter criteria.
- Rewrite 'npfctl show' functionality and fix some of the bugs.
- npftest: add a test for BPF COP.
- Bump NPF_VERSION.
2013-09-19 01:04:45 +00:00
uwe
f09e72233a Fix previous: use PICFLAGS for crtbeginS.o
Should unbreak sh3 builds.

XXX: PICFLAGS is defined in bsd.lib.mk which lib/csu does not use.
For now supply a local definition.  joerg@, please fix appropriately.
2013-09-18 22:53:39 +00:00
joerg
db0a20e19e GC put16.
XXX Use sys/endian.h
2013-09-14 13:05:51 +00:00
njoly
0336046eb1 Add needed sys/stat.h include for utimens functions. 2013-09-14 10:41:18 +00:00
nakayama
c7b602785c Redo previous to fix build break. 2013-09-14 05:38:00 +00:00
joerg
900d87e72c Use __RCSID. 2013-09-13 19:29:47 +00:00
joerg
bdfde3da9a Redo the locale cache to be constant. It now contains the localeconv()
data and which LC_MONETARY and LC_NUMERIC values it is derived from.
In newlocale(3) and setlocale(3), check for the existing entries and on
miss, create a new entry. This is currently not using a lock for the
list as the worst case is a small memory leak.
2013-09-13 13:13:32 +00:00
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
joerg
1bf0d67629 NetBSD certainly supports TLS in static applications if it supports TLS
on the platform at all.
2013-09-12 15:35:15 +00:00
joerg
975a152cfc If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.
2013-09-11 23:04:09 +00:00
matt
26dbb44c7a Define ELF_NOTE_MARCH_DESC for when running non-eabi in compat_netbsd32 2013-09-10 22:00:01 +00:00
pooka
b3e8687dfb more platform-specific qualifiers 2013-09-10 17:58:39 +00:00
pooka
4194c8cb75 -I../librumpuser is still required for sp_common.c 2013-09-10 17:39:10 +00:00
matt
988e1b8be5 MARCH note is conditional 2013-09-10 17:23:55 +00:00
pooka
0f188198a5 use <rump/rumpuser_port.h> 2013-09-10 16:53:06 +00:00
pooka
6cd40f3fba Install rumpuser_port.h 2013-09-10 16:51:24 +00:00
matt
b4939ef9a5 Add support for a NetBSD MARCH elf note to record the MACHINE_ARCH for
which a program was compiled.
2013-09-10 16:45:33 +00:00
tron
1ad2891b6d Don't scrub the environment unless we are going to change it. This should
prevent crashes in applications which carefully and manually construct
a temporary environment and later restore the original environment
like Emacs 24.

Problem reported by Thomas Klausner on "pkgsrc-users" mailing list.
2013-09-09 10:21:28 +00:00
matt
66ad0cf771 detect whether hw divide is present. 2013-09-08 13:15:53 +00:00
matt
98efa985ed Detect presence of hardware divide. 2013-09-08 12:11:56 +00:00
yamt
cfc4d5466a document MD ways to access private data for some platforms 2013-09-06 17:54:09 +00:00
pooka
0c778f0d54 Avoid strict-alias problem flagged by certain compilers (e.g. Centos one):
libc/gen/utmpx.c:89: error: dereferencing pointer 'otv' does break strict-aliasing rules

reviewed by Christos (thanks!)
2013-09-05 17:35:11 +00:00
matt
8c08c8dda2 mips .eh_frame is writable 2013-09-05 00:28:11 +00:00
matt
85b4461aa6 bic sp not allowed in thumb (even with thumb2) 2013-09-05 00:27:38 +00:00
matt
df25d88db7 Fix the .cfi correctly. 2013-09-04 23:08:29 +00:00
htodd
3bf56cd237 Fix build by matching .cfi/#if. 2013-09-04 22:38:09 +00:00
matt
cb89adbb61 only emit cfi if __ARM_EABI__ && __UNWIND_TABLES__ 2013-09-04 21:17:15 +00:00
ryoon
27e03817f7 Fix typos from FreeMiNT's db-1.86 patch. 2013-09-04 13:03:22 +00:00
christos
3ff21a6f59 print an error if we failed to allocate. 2013-09-03 08:44:45 +00:00
matt
2a674d4fc6 Use less got, add END(), make thumb tolerant. 2013-09-03 00:30:19 +00:00
joerg
08a6753cbd Missing alias for strerror_l. 2013-09-02 07:59:32 +00:00
matt
bff961dda2 Use a constructor to get the cache_info.
However memset can be called before the constructor is called, just treat
those as simple fills.
Add CACHE_INFO_DCACHE_LINE_SIZE to assym.h and use it
2013-08-30 21:28:59 +00:00
christos
efbe1fcbf4 add stdint.h for FreeBSD compat. 2013-08-29 15:01:57 +00:00
christos
e6ada316ce use sysctl to find the pathname argv[0] if available (from FreeBSD via
Ed Maste)
2013-08-29 14:58:56 +00:00
riastradh
719254e9b5 Bump libc minor for consttime_memequal and explicit_memset. 2013-08-28 18:01:22 +00:00
riastradh
1239c2bb08 Publish explicit_memset and consttime_memequal in userland libc.
Remove the double-underscore from the userland versions, and do the
weak alias dance instead, now that these are public parts of libc.

As discussed on tech-userlevel:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
(option 3)
2013-08-28 17:47:07 +00:00
riastradh
495fdb7e9a Make explicit_memset match memset's return value. 2013-08-28 15:46:23 +00:00
riastradh
cc79193075 Fix sense of consttime_memequal and update all callers.
Now it returns true (nonzero) to mean equal and false (zero) to mean
inequal, as the name suggests.

As promised on tech-userlevel back in June:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
2013-08-28 15:24:41 +00:00
christos
efab425d4c get rid of PATH_MAX. 2013-08-28 08:05:21 +00:00
christos
4d322dedff move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
2013-08-27 09:56:12 +00:00
matt
704e1f2829 MIPS wants a read/write eh_frame. 2013-08-26 14:20:53 +00:00
matt
2e5f734e9f Add LIBISPRIVATE?=yes 2013-08-25 14:20:30 +00:00
skrll
b0df966c1e Whitespace. 2013-08-24 07:12:12 +00:00
matt
7d46aa31f0 Add IEEE 754 versions of
fixdfdi.c fixsfdi.c fixunsdfdi.c fixunssfdi.c
	floatdidf.c floatdisf.c floatundidf.c floatundisf.c
These don't FP so are well suited to softfloat implementation.
2013-08-24 00:51:48 +00:00
matt
809bd8df99 Add IEEE 754 versions of __float{,}disf which use no floating point. 2013-08-23 17:41:03 +00:00
matt
0ec618ca27 Add __floatunsi{sd}f for IEEE754.
Unlike the quad versions, these don't use floating point.
2013-08-23 16:01:35 +00:00
christos
99f3a4ae2d fix typo (Sergey Kandaurov) 2013-08-22 17:08:43 +00:00
christos
d8e9352de5 get rid of bogus + 1 2013-08-22 10:04:28 +00:00
martin
4d09747fe0 s_nexttoward.c does not make sense compiling for 32 bit sparc (double ==
long double), so ifdef it out in the sparc64 compat library build. I hope
the nextafter alias is set up correctly (where?) - and someone please
suggest a better way for this if clause.
2013-08-22 08:24:30 +00:00
martin
cf61cf5c2c Add nexttoward, nearbyint and rintl for sparc64 2013-08-21 13:06:00 +00:00
martin
317c06397c Add support for the long double format used on sparc64 2013-08-21 13:04:44 +00:00