blob: ba7dea504b7af20dde3413433d23b7a533fd67fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef _RPMCHROOT_H
#define _RPMCHROOT_H
#include <rpm/rpmutil.h>
#ifdef __cplusplus
extern "C" {
#endif
/** \ingroup rpmchroot
* Set or clear process-wide chroot directory.
* Calling this while chrooted is an error.
* param rootDir new chroot directory (or NULL to reset)
* return -1 on error, 0 on success
*/
RPM_GNUC_INTERNAL
int rpmChrootSet(const char *rootDir);
/** \ingroup rpmchroot
* Enter chroot if necessary.
* return -1 on error, 0 on success.
*/
/* RPM_GNUC_INTERNAL */
int rpmChrootIn(void);
/** \ingroup rpmchroot
* Return from chroot if necessary.
* return -1 on error, 0 succes.
*/
/* RPM_GNUC_INTERNAL */
int rpmChrootOut(void);
/** \ingroup rpmchroot
* Return chrooted status.
* return 1 if chrooted, 0 otherwise
*/
/* RPM_GNUC_INTERNAL */
int rpmChrootDone(void);
#ifdef __cplusplus
}
#endif
#endif /* _RPMCHROOT_H */
|