io_canwrite man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

io_canwrite(3)							io_canwrite(3)

NAME
       io_canwrite - return a file descriptor that can be written to

SYNTAX
       #include <io.h>

       int64 io_canwrite();

DESCRIPTION
       io_canwrite  returns  the  next file descriptor that can be written to.
       You have to have used io_wantwrite() on the  file  descriptor  earlier,
       and you have to have called io_wait() or io_waituntil().

       These  functions then keep an internal data structure on which descrip‐
       tors were reported writable by the operating system.

       Please note that there is no guarantee that you can  still  write  data
       without blocking to that descriptor, just that you could when io_wait()
       or io_waituntil() were called.	Another	 process  could	 have  written
       something before you.  Look at the result from io_trywrite().

       If  there  are no more descriptors that you can write to without block‐
       ing, io_canwrite	 will  return  -1.   In	 this  case  you  should  call
       io_wait() or io_waituntil() again.

       You  should  only  use io_trywrite(3), io_sendfile(3) or iob_send(3) to
       write to the file, not plain write(2).  If you  use  write(2)  and  get
       EAGAIN, call io_eagain(3).

SEE ALSO
       io_wait(3), io_canwrite(3)

								io_canwrite(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net