Module _Stdio

Inheritance graph
predef::_Stdio 7.8::files predef::Stdio
Description

Low-level I/O.

This is usually NOT the module you want. Try Stdio instead.

See also

Stdio


Constant IPPROTO_IP

constant _Stdio.IPPROTO_IP

Description

Used in File.setsockopt() to set IP-level options


Constant IPPROTO_TCP

constant _Stdio.IPPROTO_TCP

Description

Used in File.setsockopt() to set TCP-level options


Constant IP_TOS

constant _Stdio.IP_TOS

Description

Used in File.setsockopt() to set Type Of Service


Constant NOTE_ATTRIB

constant int _Stdio.NOTE_ATTRIB

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for attribute changes on a file.

Note

Available on systems that use kqueue.


Constant NOTE_DELETE

constant int _Stdio.NOTE_DELETE

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for deletion of a file.

Note

Available on systems that use kqueue.


Constant NOTE_EXTEND

constant int _Stdio.NOTE_EXTEND

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for extension events on a file.

Note

Available on systems that use kqueue.


Constant NOTE_LINK

constant int _Stdio.NOTE_LINK

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for changes to a file's link count.

Note

Available on systems that use kqueue.


Constant NOTE_RENAME

constant int _Stdio.NOTE_RENAME

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for move or rename events on a file.

Note

Available on systems that use kqueue.


Constant NOTE_REVOKE

constant int _Stdio.NOTE_REVOKE

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for access revokation (unmount, etc).

Note

Available on systems that use kqueue.


Constant NOTE_WRITE

constant int _Stdio.NOTE_WRITE

Description

Used with Stdio.File()->set_fs_event_callback() to monitor for writes to a file.

Note

Available on systems that use kqueue.


Constant PROP_BIDIRECTIONAL

constant int _Stdio.PROP_BIDIRECTIONAL

Description

The file is bi-directional.

See also

Stdio.File()->pipe()


Constant PROP_BUFFERED

constant int _Stdio.PROP_BUFFERED

Description

The file is buffered (usually 4KB).

See also

Stdio.File()->pipe()


Constant PROP_IPC

constant int _Stdio.PROP_IPC

Description

The file may be used for inter process communication.

See also

Stdio.File()->pipe()


Constant PROP_NONBLOCK

constant int _Stdio.PROP_NONBLOCK

Description

The file supports nonblocking I/O.

See also

Stdio.File()->pipe()


Constant PROP_REVERSE

constant int _Stdio.PROP_REVERSE

Description

Request reversed operation.

Used as argument to Stdio.File()->pipe(), when PROP_BIDIRECTIONAL hasn't been specified, to request the direction of the resulting pipe to reversed.

See also

Stdio.File()->pipe()


Constant PROP_SEND_FD

constant int _Stdio.PROP_SEND_FD

Description

The Stdio.File object might support the Stdio.File()->send_fd() operation.

See also

Stdio.File()->pipe(), Stdio.File()->send_fd(), Stdio.File()->receive_fd()


Constant PROP_SHUTDOWN

constant int _Stdio.PROP_SHUTDOWN

Description

The file supports shutting down transmission in either direction.

See also

Stdio.File()->close(), Stdio.File()->pipe()


Constant PROP_TTY

constant int _Stdio.PROP_TTY

Description

The Stdio.File object supports tty operations.

Note

This constant is only present on platforms where pseudo tty (aka pty) operations are available, and may thus be used to detect whether such operations should be attempted.

See also

Stdio.File()->pipe()


Constant SOL_SOCKET

constant _Stdio.SOL_SOCKET

Description

Used in File.setsockopt() to set socket-level options


Constant SO_KEEPALIVE

constant _Stdio.SO_KEEPALIVE

Description

Used in File.setsockopt() to control TCP/IP keep-alive packets.


Constant TCP_NODELAY

constant _Stdio.TCP_NODELAY

Description

Used in File.setsockopt() to control Nagle's Algorithm.


Constant XATTR_CREATE

constant _Stdio.XATTR_CREATE

Description

Used by setxattr function and method to signify a pure create, which will fail if the attribute already exists.


Constant XATTR_REPLACE

constant _Stdio.XATTR_REPLACE

Description

Used by setxattr function and method to signify a replace, which will fail the the attribute does not already exists.


Constant __HAVE_CONCURRENT_CLOSE__

constant _Stdio.__HAVE_CONCURRENT_CLOSE__

Description

Support concurrent closing of files while other blocking operations (eg Stdio.File->read() or Stdio.File()->write()) are active in other threads. This is typically used to implement timeout recovery.

Note

Support for concurrent closing of files is present in Pike 8.0.1950, Pike 9.0.11 and later on most non-NT platforms.

See also

Stdio.File()->close()


Constant __HAVE_OOB__

constant _Stdio.__HAVE_OOB__

Description

Exists and has the value 1 if OOB operations are available.

Note

In Pike 7.5 and later OOB operations are always present.


Constant __HAVE_SEND_FD__

constant _Stdio.__HAVE_SEND_FD__

Description

Support for sending of file descriptors over Stdio.File()->pipe() objects with PROP_SEND_FD capability is supported.

See also

Stdio.File()->send_fd(), Stdio.File()->receive_fd(), Stdio.File()->read(), Stdio.File()->write(), Stdio.File()->pipe()


Constant __OOB__

constant _Stdio.__OOB__

Description

Implementation level of nonblocking I/O OOB support.

0

Nonblocking OOB support is not supported.

1

Nonblocking OOB works a little.

2

Nonblocking OOB almost works.

3

Nonblocking OOB works as intended.

-1

Unknown level of nonblocking OOB support.

This constant only exists when OOB operations are available, i.e. when __HAVE_OOB__ is 1.