Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Preparing for release of 2.6.3
[rsync/rsync.git]
/
getfsdev.c
1
#include "rsync.h"
2
3
int main(int argc, char *argv[])
4
{
5
STRUCT_STAT st;
6
7
while (--argc > 0) {
8
if (stat(*++argv, &st) < 0) {
9
fprintf(stderr, "Unable to stat `%s'\n", *argv);
10
exit(1);
11
}
12
printf("%ld/%ld\n", (long)major(st.st_dev),
13
(long)minor(st.st_dev));
14
}
15
16
return 0;
17
}