Commit Graph

50 Commits

Author SHA1 Message Date
Dan Cross 9d2e0d31f7 DragonFly: fix build
Fix the build for DragonFlyBSD.
2025-07-25 19:02:59 +00:00
erentar f97483e519 u.h: define __USE_POSIX to make glibc happy
glibc will only expose sigjmp_buf if __USE_POSIX is defined.
2025-07-22 12:12:39 +02:00
camsn0w 005ee081d5 Added a paren to fix a warning in u.h 2022-07-26 18:27:34 -04:00
Russ Cox 1857120806 libthread: simplify
Now that everything uses pthreads and pthreadperthread,
can delete various conditionals, all the custom context code,
and so on. Also update documents.

Fixes #355.
2020-12-30 07:53:28 -05:00
Russ Cox b4cc38f943 build: drop _XOPEN_SOURCE in u.h on AIX 2020-05-18 22:58:09 -04:00
Russ Cox 8cb7308f3a lib9: use opendir/readdir to read directories
getdirentries(2) has been deprecated on macOS since 10.5 (ten releases ago).
Using it requires disabling 64-bit inodes, but that in turn makes binaries
incompatible with some dynamic libraries, most notably ASAN.

At some point getdirentries(2) will actually be removed.

For both these reasons, switch to opendir/readdir.
A little clunky since we have to keep the DIR* hidden away
to preserve the int fd interfaces, but it lets us remove a bunch
of OS-specific code too.
2020-05-17 20:15:41 -04:00
Ben Huntsman 5802b09e9d all: fix #includes for AIX, add a few AIX "implementation" files 2020-05-07 20:36:03 -04:00
Ben Huntsman 4982d4ebc3 all: update build scripts to fix AIX XL/C compatibility 2020-05-07 20:36:03 -04:00
Russ Cox cb8f735786 all: remove Linux 2.4 vs 2.6 detection
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
2020-01-19 23:04:58 -05:00
Russ Cox 8dcb18f71b libthread: rm FreeBSD 4 code
Pretty sure FreeBSD 4 is gone now. :-)
2020-01-19 21:26:23 -05:00
David du Colombier 657f699ef7 include: define _DEFAULT_SOURCE
Since glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE macros are
deprecated in favor of the _DEFAULT_SOURCE macro.

See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes

Change-Id: I18dd6a698f3f5aa51d1e45bf53b031bb061e17e8
Reviewed-on: https://plan9port-review.googlesource.com/1500
Reviewed-by: David du Colombier <0intro@gmail.com>
2016-11-20 09:37:58 +00:00
Russ Cox 20f5692b7f openbsd updates (thanks Pascal Stumpf)
R=rsc
http://codereview.appspot.com/6401049
2012-07-14 10:16:54 -04:00
Russ Cox 443d628838 libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
Russ Cox 8377cc7a4b u.h: add int8, uint8
R=rsc
http://codereview.appspot.com/1791044
2010-07-14 11:15:55 -07:00
Russ Cox 9a05452085 make flate crc32 work when ulong is 64 bits
R=, rsc
CC=
http://codereview.appspot.com/203061
2010-02-07 16:51:28 -08:00
Russ Cox 37c9485968 lib9: fix dirread/stat mismatch on Snow Leopard
http://codereview.appspot.com/116096
2009-09-13 17:30:12 -04:00
Russ Cox c8ae41fb03 more licensing 2009-08-14 22:49:38 -07:00
Russ Cox e6c837d612 merge 2009-07-14 22:55:52 -07:00
Brian L. Suart f12ab34996 u.h: add SunOS 5.9 2008-07-20 04:51:03 -04:00
Russ Cox b9ed1df1f6 u.h: add Solaris 5.10 to makecontext list 2008-06-01 08:20:30 -04:00
Russ Cox 949b59cd4e u.h: add intptr 2008-03-06 15:13:42 -05:00
rsc 838874f064 get strtoll on freebsd 2006-04-04 11:58:52 +00:00
rsc c54b8b69ed bsd 2006-01-27 05:51:54 +00:00
rsc 7e8769cc2a move utf, fmt to libc 2005-11-26 15:38:59 +00:00
rsc 58c524094e Add autolib. 2005-10-29 17:36:49 +00:00
rsc d08f40666b sun 2005-07-27 13:06:50 +00:00
rsc 04084d4e1d openbsd 2005-07-21 18:59:12 +00:00
rsc 20e8b903e1 no stdint 2005-07-20 23:40:47 +00:00
rsc 76e02e9b11 new types 2005-07-19 17:40:50 +00:00
rsc ceb21b8a90 maybe openbsd has schedyield now 2005-07-19 11:36:27 +00:00
rsc a8ec4910fd apple 2005-07-13 21:34:11 +00:00
rsc bc7da02954 OS X Tiger changes 2005-05-07 22:41:59 +00:00
wkj 9d7a2e6e3c Placate older versions of gcc. 2005-05-02 18:08:03 +00:00
rsc 52e6164443 OpenBSD support. 2005-05-01 18:40:01 +00:00
rsc 5ba33c04da NetBSD support. Thanks to Christoph Lohmann. 2005-03-28 15:58:14 +00:00
rsc aaa502d3a3 appease sun - nil is now just 0 instead of (void*)0
to fix function pointer problems.
2005-03-15 16:12:51 +00:00
rsc 7b0c2f155d no more 9commands 2005-01-11 21:28:31 +00:00
rsc b8f742db85 os x changes 2005-01-11 17:43:53 +00:00
rsc c345061e8d sunos fixes 2005-01-07 07:47:37 +00:00
rsc 9b4de09d41 fix autolib for gcc3+ 2005-01-06 23:06:03 +00:00
rsc 1a0954abb8 autolib 2005-01-04 21:18:08 +00:00
wkj 7ee1ac9689 Use osreldate.h to determine OS version under FreeBSD. 2004-12-29 01:32:42 +00:00
rsc 39b3054a5f more thread support, also add freebsd 5 2004-12-25 22:00:27 +00:00
rsc c6687d4591 Continue the pthreads torture. 2004-09-21 01:11:28 +00:00
rsc bcf527a98e Continue switching library over to pthreads when possible.
Tprimes works on Linux 2.6.  You can only have 128 procs
though.
2004-09-17 03:34:32 +00:00
rsc 06bb4ed20d Rewrite to remove dependence on rendezvous and its bizarre
data structures.  Makes it easier to use pthreads too.
Still need to add code for non-pthreads systems.

Just a checkpoint to switch work to another machine.
2004-09-17 00:38:29 +00:00
rsc c8af1ab17b tweaks 2004-04-19 18:13:05 +00:00
rsc 785a73647a add s32int, s64int, s16int 2004-04-19 05:52:43 +00:00
rsc 8ad517944e Today's changes.
More changes.
2004-03-25 23:03:57 +00:00
rsc b2cfc4e2e7 Initial revision 2003-09-30 17:47:41 +00:00