Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!lth.se!E89HSE@rigel.efd.lth.se From: e89hse@rigel.efd.lth.se Newsgroups: comp.unix.questions Subject: mkdir in C Message-ID: <009375FC.8A3B0AC0@rigel.efd.lth.se> Date: 29 May 90 03:41:48 GMT Sender: newsuser@lth.se (LTH network news server) Reply-To: e89hse@rigel.efd.lth.se Organization: Lund Institute of Technology,Lund, Sweden Lines: 8 I'd like to know if there is any way for a C-program to create a directory. The mkdir(2) call doesn't exist on the machine I'm using. It is possible to create a directory with the mknod(2) call, but then you have to have effective-user-id 0 (super user). Of course one could set the substitute user flag, but isn't there a more elegant way to do it. Henrik Sandell