Commit Graph

16329 Commits

Author SHA1 Message Date
christos
71d484f921 - Allow libpthread to be dlopened again, by providing libc stubs to libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approved by core@
- This was chosen as the least intrusive patch that will provide
  the necessary functionality.
XXX: pullup to 6
2013-03-21 16:49:11 +00:00
lukem
10126a0b3e Use "unsigned FOO" instead of less-portable "u_FOO". 2013-03-20 23:44:47 +00:00
pooka
7415696ea8 Attempt two for the previous: _ILP32 comes from headers, so don't use
it to decide if we want to muddle with _FILE_OFFSET_BITS.
2013-03-20 12:59:10 +00:00
pooka
5ccc76a66f Use _FILE_OFFSET_BITS=64 on Solaris too (necessary for 32bit builds). 2013-03-20 12:30:13 +00:00
christos
bc0f55de88 Make ALG's autoloadable by providing in the config file:
alg "algname"
2013-03-20 00:29:46 +00:00
pooka
ac8531a7b9 Terminate result of readlink(). Makes writefilewatch_setup() work in
cases when the buffer doesn't accidentally contain suitable zeroes.

Thanks to Juan RP who debugged this with me!
2013-03-18 21:00:52 +00:00
pooka
e3425032cb Move the rumpuser_net set of hypercalls to be a private to the sockin
component.  This cleans up the generic hypercall interfaces from ones
specific to only one component.  They should always have been private,
but the infrastructure to "make it so" didn't exist earlier.

no functional change
2013-03-18 13:14:10 +00:00
christos
c60a6af952 now live in common/lib/libc/arch/sparc64/string 2013-03-17 00:43:45 +00:00
christos
e2fcd4fa37 apply 2013b 2013-03-16 00:59:14 +00:00
njoly
40b41484a6 Fix c&p error in string descriptions. 2013-03-15 14:27:41 +00:00
pooka
dae2a8e72e Refine previous: sys/sysmacros.h is where MIN/MAX comes from on Solaris,
so it needs to be included unconditionally.
2013-03-14 21:31:35 +00:00
pooka
fe337c7fc3 StunOS >= 5.11 has posix_memalign(), so add an additional constraint for
when we need to emulate it with memalign() and when not.
2013-03-14 20:42:57 +00:00
njoly
0f84e47820 Remove unknown .LP macro. 2013-03-14 19:15:34 +00:00
christos
d46bb1b7ef remove debugging 2013-03-13 13:16:38 +00:00
martin
cd29bf72fc Remove clearing of ucontext_t, the only random register values now are
argument and scratch registers (which will be reloaded after return anyway).
2013-03-13 08:05:46 +00:00
christos
a892d1d365 link against /lib 2013-03-13 02:32:05 +00:00
christos
f271f70e13 include bsd.own.mk first, otherwise compat build overwrites our install
dirs.
2013-03-12 20:02:40 +00:00
martin
c06bee84e7 Save the GP register value and restore it on longjmp.
While formally GP is not a callee-saved register, for static linking
the link time optimization described in section 3.2.3 of the "Calling
Standard for Alpha Systems" allows the caller to rely on GP being the
value needed within setjmp() - and not restore it after return if setjmp
and the call site share a GP value.

This fixes longjmp/setjmp for statically linked programs, e.g. /rescue/csh
or the static tcsh variant from pkgsrc.
2013-03-12 19:38:20 +00:00
pooka
a3255409b1 DragonFly is in the Solaris camp in the "how to access ELF DYN at runtime"
valley of joy and love.
2013-03-12 14:03:32 +00:00
tron
47c0e0c312 Replace previous Sun Microsystems, Inc. license with a standard
BSD 3-clause license granted by Oracle America, Inc..
This license change was approved by Wim Coekaerts, Senior Vice President,
Linux and Virtualization at Oracle Corporation.

This fixes PR lib/45293 by Pedro Giffuni.
2013-03-11 20:19:28 +00:00
yamt
7c323d8879 fix rev.1.13 2013-03-11 10:44:43 +00:00
christos
364fc868d0 fix error message and type of if_idx 2013-03-11 00:29:09 +00:00
christos
70db60e43f fix error message 2013-03-11 00:18:11 +00:00
christos
a497a64d11 auto-create the log interface and bring it up. 2013-03-11 00:03:18 +00:00
christos
2c148c8265 forgot to add the c file 2013-03-10 21:49:26 +00:00
rmind
4425b99c58 tabify 2013-03-10 21:45:46 +00:00
christos
885f7abecf - rename ext_normalise to ext_normalize
- move modules to from /usr/lib to /lib
- centralize make rules
2013-03-10 21:41:05 +00:00
pooka
f9ef17b1a6 Tiny fix for Solaris. 2013-03-09 13:25:17 +00:00
pooka
4b0fe89206 Ensure that rump kernel component constructors from the main object
get processed.  This applies to ones which were linked statically.
Unfortunately, that's where it got a bit tricky, since the dlsym()
interface searches the handle and all its dependencies.  For the main
object the list of dependencies includes all the dynamic rump kernel
components that were included when the binary is linked.  So, a long
story short, make only one pass through the objects to harvest all the
component entries, weed out the dupes, and initialize components from
an in-memory dupe-free list when so requested.
2013-03-08 19:04:27 +00:00
christos
e04ecc45a2 PR/47631: NAKAJIMA Yoshihiro
1. Utimens and lutimens don't require timeval but timespec.
2. The order of functions doesn't have a uniformity.
3. Utimens.2 and lutimens.2 aren't installed.
2013-03-08 16:52:11 +00:00
wiz
2b38e53a58 Standardize Lb argument. 2013-03-08 08:30:44 +00:00
christos
ca46014bf8 Overly aggressive long->zic_t conversion.
I should add zic_t to the dictionary instead.
2013-03-06 18:40:19 +00:00
christos
5828353b59 change %ld to %jd 2013-03-06 18:21:18 +00:00
christos
09953b1d89 - change zic_t to intmax_t and friends suggested by apb
- change long to zic_t suggested by Paul Eggert
- remove unused constants
2013-03-06 18:19:07 +00:00
yamt
a74bc62145 add comments
whitespace
2013-03-06 11:31:34 +00:00
yamt
93af5b695c add assertions 2013-03-06 11:30:56 +00:00
yamt
2c9fdc9222 comment and assertion 2013-03-06 11:29:01 +00:00
yamt
0501b18883 wrap a long line 2013-03-06 11:27:46 +00:00
yamt
d48c7c8537 remove unnecessary casts 2013-03-06 11:27:28 +00:00
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