rpm: /srv/include/rpm/rpmio.h Source File

rpm 4.20.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
20extern "C" {
21#endif
22
30 const 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
45 int Fseek(FD_t fd, off_t offset, int whence);
46
50off_t Ftell(FD_t fd);
51
55 int Fclose( FD_t fd);
56
62 FD_t Fdopen(FD_t ofd, const char * fmode);
63
116 FD_t Fopen(const char * path,
117 const char * fmode);
118
119
123 int Fflush(FD_t fd);
124
128 int Ferror(FD_t fd);
129
133 int Fileno(FD_t fd);
134
138 int Fcntl(FD_t fd, int op, void *lip);
139
143 const char * Fdescr(FD_t fd);
144
152off_t fdSize(FD_t fd);
153
157 FD_t fdDup(int fdno);
158
162 FD_t fdLink(FD_t fd);
163
167 FD_t fdFree(FD_t fd);
168
172off_t ufdCopy(FD_t sfd, FD_t tfd);
173
177 typedef enum fdOpX_e {
178 FDSTAT_READ = 0,
179 FDSTAT_WRITE = 1,
180 FDSTAT_SEEK = 2,
181 FDSTAT_CLOSE = 3,
182 FDSTAT_DIGEST = 4,
183 FDSTAT_MAX = 5
184} fdOpX;
185
189 rpmop fdOp(FD_t fd, fdOpX opx);
190
191#ifdef __cplusplus
192}
193#endif
194
195#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:177
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:180
FDSTAT_READ
@ FDSTAT_READ
Definition rpmio.h:178
FDSTAT_WRITE
@ FDSTAT_WRITE
Definition rpmio.h:179
FDSTAT_CLOSE
@ FDSTAT_CLOSE
Definition rpmio.h:181
FDSTAT_DIGEST
@ FDSTAT_DIGEST
Definition rpmio.h:182
FD_t
struct _FD_s * FD_t
Definition rpmtypes.h:99
rpmsw.h
rpmtypes.h
rpmop_s
Definition rpmsw.h:42