Переглянути джерело

* removed inline flag from FUTEX_OP in linux.pp
* added msync constants

git-svn-id: trunk@6691 -

ivost 18 роки тому
батько
коміт
025b57815f
2 змінених файлів з 7 додано та 2 видалено
  1. 2 2
      rtl/linux/linux.pp
  2. 5 0
      rtl/unix/unix.pp

+ 2 - 2
rtl/linux/linux.pp

@@ -94,7 +94,7 @@ Const
    if (oldval CMP CMPARG)
      wake UADDR2; }
 
-function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; inline;
+function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; {inline;}
 
 const
   EPOLLIN  = $01; { The associated file is available for read(2) operations. }
@@ -283,7 +283,7 @@ begin
 {$endif cpum68k}
 end;
 
-function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint; inline;
+function FUTEX_OP(op, oparg, cmp, cmparg: cint): cint;
 begin
   FUTEX_OP := ((op and $F) shl 28) or ((cmp and $F) shl 24) or ((oparg and $FFF) shl 12) or (cmparg and $FFF);
 end;

+ 5 - 0
rtl/unix/unix.pp

@@ -159,6 +159,11 @@ const
   MAP_FIXED     = $10;         { Interpret addr exactly }
 //  MAP_ANONYMOUS = $20;         { don't use a file }
 
+{ Flags to `msync'.  }
+  MS_ASYNC        = 1;               { Sync memory asynchronously.  }
+  MS_SYNC         = 4;               { Synchronous memory sync.  }
+  MS_INVALIDATE   = 2;               { Invalidate the caches.  }
+
 {$ifdef Linux}
   MAP_GROWSDOWN  = $100;       { stack-like segment }
   MAP_DENYWRITE  = $800;       { ETXTBSY }