#
f758e73f |
|
02-May-2024 |
Jérôme Duval <jerome.duval@gmail.com> |
libbsd: add pthread_sigqueue() * like sigqueue() but for threads. was added recently to FreeBSD, long before to glibc. * also include features.h in gnu/pthread.h Change-Id: I73bca666e2c67d7ff05f341bf85d71df9ccccbe5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7659 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
01dc1ea4 |
|
24-Feb-2024 |
Jérôme Duval <jerome.duval@gmail.com> |
libbsd: add strtonum(), nitems(), timespec operation functions from FreeBSD Change-Id: I56b677b382d17a27d243b615de19bec10f3a2810 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7426 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
e86afc8f |
|
13-Dec-2017 |
Leorize <alaviss@users.noreply.github.com> |
libs/bsd: add arc4random(3) Change-Id: I86e67484f04b062a4496cb63ccb34b990868b693 Reviewed-on: https://review.haiku-os.org/c/haiku/+/32 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
6bde05ae |
|
29-Aug-2023 |
Augustin Cavalier <waddlesplash@gmail.com> |
libs/bsd: Implement getentropy(2). With generic_syscall to avoid using a FD. Change-Id: Id1702118bb673f06a861e4f0ad3401ce3d45cbd0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/31 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
3386b8b7 |
|
24-Jul-2023 |
Augustin Cavalier <waddlesplash@gmail.com> |
libbsd: Add a basic kqueue implementation. It only supports file descriptors and processes (threads), and a few flags (not all) to go with them. This has been tested extensively against libuv. Change-Id: I6fc5930fa7273698172c9c695965842b5df44f03 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6746 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
ba9ce9c1 |
|
06-Feb-2023 |
vaibhavg20comp <vaibhavg20.comp@coep.ac.in> |
termios: Added cfsetspeed function. BSD extension to set both the input and output speed of a termios structure. Fixes #18220. Change-Id: I8c4a06b4be4aa55b8ce35cb7f62552fc47a8e8d0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6049 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
908107a1 |
|
26-May-2022 |
Trung Nguyen <trungnt282910@gmail.com> |
libs/bsd: implemented dl_iterate_phdr dl_iterate_phdr now fills the first four fields of struct dl_phdr_info. The last four fields remain unimplemented, as it requires help from the runtime_loader. Change-Id: Id96a7c7ac05633a71b9fb62c98b3a40f7d4f255b Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
|
#
0afb8a1b |
|
09-Jun-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
Move fts.h and functions from libroot to libbsd. These are BSD extensions, not POSIX functions. They were needed in libroot by the previous versions of the ftw/nftw implementations, but the musl versions do not need them, and so we can move them to libbsd. This is a minor ABI break, but hopefully whatever was using them in libroot also links to libbsd. If not, that's an easy enough fix. (These were only added to libroot in 2013.)
|
#
7d961f97 |
|
09-Jun-2021 |
Jérôme Duval <jerome.duval@gmail.com> |
sys/resource.h: add rusage compatibility fields, set to zero POSIX defines this structure but specifies only two fields (which we already implement). However, both the *BSD and Linux have agreed on some more fields, which are often assumed to be there by applications. The benefice of having compatibility fields is greater as having to patch every other software at HaikuPorts. Change-Id: Ie28ca2e348aa16b4c57eb3498eb62175100d9b9d Reviewed-on: https://review.haiku-os.org/c/haiku/+/4083 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
49506076 |
|
19-Jul-2019 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Add a features.h to auto enable _DEFAULT_SOURCE Unless __STRICT_ANSI__ is defined (as it is when running the compiler in --std=c89 or --std=c99, but not when running it without any specific args), we can enable these by default and behave like most other systems. I don't know why no one has done this yet despite suggesting it multiple times and people prefer to #define _BSD_SOURCE manually everywhere. Remove all places in our Jamfiles and sources where it had been defined. _DEFAULT_SOURCE is now enabled by default for all sources of Haiku, since we let the compiler use GNU extensions (no strict C standard specified on command line) Use _DEFAULT_SOURCE as the define name to match current versions of glibc. Enable it if _BSD_SOURCE is #defined in compiler flags, for backward compatibility. Change-Id: I6db04da5f6db437723cdfba3478f5094a69d7727 Reviewed-on: https://review.haiku-os.org/c/1633 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
b357daa5 |
|
30-Mar-2019 |
Augustin Cavalier <waddlesplash@gmail.com> |
build: Deprecate SetSubDirSupportedPlatformsBeOSCompatible. By default, all targets support the "haiku" platform, and we no longer support building for BeOS, Dan0, Zeta, or other BeOS-compatible targets, so this is no longer needed. Also remove all references to the non-Haiku compatible platforms, and change all BEOS_COMPATIBLE checks to HAIKU_COMPATIBLE. Removal of all SetSubDirSupportedPlatformsBeOSCompatible invocations will be in the next commit.
|
#
0006cc3f |
|
13-Dec-2017 |
Leorize <alaviss@users.noreply.github.com> |
libs/bsd: add explicit_bzero(3) Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
|
#
9a1d0467 |
|
12-Dec-2017 |
Leorize <alaviss@users.noreply.github.com> |
libs/bsd: add readpassphrase(3) Imported from freedesktop libbsd project Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
|
#
1d3d336a |
|
16-Nov-2017 |
Alexander von Gluck IV <kallisti5@unixzen.com> |
libbsd: Move lutimes to bsd compat * Rework be149e8ccf9 since lutimes isn't posix
|
#
e4de39c4 |
|
16-Apr-2015 |
Jessica Hamilton <jessica.l.hamilton@gmail.com> |
libs/bsd: also define _BSD_SOURCE for C files
|
#
091a80ae |
|
15-Apr-2015 |
Adrien Destugues <pulkomandy@gmail.com> |
Protect all BSD extensions with _BSD_SOURCE * Do not define the symbols by default, as they are not in the default libraries. * Adjust jamfiles of all code using BSD extensions to define _BSD_SOURCE. * This makes Haiku slightly more compliant to standard C/POSIX.
|
#
b0944c78 |
|
01-Aug-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
More work towards hybrid support * All packaging architecture dependent variables do now have a respective suffix and are set up for each configured packaging architecture, save for the kernel and boot loader variables, which are still only set up for the primary architecture. For convenience TARGET_PACKAGING_ARCH, TARGET_ARCH, TARGET_LIBSUPC++, and TARGET_LIBSTDC++ are set to the respective values for the primary packaging architecture by default. * Introduce a set of MultiArch* rules to help with building targets for multiple packaging architectures. Generally the respective targets are (additionally) gristed with the packaging architecture. For libraries the additional grist is usually omitted for the primary architecture (e.g. libroot.so and <x86>libroot.so for x86_gcc2/x86 hybrid), so that Jamfiles for targets built only for the primary architecture don't need to be changed. * Add multi-arch build support for all targets needed for the stage 1 cross devel package as well as for libbe (untested).
|
#
ada17216 |
|
17-Nov-2009 |
Bruno G. Albuquerque <bga@bug-br.org.br> |
- Added wait3() and wait4() to the bsd compatibility library. - Untested, but should work (will test it when I get home later today). - This is my first attempt at adding something for compatibility reasons. Let me know if something in wrong. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34091 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a3c74fcd |
|
08-Apr-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added a strsep() to our BSD compatibility library. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30022 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cc6e7cb3 |
|
24-Apr-2008 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added the BSDish openpty(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25135 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e6b30aee |
|
02-Feb-2008 |
Axel Dörfler <axeld@pinc-software.de> |
Minor improvements for the BSD compatibility library: * Added {get|set|end}usershell() functions. * Define MAXLOGNAME, and L_SET, L_INCR, and L_XTND. * The pidfile stuff in libutil.h is now included, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23827 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
079c69cb |
|
03-Sep-2007 |
Axel Dörfler <axeld@pinc-software.de> |
Added daemon() function to libbsd.so. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22164 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8f813eeb |
|
13-Dec-2006 |
Axel Dörfler <axeld@pinc-software.de> |
More tweaks to the libbsd.so compatibility library: * added sigsetmask(), and sigblock() * added ALIGN(), ALIGNBYTES, and howmany() macros git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19493 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
275d9d80 |
|
07-Aug-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Some more functions for our BSD compatibility library. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18436 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1564b19c |
|
07-Aug-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Extended libbsd.so a bit more. All sources (if not written by me) were taken from the FreeBSD 6.1 release. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18421 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1d9d47fc |
|
03-Aug-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Started a libbsd.so with some useful stuff for porting applications. Very limited right now, but might even be enough. We might want to move arc4random.c from traceroute over, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18382 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e4de39c4e423c3804ef17b1076f3dbf2a55ec886 |
|
16-Apr-2015 |
Jessica Hamilton <jessica.l.hamilton@gmail.com> |
libs/bsd: also define _BSD_SOURCE for C files
|
#
091a80aeed690e629167ea9e5603f51d950e49b8 |
|
15-Apr-2015 |
Adrien Destugues <pulkomandy@gmail.com> |
Protect all BSD extensions with _BSD_SOURCE * Do not define the symbols by default, as they are not in the default libraries. * Adjust jamfiles of all code using BSD extensions to define _BSD_SOURCE. * This makes Haiku slightly more compliant to standard C/POSIX.
|
#
b0944c78b074a8110bd98e060415d0e8f38a7f65 |
|
01-Aug-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
More work towards hybrid support * All packaging architecture dependent variables do now have a respective suffix and are set up for each configured packaging architecture, save for the kernel and boot loader variables, which are still only set up for the primary architecture. For convenience TARGET_PACKAGING_ARCH, TARGET_ARCH, TARGET_LIBSUPC++, and TARGET_LIBSTDC++ are set to the respective values for the primary packaging architecture by default. * Introduce a set of MultiArch* rules to help with building targets for multiple packaging architectures. Generally the respective targets are (additionally) gristed with the packaging architecture. For libraries the additional grist is usually omitted for the primary architecture (e.g. libroot.so and <x86>libroot.so for x86_gcc2/x86 hybrid), so that Jamfiles for targets built only for the primary architecture don't need to be changed. * Add multi-arch build support for all targets needed for the stage 1 cross devel package as well as for libbe (untested).
|
#
ada17216f977d9c02262744ea553da5675340865 |
|
17-Nov-2009 |
Bruno G. Albuquerque <bga@bug-br.org.br> |
- Added wait3() and wait4() to the bsd compatibility library. - Untested, but should work (will test it when I get home later today). - This is my first attempt at adding something for compatibility reasons. Let me know if something in wrong. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34091 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a3c74fcd8c05abcf16a3fcd3491150837e639fd0 |
|
08-Apr-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added a strsep() to our BSD compatibility library. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30022 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cc6e7cb3477cdb34c23be8ce246203d2b7f002de |
|
24-Apr-2008 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added the BSDish openpty(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25135 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e6b30aee0fd7a23d6a6baab9f3718945a0cd838a |
|
02-Feb-2008 |
Axel Dörfler <axeld@pinc-software.de> |
Minor improvements for the BSD compatibility library: * Added {get|set|end}usershell() functions. * Define MAXLOGNAME, and L_SET, L_INCR, and L_XTND. * The pidfile stuff in libutil.h is now included, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23827 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
079c69cbfd7cd3c97baae91332251c8388a8bb02 |
|
03-Sep-2007 |
Axel Dörfler <axeld@pinc-software.de> |
Added daemon() function to libbsd.so. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22164 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
8f813eeb9d455e58e647f355cd583d284e297059 |
|
13-Dec-2006 |
Axel Dörfler <axeld@pinc-software.de> |
More tweaks to the libbsd.so compatibility library: * added sigsetmask(), and sigblock() * added ALIGN(), ALIGNBYTES, and howmany() macros git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19493 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
275d9d80a909ac1ff5920f2ae5113d2e9e995dba |
|
07-Aug-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Some more functions for our BSD compatibility library. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18436 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1564b19c80637a2ba13949db0056215699b7b418 |
|
07-Aug-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Extended libbsd.so a bit more. All sources (if not written by me) were taken from the FreeBSD 6.1 release. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18421 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1d9d47fc72028bb71b5f232a877231e59cfe2438 |
|
03-Aug-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Started a libbsd.so with some useful stuff for porting applications. Very limited right now, but might even be enough. We might want to move arc4random.c from traceroute over, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18382 a95241bf-73f2-0310-859d-f6bbb57e9c96
|