Read up to (and including) a DELIMITER from STREAM into *LINEPTR
(and null-terminate it). *LINEPTR is a pointer returned from malloc (or
NULL), pointing to *N characters of space. It is realloc’d as
necessary. Returns the number of characters read (not including the
null terminator), or -1 on error or EOF.
Return a string of the form “Day Mon dd hh:mm:ss yyyy\n”
that is the representation of TP in this format.
Return in BUF a string of the form “Day Mon dd hh:mm:ss yyyy\n”
that is the representation of TP in this format.
Clear the error and EOF indicators for STREAM.
Faster versions when locking is not required.
Time used by the program so far (user time + system time).
The result / CLOCKS_PER_SECOND is program time in seconds.
Return clock ID for CPU-time clock.
Get resolution of clock CLOCK_ID.
Get current value of clock CLOCK_ID and store it in TP.
High-resolution sleep with the specified clock.
Set clock CLOCK_ID to value TP.
Return the name of the controlling terminal.
Equivalent to `asctime (localtime (timer))’.
Equivalent to `asctime_r (localtime_r (timer, TMP), buf)’.
Return the difference between TIME1 and TIME0.
Return the number of days in YEAR.
Close STREAM.
Create a new stream that refers to an existing system file descriptor.
Return the EOF indicator for STREAM.
Return the error indicator for STREAM.
Flush STREAM, or all streams if STREAM is NULL.
Faster versions when locking is not required.
Read a character from STREAM.
Faster version when locking is not necessary.
Get STREAM’s position.
Get a newline-terminated string of finite length from STREAM.
Return the system file descriptor for STREAM.
Faster version when locking is not required.
Acquire ownership of STREAM.
Create a new stream that refers to a memory buffer.
Open a file and create a new stream for it.
Write formatted output to STREAM.
Write a character to STREAM.
Faster version when locking is not necessary.
Write a string to STREAM.
Read chunks of generic data from STREAM.
Faster versions when locking is not necessary.
Open a file, replacing an existing stream with it.
Read formatted input from STREAM.
Read formatted input from STREAM.
Seek to a certain position on STREAM.
Seek to a certain position on STREAM.
Set STREAM’s position.
Return the current position of STREAM.
Return the current position of STREAM.
Try to acquire ownership of STREAM but do not block if it is not
possible.
Relinquish the ownership granted for STREAM.
Write chunks of generic data to STREAM.
These are defined in POSIX.1:1996.
Read a character from stdin.
Like `getdelim’, but reads up to a newline.
Get a word (int) from STREAM.
Return the `struct tm’ representation of *TIMER
in Universal Coordinated Time (aka Greenwich Mean Time).
Return the `struct tm’ representation of *TIMER in UTC,
using *TP to store the result.
Return the `struct tm’ representation
of *TIMER in the local timezone.
Return the `struct tm’ representation of *TIMER in local time,
using *TP to store the result.
Return the `time_t’ representation of TP and normalize TP.
Pause execution for a number of nanoseconds.
Open a stream that writes into a malloc’d buffer that is expanded as
necessary. *BUFLOC and *SIZELOC are updated with the buffer’s location
and the number of characters written on fflush or fclose.
Close a stream opened by popen and return the status of its child.
Print a message describing the meaning of the value of errno.
Create a new stream connected to a pipe running the given command.
Write formatted output to stdout.
These are defined in POSIX.1:1996.
Write a character to stdout.
Write a string, followed by a newline, to stdout.
Write a word (int) to STREAM.
Remove file FILENAME.
Rename file OLD to NEW.
Rename file OLD relative to OLDFD to NEW relative to NEWFD.
Rewind to the beginning of STREAM.
Read formatted input from stdin.
Read formatted input from stdin.
If BUF is NULL, make STREAM unbuffered.
Else make it use buffer BUF, of size BUFSIZ.
If BUF is NULL, make STREAM unbuffered.
Else make it use SIZE bytes of BUF for buffering.
Make STREAM line-buffered.
Make STREAM use buffering mode MODE.
If BUF is not NULL, use N bytes of it for buffering;
else allocate an internal buffer N bytes long.
Maximum chars of output to write in MAXLEN.
Write formatted output to S.
Read formatted input from S.
Read formatted input from S.
Set the system time to *WHEN.
This call is restricted to the superuser.
Format TP into S according to FORMAT.
Write no more than MAXSIZE characters and return the number
of characters written, or 0 if it would exceed MAXSIZE.
Generate a unique temporary filename using up to five characters of PFX
if it is not NULL. The directory to put this file in is searched for
as follows: First the environment variable “TMPDIR” is checked.
If it contains the name of a writable directory, that directory is used.
If not and if DIR is not NULL, that value is checked. If that fails,
P_tmpdir is tried and finally “/tmp”. The storage for the filename
is allocated by `malloc’.
Return the current time and put it in *TIMER if TIMER is not NULL.
Like `mktime’, but for TP represents Universal Time, not local time.
Another name for `mktime’.
Create new per-process timer using CLOCK_ID.
Delete timer TIMERID.
Get expiration overrun for timer TIMERID.
Get current value of timer TIMERID and store it in VALUE.
Set timer TIMERID to VALUE, returning old value in OVALUE.
Set TS to calendar time based in time base BASE.
Generate a temporary filename.
This is the reentrant variant of `tmpnam’. The only difference is
that it does not allow S to be NULL.
Set time conversion information from the TZ environment variable.
If TZ is not defined, a locale-dependent default is used.
Push a character back onto the input buffer of STREAM.
Write formatted output to a file descriptor.
Write formatted output to S from argument list ARG.
Read formatted input from S into argument list ARG.
Read formatted input from S into argument list ARG.
Write formatted output to stdout from argument list ARG.
Read formatted input from stdin into argument list ARG.
Read formatted input from stdin into argument list ARG.
Write formatted output to S from argument list ARG.
Read formatted input from S into argument list ARG.
Read formatted input from S into argument list ARG.