Tizen RT Libs&Environment
v1.1 D4
|
Standard Input / Output APIs. More...
#include <tinyara/config.h>
#include <sys/types.h>
#include <stdarg.h>
#include <sched.h>
#include <semaphore.h>
#include <time.h>
#include <tinyara/fs/fs.h>
Go to the source code of this file.
Macros | |
#define | FILENAME_MAX _POSIX_NAME_MAX |
#define | BUFSSIZ 64 |
#define | _IOFBF 0 /* Fully buffered */ |
#define | _IOLBF 1 /* Line buffered */ |
#define | _IONBF 2 /* Unbuffered */ |
#define | EOF (-1) |
#define | stdin (&sched_getstreams()->sl_streams[0]) |
#define | stdout (&sched_getstreams()->sl_streams[1]) |
#define | stderr (&sched_getstreams()->sl_streams[2]) |
#define | putc(c, s) fputc((c), (s)) |
put a byte on a stream More... | |
#define | putchar(c) fputc(c, stdout) |
put a byte on a stdout stream More... | |
#define | getc(s) fgetc(s) |
get a byte from a stream More... | |
#define | getchar() fgetc(stdin) |
get a byte from a stdin stream More... | |
#define | CONFIG_LIBC_TMPDIR "/tmp" |
#define | P_tmpdir CONFIG_LIBC_TMPDIR |
#define | CONFIG_LIBC_MAX_TMPFILE 32 |
#define | L_tmpnam CONFIG_LIBC_MAX_TMPFILE |
#define | TMP_MAX 56800235584ull |
#define | EXTERN extern |
Typedefs | |
typedef struct file_struct | FILE |
Functions | |
int | fclose (FAR FILE *stream) |
close a stream More... | |
int | fflush (FAR FILE *stream) |
flush a stream More... | |
int | feof (FAR FILE *stream) |
test end-of-file indicator on a stream More... | |
int | ferror (FAR FILE *stream) |
test error indicator on a stream More... | |
int | fileno (FAR FILE *stream) |
map a stream pointer to a file descriptor More... | |
int | fgetc (FAR FILE *stream) |
get a byte from a stream More... | |
int | fgetpos (FAR FILE *stream, FAR fpos_t *pos) |
get current file position information More... | |
char * | fgets (FAR char *s, int n, FAR FILE *stream) |
get a string from a stream More... | |
FAR FILE * | fopen (FAR const char *path, FAR const char *type) |
open a stream More... | |
FAR FILE * | freopen (FAR const char *path, FAR const char *mode, FAR FILE *stream) |
open a stream More... | |
void | setbuf (FAR FILE *stream, FAR char *buf) |
assign buffering to a stream More... | |
int | setvbuf (FAR FILE *stream, FAR char *buffer, int mode, size_t size) |
assign buffering to a stream More... | |
int | fprintf (FAR FILE *stream, FAR const char *format,...) |
print formatted output More... | |
int | fputc (int c, FAR FILE *stream) |
put a byte on a stream More... | |
int | fputs (FAR const char *s, FAR FILE *stream) |
put a string on a stream More... | |
size_t | fread (FAR void *ptr, size_t size, size_t n_items, FAR FILE *stream) |
binary input More... | |
int | fseek (FAR FILE *stream, long int offset, int whence) |
reposition a file-position indicator in a stream More... | |
int | fsetpos (FAR FILE *stream, FAR fpos_t *pos) |
set current file position More... | |
long | ftell (FAR FILE *stream) |
return a file offset in a stream More... | |
size_t | fwrite (FAR const void *ptr, size_t size, size_t n_items, FAR FILE *stream) |
binary output More... | |
FAR char * | gets (FAR char *s) |
get a string from a stdin stream More... | |
FAR char * | gets_s (FAR char *s, rsize_t n) |
reads a line from stdin into the buffer More... | |
int | ungetc (int c, FAR FILE *stream) |
push byte back into input stream More... | |
int | printf (FAR const char *format,...) |
print formatted output More... | |
int | puts (FAR const char *s) |
put a string on standard output More... | |
int | sprintf (FAR char *buf, FAR const char *format,...) |
print formatted output More... | |
int | asprintf (FAR char **ptr, FAR const char *fmt,...) |
print formatted output More... | |
int | snprintf (FAR char *buf, size_t size, FAR const char *format,...) |
print formatted output More... | |
int | sscanf (FAR const char *buf, FAR const char *fmt,...) |
convert formatted input More... | |
void | perror (FAR const char *s) |
write error messages to standard error More... | |
int | vprintf (FAR const char *format, va_list ap) |
format output of a stdarg argument list More... | |
int | vfprintf (FAR FILE *stream, const char *format, va_list ap) |
format output of a stdarg argument list More... | |
int | vsprintf (FAR char *buf, const char *format, va_list ap) |
format output of a stdarg argument list More... | |
int | vsnprintf (FAR char *buf, size_t size, const char *format, va_list ap) |
format output of a stdarg argument list More... | |
int | vsscanf (FAR const char *buf, FAR const char *s, va_list ap) |
format input of a stdarg argument list More... | |
FAR FILE * | fdopen (int fd, FAR const char *type) |
associate a stream with a file descriptor More... | |
Standard Input / Output APIs.
Definition in file stdio.h.