Mercurial > illumos > illumos-gate
comparison usr/src/cmd/dtrace/test/cmd/badioctl/badioctl.c @ 3983:5179f49636a5
6542480 fix for 6534991 broke the nightly build with gcc
author | raf |
---|---|
date | Fri, 06 Apr 2007 11:23:51 -0700 |
parents | 71bab08d24b2 |
children |
comparison
equal
deleted
inserted
replaced
3982:531293c8439f | 3983:5179f49636a5 |
---|---|
18 * | 18 * |
19 * CDDL HEADER END | 19 * CDDL HEADER END |
20 */ | 20 */ |
21 | 21 |
22 /* | 22 /* |
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. | 23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. | 24 * Use is subject to license terms. |
25 */ | 25 */ |
26 | 26 |
27 #pragma ident "%Z%%M% %I% %E% SMI" | 27 #pragma ident "%Z%%M% %I% %E% SMI" |
28 | 28 |
109 ioc++; | 109 ioc++; |
110 ioctl(fd, DTRACEIOC | ioc, addr); | 110 ioctl(fd, DTRACEIOC | ioc, addr); |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 void | 114 int |
115 main() | 115 main() |
116 { | 116 { |
117 pid_t child, parent = getpid(); | 117 pid_t child, parent = getpid(); |
118 int status; | 118 int status; |
119 | 119 |
137 */ | 137 */ |
138 printf("badioctl: child died on signal %d; respawning.\n", | 138 printf("badioctl: child died on signal %d; respawning.\n", |
139 WTERMSIG(status)); | 139 WTERMSIG(status)); |
140 fflush(stdout); | 140 fflush(stdout); |
141 } | 141 } |
142 | |
143 /* NOTREACHED */ | |
144 return (0); | |
142 } | 145 } |