rpm
6.0.1
The RPM Package Manager
Toggle main menu visibility
Loading...
Searching...
No Matches
rpmio.h
Go to the documentation of this file.
1
#ifndef H_RPMIO
2
#define H_RPMIO
3
9
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
26
30
const
char
*
Fstrerror
(
FD_t
fd);
31
35
ssize_t
Fread
(
void
* buf,
size_t
size,
size_t
nmemb,
FD_t
fd);
36
40
ssize_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
50
off_t
Ftell
(
FD_t
fd);
51
55
int
Fclose
(
FD_t
fd);
56
62
FD_t
Fdopen
(
FD_t
ofd,
const
char
* fmode);
63
71
FD_t
Fopen
(
const
char
* path,
72
const
char
* fmode);
73
74
78
int
Fflush
(
FD_t
fd);
79
83
int
Ferror
(
FD_t
fd);
84
88
int
Fileno
(
FD_t
fd);
89
93
int
Fcntl
(
FD_t
fd,
int
op,
void
*lip);
94
98
const
char
*
Fdescr
(
FD_t
fd);
99
103
107
off_t
fdSize
(
FD_t
fd);
108
112
FD_t
fdDup
(
int
fdno);
113
117
FD_t
fdLink
(
FD_t
fd);
118
122
FD_t
fdFree
(
FD_t
fd);
123
127
off_t
ufdCopy
(
FD_t
sfd,
FD_t
tfd);
128
132
typedef
enum
fdOpX_e
{
133
FDSTAT_READ
= 0,
134
FDSTAT_WRITE
= 1,
135
FDSTAT_SEEK
= 2,
136
FDSTAT_CLOSE
= 3,
137
FDSTAT_DIGEST
= 4,
138
FDSTAT_MAX = 5
139
}
fdOpX
;
140
144
rpmop
fdOp
(
FD_t
fd,
fdOpX
opx);
145
146
#ifdef __cplusplus
147
}
148
#endif
149
150
#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:132
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:135
FDSTAT_READ
@ FDSTAT_READ
Definition
rpmio.h:133
FDSTAT_WRITE
@ FDSTAT_WRITE
Definition
rpmio.h:134
FDSTAT_CLOSE
@ FDSTAT_CLOSE
Definition
rpmio.h:136
FDSTAT_DIGEST
@ FDSTAT_DIGEST
Definition
rpmio.h:137
FD_t
struct FD_s * FD_t
Definition
rpmtypes.h:100
rpmsw.h
rpmtypes.h
include
rpm
rpmio.h
Generated by
1.17.0