[fpc-pascal] errno codes fpOpen
afpteam at sbcglobal.net
Thu Nov 8 20:43:18 CET 2007
I'm maybe lost in the doc searches, but is there a reference explaining the
extended err codes for fpOpen and friends?
I could not find one.
The effort is a Linux/Pentium fifo read by cgi but fails to read a piped
fifo built with RW permission / shared.
var FD: Cint;
writeln ('Content-type: text/html');
FD:=fpOpen ('/tmp/BlaBla,O_RdOnly or O_NonBlock);
if FD>=0 then
Writeln ('Error : ',fpgeterrno);
Writeln ('The script exited with status : ',fpClose (FD));
FpMkfifo : -1<- setup fifo pipe,ok
start...3(handle to pipe)
PID > 0<-server returned
The script exited with status : 0
More information about the fpc-pascal