MCPcopy Create free account
hub / github.com/RsyncProject/rsync / main

Function main

getfsdev.c:3–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "rsync.h"
2
3 int main(int argc, char *argv[])
4{
5 STRUCT_STAT st;
6 int ret;
7
8 while (--argc > 0) {
9#ifdef USE_STAT64_FUNCS
10 ret = stat64(*++argv, &st);
11#else
12 ret = stat(*++argv, &st);
13#endif
14 if (ret < 0) {
15 fprintf(stderr, "Unable to stat `%s'\n", *argv);
16 exit(1);
17 }
18 printf("%ld/%ld\n", (long)major(st.st_dev), (long)minor(st.st_dev));
19 }
20
21 return 0;
22}

Callers

nothing calls this directly

Calls 1

statClass · 0.50

Tested by

no test coverage detected