Prechádzať zdrojové kódy

change(types): add mode_t

greatbridf 2 rokov pred
rodič
commit
a4c5491f01
2 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 1 1
      gblibc/include/sys/stat.h
  2. 1 0
      gblibc/include/sys/types.h

+ 1 - 1
gblibc/include/sys/stat.h

@@ -11,7 +11,7 @@ extern "C" {
 struct stat {
 struct stat {
     dev_t st_dev;
     dev_t st_dev;
     ino_t st_ino;
     ino_t st_ino;
-    uint16_t st_mode;
+    mode_t st_mode;
     uint16_t st_nlink;
     uint16_t st_nlink;
     uint16_t st_uid;
     uint16_t st_uid;
     uint16_t st_gid;
     uint16_t st_gid;

+ 1 - 0
gblibc/include/sys/types.h

@@ -11,6 +11,7 @@ typedef int pid_t;
 typedef uint32_t ino_t;
 typedef uint32_t ino_t;
 typedef int32_t off_t;
 typedef int32_t off_t;
 typedef uint32_t dev_t;
 typedef uint32_t dev_t;
+typedef uint16_t mode_t;
 
 
 #define INVALID_DEVICE (~(dev_t)0)
 #define INVALID_DEVICE (~(dev_t)0)