Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 210

Show
Ignore:
Timestamp:
12/06/09 04:43:03 (15 years ago)
Author:
sean
Message:

Issue 3458 - int fsync(int) commented out in core.sys.posix.unistd
* Added fsync() for OSX, fsync() and fdatasync() for Linux.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/import/core/sys/posix/unistd.d

    r173 r210  
    458458    enum F_TEST     = 3; 
    459459} 
    460460 
    461461// 
    462462// File Synchronization (FSC) 
    463463// 
    464464/* 
    465465int fsync(int); 
    466466*/ 
    467467 
     468version( linux ) 
     469{ 
     470    int fsync(int); 
     471} 
     472else version( OSX ) 
     473{ 
     474    int fsync(int); 
     475} 
     476 
    468477// 
    469478// Synchronized I/O (SIO) 
    470479// 
    471480/* 
    472481int fdatasync(int); 
    473482*/ 
     483 
     484version( linux ) 
     485{ 
     486    int fdatasync(int);     
     487} 
    474488 
    475489// 
    476490// XOpen (XSI) 
    477491// 
    478492/* 
    479493char*      crypt(in char*, in char*); 
    480494char*      ctermid(char*); 
    481495void       encrypt(char[64], int); 
    482496int        fchdir(int); 
    483497c_long     gethostid(); 
     
    565579    pid_t      setpgrp(); 
    566580    int        setregid(gid_t, gid_t); 
    567581    int        setreuid(uid_t, uid_t); 
    568582    void       swab(in void*, void*, ssize_t); 
    569583    void       sync(); 
    570584    int        truncate(in char*, off_t); 
    571585    useconds_t ualarm(useconds_t, useconds_t); 
    572586    int        usleep(useconds_t); 
    573587    pid_t      vfork(); 
    574588} 
    575 else version (freebsd
     589else version( freebsd
    576590{ 
    577591    char*      crypt(in char*, in char*); 
    578592    //char*      ctermid(char*); 
    579593    void       encrypt(char*, int); 
    580594    int        fchdir(int); 
    581595    c_long     gethostid(); 
    582596    int        getpgid(pid_t); 
    583597    int        getsid(pid_t); 
    584598    char*      getwd(char*); // LEGACY 
    585599    int        lchown(in char*, uid_t, gid_t);