mirror of
http://galexander.org/git/simplesshd.git
synced 2024-12-29 09:28:07 +00:00
d8cc8daef9
need...but most of it remains.
24 lines
382 B
C
24 lines
382 B
C
#include "rsync.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
STRUCT_STAT st;
|
|
int ret;
|
|
|
|
while (--argc > 0) {
|
|
#ifdef USE_STAT64_FUNCS
|
|
ret = stat64(*++argv, &st);
|
|
#else
|
|
ret = stat(*++argv, &st);
|
|
#endif
|
|
if (ret < 0) {
|
|
fprintf(stderr, "Unable to stat `%s'\n", *argv);
|
|
exit(1);
|
|
}
|
|
printf("%ld/%ld\n", (long)major(st.st_dev),
|
|
(long)minor(st.st_dev));
|
|
}
|
|
|
|
return 0;
|
|
}
|