Changeset 3890:bbf415110a11 in roaraudio for libroaross/libroaross.c
- Timestamp:
- 05/25/10 13:08:13 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/libroaross.c
r3880 r3890 94 94 #endif 95 95 96 #ifdef ROAR_OS_FREEBSD 97 #define _CREAT_ARG_PATHNAME path 98 #else 99 #define _CREAT_ARG_PATHNAME pathname 100 #endif 101 96 102 #ifdef ROAR_OS_NETBSD 97 103 #define IOCTL() int _oss_ioctl __P((int fd, unsigned long com, void *argp)) … … 167 173 int (*access)(const char *pathname, int mode); 168 174 int (*open64)(const char *__file, int __oflag, ...); 169 int (*creat)(const char * pathname, mode_t mode);175 int (*creat)(const char *_CREAT_ARG_PATHNAME, mode_t mode); 170 176 int (*stat)(const char *path, struct stat *buf); 171 177 int (*fstat)(int filedes, struct stat *buf); … … 1863 1869 } 1864 1870 1865 int creat(const char * pathname, mode_t mode) {1871 int creat(const char *_CREAT_ARG_PATHNAME, mode_t mode) { 1866 1872 _init(); 1867 1873 1868 if ( _get_device( pathname) != NULL ) {1874 if ( _get_device(_CREAT_ARG_PATHNAME) != NULL ) { 1869 1875 errno = EEXIST; 1870 1876 return -1; 1871 1877 } 1872 1878 1873 return _os.creat( pathname, mode);1879 return _os.creat(_CREAT_ARG_PATHNAME, mode); 1874 1880 } 1875 1881
Note: See TracChangeset
for help on using the changeset viewer.