This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc and cross-compilers


Hi Kai,


Kai Ruottu wrote:
> ... All but the mkdir() seems
> Ok for me. But is it really true that mkdir() is like the one in Borland C
> (only one parameter), and not like the UNIX-standard 'int mkdir(const char *,
> mode_t)' ?

It's the other way 'round, I believe. Borland imitated MS in leaving out
the permissions parameter (which wasn't used at the time, because DOS
doesn't have permissions for directories).

The mingw32 headers could possibly add a macro like

  extern int mkdir( const char * dirname );
  #define mkdir(name,perm) mkdir(name)

to make this more Unix-compatible.


so long, benny
======================================
Benjamin Riefenstahl (benny@crocodial.de)
Crocodial Communications EntwicklungsGmbH
Ruhrstraße 61, D-22761 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]