libowfat_io_fd_canwrite man page on DragonFly

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

io_fd_canwrite(3)					     io_fd_canwrite(3)

NAME
       io_fd_canwrite - prepare descriptor for io_wait

SYNTAX
       #include <io.h>

       int io_fd(int64 fd); int io_fd_canwrite(int64 fd);

DESCRIPTION
       io_fd_canwrite  is  just like io_fd, except that assumes the descriptor
       is writable, which may save a syscall or two.  This assumption is  true
       in  most cases, because the kernel buffers writes.  Noteworthy cases in
       which you need to use io_fd instead of io_fd_canwrite  are  unconnected
       sockets,	 i.e. when you queued a non-blocking connect() and want to ask
       for writability to get notified when it went through.

       It is OK to call this function on a descriptor that io_fd() has already
       been called on.

RETURN VALUE
       io_fd_canwrite returns 1 on success, 0 on error.

SEE ALSO
       io_wait(3),   io_wantread(3),   io_canread(3),	io_eagain(3),  io_non‐
       block(3), io_fd(3)

							     io_fd_canwrite(3)
[top]

List of man pages available for DragonFly

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