40 #if defined(WFIO_COMPILER_DJGPP) | defined(WFIO_OS_BEOS) | defined(WFIO_OS_HAIKU) 41 #include <sys/types.h> 44 #elif defined(WFIO_COMPILER_GCC) 45 #include <bits/types.h> 328 inline operator int()
const throw() {
362 inline DCntl() throw() : value(DCNTL_GETFD) {}
373 value(static_cast<Value>(value)) {}
382 inline bool operator == (
DCntl rhs)
const throw() {
383 return value == rhs.value;
393 inline bool operator != (
DCntl rhs)
const throw() {
394 return value != rhs.value;
402 inline operator CType()
const throw() {
403 return static_cast<CType
>(
value);
The root namespace for WFIO.
Definition: bin.h:879
A command to be supplied to a device or similar stream.
Definition: iotype.h:334
An IOShare mask selecting the ownership mode for this mode.
Definition: iotype.h:161
WFIO_C_BEGIN typedef long int wfio_off_t
An integer corresponding to a device offset.
Definition: iotype.h:48
#define WFIO_C_BEGIN
Definition: host.h:477
int value
The literal value for this IOShare.
Definition: iotype.h:294
An ownership type corresponding to O_ACQUIRE.
Definition: iotype.h:283
Value
An acceptable value for a DCntl.
Definition: iotype.h:339
A generic stream encapsulation.
Definition: peer.h:44
Ownership
An ownership type for an IOShare.
Definition: iotype.h:273
Obtain the file's current file descriptor.
Definition: iotype.h:193
A constant representing a bad file descriptor.
Definition: iotype.h:113
DCntl(Value value)
Construct a DCntl from an explicit value.
Definition: iotype.h:367
Value value
The literal value of this DCntl.
Definition: iotype.h:355
wfio_openflag_t
A single flag for a wfio_openmode_t;.
Definition: iotype.h:72
wfio_whence_t
The type corresponding to the point of reference in a seek operation.
Definition: iotype.h:60
wfio_peer_type_t
The type associated with a peer.
Definition: iotype.h:127
An IOShare mode indicating that the stream is shared weakly.
Definition: iotype.h:258
An IO sharing mode.
Definition: iotype.h:253
int wfio_fd_t
The type corresponding a file descriptor.
Definition: iotype.h:108
wfio_dcntl_t
A command to be supplied to a device or similar stream.
Definition: iotype.h:175
DCntl()
Construct en empty DCntl.
Definition: iotype.h:362
An IOShare mode indicating that the stream is duplicated.
Definition: iotype.h:262
void ownership(Ownership ownership)
Set the ownership type of this IOShare.
Definition: iotype.h:318
A C++ wrapper for a wfio_device_t.
Definition: device.h:783
Obtain the file's current file descriptor.
Definition: iotype.h:343
A C++ wrapper for a wfio_iobuf_t.
Definition: iobuf.h:551
A stream intended for binary output.
Definition: bin.h:54
A constant indicating no position.
Definition: iotype.h:226
DCntl(CType value)
Construct a DCntl from a CType.
Definition: iotype.h:372
Obtain the flags associated with this device.
Definition: iotype.h:205
#define WFIO_C_END
Definition: host.h:485
A simple, byte-oriented channel.
Definition: device.h:164
int wfio_ioshare_t
An I/O sharing mode.
Definition: iotype.h:167
The stream is both readable and writable.
Definition: iotype.h:97
Perform no operation.
Definition: iotype.h:183
An ownership type corresponding to O_DUP.
Definition: iotype.h:288
IOShare(int value)
Construct an IOShare from an explicit value.
Definition: iotype.h:304
An IOShare mode indicating that the stream is acquired.
Definition: iotype.h:148
An IOShare mode indicating that the stream is shared weakly.
Definition: iotype.h:143
Set the length of a device's backing store.
Definition: iotype.h:219
An IOShare mode indicating that the stream is duplicated.
Definition: iotype.h:153
::wfio_fd_t fd_t
The type corresponding a file descriptor.
Definition: iotype.h:237
An IOShare mask selecting the ownership mode for this mode.
Definition: iotype.h:267
An IOShare mode indicating that the stream is acquired.
Definition: iotype.h:260
IOShare()
Construct the default IOShare.
Definition: iotype.h:299
Attempt to change the flags associated with this device.
Definition: iotype.h:200
::wfio_off_t off_t
An integer corresponding to a device offset.
Definition: iotype.h:234
A generic I/O buffer.
Definition: iobuf.h:122
Ownership ownership() const
Obtain the ownership type from this IOShare.
Definition: iotype.h:311
Obtain the flags associated with this device.
Definition: iotype.h:347
An ownership type corresponding to O_WEAK.
Definition: iotype.h:278
int wfio_openmode_t
The type corresponding to an openmode.
Definition: iotype.h:103