"Fossies" - the Fresh Open Source Software Archive

Member "ghostview-1.5/xstat.h" (1 Oct 1992, 506 Bytes) of package /linux/misc/old/ghost/gnu/ghostview/ghostview-1.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #include <sys/stat.h>
    2 #if !defined(S_ISDIR) && defined(S_IFDIR)
    3 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
    4 #endif
    5 #if !defined(S_ISREG) && defined(S_IFREG)
    6 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
    7 #endif
    8 #if !defined(S_ISSOCK) && defined(S_IFSOCK)
    9 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
   10 #endif
   11 
   12 #ifndef S_IXUSR
   13 #define S_IXUSR 0100
   14 #endif
   15 #ifndef S_IXGRP
   16 #define S_IXGRP 0010
   17 #endif
   18 #ifndef S_IXOTH
   19 #define S_IXOTH 0001
   20 #endif
   21 
   22 #define S_ISXXX(m) ((m) & (S_IXUSR | S_IXGRP | S_IXOTH))
   23