mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Changed access.c and try to convert commit.c to lower case.
svn path=/trunk/; revision=327
This commit is contained in:
parent
108fcceee2
commit
0dc103b08e
2 changed files with 2 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#include <windows.h>
|
||||
#include <io.h>
|
||||
|
||||
int _commit(int _fd)
|
||||
{
|
||||
if (! FlushFileBuffers(_get_osfhandle(_fd)) )
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue