Files
codezero/tasks/libposix/errno.c
Bahadir Balban 33fcceb2b6 Added a shared memory test.
- libposix error printing now configurable via macro definition
- shmget/at/dt tested.
2009-05-12 18:16:25 +03:00

16 lines
209 B
C

#include <errno.h>
#include <stdio.h>
#include <libposix.h>
int errno_variable;
void perror(const char *str)
{
print_err("%s: %d\n", str, errno);
}
int *__errno_location(void)
{
return &errno_variable;
}