rpm 4.19.92
The RPM Package Manager
Loading...
Searching...
No Matches
rpmio.h
Go to the documentation of this file.
1#ifndef H_RPMIO
2#define H_RPMIO
3
10#include <sys/types.h>
11#include <sys/stat.h>
12#include <stdio.h>
13#include <stdlib.h>
14#include <unistd.h>
15
16#include <rpm/rpmtypes.h>
17#include <rpm/rpmsw.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
30const char * Fstrerror(FD_t fd);
31
35ssize_t Fread(void * buf, size_t size, size_t nmemb, FD_t fd);
36
40ssize_t Fwrite(const void * buf, size_t size, size_t nmemb, FD_t fd);
41
45int Fseek(FD_t fd, off_t offset, int whence);
46
50off_t Ftell(FD_t fd);
51
55int Fclose( FD_t fd);
56
62FD_t Fdopen(FD_t ofd, const char * fmode);
63
116FD_t Fopen(const char * path,
117 const char * fmode);
118
119
123int Fflush(FD_t fd);
124
128int Ferror(FD_t fd);
129
133int Fileno(FD_t fd);
134
138int Fcntl(FD_t fd, int op, void *lip);
139
143const char * Fdescr(FD_t fd);
144
152off_t fdSize(FD_t fd);
153
157FD_t fdDup(int fdno);
158
163
168
172off_t ufdCopy(FD_t sfd, FD_t tfd);
173
177typedef enum fdOpX_e {
183 FDSTAT_MAX = 5
185
190
191#ifdef __cplusplus
192}
193#endif
194
195#endif /* H_RPMIO */
int Fseek(FD_t fd, off_t offset, int whence)
off_t Ftell(FD_t fd)
int Ferror(FD_t fd)
FD_t Fdopen(FD_t ofd, const char *fmode)
off_t ufdCopy(FD_t sfd, FD_t tfd)
off_t fdSize(FD_t fd)
FD_t Fopen(const char *path, const char *fmode)
FD_t fdLink(FD_t fd)
fdOpX_e
Definition rpmio.h:177
const char * Fdescr(FD_t fd)
enum fdOpX_e fdOpX
int Fflush(FD_t fd)
ssize_t Fread(void *buf, size_t size, size_t nmemb, FD_t fd)
int Fclose(FD_t fd)
FD_t fdFree(FD_t fd)
FD_t fdDup(int fdno)
const char * Fstrerror(FD_t fd)
ssize_t Fwrite(const void *buf, size_t size, size_t nmemb, FD_t fd)
int Fcntl(FD_t fd, int op, void *lip)
int Fileno(FD_t fd)
rpmop fdOp(FD_t fd, fdOpX opx)
@ FDSTAT_SEEK
Definition rpmio.h:180
@ FDSTAT_READ
Definition rpmio.h:178
@ FDSTAT_WRITE
Definition rpmio.h:179
@ FDSTAT_CLOSE
Definition rpmio.h:181
@ FDSTAT_DIGEST
Definition rpmio.h:182
struct _FD_s * FD_t
Definition rpmtypes.h:99
Definition rpmsw.h:42