Mercurial > flash_v2
comparison packages/io/fileio/current/src/fio.h @ 1461:244c4e8297c2
* src/select.cxx: No need to make pselect() dependent on
CYGPKG_POSIX - that would depend on the arguments. Assert instead,
and more correctly make it contingent on CYGPKG_POSIX_SIGNALS.
* src/fio.h: Separate out signal functionality into its own separate
test.
| author | jlarmour |
|---|---|
| date | Wed, 07 Jan 2004 06:45:28 +0000 |
| parents | 6bb106b4ff93 |
| children | 0071b7b58596 |
comparison
equal
deleted
inserted
replaced
| 1460:3203d2eca45d | 1461:244c4e8297c2 |
|---|---|
| 90 | 90 |
| 91 //============================================================================= | 91 //============================================================================= |
| 92 // POSIX API support | 92 // POSIX API support |
| 93 | 93 |
| 94 #ifdef CYGPKG_POSIX | 94 #ifdef CYGPKG_POSIX |
| 95 | 95 #include <pkgconf/posix.h> |
| 96 #include <cyg/posix/export.h> | 96 #include <cyg/posix/export.h> |
| 97 | 97 |
| 98 #define CYG_FILEIO_FUNCTION_START() CYG_POSIX_FUNCTION_START() | 98 #define CYG_FILEIO_FUNCTION_START() CYG_POSIX_FUNCTION_START() |
| 99 | 99 |
| 100 #define CYG_FILEIO_FUNCTION_FINISH() CYG_POSIX_FUNCTION_FINISH() | 100 #define CYG_FILEIO_FUNCTION_FINISH() CYG_POSIX_FUNCTION_FINISH() |
| 101 | |
| 102 #else | |
| 103 | |
| 104 #define CYG_FILEIO_FUNCTION_START() CYG_EMPTY_STATEMENT | |
| 105 | |
| 106 #define CYG_FILEIO_FUNCTION_FINISH() CYG_EMPTY_STATEMENT | |
| 107 | |
| 108 #endif | |
| 109 | |
| 110 #ifdef CYGPKG_POSIX_SIGNALS | |
| 101 | 111 |
| 102 #define CYG_FILEIO_SIGMASK_SET( __set, __oset ) \ | 112 #define CYG_FILEIO_SIGMASK_SET( __set, __oset ) \ |
| 103 CYG_PTHREAD_SIGMASK_SET( __set, __oset ) | 113 CYG_PTHREAD_SIGMASK_SET( __set, __oset ) |
| 104 | 114 |
| 105 #define CYG_FILEIO_SIGPENDING() CYG_POSIX_SIGPENDING() | 115 #define CYG_FILEIO_SIGPENDING() CYG_POSIX_SIGPENDING() |
| 107 #define CYG_FILEIO_DELIVER_SIGNALS( __mask ) \ | 117 #define CYG_FILEIO_DELIVER_SIGNALS( __mask ) \ |
| 108 CYG_POSIX_DELIVER_SIGNALS( __mask ) | 118 CYG_POSIX_DELIVER_SIGNALS( __mask ) |
| 109 | 119 |
| 110 #else | 120 #else |
| 111 | 121 |
| 112 #define CYG_FILEIO_FUNCTION_START() CYG_EMPTY_STATEMENT | 122 #define CYG_FILEIO_SIGMASK_SET( __set, __oset ) CYG_EMPTY_STATEMENT |
| 113 | |
| 114 #define CYG_FILEIO_FUNCTION_FINISH() CYG_EMPTY_STATEMENT | |
| 115 | |
| 116 #define CYG_FILEIO_SIGMASK_SET( __set, __oset ) \ | |
| 117 CYG_UNUSED_PARAM(sigset_t *, __oset) | |
| 118 | 123 |
| 119 #define CYG_FILEIO_SIGPENDING() (0) | 124 #define CYG_FILEIO_SIGPENDING() (0) |
| 120 | 125 |
| 121 #define CYG_FILEIO_DELIVER_SIGNALS( __mask ) CYG_EMPTY_STATEMENT | 126 #define CYG_FILEIO_DELIVER_SIGNALS( __mask ) CYG_EMPTY_STATEMENT |
| 122 | 127 |
