UNIX Free Pascal



         

stdio


.

unit stdio;

{$mode objfpc}

interface

(* A streammarker remembers a position in a buffer. *)

uses linux,sockets;

const

EOF=-1; (* stdio *)

WCOREFLAG=$80; (* *)

(* *)

BUFSIZ=8192;

NULL=nil;

_IOFBF=0; (* setvbuf should set fully buffered *)

_IOLBF=1; (* setvbuf should set line buffered *)

_IONBF=2; (* setvbuf should set unbuffered *)

MAX_INPUT=255; (* size of the type-ahead buffer *)

_SIGSET_NWORDS=1024 div (8 * sizeof (longint)); (* sizeof(sigset_t) *)

(* pathconf/fpathconf *)

(* returns the maximum number of links to the file. If filedes or

* path refer to a directory, then the value applies to the whole

* directory.

*)

_PC_LINK_MAX=0;

(* returns the maximum length of a formatted input line, where

* filedes or path must refer to a terminal.

*)

_PC_MAX_CANON=1;

(* returns the maximum length of an input line, where filedes or

* path must refer to a terminal.

*)

_PC_MAX_INPUT=2;

(* returns the maximum length of a filename in the directory path

* or filedes. the process is allowed to create.

*)

_PC_NAME_MAX=3;

(* returns the maximum length of a relative pathname when path or

* filedes is the current working directory.

*)

_PC_PATH_MAX=4;

(* returns the size of the pipe buffer, where filedes must refer to

* a pipe or FIFO and path must refer to a FIFO.

*)

_PC_PIPE_BUF=5;

(* returns nonzero if the chown(2) call may not be used on this

* file. If filedes or path refer to a directory, then this

* applies to all files in that directory.

*)

_PC_CHOWN_RESTRICTED=6;

(* returns nonzero if accessing filenames longer than