annotate gcc/testsuite/gcc.c-torture/compile/20000403-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
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
1 /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
2
111
kono
parents:
diff changeset
3 struct utsname {
kono
parents:
diff changeset
4 char sysname[32 ];
kono
parents:
diff changeset
5 char version[32 ];
kono
parents:
diff changeset
6 };
kono
parents:
diff changeset
7 int
kono
parents:
diff changeset
8 uname(name)
kono
parents:
diff changeset
9 struct utsname *name;
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 int mib[2], rval;
kono
parents:
diff changeset
12 long len;
kono
parents:
diff changeset
13 char *p;
kono
parents:
diff changeset
14 int oerrno;
kono
parents:
diff changeset
15 if (sysctl(mib, 2, &name->sysname, &len, 0 , 0) == -1)
kono
parents:
diff changeset
16 ;
kono
parents:
diff changeset
17 for (p = name->version; len--; ++p) {
kono
parents:
diff changeset
18 *p = ' ';
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20 }