posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
posix_stdio.h File Reference

<stdio.h>: POSIX extensions to the C stdio library More...

#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <zephyr/toolchain.h>
Include dependency graph for posix_stdio.h:

Go to the source code of this file.

Macros

#define P_tmpdir   "/tmp"
 Pathname of the directory for temporary files.
 

Functions

char * ctermid (char *s)
 Maximum number of streams that one process can have open at one time.
 
int dprintf (int fildes, const char *ZRESTRICT format,...)
 Print formatted output to a file descriptor.
 
FILE * fdopen (int fd, const char *mode)
 Associate a stream with an open file descriptor.
 
int fileno (FILE *stream)
 Return the file descriptor associated with a stream.
 
void flockfile (FILE *file)
 Acquire a stdio stream lock.
 
FILE * fmemopen (void *ZRESTRICT buf, size_t size, const char *ZRESTRICT mode)
 Open a memory-backed stream.
 
int fseeko (FILE *stream, off_t offset, int whence)
 Reposition a stream to a new offset.
 
off_t ftello (FILE *stream)
 Obtain the current file offset of a stream.
 
int ftrylockfile (FILE *file)
 Try to acquire a stdio stream lock without blocking.
 
void funlockfile (FILE *file)
 Release a stdio stream lock.
 
int getc_unlocked (FILE *stream)
 Read a byte from a stream without acquiring the stream lock.
 
int getchar_unlocked (void)
 Read a byte from stdin without acquiring the stream lock.
 
ssize_t getdelim (char **ZRESTRICT lineptr, size_t *ZRESTRICT n, int delimiter, FILE *ZRESTRICT stream)
 Read a delimited record from a stream.
 
ssize_t getline (char **ZRESTRICT lineptr, size_t *ZRESTRICT n, FILE *ZRESTRICT stream)
 Read a line from a stream.
 
FILE * open_memstream (char **bufp, size_t *sizep)
 Open a dynamic memory output stream.
 
int pclose (FILE *stream)
 Close a pipe stream.
 
FILE * popen (const char *command, const char *type)
 Create a pipe to a process.
 
int putc_unlocked (int c, FILE *stream)
 Write a byte to a stream without acquiring the stream lock.
 
int putchar_unlocked (int c)
 Write a byte to stdout without acquiring the stream lock.
 
int renameat (int olddirfd, const char *oldpath, int newdirfd, const char *newpath)
 Rename a file relative to directory file descriptors.
 
char * tempnam (const char *dir, const char *pfx)
 Generate a pathname for a temporary file (obsolescent).
 
int vdprintf (int fildes, const char *ZRESTRICT format, va_list ap)
 Print formatted output to a file descriptor.
 

Detailed Description

<stdio.h>: POSIX extensions to the C stdio library

Provides POSIX and XSI extensions to the standard <stdio.h> interface that are not part of ISO C. ISO C types, macros, and function prototypes belong in the C library <stdio.h>; this header documents them only as comments and declares the remaining POSIX interfaces.

See also
POSIX.1-2017 <stdio.h>

Definition in file posix_stdio.h.