Gamgee
You miserable little maggot. I'll stove your head in!
|
#include <stdint.h>
#include <fcntl.h>
Go to the source code of this file.
Classes | |
struct | knetFile_s |
Macros | |
#define | netread(fd, ptr, len) read(fd, ptr, len) |
#define | netwrite(fd, ptr, len) write(fd, ptr, len) |
#define | netclose(fd) close(fd) |
#define | KNF_TYPE_LOCAL 1 |
#define | KNF_TYPE_FTP 2 |
#define | KNF_TYPE_HTTP 3 |
#define | knet_tell(fp) ((fp)->offset) |
#define | knet_fileno(fp) ((fp)->fd) |
Typedefs | |
typedef struct knetFile_s | knetFile |
Functions | |
knetFile * | knet_open (const char *fn, const char *mode) |
knetFile * | knet_dopen (int fd, const char *mode) |
ssize_t | knet_read (knetFile *fp, void *buf, size_t len) |
off_t | knet_seek (knetFile *fp, off_t off, int whence) |
int | knet_close (knetFile *fp) |
#define knet_fileno | ( | fp | ) | ((fp)->fd) |
#define knet_tell | ( | fp | ) | ((fp)->offset) |
#define KNF_TYPE_FTP 2 |
#define KNF_TYPE_HTTP 3 |
#define KNF_TYPE_LOCAL 1 |
#define netclose | ( | fd | ) | close(fd) |
#define netread | ( | fd, | |
ptr, | |||
len | |||
) | read(fd, ptr, len) |
#define netwrite | ( | fd, | |
ptr, | |||
len | |||
) | write(fd, ptr, len) |
typedef struct knetFile_s knetFile |
int knet_close | ( | knetFile * | fp | ) |
knetFile* knet_dopen | ( | int | fd, |
const char * | mode | ||
) |
knetFile* knet_open | ( | const char * | fn, |
const char * | mode | ||
) |
ssize_t knet_read | ( | knetFile * | fp, |
void * | buf, | ||
size_t | len | ||
) |
off_t knet_seek | ( | knetFile * | fp, |
off_t | off, | ||
int | whence | ||
) |