Changeset 3871:dc9be2b6eef2 in roaraudio
- Timestamp:
- 05/20/10 20:10:26 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/libroaross.c
r3870 r3871 155 155 int (*access)(const char *pathname, int mode); 156 156 int (*open64)(const char *__file, int __oflag, ...); 157 int (*creat)(const char *pathname, mode_t mode); 157 158 } _os; 158 159 … … 262 263 _os.access = dlsym(REAL_LIBC, "access"); 263 264 _os.open64 = dlsym(REAL_LIBC, "open64"); 265 _os.creat = dlsym(REAL_LIBC, "creat"); 264 266 } 265 267 … … 1833 1835 } 1834 1836 1837 int creat(const char *pathname, mode_t mode) { 1838 _init(); 1839 1840 if ( _get_device(pathname) != NULL ) { 1841 errno = EEXIST; 1842 return -1; 1843 } 1844 1845 return _os.creat(pathname, mode); 1846 } 1847 1835 1848 // ------------------------------------- 1836 1849 // emulated stdio functions follow:
Note: See TracChangeset
for help on using the changeset viewer.