PDA

View Full Version : open(), which header?



tony11235
October 29th, 2007, 10:49 PM
In my OS class, we have to write a basic unix shell, i'm working on redirection, so that means working with dup2, open, etc. I'm familiar with fopen() and freopen(), but never used open(). And the compiler (g++) is complaining about it not being declared. Which header is it contained in? I thought it was contained in <sys/types.h>, but apparently not.

Bliepo32
October 29th, 2007, 11:07 PM
http://www.scit.wlv.ac.uk/cgi-bin/mansec?2+open

tony11235
October 29th, 2007, 11:09 PM
Thanks. Should have known.