X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fposix%2Ffunctions%2Fstdio%2F_PDCLIB_open.c;h=3647aa8854052cc0220b8932809ff8acca4a3e88;hp=9f3cdec90fd9f503b4cc551cbf3a7420fc66b930;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=1aba8d4e33b2a020709f81182709c7de7a728c76 diff --git a/platform/posix/functions/stdio/_PDCLIB_open.c b/platform/posix/functions/stdio/_PDCLIB_open.c index 9f3cdec..3647aa8 100644 --- a/platform/posix/functions/stdio/_PDCLIB_open.c +++ b/platform/posix/functions/stdio/_PDCLIB_open.c @@ -1,17 +1,18 @@ -/* _PDCLIB_open(_PDCLIB_fd_t*, const _PDCLIB_fileops_t**, +/* _PDCLIB_open(_PDCLIB_fd_t*, const _PDCLIB_fileops_t**, char const*, unsigned int) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ #ifndef REGTEST -#include <_PDCLIB_glue.h> -#include <_PDCLIB_io.h> +#include "_PDCLIB_glue.h" +#include "_PDCLIB_io.h" #include + extern const _PDCLIB_fileops_t _PDCLIB_fileops; -bool _PDCLIB_open( +bool _PDCLIB_open( _PDCLIB_fd_t* fd, const _PDCLIB_fileops_t** ops, char const * filename, unsigned int mode ) { @@ -40,8 +41,7 @@ bool _PDCLIB_open( return -1; } - fd->sval = open(filename, osmode, - S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + fd->sval = open(filename, osmode, 0664); if(fd->sval == -1) { return false; } @@ -52,11 +52,11 @@ bool _PDCLIB_open( #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) { return TEST_RESULTS; } -#endif \ No newline at end of file +#endif