|
@@ -84,43 +84,6 @@ begin
|
|
fpFlock:=do_syscall(syscall_nr_flock,fd,mode);
|
|
fpFlock:=do_syscall(syscall_nr_flock,fd,mode);
|
|
end;
|
|
end;
|
|
|
|
|
|
-{$ifdef CPUI386}
|
|
|
|
-// needs oldfpccall;
|
|
|
|
-Function intAssignPipe(var pipe_in,pipe_out:longint;var errn:cint):cint; oldfpccall;
|
|
|
|
-{
|
|
|
|
- Sets up a pair of file variables, which act as a pipe. The first one can
|
|
|
|
- be read from, the second one can be written to.
|
|
|
|
- If the operation was unsuccesful, linuxerror is set.
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-begin
|
|
|
|
- asm
|
|
|
|
- mov $42,%eax
|
|
|
|
- int $0x80
|
|
|
|
- jb .Lerror
|
|
|
|
- mov pipe_in,%ebx
|
|
|
|
- mov %eax,(%ebx)
|
|
|
|
- mov pipe_out,%ebx
|
|
|
|
- mov $0,%eax
|
|
|
|
- mov %edx,(%ebx)
|
|
|
|
- mov %eax,%ebx
|
|
|
|
- jmp .Lexit
|
|
|
|
-.Lerror:
|
|
|
|
- mov %eax,%ebx
|
|
|
|
- mov $-1,%eax
|
|
|
|
-.Lexit:
|
|
|
|
- mov Errn,%edx
|
|
|
|
- mov %ebx,(%edx)
|
|
|
|
- end;
|
|
|
|
-end;
|
|
|
|
-{$else CPUI386}
|
|
|
|
-Function intAssignPipe(var pipe_in,pipe_out:longint;var errn:cint):cint; oldfpccall;
|
|
|
|
- begin
|
|
|
|
- runerror(217);
|
|
|
|
- end;
|
|
|
|
-{$endif CPUI386}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
function MUnMap (P : Pointer; Size : size_t) : cint;
|
|
function MUnMap (P : Pointer; Size : size_t) : cint;
|
|
begin
|
|
begin
|
|
MUnMap:=do_syscall(syscall_nr_munmap,TSysParam(P),Size);
|
|
MUnMap:=do_syscall(syscall_nr_munmap,TSysParam(P),Size);
|