From a8ef20c591312bf59dbff1be0c60f7f6ececa4d4 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 16 Sep 2005 05:33:42 +0000 Subject: [PATCH] Added access() mode macros for Win32 (copied from unistd.h) needed for delfiles() port. --- src/xpdev/dirwrap.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/xpdev/dirwrap.h b/src/xpdev/dirwrap.h index ec8b310268..c2bcd23d8d 100644 --- a/src/xpdev/dirwrap.h +++ b/src/xpdev/dirwrap.h @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public License * @@ -71,7 +71,14 @@ extern "C" { #define DLLEXPORT /* CygWin's glob.h #undef's DLLEXPORT */ #endif -#else +#else + + /* Values for the second argument to access. + These may be OR'd together. */ + #define R_OK 4 /* Test for read permission. */ + #define W_OK 2 /* Test for write permission. */ + #define X_OK 1 /* Test for execute permission. */ + #define F_OK 0 /* Test for existence. */ #include <direct.h> /* mkdir() */ -- GitLab