repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Linux 5.7.7
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-file-handle.c
blob
4d3b03b27a0b3e53e351271ac88702dd3a236918
1
#define _GNU_SOURCE
2
#include <sys/types.h>
3
#include <sys/stat.h>
4
#include <fcntl.h>
5
#include <inttypes.h>
6
7
int
main
(
void
)
8
{
9
struct
{
10
struct
file_handle fh
;
11
uint64_t
cgroup_id
;
12
}
handle
;
13
int
mount_id
;
14
15
name_to_handle_at
(
AT_FDCWD
,
"/"
, &
handle
.
fh
, &
mount_id
,
0
);
16
return
0
;
17
}