Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!ccnysci!phri!cmcl2!stealth.acf.nyu.edu!brnstnd From: brnstnd@stealth.acf.nyu.edu Newsgroups: comp.unix.questions Subject: How to do a non-blocking write of more than one char? Message-ID: <2759@stealth.acf.nyu.edu> Date: 6 Jan 90 21:47:53 GMT Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 11 I'd like to write to a file descriptor without blocking. select() tells me that I can write at least one character, but I don't want to have to write the characters individually. The FNDELAY fcntl() is inappropriate because it affects other processes. If select() says the fd is writable, is the write() guaranteed not to block? In that case, as long as it isn't interrupted, will the write() always return the correct count of characters written? If not, is there a solution? ---Dan