I'm trying to write a server program in c, with DevCpp, that will create and edit about hundred of files every minute, of about 200 byte each.
The problem is that unistd.h
, on devcpp, can't open files in nonblocking mode (it seems): I wanted to use open()
with the O_NONBLOCK
flag, but seems to not exist in the libraries (I have already checked in fcntl.h
).
What do you recommend me to do? Should I search for another version of unistd.h, rather than the one provided by DevCpp, or should I use another library?
I wish to keep the code as simply as possible, in order to create a fast and reliable server program, in C language. Thanks in advance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.