浏览代码

* the libc unit might be deprecated, but it's no reason for wrong declarations, in this case values that should be declared as octal but were declared as decimal with the same literal text

Sven/Sarah Barth 3 年之前
父节点
当前提交
b876a02daf
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      packages/libc/src/bshmh.inc

+ 7 - 7
packages/libc/src/bshmh.inc

@@ -1,10 +1,10 @@
 
 
 const
 const
-   SHM_R = 0400;
-   SHM_W = 0200;
-   SHM_RDONLY = 010000;
-   SHM_RND = 020000;
-   SHM_REMAP = 040000;
+   SHM_R = &400;
+   SHM_W = &200;
+   SHM_RDONLY = &10000;
+   SHM_RND = &20000;
+   SHM_REMAP = &40000;
    SHM_LOCK = 11;
    SHM_LOCK = 11;
    SHM_UNLOCK = 12;
    SHM_UNLOCK = 12;
 
 
@@ -32,8 +32,8 @@ type
 const
 const
    SHM_STAT = 13;
    SHM_STAT = 13;
    SHM_INFO = 14;
    SHM_INFO = 14;
-   SHM_DEST = 01000;
-   SHM_LOCKED = 02000;
+   SHM_DEST = &1000;
+   SHM_LOCKED = &2000;
 
 
 type
 type
    Pshminfo = ^shminfo;
    Pshminfo = ^shminfo;