rpm 4.19.0
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
25typedef const struct FDIO_s * FDIO_t;
26
27
35const char * Fstrerror(FD_t fd);
36
40ssize_t Fread(void * buf, size_t size, size_t nmemb, FD_t fd);
41
45ssize_t Fwrite(const void * buf, size_t size, size_t nmemb, FD_t fd);
46
50int Fseek(FD_t fd, off_t offset, int whence);
51
55off_t Ftell(FD_t fd);
56
60int Fclose( FD_t fd);
61
67FD_t Fdopen(FD_t ofd, const char * fmode);
68
121FD_t Fopen(const char * path,
122 const char * fmode);
123
124
128int Fflush(FD_t fd);
129
133int Ferror(FD_t fd);
134
138int Fileno(FD_t fd);
139
143int Fcntl(FD_t fd, int op, void *lip);
144
148const char * Fdescr(FD_t fd);
149
156off_t fdSize(FD_t fd);
157
160FD_t fdDup(int fdno);
161
164FD_t fdLink(FD_t fd);
165
168FD_t fdFree(FD_t fd);
169
172off_t ufdCopy(FD_t sfd, FD_t tfd);
173
177typedef enum fdOpX_e {
183 FDSTAT_MAX = 5
185
189rpmop fdOp(FD_t fd, fdOpX opx);
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)
FD_t Fopen(const char *path, const char *fmode)
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)
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)
@ 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