Changed access.c and try to convert commit.c to lower case.

svn path=/trunk/; revision=327
This commit is contained in:
Boudewijn Dekker 1999-03-22 17:21:21 +00:00
parent 108fcceee2
commit 0dc103b08e
2 changed files with 2 additions and 16 deletions

View file

@ -7,10 +7,6 @@
#define X_OK 0x08
#define D_OK 0x10
int access(const char *_path, int _amode)
{
return _access(_path,_amode);
}
int _access( const char *_path, int _amode )
{
@ -23,9 +19,9 @@ int _access( const char *_path, int _amode )
if ( (Attributes & FILE_ATTRIBUTE_READONLY) == FILE_ATTRIBUTE_READONLY )
return -1;
}
if ( _amode & D_OK == D_OK ) {
if ( (_amode & D_OK) == D_OK ) {
if ( (Attributes & FILE_ATTRIBUTE_DIRECTORY) != FILE_ATTRIBUTE_DIRECTORY )
return 0;
return -1;
}
return 0;

View file

@ -1,10 +0,0 @@
#include <windows.h>
#include <io.h>
int _commit(int _fd)
{
if (! FlushFileBuffers(_get_osfhandle(_fd)) )
return -1;
return 0;
}