Ignore:
Timestamp:
Oct 7, 2007, 10:39:58 PM (18 years ago)
Author:
bird
Message:

some more cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.h

    r1213 r1214  
    2525 */
    2626
    27 #ifndef ___shfile_h___
    28 #define ___shfile_h___
     27#ifndef ___shfile_h
     28#define ___shfile_h
    2929
    3030#include "shtypes.h"
    3131#include <fcntl.h>
    3232#include <sys/stat.h>
     33#ifdef _MSC_VER
     34# define _PATH_DEVNULL  "nul"
     35# define _PATH_DEFPATH  "."
     36#else
     37# if !defined(__sun__)
     38#  include <paths.h>
     39# endif
     40# ifdef _PATH_DEVNULL
     41#  define _PATH_DEVNULL "/dev/null"
     42# endif
     43# ifndef _PATH_DEFPATH
     44#  define _PATH_DEFPATH "/bin:/usr/bin:/sbin:/usr/sbin"
     45# endif
     46#endif
    3347#ifndef _MSC_VER
    3448# include <sys/fcntl.h>
     
    7589# define W_OK       2
    7690# define R_OK       4
     91
     92# define O_NONBLOCK 0 /// @todo
    7793
    7894#endif
     
    129145#endif
    130146
     147typedef struct sh_dirent
     148{
     149    char name[260];
     150} shdirent;
     151
     152typedef struct shdir
     153{
     154    shfdtab    *shfdtab;
     155    void       *native;
     156    shdirent    ent;
     157} shdir;
     158
     159shdir *shfile_opendir(shfdtab *, const char *);
     160shdirent *shfile_readdir(struct shdir *);
     161void shfile_closedir(struct shdir *);
     162
    131163#endif
    132164
Note: See TracChangeset for help on using the changeset viewer.