Commit Graph

17281 Commits

Author SHA1 Message Date
martin 16e71f2a62 Add roundl() 2014-03-16 10:02:27 +00:00
martin d30e39112d Provide all missing variants of trunc/floor/ceil. 2014-03-16 09:51:39 +00:00
martin 03e412de5e Need to load the full argument 2014-03-15 14:12:56 +00:00
martin 89434fa764 Provide copysignf and copysignl 2014-03-15 12:20:09 +00:00
dsl 092f718fed There is some very odd code in s_exp2.c that only works if 'double'
values are rounded to 53 bit mantissa in teh x87 registers.
This hasn't been true since Nov 11 2013.
Forcing a store-load for 'double' in STRICT_ASSIGN() seems to fix things
  (at least enough for the few random test cases).
I suspect the code could be changed so that the number of mantissa bits
  didn't matter.
2014-03-14 22:21:31 +00:00
cherry 27f396ba32 Add crtstuff for ia64. Compile tested only 2014-03-14 18:15:02 +00:00
justin 54d90457f6 If dlopen returns NULL assume we are statically linked and return,
rather than getting a warning when dlinfo fails.
2014-03-14 01:18:39 +00:00
pooka 300f37afc0 Do not process linkmaps if there is exactly one link map present
(i.e. there is no ld.so).  Makes statically linked rump kernels work on
glibc (at least for me).

based on some discussion with Justin Cormack
2014-03-13 11:21:54 +00:00
martin 7a17404a6d XXX This is all wrong and needs new tables and constants - but at least use
constants in the VAX double range for now, so it is compilable with newer
gcc.
2014-03-12 19:42:18 +00:00
wiz 4e760575d6 Remove trailing whitespace. 2014-03-12 18:17:06 +00:00
dholland 1e9d60e3bf typo 2014-03-12 07:32:46 +00:00
pooka 43925050d7 rump_pub_getversion -> rump_getversion 2014-03-10 22:47:27 +00:00
justin cf83766ecf Revert conversion to __thread as breaks on archs without TLS support 2014-03-10 22:37:51 +00:00
justin 587ef2949a Use __thread rather than pthread_getspecific for rumpuser curlwp.
This has better performance and curlwp is a performance bottleneck
in rump kernel code.
2014-03-09 23:01:11 +00:00
christos bb5309eeb0 another libelf instance 2014-03-09 21:37:37 +00:00
christos 0c84150c90 switch to the elftoolchain code. 2014-03-09 17:09:20 +00:00
matt 1de2b6f186 This is no different from the 32bit powerpc one.
Remove the redundancy.
2014-03-07 07:26:42 +00:00
matt 2a0cd0801f these are obsolete. Now using the common powerpc files in csu/arch/powerpc. 2014-03-07 07:23:49 +00:00
christos 9669e36fb7 reduce diffs with other copies of this code. 2014-03-07 01:07:01 +00:00
christos 32a8f22f2c Fix incorrect overflow test: https://android-review.googlesource.com/#/c/50570/ 2014-03-07 01:00:58 +00:00
matt f99069ca40 Use _XENTRY 2014-03-06 19:05:59 +00:00
skrll 1b5cff8f1d Move to a flat space register convention. %sr[4-7] are all now the space
number allocated to the process.  gcc produces (slightly) better code
with this convention.

Retain backwards compatiblity.

Welcome to 6.99.36
2014-03-06 19:02:58 +00:00
martin ed95e9602b Include new/missing files for vax 2014-03-06 11:01:16 +00:00
martin 74530a2d26 Provide sqrtl alias 2014-03-06 11:00:17 +00:00
martin f03b314bc0 Simple tanf() for vax 2014-03-06 10:59:52 +00:00
martin ea3fa8f391 Simplistic tanhf() for vax 2014-03-06 10:59:00 +00:00
martin 96c6725640 Simplistic log1pf() for vax 2014-03-06 10:58:26 +00:00
martin ae998fcbfa log10f() for vax 2014-03-06 10:57:44 +00:00
martin d408a8629c log2() for vax 2014-03-06 10:57:01 +00:00
martin 13958f72dc Add brute-force adaptions of the ieee version of exp2() and exp2f for
vax. Needs some polishing (and table adaption), but should get the build
going for now.
2014-03-06 10:55:57 +00:00
joerg 6ccf4859e4 Add GENASSYM_CPPFLAGS in two more places. 2014-03-04 17:57:56 +00:00
joerg 9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
matt c1987519cf #include <m68k/m68k.h> 2014-03-04 06:38:08 +00:00
matt 94c30368e1 The fixuns* come from compiler_rt so softfloat doesn't need to provide them. 2014-03-04 06:30:40 +00:00
matt c479ba2f5a Avoid a warning and just do the trap #1 instead of calling sigreturn inline.
If it fails, it'll fall into the botch case so don't bother calling CERROR
on failure.
2014-03-04 06:27:00 +00:00
pooka 98974ef8eb add man page for rumpfs 2014-03-03 18:27:20 +00:00
dsl 77e93a9cb9 Drop in a fabs() after the fsqrt().
While it may seem pointless, it the rouding mode is set to round towards
minus infinity then acos(-1) calculates atan2(sqrt(1.0 - 1.0), -1) the subtract
generates -0.0 which sqrt() preserves.
atan2(-0, -1) is -pi, but acos(-1) is expected to be +pi.
This might 'fix' the test failures seen in some environments, but they
are not failing due to an obvously incorrent x87 rounding mode.
2014-03-03 08:00:50 +00:00
matt e0c9b05e1a Change remaining "MACHINE_ARCH" to "LIBC_MACHINE_ARCH" 2014-03-02 03:04:52 +00:00
pooka 8a7d14d1c2 Fix locking SNAFU.
Is someone can explain why the code worked for 3+ years with multiple
different pthread implementations, I'll buy you a banana.
2014-02-28 13:55:36 +00:00
blymn 0d7a04cd28 Fix reversed logic in the notimeout call.
Fix obsolete email addresses in copyright.
2014-02-28 07:58:42 +00:00
matt 22332fd4bf Use _ENTRY 2014-02-27 18:11:08 +00:00
joerg 0d337fe4e9 Remove tautological check. 2014-02-27 18:09:38 +00:00
matt 96ed0d69f5 Use the CALL() macro. 2014-02-27 18:01:51 +00:00
matt a877c70108 Add powerpc64 support 2014-02-27 16:47:48 +00:00
uwe c83f85c76a G/c old unused sh3 csu. Requested by joerg@ 2014-02-27 02:14:27 +00:00
joerg a48c968746 Update compiler-rt glue for the new source layout. 2014-02-26 22:37:55 +00:00
martin fb526759de Make the .note section mergable and set proper "item" length.
XXX seems to be impossible to do that with gas w/o causing a (bogus)
warning - but the resulting object file is fine.
2014-02-26 14:54:50 +00:00
christos 0680d7215e Add missing EL_REFRESH 2014-02-26 13:50:29 +00:00
mrg afa90f2bf5 prepare for moving GCC 4.5 into gcc.old:
- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
  because it arranges for ../Makefile.inc to be included earlier, and
  don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
  valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
    is kind of sketchy, it would be great if this was fixed.
2014-02-26 09:54:32 +00:00
pooka 94265f339d Use MAP_ANON|MAP_PRIVATE for anonymous memory mapping,
e.g. Linux gets upset if just MAP_ANON.
2014-02-26 02:03:40 +00:00
pooka a2867970a4 emulate printflike properly to avoid fatal error on clang 2014-02-25 20:58:18 +00:00
martin b67fdf35da Powerpc seems to expect minimum 8 byte alignment from malloc as well. 2014-02-25 12:13:19 +00:00
dholland 56052b0a66 pipe2 requires fcntl.h for its flags; PR 48614 from Steffen Daode Nurpmeso.
Also fix the wording for EINVAL as suggested by Robert Elz.
2014-02-22 17:26:41 +00:00
palle 4ad8530004 sun4v: Rename TLB_ defines to SUN4U_TLB_ so entries created using TSB_DATA() are properly setup for sun4u and sun4v. Relocate the cputyp variable from autoconf.c to locore.s and make it const in param.h so optimized code can be generated. Parts from OpenBSD. Optimization suggested by nakayama@. OK martin@, mrg@, nakayama@ 2014-02-21 18:00:09 +00:00
blymn 74ff043f96 Correct the implementation of mvderwin, it now works as specified by
SUSv2.
2014-02-20 09:42:42 +00:00
pooka 613311d8d7 remember to commit this file too 2014-02-20 01:24:49 +00:00
pooka fb8e281673 make implementation of rumpuser_kill() match the documentation 2014-02-20 00:44:20 +00:00
pooka 64a85ea946 document rumpuser_kill() 2014-02-20 00:43:26 +00:00
pooka 437e54a701 Translate signal numbers between rump kernel and (POSIX) host. 2014-02-20 00:42:27 +00:00
dsl 7c166415e7 Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will fail.
OTOH it might be relying on a header that pcb.h includes.
In any case i386 and amd64 build.
2014-02-19 20:21:22 +00:00
skrll 4c855bdfea Provide a genassym.cf in libc for hppa and use it. 2014-02-19 13:01:51 +00:00
martin ce92aca1d5 Bounce the minimum allocation alignement for sparc64 and amd64 as well,
to sync with their default gcc configuration.
We could relax this again later, after a filing a defect report with the
ISO C comitee and getting an answer contradicting the gcc teams
interpretation (and then fix the gcc target configurations instead).
2014-02-17 08:50:50 +00:00
wiz d256445c5b New sentence, new line. 2014-02-14 07:27:37 +00:00
pooka 51b406fe68 some minor updates and reality-checks 2014-02-14 01:11:04 +00:00
pooka 177c2413c9 minor clarification: rumpuser_thread_create() is used to create the host
thread context for kernel threads, never for application threads.

per discussion with justin
2014-02-14 00:33:51 +00:00
rmind 068cee2998 NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296.  Add a unit test.  Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!
2014-02-13 03:34:40 +00:00
christos 3c501c2028 remove unneeded code, and kill parens from return 2014-02-10 16:30:54 +00:00
christos 72d54c1762 PR/48585: Henning Petersen: Always set errno when returning NULL. 2014-02-10 16:29:30 +00:00
rmind 8274d601f9 NPF: add support for static (stateless) NAT. 2014-02-07 23:45:22 +00:00
christos 10b0462e36 don't lie about function signatures. 2014-02-07 20:20:56 +00:00
hannken 97834f7ba0 Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
christos 4f4753b8fe RFC 3542 (section 10.1) states that optlen should only be checked when
opt != NULL (Eitan Adler)
2014-02-07 02:36:06 +00:00
rmind aac4ad500b bump the date 2014-02-06 15:50:40 +00:00
rmind 290732ce3d cdbw(3) man page: fix the header file name and use .Fa for function arguments. 2014-02-06 15:47:20 +00:00
rmind ffcdc4af8d Add support for CDB based NPF tables. 2014-02-06 02:51:28 +00:00
skrll 03dbd38792 Err on the safe side for small memory allocations and provide 4byte
alignment by default.  Override this to 8byte alignment for alpha and arm
eabi.

Someone (tm) can review this change once the standards and compiler(s)
have sorted themselves out.
2014-02-05 11:32:15 +00:00
martin 39ae3c2126 Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax. 2014-02-03 21:22:21 +00:00
rmind 2e17c78b61 pthread__mutex_lock_slow: fix the handling of a potential race with the
non-interlocked CAS in the fast unlock path -- it is unsafe to test for
the waiters-bit while the owner thread is running, we have to spin for
the owner or its state change to be sure about the presence of the bit.
Split off the logic into the pthread__mutex_setwaiters() routine.

This is a partial fix to the named lockup problem (also see PR/44756).
It seems there is another race which can be reproduced on faster CPUs.
2014-02-03 15:51:01 +00:00
joerg 1b87ac407e For ancient GCC, disable the missing prototype warning completely. 2014-02-03 13:30:10 +00:00
rmind 55b0c96054 - npfctl: fix table IDs (breakage since the table naming was added).
- libnpf: remove npf_table_exists_p() from public API.
2014-02-03 02:21:52 +00:00
dholland 7f6461e52c bump date for previous 2014-02-02 18:06:33 +00:00
dholland 74b6f13039 Reorg second paragraph too, to group related info together. 2014-02-02 17:32:38 +00:00
dholland 61bb893049 Rework description for clarity; prompted by chat comments from bad@. 2014-02-02 17:30:06 +00:00
wiz d88140fcc8 Sort errors. Bump date for previous. 2014-02-02 16:59:13 +00:00
wiz 08c720a8d8 Bump date for previous. 2014-02-02 16:59:06 +00:00
martin b450cd5b5f Remove paranthesis from return operands. 2014-02-02 14:54:39 +00:00
martin 2934fa70dc Limit the amount of kernel memory a posix_spawn syscall can use (for handling
the file action list) by limiting the maximum number of file actions to
twice the current file descriptor limit.
Fix a few bugs in the support functions and document the new limit.
From Maxime Villard.
2014-02-02 14:48:57 +00:00
wiz 0717db96f8 Mark up HZ. 2014-02-02 08:31:49 +00:00
martin a7682b765e Fix unsigned 64 bit int to long double conversion for numbers that would not
fit into a signed 64 bit int. Found by latest t_floatunditf test case
failuer, hint from Matt Thomas.
2014-02-02 08:14:39 +00:00
christos 4acd8c5085 mention how HZ affects us 2014-02-01 22:42:45 +00:00
matt 193dbcdaae Since powerpc passes 8 arguments in registers and the syscall number in r0,
shuffle register argument so the kernel won't need to access the stack to
retrieve that last argument.
2014-02-01 20:26:21 +00:00
martin 0493f8e382 sparc and sparc64 have moved to new world order, remove legacy files. 2014-02-01 11:59:00 +00:00
joerg 69a4347a81 Restore -Wno-error for clang build. Just don't try to force GCC 4.1 for
clang, okay?
2014-01-31 22:17:50 +00:00
wiz 56c73caebc Fix prototype in SYNOPSIS, mark up NULL with Dv. 2014-01-31 21:11:05 +00:00
christos b2a02f6aa7 expose __lwp_park60 2014-01-31 20:45:48 +00:00
christos cdce479a47 remove compatibility code for handling CLOCK_MONOTONIC and handle it in the
syscall directly.
2014-01-31 20:44:01 +00:00
matt 3813b22c96 Just use EXT_EXP_INFNAN instead of EXT_EXP_INF or EXT_EXP_NAN. 2014-01-31 19:38:47 +00:00
christos de79b4937c PR/44756: Sad Clouds: Prevent leakage of errno = ESRCH from _lwp_park. This
has two parts:
	- in pthread_cond_timedwait() if the thread we are trying to unpark
	  exited, retry the the _lwp_park call without it.
	- pthread_mutex() was affecting errno since it is calling _lwp_park()
	  from pthread_mutex_lock_slow(). preserve the original errno.
Note that the example problem still causes an occassional deadlock on machines
with many CPUs and it is the same deadlock we observe with named.
2014-01-31 19:22:00 +00:00
matt 969b8a91e4 Since N32/N64 pass the first 8 arguments in registers, we can load all
the arguments into those registers before invoking the syscall having
the kernel syscall handler from having to do that.
2014-01-31 18:06:26 +00:00
matt 9b9fc687ef Remove old compiler based crt stuff for alpha mips powerpc and vax 2014-01-31 11:58:33 +00:00
martin 3b4c95b566 -Wno-error=missing-prototypes is not available on gcc 4.1 2014-01-31 10:35:14 +00:00
matt 7b24ff02b9 Add unordtf2.c 2014-01-30 19:11:54 +00:00
matt cf45a84019 Make confiditon on FLOAT128 2014-01-30 19:11:41 +00:00
matt cb4b3194bc unord for float128 long double 2014-01-30 19:06:54 +00:00
joerg 074e94778c Provide a simple floatunditf implementation, at least mips64 needs one. 2014-01-30 15:06:18 +00:00
joerg 171c68668f Use fixunssfsi and fixunsdfsi from compiler-rt. 2014-01-30 15:05:49 +00:00
wiz 87bc762a20 Install a pkg-config file for zlib. 2014-01-30 06:49:16 +00:00
joerg 720b2586bd Include compiler-rt in libc, libm and libkern. 2014-01-29 23:37:18 +00:00
joerg 8436f0d0c6 Long double support builds for PPC now. 2014-01-29 22:38:18 +00:00
bouyer 0a181232be Also 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.
Fix "segfault on exit" several people have noticed on mips N32,
caused by a jr to a NULL address.
2014-01-29 20:57:49 +00:00
macallan b2f3ff1f14 no need to duplicate the generic fabs_ieee754.c here 2014-01-28 14:10:39 +00:00
macallan 8a85f2a73f split fabs.c into hardfloat .S and softfloat .c as requested by joerg 2014-01-28 13:47:04 +00:00
matt 0deb66dfa6 Add missing __RCSID("$NetBSD$"); 2014-01-27 21:00:01 +00:00
apb 36ef98548b Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
2014-01-27 08:18:07 +00:00
christos c5e15b0d42 CID 1163170, 1164171, resource leak
CID 1161172 double free
2014-01-24 17:26:18 +00:00
skrll b8d67b7599 Load the magic into the right register for the comparison in _longjmp 2014-01-24 10:19:18 +00:00
christos 49a87ab418 remove bogus comment, we are not working around an assembler issue. 2014-01-24 00:20:54 +00:00
hannken 04c776e5c8 Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30
2014-01-23 10:13:55 +00:00
christos eb850bda79 Use a constant in the text segment to avoid the .lit8 out of range relocation
error.
2014-01-23 03:08:50 +00:00
joerg 0369ac6673 One vmsr is enough. 2014-01-23 00:00:16 +00:00
seanb 0c93806c37 Handle case where a 0 length template string or a template
of all 'X' would dereference, and maybe assign to, memory
before the template.  Simplify.
2014-01-21 19:09:48 +00:00
christos 002a6c3217 Increment to the value, not the pointer. (Thorsten Brehm) 2014-01-21 17:39:24 +00:00
christos 7683f26e31 ... if called prior to using_history(). This needed to be worked around
in PHP: http://git.php.net/?p=php-src.git;a=commitdiff;h=31d67bd3

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1055409
2014-01-21 13:51:44 +00:00
joerg 3c3c6b7eef Use fabs_ieee754.c. 2014-01-20 17:14:38 +00:00
yamt 0136449606 vfwprintf: fix error propagation
PR/47660 (Julio Merino)
2014-01-20 14:11:03 +00:00
apb f500068b4e If MKREPRO=yes, make the tags file refer to /usr/src
instead of referring to the actual source directory ${NETBSDSRC}.
2014-01-19 11:36:45 +00:00
joerg 484ea90199 ARM needs __clear_cache. 2014-01-18 21:27:11 +00:00
joerg c23f371293 Must use LIBC_MACHINE_ARCH for deciding whether 64bit support code is
neded. Otherwise e.g. i386 compat libs are broken.
2014-01-18 21:26:46 +00:00
tron 4923acbfbe Make sure that "_FORTIFY_SOURCE" really gets undefined even if "USE_SSP"
is set to "yes" to fix build problems caused by the recent change to
this makefile.
2014-01-18 18:37:30 +00:00
skrll eed4dff2e8 Add various functions which need fenv support to arm. 2014-01-18 17:20:36 +00:00
christos 3a5ace8027 revert previous, it causes other problem and I cannot easily debug it. 2014-01-18 15:21:41 +00:00
joerg 544c834ab7 __fixsfdi is required, __fixdfsi already in softfloat. 2014-01-18 03:28:28 +00:00
joerg 527d1fa144 Use a separate variable for the use of GCC's unwind code. 2014-01-18 01:08:56 +00:00
joerg 85b46b0fba GC 2014-01-17 22:20:04 +00:00
joerg efed6ce3cb Use generic version of fabs for softfloat. 2014-01-17 22:19:46 +00:00
joerg 19b865e567 Don't use aeabi_dcmp.S and aeabi_fcmp.S on ARM yet, softfloat provides
the same set of symbols.
2014-01-17 14:08:59 +00:00
joerg d1e1cfd112 Comment out softfloat code until it is decided what to use long term. 2014-01-17 14:07:33 +00:00
joerg 0c62fa66f3 __floatunsidf and __floatunsisf are provided by softfloat, but
__fixdfdi and __fixdfsi are not. So move them into the corresponding
chunks.
2014-01-17 14:06:36 +00:00
joerg 6b6d6c796f Explicitly enumerate platforms that have unwind support to make
piecewise migration easier.
2014-01-17 14:03:31 +00:00
drochner 681775d0ca fix memory allocation, and an off-by-one 2014-01-17 12:39:47 +00:00
hannken 1139274440 Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29
2014-01-17 10:55:01 +00:00
christos 589ee86777 the addition is handled in the alias. 2014-01-17 02:08:44 +00:00
christos 9bb3fc1adb Move more code into the macro, and fix the bug where realloc would cause
a dangling pointer and memory corruption.
2014-01-17 02:03:44 +00:00
matt 88ddb30283 Don't build common quad routines if the platform is 64bit since they
will not be emitted by the compiler.
2014-01-16 23:05:51 +00:00
matt 559e4587c7 Use uintptr_t & size_t instead of u_int and int for arm_sync_icache. 2014-01-16 21:48:41 +00:00
christos 42bc5f633a remove dups 2014-01-16 21:02:30 +00:00
christos 5e97d415bc Remove MAXALIASES limit 2014-01-16 20:59:21 +00:00
christos cc46e26df3 "soon" is "now". Remove all __indr_reference crap. 2014-01-16 20:31:42 +00:00
christos a30fe68446 namespace protection for the new err functions 2014-01-16 20:31:18 +00:00
christos 9465819ab5 PR/47602: Christos Zoulas: getwc() modifies input instead of returning EILSEQ.
Waited for almost a year for feedback and there was none.
2014-01-16 20:28:51 +00:00
joerg af73a340ec Fix (v)errc/(v)warnc. 2014-01-16 19:16:42 +00:00
christos eaffbb929f Add the {v,}{err,warn}c flavors, from FreeBSD. 2014-01-16 17:21:38 +00:00
pooka 8d2ee87e24 Do not force _FILE_OFFSET_BITS=64 here. It's no longer strictly speaking
required (rumpuser interface no longer uses off_t) and force-defining
it causes foo() to magically become foo64() on glibc (even on 64bit
platforms).
2014-01-16 16:03:33 +00:00
joerg 03fb0e7fed Add profiling helper functions to the build. 2014-01-15 21:20:53 +00:00
joerg 2356df897c Use the quad support from compiler-rt for MKLIBGCC=no. 2014-01-15 20:58:09 +00:00
pooka 29316c504c Make setprogname() a nop where it's not supported. 2014-01-15 16:53:15 +00:00
joerg aee684a924 TODO: fix stdout/stdin/stderr to not require copy relocations 2014-01-14 17:20:57 +00:00
matt 383316f200 Using ${LD} -x screws up BE arm. Use ${OBJCOPY} ${OBJCOPYLIBFLAGS} instead
so the $a/$t/$d symbols are preserved.
2014-01-11 00:18:15 +00:00
christos fa1b665884 don't need to include anything before bsd.lib.mk since we don't use any
variables
2014-01-10 15:54:29 +00:00
martin 6f65a8d103 ACTIVE_CC can only be used after include of bsd.own.mk 2014-01-10 15:00:16 +00:00
wiz 252a57e3a8 whitespace. 2014-01-10 09:43:15 +00:00
christos 173d90915f provide a patchable __res_conf_name for testing purposes. 2014-01-08 22:58:50 +00:00
christos 212cc15bc8 bump for ptsname_r 2014-01-08 12:29:49 +00:00
pooka 2b361b10dd remove obsolete definitions 2014-01-08 11:04:47 +00:00
njoly 648dc01fac Kill extra space in function argument. 2014-01-08 10:14:21 +00:00
christos c25b2b2709 return the same errors as linux for ptsname_r 2014-01-08 02:17:30 +00:00
christos eabc0dd171 add ptsname_r 2014-01-08 02:15:42 +00:00
pooka 6459f6aa95 do as the comment says and #if defined(every_other) || defined(platform) || ...
===> #if !defined(__NetBSD__)
2014-01-08 01:47:31 +00:00
pooka f67143f64b OpenBSD support
from Justin Cormack via github
2014-01-08 01:45:29 +00:00
njoly 115fef786a Kill unneeded paragraph macro. 2014-01-07 13:34:11 +00:00
joerg a97560b644 Annotate logit to provide transitive format string checks. 2014-01-07 02:07:43 +00:00
manu b76d3b3fa5 For filesystems mounted without -o use_ino, readdir is not
able to fetch inode number. We perfom an addtional lookup
on each file to get it.

In that case, do not lookup .. from root, as it breaks
out of the filesystem and hits NULL pointers.
2014-01-06 08:56:34 +00:00
wiz 86e63367c9 Merge EINVAL descriptions. 2014-01-04 15:54:27 +00:00
wiz 4005ac9717 Sort sections. Remove trailing whitespace. 2014-01-04 15:37:46 +00:00
wiz fa60f938bd Sort sections. Punctuation formatting nits. 2014-01-04 15:37:26 +00:00
christos a8aa636f1e don't lose the RPC error from CLNT_CALL. 2014-01-02 20:12:23 +00:00
mlelstv 8c51442d96 Use output buffer size to limit copy-out of sun_path. Otherwise you may
get a buffer overflow with strlcpy :)
2013-12-31 12:58:02 +00:00
pooka 55ffc8641a Do not export symbols which don't need to be exported.
via Justin Cormack
2013-12-31 00:25:17 +00:00
christos 9778b180e3 Fix incorrect types 2013-12-29 22:54:58 +00:00
dholland 1a69f6275d O_SYNC, not O_FSYNC. Spotted by "beatnix" on freenode. 2013-12-28 20:03:22 +00:00
christos e49015f507 warns 6 2013-12-28 18:04:18 +00:00
christos 8cf33d7f2e avoid using freed pointers and non-format strings 2013-12-28 18:04:03 +00:00
christos 6ddea99505 moved to common 2013-12-27 20:25:11 +00:00
christos c9a970f03f updates for new version 2013-12-27 20:11:50 +00:00
christos 002951760f update from tzcode 2013e to tzcode2013i
i:
    The compile-time flag NOSOLAR has been removed, as nowadays the
    benefit of slightly shrinking runtime table size is outweighed by the
    cost of disallowing potential future updates that exceed old limits.
h:
    Fix localtime overflow bugs with 32-bit unsigned time_t.

    zdump no longer assumes sscanf returns maximal values on overflow.
g:
    'zic' now runs on platforms that lack both hard links and symlinks.
    (Thanks to Theo Veenker for reporting the problem, for MinGW.)
    Also, fix some bugs on platforms that lack hard links but have symlinks.

    'zic -v' again warns that Asia/Tehran has no POSIX environment variable
    to predict the far future, fixing a bug introduced in 2013e.
f:
    The types of the global variables 'timezone' and 'altzone' (if present)
    have been changed back to 'long'.  This is required for 'timezone'
    by POSIX, and for 'altzone' by common practice, e.g., Solaris 11.
    These variables were originally 'long' in the tz code, but were
    mistakenly changed to 'time_t' in 1987; nobody reported the
    incompatibility until now.  The difference matters on x32, where
    'long' is 32 bits and 'time_t' is 64.  (Thanks to Elliott Hughes.)
2013-12-26 18:34:28 +00:00
christos 5bf528c548 add smbfs library 2013-12-26 14:15:29 +00:00
joerg 754ebc04ba Explicitly enable FPU support. 2013-12-25 22:05:12 +00:00
christos 3504287a90 fix bug in previous change (sz should be the size of the newly allocated
buffer).
2013-12-25 19:42:23 +00:00
wiz e033636c5e Sort errors. Use parentheses instead of Pq in normal text. 2013-12-25 02:49:52 +00:00
dholland d5c275e596 typo 2013-12-25 00:58:50 +00:00
dholland efb018a64b Rewrite for clarity and add an example. 2013-12-24 22:31:11 +00:00
mlelstv 1d339cd8f0 Resolve symlinks and cook the targets instead of the symlink names. 2013-12-22 14:31:51 +00:00
christos 3d0abaffba - don't clobber hp in the RES_USE_INET6 case
- increment naddrs in the yp case
- don't use __hostalias(), it is not thread-safe.
2013-12-22 02:45:16 +00:00
christos a296e15ea3 this is supposed to be re-entrant, call don't call __hostalias that uses
a static buffer.
2013-12-22 02:40:48 +00:00
christos b65f650cb0 remove __P 2013-12-20 21:04:09 +00:00
joerg d26da565f7 Drop .fpu. Discussed with Matt. 2013-12-20 15:35:48 +00:00
wiz f61d31bbaf Sort errors. 2013-12-20 13:48:45 +00:00
joerg 06ad76dac8 Only apply -fno-tree-vrp for GCC. 2013-12-19 22:20:01 +00:00
rmind 0ec95f7a47 Add a man page for shm_open(3) and shm_unlink(3). Obtained from FreeBSD,
with various modifications.
2013-12-19 19:40:08 +00:00
rmind 4aae4db7db Add shm_open(3) and shm_unlink(3) to support POSIX shared memory objects.
They are implemented using tmpfs (mounted at /var/shm).

Discussed on tech-{kern,userlevel} (quite a while ago).
2013-12-19 19:11:50 +00:00