www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/14/10:20:55

Date: Tue, 14 May 1996 17:49:43 +0400 (MSD)
From: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Message-Id: <199605141349.RAA05082@video.yars.free.net>
To: Dieter DOT Demerre AT cs DOT kuleuven DOT ac DOT be, djgpp AT delorie DOT com
Subject: Re: where to find the header for int mkdir()?

> While porting my program from BC3.1 to DJGPP v2, I got the
> warning of an implicit declaration of int mkdir(...).
> When I grep-ed the include-directory, I found that in 
> sys/stat.h there's a prototype for mkdir(char*,int,int);.

I've found in sys/stat.h only int mkdir(const char *_path, mode_t _mode);
(two parameters). This is correct prototype according to posix.

> while in BC3.1 there's int mkdir(char*) in dir.h

BC3.1 does not conform to posix, obviously.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019