On Sun, Nov 19, 2006 at 03:36:08PM +0100, Georg Baum wrote: > Am Sonntag, 19. November 2006 14:56 schrieb Bo Peng: > > > > mode_t is only used when HAVE_CHMOD is enabled > > > > so why do you need a HAVE_MODE_T? > > > > Because msvc has chmod, but not mode_t; and I am reluctant to use > > compiler/os specific flags. > > > > > And mingw has a mode_t. > > > > msvc is only *one* compiler under windows. mingw happens to have > > mode_t, but what about cygwin, bcc and others? HAVE_MODE_T is a safer > > solution. > > Really? Does the chmod of mingw take a mode_t argument? If yes, does it > support 0600?
Yes, probably. At least on Cygwin, Unix permissions are mapped to Windows ACLs. See for example: http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files -- Enrico