History log of /haiku-fatelf/src/system/libroot/posix/string/strerror.c
Revision Date Author Comments
# 4d5981c2 24-Nov-2012 Landon Fuller <landonf@plausible.coop>

Add a B_MISMATCHING_PLATFORM error

This signifies a binary built for a distinct operating system, and was originally
proposed in issue #8520.


# 29c7a10b 21-Nov-2012 Landon Fuller <landonf@plausible.coop>

Add B_MISMATCHING_ARCHITECTURE to error tables.

Updated the error utility and strerror() to support
B_MISMATCHING_ARCHITECTURE


# f916b680 27-Sep-2012 François Revol <revol@free.fr>

B_POSIX_ENOMEM is obviously an error...

* was wrongly reported as "No error"


# e09d819b 28-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Since the Media/Translation Kit errors are now in Errors.h as well, we don't
need to include those two anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32781 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fb48fb4 25-Aug-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added missing ENOATTR text.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32681 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39d58e2f 22-Mar-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Experimental approach to tackle the problem with Be's negative error codes and
ported software:
* If the macro B_USE_POSITIVE_POSIX_ERRORS is defined the POSIX error code
constants (ENOMEM, EINTR,...) will have positive values.
* Introduced the macros B_TO_{POSITIVE,NEGATIVE}_ERROR() which do convert a
given error code to a positive/negative value.
* Added static library libposix_error_mapper.a that overrides all POSIX
functions (save the ones I forgot to add :-)) directly meddling with error
codes (having them as parameter or returning them) dealing with the
positive<->negative error code conversions. The functions have hidden
visibility, so they affect only the shared object they are linked into.
* So ideally all one has to do is to build a ported software with
-DB_USE_POSITIVE_POSIX_ERRORS and -lposix_error_mapper and be good with
respect to error code problems.
* Potential issues:
- When mixing ported and Haiku native code, i.e. using Haiku native code in
a ported software or using a ported library in a Haiku native application
care must be taken to convert error codes where the two interface. That's
what the B_TO_{POSITIVE,NEGATIVE}_ERROR() macros are supposed to be used
for.
- A ported static library can obviously not be linked directly against
-lposix_error_mapper. The shared object linking a against the ported static
library has to do that. The previous point applies when that causes mixing
with Haiku native code.
- When dependent ported libraries are used probably all of them should use
the error mapping.

Comments welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29653 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 99fe8fb0 11-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* "" is not really a good error description.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28879 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c0acc2a5 09-May-2006 Jérôme Duval <korli@users.berlios.de>

fixed typo


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17403 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bba1e5c8 08-May-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Added media kit error descriptions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17369 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a406236d 03-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

New error codes:
- B_SHUTDOWN_CANCELLED: The shutdown process was cancelled (most likely by
the user).
- B_SHUTTING_DOWN: An operation cannot be performed, since the system is
shutting down (e.g. BApplication creation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13413 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1b22c05a 29-May-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warning I introduced before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12887 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e95dad4 29-May-2005 Axel Dörfler <axeld@pinc-software.de>

strerror() no longer reports "Unknown Application Error" for positive values,
instead it now says "No Error".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12885 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5af32e75 13-Apr-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/kernel to src/system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4d5981c2868b6242125b21746b82b82343881694 24-Nov-2012 Landon Fuller <landonf@plausible.coop>

Add a B_MISMATCHING_PLATFORM error

This signifies a binary built for a distinct operating system, and was originally
proposed in issue #8520.


# 29c7a10bf1d0abe4e043d281b8717bb8b8c718e7 21-Nov-2012 Landon Fuller <landonf@plausible.coop>

Add B_MISMATCHING_ARCHITECTURE to error tables.

Updated the error utility and strerror() to support
B_MISMATCHING_ARCHITECTURE


# f916b680799e1b795a068de62dced124ca282864 27-Sep-2012 François Revol <revol@free.fr>

B_POSIX_ENOMEM is obviously an error...

* was wrongly reported as "No error"


# e09d819b6cf8260e174e0d076d1f05d34c5733ed 28-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Since the Media/Translation Kit errors are now in Errors.h as well, we don't
need to include those two anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32781 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fb48fb46bbf1dda2d9660175291a8f873a4828f 25-Aug-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added missing ENOATTR text.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32681 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39d58e2f49f4b073ded3dbf639fd55730fa520a0 22-Mar-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Experimental approach to tackle the problem with Be's negative error codes and
ported software:
* If the macro B_USE_POSITIVE_POSIX_ERRORS is defined the POSIX error code
constants (ENOMEM, EINTR,...) will have positive values.
* Introduced the macros B_TO_{POSITIVE,NEGATIVE}_ERROR() which do convert a
given error code to a positive/negative value.
* Added static library libposix_error_mapper.a that overrides all POSIX
functions (save the ones I forgot to add :-)) directly meddling with error
codes (having them as parameter or returning them) dealing with the
positive<->negative error code conversions. The functions have hidden
visibility, so they affect only the shared object they are linked into.
* So ideally all one has to do is to build a ported software with
-DB_USE_POSITIVE_POSIX_ERRORS and -lposix_error_mapper and be good with
respect to error code problems.
* Potential issues:
- When mixing ported and Haiku native code, i.e. using Haiku native code in
a ported software or using a ported library in a Haiku native application
care must be taken to convert error codes where the two interface. That's
what the B_TO_{POSITIVE,NEGATIVE}_ERROR() macros are supposed to be used
for.
- A ported static library can obviously not be linked directly against
-lposix_error_mapper. The shared object linking a against the ported static
library has to do that. The previous point applies when that causes mixing
with Haiku native code.
- When dependent ported libraries are used probably all of them should use
the error mapping.

Comments welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29653 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 99fe8fb0f6e77eeb81372c10376b527d97d24c55 11-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* "" is not really a good error description.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28879 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c0acc2a55e142afff0733ab90a601d94bf8f5982 09-May-2006 Jérôme Duval <korli@users.berlios.de>

fixed typo


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17403 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bba1e5c831c8e6fb5412e094943ac5db429cdbdf 08-May-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Added media kit error descriptions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17369 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a406236dc2b1ed616ef35436e0671aaa2ae373b3 03-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

New error codes:
- B_SHUTDOWN_CANCELLED: The shutdown process was cancelled (most likely by
the user).
- B_SHUTTING_DOWN: An operation cannot be performed, since the system is
shutting down (e.g. BApplication creation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13413 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1b22c05ae886ead7e4ae2e1621e3d53355bf2059 29-May-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warning I introduced before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12887 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e95dad4b9abeb51cb10b80084c584828c20c185 29-May-2005 Axel Dörfler <axeld@pinc-software.de>

strerror() no longer reports "Unknown Application Error" for positive values,
instead it now says "No Error".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12885 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5af32e752606778be5dd7379f319fe43cb3f6b8c 13-Apr-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/kernel to src/system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96