History log of /haiku/headers/compatibility/bsd/paths.h
Revision Date Author Comments
# f759ab27 21-Sep-2023 Augustin Cavalier <waddlesplash@gmail.com>

headers/compatibility/bsd: Update headers to remove BSD advertising clause.

Rewrite link.h entirely.


# 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>


# b526d04a 20-Apr-2015 François Revol <revol@free.fr>

paths.h: add _BSD_SOURCE guard back, also check for _GNU_SOURCE

So things (like m4) expecting paths.h as part of glibc will get
what they want with _GNU_SOURCE.


# ae65896a 20-Apr-2015 François Revol <revol@free.fr>

paths.h: fix some paths

We don't have /sbin so...


# 110600c6 20-Apr-2015 François Revol <revol@free.fr>

paths.h: remove the _BSD_SOURCE guard

It seems like glibc also has paths.h and m4 fails to bootstrap
without _PATH_BSHELL.

This file really needs some cleanup btw, since most is actually
irrelevant or incorrect for Haiku.


# 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.


# 93a78eca 04-Jul-2007 Axel Dörfler <axeld@pinc-software.de>

* Adapted the path of "login" - eventually, telnetd should just use the standard
$PATH, though.
* Telnetting into Haiku is now finally working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21559 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


# b526d04a5b41b4106e0700b801dac6a30df05f23 20-Apr-2015 François Revol <revol@free.fr>

paths.h: add _BSD_SOURCE guard back, also check for _GNU_SOURCE

So things (like m4) expecting paths.h as part of glibc will get
what they want with _GNU_SOURCE.


# ae65896a9f477460611bcc1f14da1fad66bdd9d1 20-Apr-2015 François Revol <revol@free.fr>

paths.h: fix some paths

We don't have /sbin so...


# 110600c6980f4a6f4fd58119f7d89a9988d34d2a 20-Apr-2015 François Revol <revol@free.fr>

paths.h: remove the _BSD_SOURCE guard

It seems like glibc also has paths.h and m4 fails to bootstrap
without _PATH_BSHELL.

This file really needs some cleanup btw, since most is actually
irrelevant or incorrect for Haiku.


# 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.


# 93a78ecaa45114d68952d08c4778f073515102f2 04-Jul-2007 Axel Dörfler <axeld@pinc-software.de>

* Adapted the path of "login" - eventually, telnetd should just use the standard
$PATH, though.
* Telnetting into Haiku is now finally working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21559 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