rpm 4.19.1.1 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
20 extern "C" {
21#endif
22
25 typedef const struct FDIO_s * FDIO_t;
26
34 const char * Fstrerror(FD_t fd);
35
39ssize_t Fread(void * buf, size_t size, size_t nmemb, FD_t fd);
40
44ssize_t Fwrite(const void * buf, size_t size, size_t nmemb, FD_t fd);
45
49 int Fseek(FD_t fd, off_t offset, int whence);
50
54off_t Ftell(FD_t fd);
55
59 int Fclose( FD_t fd);
60
66 FD_t Fdopen(FD_t ofd, const char * fmode);
67
120 FD_t Fopen(const char * path,
121 const char * fmode);
122
123
127 int Fflush(FD_t fd);
128
132 int Ferror(FD_t fd);
133
137 int Fileno(FD_t fd);
138
142 int Fcntl(FD_t fd, int op, void *lip);
143
147 const char * Fdescr(FD_t fd);
148
156off_t fdSize(FD_t fd);
157
161 FD_t fdDup(int fdno);
162
166 FD_t fdLink(FD_t fd);
167
171 FD_t fdFree(FD_t fd);
172
176off_t ufdCopy(FD_t sfd, FD_t tfd);
177
181 typedef enum fdOpX_e {
182 FDSTAT_READ = 0,
183 FDSTAT_WRITE = 1,
184 FDSTAT_SEEK = 2,
185 FDSTAT_CLOSE = 3,
186 FDSTAT_DIGEST = 4,
187 FDSTAT_MAX = 5
188} fdOpX;
189
193 rpmop fdOp(FD_t fd, fdOpX opx);
194
195#ifdef __cplusplus
196}
197#endif
198
199#endif /* H_RPMIO */
Fseek
int Fseek(FD_t fd, off_t offset, int whence)
Ftell
off_t Ftell(FD_t fd)
Ferror
int Ferror(FD_t fd)
Fdopen
FD_t Fdopen(FD_t ofd, const char *fmode)
ufdCopy
off_t ufdCopy(FD_t sfd, FD_t tfd)
fdSize
off_t fdSize(FD_t fd)
Fopen
FD_t Fopen(const char *path, const char *fmode)
fdLink
FD_t fdLink(FD_t fd)
fdOpX_e
fdOpX_e
Definition rpmio.h:181
Fdescr
const char * Fdescr(FD_t fd)
fdOpX
enum fdOpX_e fdOpX
Fflush
int Fflush(FD_t fd)
Fread
ssize_t Fread(void *buf, size_t size, size_t nmemb, FD_t fd)
Fclose
int Fclose(FD_t fd)
fdFree
FD_t fdFree(FD_t fd)
fdDup
FD_t fdDup(int fdno)
Fstrerror
const char * Fstrerror(FD_t fd)
Fwrite
ssize_t Fwrite(const void *buf, size_t size, size_t nmemb, FD_t fd)
Fcntl
int Fcntl(FD_t fd, int op, void *lip)
Fileno
int Fileno(FD_t fd)
fdOp
rpmop fdOp(FD_t fd, fdOpX opx)
FDSTAT_SEEK
@ FDSTAT_SEEK
Definition rpmio.h:184
FDSTAT_READ
@ FDSTAT_READ
Definition rpmio.h:182
FDSTAT_WRITE
@ FDSTAT_WRITE
Definition rpmio.h:183
FDSTAT_CLOSE
@ FDSTAT_CLOSE
Definition rpmio.h:185
FDSTAT_DIGEST
@ FDSTAT_DIGEST
Definition rpmio.h:186
FD_t
struct _FD_s * FD_t
Definition rpmtypes.h:99
rpmsw.h
rpmtypes.h
rpmop_s
Definition rpmsw.h:42