MCPcopy Create free account
hub / github.com/axboe/liburing / is_bdev

Function is_bdev

test/fixed-seg.c:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static int is_bdev(int fd)
88{
89 struct stat sb;
90
91 if (fstat(fd, &sb) < 0) {
92 perror("fstat");
93 return -1;
94 }
95
96 return S_ISBLK(sb.st_mode);
97}
98
99int main(int argc, char *argv[])
100{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected