GIOFlags

Specifies properties of a GIOChannel. Some of the flags can only be read with g_io_channel_get_flags(), but not changed with g_io_channel_set_flags(). G_IO_FLAG_APPEND turns on append mode, corresponds to O_APPEND (see the documentation of the UNIX open() syscall). G_IO_FLAG_NONBLOCK turns on nonblocking mode, corresponds to O_NONBLOCK/O_NDELAY (see the documentation of the UNIX open() syscall). G_IO_FLAG_IS_READABLE indicates that the io channel is readable. This flag can not be changed. G_IO_FLAG_IS_WRITEABLE indicates that the io channel is writable. This flag can not be changed. G_IO_FLAG_IS_SEEKABLE indicates that the io channel is seekable, i.e. that g_io_channel_seek_position() can be used on it. This flag can not be changed. G_IO_FLAG_MASK the mask that specifies all the valid flags. G_IO_FLAG_GET_MASK the mask of the flags that are returned from g_io_channel_get_flags(). G_IO_FLAG_SET_MASK the mask of the flags that the user can modify with g_io_channel_set_flags().

Values

ValueMeaning
APPEND1 << 0
NONBLOCK1 << 1
IS_READABLE1 << 2
IS_WRITEABLE1 << 3
IS_SEEKABLE1 << 4
MASK(1 << 5) - 1
GET_MASKMASK
SET_MASKAPPEND | NONBLOCK

Meta