Annotation of 43BSDReno/contrib/isode-beta/h/usr.dirent.h, revision 1.1

1.1     ! root        1: /* usr.dirent.h - ISODE's version of DAG's SVR3 directory access routines */
        !             2: 
        !             3: /*
        !             4:        <dirent.h> -- definitions for SVR3 directory access routines
        !             5: 
        !             6:        last edit:      25-Apr-1987     D A Gwyn
        !             7: 
        !             8:        Prerequisite:   <sys/types.h>
        !             9: */
        !            10: 
        !            11: #ifndef        _CONFIG_
        !            12: #include "config.h"            /* system-specific configuration */
        !            13: #endif
        !            14: #ifndef        GETDENTS
        !            15: #if    defined(SUNOS4)
        !            16: #define        GETDENTS
        !            17: #endif
        !            18: #endif
        !            19: 
        !            20: #ifdef GETDENTS
        !            21: #include <dirent.h>
        !            22: #else
        !            23: #include       "sys.dirent.h"
        !            24: 
        !            25: #define        DIRBUF          8192            /* buffer size for fs-indep. dirs */
        !            26:        /* must in general be larger than the filesystem buffer size */
        !            27: 
        !            28: typedef struct
        !            29:        {
        !            30:        int     dd_fd;                  /* file descriptor */
        !            31:        int     dd_loc;                 /* offset in block */
        !            32:        int     dd_size;                /* amount of valid data */
        !            33:        char    *dd_buf;                /* -> directory block */
        !            34:        }       DIR;                    /* stream data from opendir() */
        !            35: 
        !            36: #define        opendir         _opendir
        !            37: #define        readdir         _readdir
        !            38: #define        telldir         _telldir
        !            39: #define        seekdir         _seekdir
        !            40: #define        rewinddir       _rewinddir
        !            41: #define        closedir        _closedir
        !            42: 
        !            43: extern DIR             *opendir();
        !            44: extern struct dirent   *readdir();
        !            45: extern off_t           telldir();
        !            46: extern void            seekdir();
        !            47: extern void            rewinddir();
        !            48: extern int             closedir();
        !            49: 
        !            50: #ifndef NULL
        !            51: #define        NULL    0                       /* DAG -- added for convenience */
        !            52: #endif
        !            53: #endif /* not GETDENTS */
        !            54: 
        !            55: #define        getcwd          _getcwd
        !            56: 
        !            57: extern char             *getcwd ();
        !            58: 
        !            59: 
        !            60: extern char *direntversion;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.