summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/statfs.c
blob: 791d49d378c85bf8f1bfb5991ca055ad1b20d76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* COVERAGE: fstatfs statfs ustat statfs64 */
#include <sys/types.h>
#include <unistd.h>
#include <ustat.h>
#include <sys/vfs.h>

int main()
{
  
  ustat(42, (struct ustat *)0x12345678);
#if __WORDSIZE == 64
  // ustat (42, 0x0000000012345678) = 
#else
  // ustat (42, 0x12345678) = 
#endif

  statfs("abc", (struct statfs *)0x12345678);
#if __WORDSIZE == 64
  // statfs ("abc", 0x0000000012345678) =
#else
  // statfs ("abc", 0x12345678) =
#endif

  fstatfs(77, (struct statfs *)0x12345678);
#if __WORDSIZE == 64
  // fstatfs (77, 0x0000000012345678) =
#else
  // fstatfs (77, 0x12345678) =
#endif


  return 0;
}