Added a shared memory test.

- libposix error printing now configurable via macro definition
- shmget/at/dt tested.
This commit is contained in:
Bahadir Balban
2009-05-12 18:16:25 +03:00
parent 324481a334
commit 33fcceb2b6
24 changed files with 126 additions and 76 deletions

View File

@@ -0,0 +1,13 @@
#ifndef __LIBPOSIX_H__
#define __LIBPOSIX_H__
/* Abort debugging conditions */
// #define LIBPOSIX_ERROR_MESSAGES
#if defined (LIBPOSIX_ERROR_MESSAGES)
#define print_err(...) printf(__VA_ARGS__)
#else
#define print_err(...)
#endif
#endif /* __LIBPOSIX_H__ */