annotate gcc/testsuite/gcc.c-torture/compile/20010328-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 typedef __SIZE_TYPE__ size_t;
kono
parents:
diff changeset
2 typedef unsigned int __u_int;
kono
parents:
diff changeset
3 typedef unsigned long __u_long;
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 __extension__ typedef unsigned long long int __u_quad_t;
kono
parents:
diff changeset
6 __extension__ typedef long long int __quad_t;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 typedef struct
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 int __val[2];
kono
parents:
diff changeset
11 } __fsid_t;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 typedef long int __blksize_t;
kono
parents:
diff changeset
14 typedef long int __blkcnt_t;
kono
parents:
diff changeset
15 typedef __quad_t __blkcnt64_t;
kono
parents:
diff changeset
16 typedef __u_long __fsblkcnt_t;
kono
parents:
diff changeset
17 typedef __u_quad_t __fsblkcnt64_t;
kono
parents:
diff changeset
18 typedef __u_long __fsfilcnt_t;
kono
parents:
diff changeset
19 typedef __u_quad_t __fsfilcnt64_t;
kono
parents:
diff changeset
20 typedef __u_quad_t __ino64_t;
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 extern void *memcpy (void *__restrict __dest,
kono
parents:
diff changeset
23 __const void *__restrict __src, size_t __n) ;
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 struct statfs
kono
parents:
diff changeset
26 {
kono
parents:
diff changeset
27 int f_type;
kono
parents:
diff changeset
28 int f_bsize;
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 __fsblkcnt_t f_blocks;
kono
parents:
diff changeset
31 __fsblkcnt_t f_bfree;
kono
parents:
diff changeset
32 __fsblkcnt_t f_bavail;
kono
parents:
diff changeset
33 __fsfilcnt_t f_files;
kono
parents:
diff changeset
34 __fsfilcnt_t f_ffree;
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 __fsid_t f_fsid;
kono
parents:
diff changeset
37 int f_namelen;
kono
parents:
diff changeset
38 int f_spare[6];
kono
parents:
diff changeset
39 };
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 struct statfs64
kono
parents:
diff changeset
43 {
kono
parents:
diff changeset
44 int f_type;
kono
parents:
diff changeset
45 int f_bsize;
kono
parents:
diff changeset
46 __fsblkcnt64_t f_blocks;
kono
parents:
diff changeset
47 __fsblkcnt64_t f_bfree;
kono
parents:
diff changeset
48 __fsblkcnt64_t f_bavail;
kono
parents:
diff changeset
49 __fsfilcnt64_t f_files;
kono
parents:
diff changeset
50 __fsfilcnt64_t f_ffree;
kono
parents:
diff changeset
51 __fsid_t f_fsid;
kono
parents:
diff changeset
52 int f_namelen;
kono
parents:
diff changeset
53 int f_spare[6];
kono
parents:
diff changeset
54 };
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 extern int __statfs (__const char *__file, struct statfs *__buf);
kono
parents:
diff changeset
57 extern int __statfs64 (__const char *__file, struct statfs64 *__buf);
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 int
kono
parents:
diff changeset
61 __statfs64 (const char *file, struct statfs64 *buf)
kono
parents:
diff changeset
62 {
kono
parents:
diff changeset
63 struct statfs buf32;
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 if (__statfs (file, &buf32) < 0)
kono
parents:
diff changeset
66 return -1;
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 buf->f_type = buf32.f_type;
kono
parents:
diff changeset
69 buf->f_bsize = buf32.f_bsize;
kono
parents:
diff changeset
70 buf->f_blocks = buf32.f_blocks;
kono
parents:
diff changeset
71 buf->f_bfree = buf32.f_bfree;
kono
parents:
diff changeset
72 buf->f_bavail = buf32.f_bavail;
kono
parents:
diff changeset
73 buf->f_files = buf32.f_files;
kono
parents:
diff changeset
74 buf->f_ffree = buf32.f_ffree;
kono
parents:
diff changeset
75 buf->f_fsid = buf32.f_fsid;
kono
parents:
diff changeset
76 buf->f_namelen = buf32.f_namelen;
kono
parents:
diff changeset
77 memcpy (buf->f_spare, buf32.f_spare, sizeof (buf32.f_spare));
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 return 0;
kono
parents:
diff changeset
80 }