Changeset ec18957a in mainline for uspace/lib/posix/string.c
- Timestamp:
- 2011-07-08T00:54:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c1984f
- Parents:
- 3f466c33
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/string.c
r3f466c33 rec18957a 510 510 char *posix_strerror(int errnum) 511 511 { 512 /* uses function from libc, we just have to negate errno513 * (POSIX uses positive errorcodes, HelenOS has negative) 512 /* Uses function from libc, we just have to negate errno 513 * (POSIX uses positive errorcodes, HelenOS has negative). 514 514 */ 515 return (char *) str_error(-errnum); 515 // FIXME: not all POSIX error codes are in libc 516 return (char *) str_error(-posix_abs(errnum)); 516 517 } 517 518
Note:
See TracChangeset
for help on using the changeset viewer.