Get info about a file: id, size, flags, modification time.
Id is (statbuf.st_dev << 24) + statbuf.st_ino
Size is the file size
Flags is file type: 0 is regular file, bit 0 set executable,
bit 1 set directory, bit 2 set special file
(socket, fifo, pipe, etc.)
Modtime is modification time.
The function returns 0 in case of success and 1 if the file could
not be stat'ed.

Get info about a file system: id, bsize, bfree, blocks.
Id is file system type (machine dependend, see statfs())
Bsize is block size of file system
Blocks is total number of blocks in file system
Bfree is number of free blocks in file system
The function returns 0 in case of success and 1 if the file system could
not be stat'ed.

Expand a pathname getting rid of special shell characters like ~.$, etc.
For Unix/Win32 compatibility use $(XXX) instead of $XXX when using
environment variables in a pathname. If compatibility is not an issue
you can use on Unix directly $XXX.

Expand a pathname getting rid of special shell characters like ~.$, etc.
For Unix/Win32 compatibility use $(XXX) instead of $XXX when using
environment variables in a pathname. If compatibility is not an issue
you can use on Unix directly $XXX.

Expand a pathname getting rid of special shell characaters like ~.$, etc.
For Unix/Win32 compatibility use $(XXX) instead of $XXX when using
environment variables in a pathname. If compatibility is not an issue
you can use on Unix directly $XXX. The user must delete returned string.

Set environment variable. The string passed will be owned by
the environment and can not be reused till a "name" is set
again. The solution below will lose the space for the string
in that case, but if this functions is not called thousands
of times that should not be a problem.

Open a connection to a service on a server. Returns -1 in case
connection cannot be opened.
Use tcpwindowsize to specify the size of the receive buffer, it has
to be specified here to make sure the window scale option is set (for
tcpwindowsize > 65KB and for platforms supporting window scaling).
Is called via the TSocket constructor.

Announce TCP/IP service.
Open a socket, bind to it and start listening for TCP/IP connections
on the port. If reuse is true reuse the address, backlog specifies
how many sockets can be waiting to be accepted.
Use tcpwindowsize to specify the size of the receive buffer, it has
to be specified here to make sure the window scale option is set (for
tcpwindowsize > 65KB and for platforms supporting window scaling).
Returns socket fd or -1 if socket() failed, -2 if bind() failed
or -3 if listen() failed.

Receive exactly length bytes into buffer. Use opt to receive out-of-band
data or to have a peek at what is in the buffer (see TSocket). Buffer
must be able to store at least length bytes. Returns the number of
bytes received (can be 0 if other side of connection was closed) or -1
in case of error, -2 in case of MSG_OOB and errno == EWOULDBLOCK, -3
in case of MSG_OOB and errno == EINVAL and -4 in case of kNoBlock and
errno == EWOULDBLOCK.

Get info about a file: id, size, flags, modification time.
Id is (statbuf.st_dev << 24) + statbuf.st_ino
Size is the file size
Flags is file type: 0 is regular file, bit 0 set executable,
bit 1 set directory, bit 2 set special file
(socket, fifo, pipe, etc.)
Modtime is modification time.
The function returns 0 in case of success and 1 if the file could
not be stat'ed.

Get info about a file system: id, bsize, bfree, blocks.
Id is file system type (machine dependend, see statfs())
Bsize is block size of file system
Blocks is total number of blocks in file system
Bfree is number of free blocks in file system
The function returns 0 in case of success and 1 if the file system could
not be stat'ed.

Open a TCP/IP connection to server and connect to a service (i.e. port).
Use tcpwindowsize to specify the size of the receive buffer, it has
to be specified here to make sure the window scale option is set (for
tcpwindowsize > 65KB and for platforms supporting window scaling).
Is called via the TSocket constructor.

Open a socket, bind to it and start listening for TCP/IP connections
on the port. If reuse is true reuse the address, backlog specifies
how many sockets can be waiting to be accepted. If port is 0 a port
scan will be done to find a free port. This option is mutual exlusive
with the reuse option.
Use tcpwindowsize to specify the size of the receive buffer, it has
to be specified here to make sure the window scale option is set (for
tcpwindowsize > 65KB and for platforms supporting window scaling).
Returns socket fd or -1 if socket() failed, -2 if bind() failed
or -3 if listen() failed.

Receive exactly length bytes into buffer. Returns number of bytes
received. Returns -1 in case of error, -2 in case of MSG_OOB
and errno == EWOULDBLOCK, -3 in case of MSG_OOB and errno == EINVAL
and -4 in case of kNoBlock and errno == EWOULDBLOCK.

Returns the path of a shared library (searches for library in the
shared library search path). If no file name extension is provided
it first tries .so, .sl, .dl and then .a (for AIX). The returned string
must be deleted.

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.