kfile.c File Reference
Virtual KFile I/O interface. More...
#include "kfile.h"
#include "cfg/cfg_kfile.h"
#include <cfg/debug.h>
#include <cfg/log.h>
#include <drv/timer.h>
#include <mware/formatwr.h>
#include <string.h>
Go to the source code of this file.
Functions | |
| int | kfile_putc (int _c, struct KFile *fd) |
| Generic putc() implementation using fd->write. | |
| int | kfile_getc (struct KFile *fd) |
| Generic getc() implementation using fd->read. | |
| int | kfile_print (struct KFile *fd, const char *s) |
| Write a string to kfile fd. | |
| kfile_off_t | kfile_genericSeek (struct KFile *fd, kfile_off_t offset, KSeekMode whence) |
| Move fd file seek position of offset bytes from whence. | |
| struct KFile * | kfile_genericReopen (struct KFile *fd) |
| Reopen file fd. | |
| int | kfile_genericClose (UNUSED_ARG(struct KFile *, fd)) |
| Close file fd. | |
| void | kfile_resync (KFile *fd, mtime_t delay) |
| Discard input to resynchronize with remote end. | |
Detailed Description
Virtual KFile I/O interface.This module implements some generic I/O interfaces for kfile.
- Version:
- Id
- kfile.c 1974 2008-12-04 17:55:11Z asterix
Definition in file kfile.c.
Function Documentation
| int kfile_genericClose | ( | UNUSED_ARG(struct KFile *, fd) | ) |
| kfile_off_t kfile_genericSeek | ( | struct KFile * | fd, | |
| kfile_off_t | offset, | |||
| KSeekMode | whence | |||
| ) |
| int kfile_getc | ( | struct KFile * | fd | ) |
| int kfile_print | ( | struct KFile * | fd, | |
| const char * | s | |||
| ) |
| int kfile_putc | ( | int | _c, | |
| struct KFile * | fd | |||
| ) |
