wget2: io.c File Reference

| wget2 2.0.0

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Functions
io.c File Reference

### (2021-09-05 15:34:56 -0600, (build 0f85ef3))

I/O helper routines. More...

`#include <config.h>`
`#include <stddef.h>`
`#include <string.h>`
`#include <unistd.h>`
`#include <fcntl.h>`
`#include <sys/stat.h>`
`#include <sys/file.h>`
`#include <errno.h>`
`#include <poll.h>`
`#include "dirname.h"`
`#include <wget.h>`
`#include "private.h"`
Include dependency graph for io.c:

## Functions
ssize_t | wget_fdgetline (char **buf, size_t *bufsize, int fd)
ssize_t | wget_getline (char **buf, size_t *bufsize, FILE *fp)
int | wget_ready_2_transfer (int fd, int timeout, int mode)
int | wget_ready_2_read (int fd, int timeout)
int | wget_ready_2_write (int fd, int timeout)
char * | wget_read_file (const char *fname, size_t *size)
int | wget_update_file (const char *fname, wget_update_load_fn *load_func, wget_update_load_fn *save_func, void *context)
int | wget_truncate (const char *path, off_t length)

## Detailed Description

I/O helper routines.