Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/sys/stat.h

    rbc56f30 r9b8be79  
    3939#include <sys/types.h>
    4040#include <time.h>
    41 #include <_bits/decls.h>
    4241
    4342/* values are the same as on Linux */
    4443
     44#undef S_IFMT
     45#undef S_IFSOCK
     46#undef S_IFLNK
     47#undef S_IFREG
     48#undef S_IFBLK
     49#undef S_IFDIR
     50#undef S_IFCHR
     51#undef S_IFIFO
    4552#define S_IFMT     0170000   /* all file types */
    4653#define S_IFSOCK   0140000   /* socket */
     
    5259#define S_IFIFO    0010000   /* FIFO */
    5360
     61#undef S_ISUID
     62#undef S_ISGID
     63#undef S_ISVTX
    5464#define S_ISUID    0004000   /* SUID */
    5565#define S_ISGID    0002000   /* SGID */
    5666#define S_ISVTX    0001000   /* sticky */
    5767
     68#undef S_IRWXU
     69#undef S_IRUSR
     70#undef S_IWUSR
     71#undef S_IXUSR
    5872#define S_IRWXU    00700     /* owner permissions */
    5973#define S_IRUSR    00400
     
    6175#define S_IXUSR    00100
    6276
     77#undef S_IRWXG
     78#undef S_IRGRP
     79#undef S_IWGRP
     80#undef S_IXGRP
    6381#define S_IRWXG    00070     /* group permissions */
    6482#define S_IRGRP    00040
     
    6684#define S_IXGRP    00010
    6785
     86#undef S_IRWXO
     87#undef S_IROTH
     88#undef S_IWOTH
     89#undef S_IXOTH
    6890#define S_IRWXO    00007     /* other permissions */
    6991#define S_IROTH    00004
     
    7193#define S_IXOTH    00001
    7294
     95#undef S_ISREG
     96#undef S_ISDIR
     97#undef S_ISCHR
     98#undef S_ISBLK
     99#undef S_ISFIFO
     100#undef S_ISLNK
     101#undef S_ISSOCK
    73102#define S_ISREG(m) ((m & S_IFREG) != 0)
    74103#define S_ISDIR(m) ((m & S_IFDIR) != 0)
     
    78107#define S_ISLNK(m) ((m & S_IFLNK) != 0) /* symbolic link? (Not in POSIX.1-1996.) */
    79108#define S_ISSOCK(m) ((m & S_IFSOCK) != 0) /* socket? (Not in POSIX.1-1996.) */
    80 
    81 __C_DECLS_BEGIN;
    82109
    83110struct stat {
     
    104131extern int mkdir(const char *path, mode_t mode);
    105132
    106 __C_DECLS_END;
    107 
    108133#endif /* POSIX_SYS_STAT_H */
    109134
Note: See TracChangeset for help on using the changeset viewer.