cvs commit: src/sys/fs/fifofs fifo_vnops.c src/sys/kern uipc_socket.c src/sys/sys socket.h

Don Lewis truckman at
Mon May 31 18:18:55 PDT 2004

truckman    2004/05/31 18:18:51 PDT

  FreeBSD src repository

  Modified files:
    sys/fs/fifofs        fifo_vnops.c 
    sys/kern             uipc_socket.c 
    sys/sys              socket.h 
  Add MSG_NBIO flag option to soreceive() and sosend() that causes
  them to behave the same as if the SS_NBIO socket flag had been set
  for this call.  The SS_NBIO flag for ordinary sockets is set by
  fcntl(fd, F_SETFL, O_NONBLOCK).
  Pass the MSG_NBIO flag to the soreceive() and sosend() calls in
  fifo_read() and fifo_write() instead of frobbing the SS_NBIO flag
  on the underlying socket for each I/O operation.  The O_NONBLOCK
  flag is a property of the descriptor, and unlike ordinary sockets,
  fifos may be referenced by multiple descriptors.
  Revision  Changes    Path
  1.95      +6 -12     src/sys/fs/fifofs/fifo_vnops.c
  1.172     +3 -2      src/sys/kern/uipc_socket.c
  1.80      +1 -0      src/sys/sys/socket.h

More information about the cvs-src mailing list