Changeset 3871:dc9be2b6eef2 in roaraudio for libroaross


Ignore:
Timestamp:
05/20/10 20:10:26 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for creat()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3870 r3871  
    155155 int     (*access)(const char *pathname, int mode); 
    156156 int     (*open64)(const char *__file, int __oflag, ...); 
     157 int     (*creat)(const char *pathname, mode_t mode); 
    157158} _os; 
    158159 
     
    262263 _os.access = dlsym(REAL_LIBC, "access"); 
    263264 _os.open64 = dlsym(REAL_LIBC, "open64"); 
     265 _os.creat  = dlsym(REAL_LIBC, "creat"); 
    264266} 
    265267 
     
    18331835} 
    18341836 
     1837int 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 
    18351848// ------------------------------------- 
    18361849// emulated stdio functions follow: 
Note: See TracChangeset for help on using the changeset viewer.