| [dba07d0] | 1 | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
|
|---|
| 2 |
|
|---|
| [aad342c] | 3 | # 1 "lazy01_bad.c"
|
|---|
| 4 | # 1 "<built-in>"
|
|---|
| 5 | # 1 "<command-line>"
|
|---|
| 6 | # 1 "lazy01_bad.c"
|
|---|
| 7 | # 1 "/usr/include/pthread.h" 1 3 4
|
|---|
| 8 | # 23 "/usr/include/pthread.h" 3 4
|
|---|
| 9 | # 1 "/usr/include/features.h" 1 3 4
|
|---|
| 10 | # 363 "/usr/include/features.h" 3 4
|
|---|
| 11 | # 1 "/usr/include/sys/cdefs.h" 1 3 4
|
|---|
| 12 | # 372 "/usr/include/sys/cdefs.h" 3 4
|
|---|
| 13 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 14 | # 373 "/usr/include/sys/cdefs.h" 2 3 4
|
|---|
| 15 | # 364 "/usr/include/features.h" 2 3 4
|
|---|
| 16 | # 387 "/usr/include/features.h" 3 4
|
|---|
| 17 | # 1 "/usr/include/gnu/stubs.h" 1 3 4
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 22 | # 5 "/usr/include/gnu/stubs.h" 2 3 4
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
|
|---|
| 26 | # 8 "/usr/include/gnu/stubs.h" 2 3 4
|
|---|
| 27 | # 388 "/usr/include/features.h" 2 3 4
|
|---|
| 28 | # 24 "/usr/include/pthread.h" 2 3 4
|
|---|
| 29 | # 1 "/usr/include/endian.h" 1 3 4
|
|---|
| 30 | # 37 "/usr/include/endian.h" 3 4
|
|---|
| 31 | # 1 "/usr/include/bits/endian.h" 1 3 4
|
|---|
| 32 | # 38 "/usr/include/endian.h" 2 3 4
|
|---|
| 33 | # 61 "/usr/include/endian.h" 3 4
|
|---|
| 34 | # 1 "/usr/include/bits/byteswap.h" 1 3 4
|
|---|
| 35 | # 62 "/usr/include/endian.h" 2 3 4
|
|---|
| 36 | # 25 "/usr/include/pthread.h" 2 3 4
|
|---|
| 37 | # 1 "/usr/include/sched.h" 1 3 4
|
|---|
| 38 | # 27 "/usr/include/sched.h" 3 4
|
|---|
| 39 | # 1 "/usr/include/bits/types.h" 1 3 4
|
|---|
| 40 | # 28 "/usr/include/bits/types.h" 3 4
|
|---|
| 41 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 42 | # 29 "/usr/include/bits/types.h" 2 3 4
|
|---|
| [dba07d0] | 43 |
|
|---|
| 44 |
|
|---|
| 45 | typedef unsigned char __u_char;
|
|---|
| 46 | typedef unsigned short int __u_short;
|
|---|
| 47 | typedef unsigned int __u_int;
|
|---|
| 48 | typedef unsigned long int __u_long;
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | typedef signed char __int8_t;
|
|---|
| 52 | typedef unsigned char __uint8_t;
|
|---|
| 53 | typedef signed short int __int16_t;
|
|---|
| 54 | typedef unsigned short int __uint16_t;
|
|---|
| 55 | typedef signed int __int32_t;
|
|---|
| 56 | typedef unsigned int __uint32_t;
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | __extension__ typedef signed long long int __int64_t;
|
|---|
| 62 | __extension__ typedef unsigned long long int __uint64_t;
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | __extension__ typedef long long int __quad_t;
|
|---|
| 71 | __extension__ typedef unsigned long long int __u_quad_t;
|
|---|
| [aad342c] | 72 | # 131 "/usr/include/bits/types.h" 3 4
|
|---|
| 73 | # 1 "/usr/include/bits/typesizes.h" 1 3 4
|
|---|
| 74 | # 132 "/usr/include/bits/types.h" 2 3 4
|
|---|
| [dba07d0] | 75 |
|
|---|
| 76 |
|
|---|
| 77 | __extension__ typedef __u_quad_t __dev_t;
|
|---|
| 78 | __extension__ typedef unsigned int __uid_t;
|
|---|
| 79 | __extension__ typedef unsigned int __gid_t;
|
|---|
| 80 | __extension__ typedef unsigned long int __ino_t;
|
|---|
| 81 | __extension__ typedef __u_quad_t __ino64_t;
|
|---|
| 82 | __extension__ typedef unsigned int __mode_t;
|
|---|
| 83 | __extension__ typedef unsigned int __nlink_t;
|
|---|
| 84 | __extension__ typedef long int __off_t;
|
|---|
| 85 | __extension__ typedef __quad_t __off64_t;
|
|---|
| 86 | __extension__ typedef int __pid_t;
|
|---|
| 87 | __extension__ typedef struct { int __val[2]; } __fsid_t;
|
|---|
| 88 | __extension__ typedef long int __clock_t;
|
|---|
| 89 | __extension__ typedef unsigned long int __rlim_t;
|
|---|
| 90 | __extension__ typedef __u_quad_t __rlim64_t;
|
|---|
| 91 | __extension__ typedef unsigned int __id_t;
|
|---|
| 92 | __extension__ typedef long int __time_t;
|
|---|
| 93 | __extension__ typedef unsigned int __useconds_t;
|
|---|
| 94 | __extension__ typedef long int __suseconds_t;
|
|---|
| 95 |
|
|---|
| 96 | __extension__ typedef int __daddr_t;
|
|---|
| 97 | __extension__ typedef long int __swblk_t;
|
|---|
| 98 | __extension__ typedef int __key_t;
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | __extension__ typedef int __clockid_t;
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | __extension__ typedef void * __timer_t;
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 | __extension__ typedef long int __blksize_t;
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 | __extension__ typedef long int __blkcnt_t;
|
|---|
| 113 | __extension__ typedef __quad_t __blkcnt64_t;
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | __extension__ typedef unsigned long int __fsblkcnt_t;
|
|---|
| 117 | __extension__ typedef __u_quad_t __fsblkcnt64_t;
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 | __extension__ typedef unsigned long int __fsfilcnt_t;
|
|---|
| 121 | __extension__ typedef __u_quad_t __fsfilcnt64_t;
|
|---|
| 122 |
|
|---|
| 123 | __extension__ typedef int __ssize_t;
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | typedef __off64_t __loff_t;
|
|---|
| 128 | typedef __quad_t *__qaddr_t;
|
|---|
| 129 | typedef char *__caddr_t;
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 | __extension__ typedef int __intptr_t;
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | __extension__ typedef unsigned int __socklen_t;
|
|---|
| [aad342c] | 136 | # 28 "/usr/include/sched.h" 2 3 4
|
|---|
| [dba07d0] | 137 |
|
|---|
| 138 |
|
|---|
| [aad342c] | 139 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 140 | # 212 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 3 4
|
|---|
| [dba07d0] | 141 | typedef unsigned int size_t;
|
|---|
| [aad342c] | 142 | # 31 "/usr/include/sched.h" 2 3 4
|
|---|
| [dba07d0] | 143 |
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| [aad342c] | 146 | # 1 "/usr/include/time.h" 1 3 4
|
|---|
| 147 | # 74 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 148 |
|
|---|
| 149 |
|
|---|
| 150 | typedef __time_t time_t;
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| [aad342c] | 154 | # 120 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 155 | struct timespec
|
|---|
| 156 | {
|
|---|
| 157 | __time_t tv_sec;
|
|---|
| 158 | long int tv_nsec;
|
|---|
| 159 | };
|
|---|
| [aad342c] | 160 | # 35 "/usr/include/sched.h" 2 3 4
|
|---|
| [dba07d0] | 161 |
|
|---|
| 162 |
|
|---|
| 163 | typedef __pid_t pid_t;
|
|---|
| 164 |
|
|---|
| 165 |
|
|---|
| 166 |
|
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| [aad342c] | 169 | # 1 "/usr/include/bits/sched.h" 1 3 4
|
|---|
| 170 | # 74 "/usr/include/bits/sched.h" 3 4
|
|---|
| [dba07d0] | 171 | struct sched_param
|
|---|
| 172 | {
|
|---|
| 173 | int __sched_priority;
|
|---|
| 174 | };
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| [aad342c] | 177 | # 97 "/usr/include/bits/sched.h" 3 4
|
|---|
| [dba07d0] | 178 |
|
|---|
| 179 |
|
|---|
| 180 |
|
|---|
| 181 |
|
|---|
| 182 |
|
|---|
| 183 |
|
|---|
| 184 |
|
|---|
| 185 |
|
|---|
| 186 | struct __sched_param
|
|---|
| 187 | {
|
|---|
| 188 | int __sched_priority;
|
|---|
| 189 | };
|
|---|
| [aad342c] | 190 | # 120 "/usr/include/bits/sched.h" 3 4
|
|---|
| [dba07d0] | 191 | typedef unsigned long int __cpu_mask;
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 |
|
|---|
| 197 |
|
|---|
| 198 | typedef struct
|
|---|
| 199 | {
|
|---|
| 200 | __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
|
|---|
| 201 | } cpu_set_t;
|
|---|
| [aad342c] | 202 | # 203 "/usr/include/bits/sched.h" 3 4
|
|---|
| [dba07d0] | 203 |
|
|---|
| 204 |
|
|---|
| 205 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
|
|---|
| 206 | __attribute__ ((__nothrow__));
|
|---|
| 207 | extern cpu_set_t *__sched_cpualloc (size_t __count) __attribute__ ((__nothrow__)) ;
|
|---|
| 208 | extern void __sched_cpufree (cpu_set_t *__set) __attribute__ ((__nothrow__));
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| [aad342c] | 211 | # 44 "/usr/include/sched.h" 2 3 4
|
|---|
| [dba07d0] | 212 |
|
|---|
| 213 |
|
|---|
| 214 |
|
|---|
| 215 |
|
|---|
| 216 |
|
|---|
| 217 |
|
|---|
| 218 |
|
|---|
| 219 | extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
|
|---|
| 220 | __attribute__ ((__nothrow__));
|
|---|
| 221 |
|
|---|
| 222 |
|
|---|
| 223 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__));
|
|---|
| 224 |
|
|---|
| 225 |
|
|---|
| 226 | extern int sched_setscheduler (__pid_t __pid, int __policy,
|
|---|
| 227 | __const struct sched_param *__param) __attribute__ ((__nothrow__));
|
|---|
| 228 |
|
|---|
| 229 |
|
|---|
| 230 | extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__));
|
|---|
| 231 |
|
|---|
| 232 |
|
|---|
| 233 | extern int sched_yield (void) __attribute__ ((__nothrow__));
|
|---|
| 234 |
|
|---|
| 235 |
|
|---|
| 236 | extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__));
|
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 | extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__));
|
|---|
| 240 |
|
|---|
| 241 |
|
|---|
| 242 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__));
|
|---|
| [aad342c] | 243 | # 126 "/usr/include/sched.h" 3 4
|
|---|
| [dba07d0] | 244 |
|
|---|
| [aad342c] | 245 | # 26 "/usr/include/pthread.h" 2 3 4
|
|---|
| 246 | # 1 "/usr/include/time.h" 1 3 4
|
|---|
| 247 | # 30 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 248 |
|
|---|
| 249 |
|
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 |
|
|---|
| 255 |
|
|---|
| [aad342c] | 256 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 257 | # 39 "/usr/include/time.h" 2 3 4
|
|---|
| [dba07d0] | 258 |
|
|---|
| 259 |
|
|---|
| 260 |
|
|---|
| [aad342c] | 261 | # 1 "/usr/include/bits/time.h" 1 3 4
|
|---|
| 262 | # 43 "/usr/include/time.h" 2 3 4
|
|---|
| 263 | # 58 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 264 |
|
|---|
| 265 |
|
|---|
| 266 | typedef __clock_t clock_t;
|
|---|
| 267 |
|
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| [aad342c] | 270 | # 92 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 271 | typedef __clockid_t clockid_t;
|
|---|
| [aad342c] | 272 | # 104 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 273 | typedef __timer_t timer_t;
|
|---|
| [aad342c] | 274 | # 131 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 275 |
|
|---|
| 276 |
|
|---|
| 277 | struct tm
|
|---|
| 278 | {
|
|---|
| 279 | int tm_sec;
|
|---|
| 280 | int tm_min;
|
|---|
| 281 | int tm_hour;
|
|---|
| 282 | int tm_mday;
|
|---|
| 283 | int tm_mon;
|
|---|
| 284 | int tm_year;
|
|---|
| 285 | int tm_wday;
|
|---|
| 286 | int tm_yday;
|
|---|
| 287 | int tm_isdst;
|
|---|
| 288 |
|
|---|
| 289 |
|
|---|
| 290 | long int tm_gmtoff;
|
|---|
| 291 | __const char *tm_zone;
|
|---|
| 292 |
|
|---|
| 293 |
|
|---|
| 294 |
|
|---|
| 295 |
|
|---|
| 296 | };
|
|---|
| 297 |
|
|---|
| 298 |
|
|---|
| 299 |
|
|---|
| 300 |
|
|---|
| 301 |
|
|---|
| 302 |
|
|---|
| 303 |
|
|---|
| 304 |
|
|---|
| 305 | struct itimerspec
|
|---|
| 306 | {
|
|---|
| 307 | struct timespec it_interval;
|
|---|
| 308 | struct timespec it_value;
|
|---|
| 309 | };
|
|---|
| 310 |
|
|---|
| 311 |
|
|---|
| 312 | struct sigevent;
|
|---|
| [aad342c] | 313 | # 180 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 314 |
|
|---|
| 315 |
|
|---|
| 316 |
|
|---|
| 317 | extern clock_t clock (void) __attribute__ ((__nothrow__));
|
|---|
| 318 |
|
|---|
| 319 |
|
|---|
| 320 | extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 321 |
|
|---|
| 322 |
|
|---|
| 323 | extern double difftime (time_t __time1, time_t __time0)
|
|---|
| 324 | __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 325 |
|
|---|
| 326 |
|
|---|
| 327 | extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 328 |
|
|---|
| 329 |
|
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 |
|
|---|
| 333 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
|
|---|
| 334 | __const char *__restrict __format,
|
|---|
| 335 | __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
|
|---|
| 336 |
|
|---|
| [aad342c] | 337 | # 215 "/usr/include/time.h" 3 4
|
|---|
| 338 | # 1 "/usr/include/xlocale.h" 1 3 4
|
|---|
| 339 | # 28 "/usr/include/xlocale.h" 3 4
|
|---|
| [dba07d0] | 340 | typedef struct __locale_struct
|
|---|
| 341 | {
|
|---|
| 342 |
|
|---|
| 343 | struct __locale_data *__locales[13];
|
|---|
| 344 |
|
|---|
| 345 |
|
|---|
| 346 | const unsigned short int *__ctype_b;
|
|---|
| 347 | const int *__ctype_tolower;
|
|---|
| 348 | const int *__ctype_toupper;
|
|---|
| 349 |
|
|---|
| 350 |
|
|---|
| 351 | const char *__names[13];
|
|---|
| 352 | } *__locale_t;
|
|---|
| 353 |
|
|---|
| 354 |
|
|---|
| 355 | typedef __locale_t locale_t;
|
|---|
| [aad342c] | 356 | # 216 "/usr/include/time.h" 2 3 4
|
|---|
| [dba07d0] | 357 |
|
|---|
| 358 | extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
|
|---|
| 359 | __const char *__restrict __format,
|
|---|
| 360 | __const struct tm *__restrict __tp,
|
|---|
| 361 | __locale_t __loc) __attribute__ ((__nothrow__));
|
|---|
| [aad342c] | 362 | # 230 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 363 |
|
|---|
| 364 |
|
|---|
| 365 |
|
|---|
| 366 | extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 367 |
|
|---|
| 368 |
|
|---|
| 369 |
|
|---|
| 370 | extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 371 |
|
|---|
| 372 |
|
|---|
| 373 |
|
|---|
| 374 |
|
|---|
| 375 |
|
|---|
| 376 | extern struct tm *gmtime_r (__const time_t *__restrict __timer,
|
|---|
| 377 | struct tm *__restrict __tp) __attribute__ ((__nothrow__));
|
|---|
| 378 |
|
|---|
| 379 |
|
|---|
| 380 |
|
|---|
| 381 | extern struct tm *localtime_r (__const time_t *__restrict __timer,
|
|---|
| 382 | struct tm *__restrict __tp) __attribute__ ((__nothrow__));
|
|---|
| 383 |
|
|---|
| 384 |
|
|---|
| 385 |
|
|---|
| 386 |
|
|---|
| 387 |
|
|---|
| 388 | extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 389 |
|
|---|
| 390 |
|
|---|
| 391 | extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 392 |
|
|---|
| 393 |
|
|---|
| 394 |
|
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
|
|---|
| 398 |
|
|---|
| 399 | extern char *asctime_r (__const struct tm *__restrict __tp,
|
|---|
| 400 | char *__restrict __buf) __attribute__ ((__nothrow__));
|
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 | extern char *ctime_r (__const time_t *__restrict __timer,
|
|---|
| 404 | char *__restrict __buf) __attribute__ ((__nothrow__));
|
|---|
| 405 |
|
|---|
| 406 |
|
|---|
| 407 |
|
|---|
| 408 |
|
|---|
| 409 | extern char *__tzname[2];
|
|---|
| 410 | extern int __daylight;
|
|---|
| 411 | extern long int __timezone;
|
|---|
| 412 |
|
|---|
| 413 |
|
|---|
| 414 |
|
|---|
| 415 |
|
|---|
| 416 | extern char *tzname[2];
|
|---|
| 417 |
|
|---|
| 418 |
|
|---|
| 419 |
|
|---|
| 420 | extern void tzset (void) __attribute__ ((__nothrow__));
|
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 |
|
|---|
| 424 | extern int daylight;
|
|---|
| 425 | extern long int timezone;
|
|---|
| 426 |
|
|---|
| 427 |
|
|---|
| 428 |
|
|---|
| 429 |
|
|---|
| 430 |
|
|---|
| 431 | extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
|
|---|
| [aad342c] | 432 | # 313 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 433 | extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 434 |
|
|---|
| 435 |
|
|---|
| 436 | extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 437 |
|
|---|
| 438 |
|
|---|
| 439 | extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| [aad342c] | 440 | # 328 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 441 | extern int nanosleep (__const struct timespec *__requested_time,
|
|---|
| 442 | struct timespec *__remaining);
|
|---|
| 443 |
|
|---|
| 444 |
|
|---|
| 445 |
|
|---|
| 446 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
|
|---|
| 447 |
|
|---|
| 448 |
|
|---|
| 449 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
|
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 | extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
|
|---|
| 453 | __attribute__ ((__nothrow__));
|
|---|
| 454 |
|
|---|
| 455 |
|
|---|
| 456 |
|
|---|
| 457 |
|
|---|
| 458 |
|
|---|
| 459 |
|
|---|
| 460 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
|
|---|
| 461 | __const struct timespec *__req,
|
|---|
| 462 | struct timespec *__rem);
|
|---|
| 463 |
|
|---|
| 464 |
|
|---|
| 465 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
|
|---|
| 466 |
|
|---|
| 467 |
|
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 | extern int timer_create (clockid_t __clock_id,
|
|---|
| 471 | struct sigevent *__restrict __evp,
|
|---|
| 472 | timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
|
|---|
| 473 |
|
|---|
| 474 |
|
|---|
| 475 | extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
|
|---|
| 476 |
|
|---|
| 477 |
|
|---|
| 478 | extern int timer_settime (timer_t __timerid, int __flags,
|
|---|
| 479 | __const struct itimerspec *__restrict __value,
|
|---|
| 480 | struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
|
|---|
| 481 |
|
|---|
| 482 |
|
|---|
| 483 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
|
|---|
| 484 | __attribute__ ((__nothrow__));
|
|---|
| 485 |
|
|---|
| 486 |
|
|---|
| 487 | extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
|
|---|
| [aad342c] | 488 | # 417 "/usr/include/time.h" 3 4
|
|---|
| [dba07d0] | 489 |
|
|---|
| [aad342c] | 490 | # 27 "/usr/include/pthread.h" 2 3 4
|
|---|
| [dba07d0] | 491 |
|
|---|
| [aad342c] | 492 | # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
|
|---|
| 493 | # 36 "/usr/include/bits/pthreadtypes.h" 3 4
|
|---|
| [dba07d0] | 494 | typedef unsigned long int pthread_t;
|
|---|
| 495 |
|
|---|
| 496 |
|
|---|
| 497 | typedef union
|
|---|
| 498 | {
|
|---|
| 499 | char __size[36];
|
|---|
| 500 | long int __align;
|
|---|
| 501 | } pthread_attr_t;
|
|---|
| 502 |
|
|---|
| 503 |
|
|---|
| 504 | typedef struct __pthread_internal_slist
|
|---|
| 505 | {
|
|---|
| 506 | struct __pthread_internal_slist *__next;
|
|---|
| 507 | } __pthread_slist_t;
|
|---|
| 508 |
|
|---|
| 509 |
|
|---|
| 510 |
|
|---|
| 511 |
|
|---|
| 512 | typedef union
|
|---|
| 513 | {
|
|---|
| 514 | struct __pthread_mutex_s
|
|---|
| 515 | {
|
|---|
| 516 | int __lock;
|
|---|
| 517 | unsigned int __count;
|
|---|
| 518 | int __owner;
|
|---|
| 519 |
|
|---|
| 520 |
|
|---|
| 521 | int __kind;
|
|---|
| 522 | unsigned int __nusers;
|
|---|
| 523 | __extension__ union
|
|---|
| 524 | {
|
|---|
| 525 | int __spins;
|
|---|
| 526 | __pthread_slist_t __list;
|
|---|
| 527 | };
|
|---|
| 528 | } __data;
|
|---|
| 529 | char __size[24];
|
|---|
| 530 | long int __align;
|
|---|
| 531 | } pthread_mutex_t;
|
|---|
| 532 |
|
|---|
| 533 | typedef union
|
|---|
| 534 | {
|
|---|
| 535 | char __size[4];
|
|---|
| 536 | long int __align;
|
|---|
| 537 | } pthread_mutexattr_t;
|
|---|
| 538 |
|
|---|
| 539 |
|
|---|
| 540 |
|
|---|
| 541 |
|
|---|
| 542 | typedef union
|
|---|
| 543 | {
|
|---|
| 544 | struct
|
|---|
| 545 | {
|
|---|
| 546 | int __lock;
|
|---|
| 547 | unsigned int __futex;
|
|---|
| 548 | __extension__ unsigned long long int __total_seq;
|
|---|
| 549 | __extension__ unsigned long long int __wakeup_seq;
|
|---|
| 550 | __extension__ unsigned long long int __woken_seq;
|
|---|
| 551 | void *__mutex;
|
|---|
| 552 | unsigned int __nwaiters;
|
|---|
| 553 | unsigned int __broadcast_seq;
|
|---|
| 554 | } __data;
|
|---|
| 555 | char __size[48];
|
|---|
| 556 | __extension__ long long int __align;
|
|---|
| 557 | } pthread_cond_t;
|
|---|
| 558 |
|
|---|
| 559 | typedef union
|
|---|
| 560 | {
|
|---|
| 561 | char __size[4];
|
|---|
| 562 | long int __align;
|
|---|
| 563 | } pthread_condattr_t;
|
|---|
| 564 |
|
|---|
| 565 |
|
|---|
| 566 |
|
|---|
| 567 | typedef unsigned int pthread_key_t;
|
|---|
| 568 |
|
|---|
| 569 |
|
|---|
| 570 |
|
|---|
| 571 | typedef int pthread_once_t;
|
|---|
| 572 |
|
|---|
| 573 |
|
|---|
| 574 |
|
|---|
| 575 |
|
|---|
| 576 |
|
|---|
| 577 | typedef union
|
|---|
| 578 | {
|
|---|
| 579 | struct
|
|---|
| 580 | {
|
|---|
| 581 | int __lock;
|
|---|
| 582 | unsigned int __nr_readers;
|
|---|
| 583 | unsigned int __readers_wakeup;
|
|---|
| 584 | unsigned int __writer_wakeup;
|
|---|
| 585 | unsigned int __nr_readers_queued;
|
|---|
| 586 | unsigned int __nr_writers_queued;
|
|---|
| 587 |
|
|---|
| 588 |
|
|---|
| 589 | unsigned char __flags;
|
|---|
| 590 | unsigned char __shared;
|
|---|
| 591 | unsigned char __pad1;
|
|---|
| 592 | unsigned char __pad2;
|
|---|
| 593 | int __writer;
|
|---|
| 594 | } __data;
|
|---|
| 595 | char __size[32];
|
|---|
| 596 | long int __align;
|
|---|
| 597 | } pthread_rwlock_t;
|
|---|
| 598 |
|
|---|
| 599 | typedef union
|
|---|
| 600 | {
|
|---|
| 601 | char __size[8];
|
|---|
| 602 | long int __align;
|
|---|
| 603 | } pthread_rwlockattr_t;
|
|---|
| 604 |
|
|---|
| 605 |
|
|---|
| 606 |
|
|---|
| 607 |
|
|---|
| 608 |
|
|---|
| 609 | typedef volatile int pthread_spinlock_t;
|
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
|
|---|
| 613 |
|
|---|
| 614 | typedef union
|
|---|
| 615 | {
|
|---|
| 616 | char __size[20];
|
|---|
| 617 | long int __align;
|
|---|
| 618 | } pthread_barrier_t;
|
|---|
| 619 |
|
|---|
| 620 | typedef union
|
|---|
| 621 | {
|
|---|
| 622 | char __size[4];
|
|---|
| 623 | int __align;
|
|---|
| 624 | } pthread_barrierattr_t;
|
|---|
| [aad342c] | 625 | # 29 "/usr/include/pthread.h" 2 3 4
|
|---|
| 626 | # 1 "/usr/include/bits/setjmp.h" 1 3 4
|
|---|
| 627 | # 29 "/usr/include/bits/setjmp.h" 3 4
|
|---|
| [dba07d0] | 628 | typedef int __jmp_buf[6];
|
|---|
| [aad342c] | 629 | # 30 "/usr/include/pthread.h" 2 3 4
|
|---|
| 630 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 631 | # 31 "/usr/include/pthread.h" 2 3 4
|
|---|
| [dba07d0] | 632 |
|
|---|
| 633 |
|
|---|
| 634 |
|
|---|
| 635 | enum
|
|---|
| 636 | {
|
|---|
| 637 | PTHREAD_CREATE_JOINABLE,
|
|---|
| 638 |
|
|---|
| 639 | PTHREAD_CREATE_DETACHED
|
|---|
| 640 |
|
|---|
| 641 | };
|
|---|
| 642 |
|
|---|
| 643 |
|
|---|
| 644 |
|
|---|
| 645 | enum
|
|---|
| 646 | {
|
|---|
| 647 | PTHREAD_MUTEX_TIMED_NP,
|
|---|
| 648 | PTHREAD_MUTEX_RECURSIVE_NP,
|
|---|
| 649 | PTHREAD_MUTEX_ERRORCHECK_NP,
|
|---|
| 650 | PTHREAD_MUTEX_ADAPTIVE_NP
|
|---|
| 651 |
|
|---|
| 652 | ,
|
|---|
| 653 | PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
|
|---|
| 654 | PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
|
|---|
| 655 | PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
|
|---|
| 656 | PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
|
|---|
| 657 |
|
|---|
| 658 |
|
|---|
| 659 |
|
|---|
| 660 |
|
|---|
| 661 |
|
|---|
| 662 | };
|
|---|
| 663 |
|
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 | enum
|
|---|
| 668 | {
|
|---|
| 669 | PTHREAD_MUTEX_STALLED,
|
|---|
| 670 | PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
|
|---|
| 671 | PTHREAD_MUTEX_ROBUST,
|
|---|
| 672 | PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
|
|---|
| 673 | };
|
|---|
| [aad342c] | 674 | # 115 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 675 | enum
|
|---|
| 676 | {
|
|---|
| 677 | PTHREAD_RWLOCK_PREFER_READER_NP,
|
|---|
| 678 | PTHREAD_RWLOCK_PREFER_WRITER_NP,
|
|---|
| 679 | PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
|
|---|
| 680 | PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
|
|---|
| 681 | };
|
|---|
| [aad342c] | 682 | # 147 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 683 | enum
|
|---|
| 684 | {
|
|---|
| 685 | PTHREAD_INHERIT_SCHED,
|
|---|
| 686 |
|
|---|
| 687 | PTHREAD_EXPLICIT_SCHED
|
|---|
| 688 |
|
|---|
| 689 | };
|
|---|
| 690 |
|
|---|
| 691 |
|
|---|
| 692 |
|
|---|
| 693 | enum
|
|---|
| 694 | {
|
|---|
| 695 | PTHREAD_SCOPE_SYSTEM,
|
|---|
| 696 |
|
|---|
| 697 | PTHREAD_SCOPE_PROCESS
|
|---|
| 698 |
|
|---|
| 699 | };
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 | enum
|
|---|
| 704 | {
|
|---|
| 705 | PTHREAD_PROCESS_PRIVATE,
|
|---|
| 706 |
|
|---|
| 707 | PTHREAD_PROCESS_SHARED
|
|---|
| 708 |
|
|---|
| 709 | };
|
|---|
| [aad342c] | 710 | # 182 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 711 | struct _pthread_cleanup_buffer
|
|---|
| 712 | {
|
|---|
| 713 | void (*__routine) (void *);
|
|---|
| 714 | void *__arg;
|
|---|
| 715 | int __canceltype;
|
|---|
| 716 | struct _pthread_cleanup_buffer *__prev;
|
|---|
| 717 | };
|
|---|
| 718 |
|
|---|
| 719 |
|
|---|
| 720 | enum
|
|---|
| 721 | {
|
|---|
| 722 | PTHREAD_CANCEL_ENABLE,
|
|---|
| 723 |
|
|---|
| 724 | PTHREAD_CANCEL_DISABLE
|
|---|
| 725 |
|
|---|
| 726 | };
|
|---|
| 727 | enum
|
|---|
| 728 | {
|
|---|
| 729 | PTHREAD_CANCEL_DEFERRED,
|
|---|
| 730 |
|
|---|
| 731 | PTHREAD_CANCEL_ASYNCHRONOUS
|
|---|
| 732 |
|
|---|
| 733 | };
|
|---|
| [aad342c] | 734 | # 220 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 735 |
|
|---|
| 736 |
|
|---|
| 737 |
|
|---|
| 738 |
|
|---|
| 739 |
|
|---|
| 740 | extern int pthread_create (pthread_t *__restrict __newthread,
|
|---|
| 741 | __const pthread_attr_t *__restrict __attr,
|
|---|
| 742 | void *(*__start_routine) (void *),
|
|---|
| 743 | void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
|
|---|
| 744 |
|
|---|
| 745 |
|
|---|
| 746 |
|
|---|
| 747 |
|
|---|
| 748 |
|
|---|
| 749 | extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
|
|---|
| 750 |
|
|---|
| 751 |
|
|---|
| 752 |
|
|---|
| 753 |
|
|---|
| 754 |
|
|---|
| 755 |
|
|---|
| 756 |
|
|---|
| 757 | extern int pthread_join (pthread_t __th, void **__thread_return);
|
|---|
| [aad342c] | 758 | # 263 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 759 | extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__));
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 |
|
|---|
| 763 | extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 764 |
|
|---|
| 765 |
|
|---|
| 766 | extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__));
|
|---|
| 767 |
|
|---|
| 768 |
|
|---|
| 769 |
|
|---|
| 770 |
|
|---|
| 771 |
|
|---|
| 772 |
|
|---|
| 773 |
|
|---|
| 774 | extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 775 |
|
|---|
| 776 |
|
|---|
| 777 | extern int pthread_attr_destroy (pthread_attr_t *__attr)
|
|---|
| 778 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 779 |
|
|---|
| 780 |
|
|---|
| 781 | extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
|
|---|
| 782 | int *__detachstate)
|
|---|
| 783 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 784 |
|
|---|
| 785 |
|
|---|
| 786 | extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
|
|---|
| 787 | int __detachstate)
|
|---|
| 788 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 789 |
|
|---|
| 790 |
|
|---|
| 791 |
|
|---|
| 792 | extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
|
|---|
| 793 | size_t *__guardsize)
|
|---|
| 794 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 795 |
|
|---|
| 796 |
|
|---|
| 797 | extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
|
|---|
| 798 | size_t __guardsize)
|
|---|
| 799 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 800 |
|
|---|
| 801 |
|
|---|
| 802 |
|
|---|
| 803 | extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
|
|---|
| 804 | __attr,
|
|---|
| 805 | struct sched_param *__restrict __param)
|
|---|
| 806 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 807 |
|
|---|
| 808 |
|
|---|
| 809 | extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
|
|---|
| 810 | __const struct sched_param *__restrict
|
|---|
| 811 | __param) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 812 |
|
|---|
| 813 |
|
|---|
| 814 | extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
|
|---|
| 815 | __attr, int *__restrict __policy)
|
|---|
| 816 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 817 |
|
|---|
| 818 |
|
|---|
| 819 | extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
|
|---|
| 820 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 821 |
|
|---|
| 822 |
|
|---|
| 823 | extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
|
|---|
| 824 | __attr, int *__restrict __inherit)
|
|---|
| 825 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 826 |
|
|---|
| 827 |
|
|---|
| 828 | extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
|
|---|
| 829 | int __inherit)
|
|---|
| 830 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 831 |
|
|---|
| 832 |
|
|---|
| 833 |
|
|---|
| 834 | extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
|
|---|
| 835 | int *__restrict __scope)
|
|---|
| 836 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 837 |
|
|---|
| 838 |
|
|---|
| 839 | extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
|
|---|
| 840 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 841 |
|
|---|
| 842 |
|
|---|
| 843 | extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
|
|---|
| 844 | __attr, void **__restrict __stackaddr)
|
|---|
| 845 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
|
|---|
| 846 |
|
|---|
| 847 |
|
|---|
| 848 |
|
|---|
| 849 |
|
|---|
| 850 |
|
|---|
| 851 | extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
|
|---|
| 852 | void *__stackaddr)
|
|---|
| 853 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
|
|---|
| 854 |
|
|---|
| 855 |
|
|---|
| 856 | extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
|
|---|
| 857 | __attr, size_t *__restrict __stacksize)
|
|---|
| 858 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 859 |
|
|---|
| 860 |
|
|---|
| 861 |
|
|---|
| 862 |
|
|---|
| 863 | extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
|
|---|
| 864 | size_t __stacksize)
|
|---|
| 865 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 866 |
|
|---|
| 867 |
|
|---|
| 868 |
|
|---|
| 869 | extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
|
|---|
| 870 | void **__restrict __stackaddr,
|
|---|
| 871 | size_t *__restrict __stacksize)
|
|---|
| 872 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
|
|---|
| 873 |
|
|---|
| 874 |
|
|---|
| 875 |
|
|---|
| 876 |
|
|---|
| 877 | extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
|
|---|
| 878 | size_t __stacksize) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| [aad342c] | 879 | # 413 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 880 | extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
|
|---|
| 881 | __const struct sched_param *__param)
|
|---|
| 882 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
|
|---|
| 883 |
|
|---|
| 884 |
|
|---|
| 885 | extern int pthread_getschedparam (pthread_t __target_thread,
|
|---|
| 886 | int *__restrict __policy,
|
|---|
| 887 | struct sched_param *__restrict __param)
|
|---|
| 888 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
|
|---|
| 889 |
|
|---|
| 890 |
|
|---|
| 891 | extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
|
|---|
| 892 | __attribute__ ((__nothrow__));
|
|---|
| [aad342c] | 893 | # 478 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 894 | extern int pthread_once (pthread_once_t *__once_control,
|
|---|
| 895 | void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| [aad342c] | 896 | # 490 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 897 | extern int pthread_setcancelstate (int __state, int *__oldstate);
|
|---|
| 898 |
|
|---|
| 899 |
|
|---|
| 900 |
|
|---|
| 901 | extern int pthread_setcanceltype (int __type, int *__oldtype);
|
|---|
| 902 |
|
|---|
| 903 |
|
|---|
| 904 | extern int pthread_cancel (pthread_t __th);
|
|---|
| 905 |
|
|---|
| 906 |
|
|---|
| 907 |
|
|---|
| 908 |
|
|---|
| 909 | extern void pthread_testcancel (void);
|
|---|
| 910 |
|
|---|
| 911 |
|
|---|
| 912 |
|
|---|
| 913 |
|
|---|
| 914 | typedef struct
|
|---|
| 915 | {
|
|---|
| 916 | struct
|
|---|
| 917 | {
|
|---|
| 918 | __jmp_buf __cancel_jmp_buf;
|
|---|
| 919 | int __mask_was_saved;
|
|---|
| 920 | } __cancel_jmp_buf[1];
|
|---|
| 921 | void *__pad[4];
|
|---|
| 922 | } __pthread_unwind_buf_t __attribute__ ((__aligned__));
|
|---|
| [aad342c] | 923 | # 524 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 924 | struct __pthread_cleanup_frame
|
|---|
| 925 | {
|
|---|
| 926 | void (*__cancel_routine) (void *);
|
|---|
| 927 | void *__cancel_arg;
|
|---|
| 928 | int __do_it;
|
|---|
| 929 | int __cancel_type;
|
|---|
| 930 | };
|
|---|
| [aad342c] | 931 | # 664 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 932 | extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
|
|---|
| 933 | __attribute__ ((__regparm__ (1)));
|
|---|
| [aad342c] | 934 | # 676 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 935 | extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
|
|---|
| 936 | __attribute__ ((__regparm__ (1)));
|
|---|
| [aad342c] | 937 | # 717 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 938 | extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
|
|---|
| 939 | __attribute__ ((__regparm__ (1))) __attribute__ ((__noreturn__))
|
|---|
| 940 |
|
|---|
| 941 | __attribute__ ((__weak__))
|
|---|
| 942 |
|
|---|
| 943 | ;
|
|---|
| 944 |
|
|---|
| 945 |
|
|---|
| 946 |
|
|---|
| 947 | struct __jmp_buf_tag;
|
|---|
| 948 | extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__));
|
|---|
| 949 |
|
|---|
| 950 |
|
|---|
| 951 |
|
|---|
| 952 |
|
|---|
| 953 |
|
|---|
| 954 | extern int pthread_mutex_init (pthread_mutex_t *__mutex,
|
|---|
| 955 | __const pthread_mutexattr_t *__mutexattr)
|
|---|
| 956 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 957 |
|
|---|
| 958 |
|
|---|
| 959 | extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
|
|---|
| 960 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 961 |
|
|---|
| 962 |
|
|---|
| 963 | extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
|
|---|
| 964 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 965 |
|
|---|
| 966 |
|
|---|
| 967 | extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
|
|---|
| 968 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 969 |
|
|---|
| 970 |
|
|---|
| 971 |
|
|---|
| 972 | extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
|
|---|
| 973 | __const struct timespec *__restrict
|
|---|
| 974 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 975 |
|
|---|
| 976 |
|
|---|
| 977 |
|
|---|
| 978 | extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
|
|---|
| 979 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 980 |
|
|---|
| 981 |
|
|---|
| 982 |
|
|---|
| 983 | extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
|
|---|
| 984 | __restrict __mutex,
|
|---|
| 985 | int *__restrict __prioceiling)
|
|---|
| 986 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 987 |
|
|---|
| 988 |
|
|---|
| 989 |
|
|---|
| 990 | extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
|
|---|
| 991 | int __prioceiling,
|
|---|
| 992 | int *__restrict __old_ceiling)
|
|---|
| 993 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
|
|---|
| 994 |
|
|---|
| 995 |
|
|---|
| 996 |
|
|---|
| 997 |
|
|---|
| 998 | extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
|
|---|
| 999 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| [aad342c] | 1000 | # 790 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1001 | extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
|
|---|
| 1002 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1003 |
|
|---|
| 1004 |
|
|---|
| 1005 | extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
|
|---|
| 1006 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1007 |
|
|---|
| 1008 |
|
|---|
| 1009 | extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
|
|---|
| 1010 | __restrict __attr,
|
|---|
| 1011 | int *__restrict __pshared)
|
|---|
| 1012 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1013 |
|
|---|
| 1014 |
|
|---|
| 1015 | extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
|
|---|
| 1016 | int __pshared)
|
|---|
| 1017 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1018 |
|
|---|
| 1019 |
|
|---|
| 1020 |
|
|---|
| 1021 | extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
|
|---|
| 1022 | __attr, int *__restrict __kind)
|
|---|
| 1023 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1024 |
|
|---|
| 1025 |
|
|---|
| 1026 |
|
|---|
| 1027 |
|
|---|
| 1028 | extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
|
|---|
| 1029 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1030 |
|
|---|
| 1031 |
|
|---|
| 1032 |
|
|---|
| 1033 | extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
|
|---|
| 1034 | __restrict __attr,
|
|---|
| 1035 | int *__restrict __protocol)
|
|---|
| 1036 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1037 |
|
|---|
| 1038 |
|
|---|
| 1039 |
|
|---|
| 1040 | extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
|
|---|
| 1041 | int __protocol)
|
|---|
| 1042 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1043 |
|
|---|
| 1044 |
|
|---|
| 1045 | extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
|
|---|
| 1046 | __restrict __attr,
|
|---|
| 1047 | int *__restrict __prioceiling)
|
|---|
| 1048 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1049 |
|
|---|
| 1050 |
|
|---|
| 1051 | extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
|
|---|
| 1052 | int __prioceiling)
|
|---|
| 1053 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1054 |
|
|---|
| 1055 |
|
|---|
| 1056 |
|
|---|
| 1057 | extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,
|
|---|
| 1058 | int *__robustness)
|
|---|
| 1059 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1060 |
|
|---|
| 1061 |
|
|---|
| 1062 |
|
|---|
| 1063 |
|
|---|
| 1064 |
|
|---|
| 1065 |
|
|---|
| 1066 |
|
|---|
| 1067 | extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
|
|---|
| 1068 | int __robustness)
|
|---|
| 1069 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| [aad342c] | 1070 | # 872 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1071 | extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 1072 | __const pthread_rwlockattr_t *__restrict
|
|---|
| 1073 | __attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1074 |
|
|---|
| 1075 |
|
|---|
| 1076 | extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
|
|---|
| 1077 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1078 |
|
|---|
| 1079 |
|
|---|
| 1080 | extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
|
|---|
| 1081 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1082 |
|
|---|
| 1083 |
|
|---|
| 1084 | extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
|
|---|
| 1085 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1086 |
|
|---|
| 1087 |
|
|---|
| 1088 |
|
|---|
| 1089 | extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 1090 | __const struct timespec *__restrict
|
|---|
| 1091 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1092 |
|
|---|
| 1093 |
|
|---|
| 1094 |
|
|---|
| 1095 | extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
|
|---|
| 1096 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1097 |
|
|---|
| 1098 |
|
|---|
| 1099 | extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
|
|---|
| 1100 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1101 |
|
|---|
| 1102 |
|
|---|
| 1103 |
|
|---|
| 1104 | extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 1105 | __const struct timespec *__restrict
|
|---|
| 1106 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1107 |
|
|---|
| 1108 |
|
|---|
| 1109 |
|
|---|
| 1110 | extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
|
|---|
| 1111 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1112 |
|
|---|
| 1113 |
|
|---|
| 1114 |
|
|---|
| 1115 |
|
|---|
| 1116 |
|
|---|
| 1117 | extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
|
|---|
| 1118 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1119 |
|
|---|
| 1120 |
|
|---|
| 1121 | extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
|
|---|
| 1122 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1123 |
|
|---|
| 1124 |
|
|---|
| 1125 | extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
|
|---|
| 1126 | __restrict __attr,
|
|---|
| 1127 | int *__restrict __pshared)
|
|---|
| 1128 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1129 |
|
|---|
| 1130 |
|
|---|
| 1131 | extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
|
|---|
| 1132 | int __pshared)
|
|---|
| 1133 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1134 |
|
|---|
| 1135 |
|
|---|
| 1136 | extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
|
|---|
| 1137 | __restrict __attr,
|
|---|
| 1138 | int *__restrict __pref)
|
|---|
| 1139 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1140 |
|
|---|
| 1141 |
|
|---|
| 1142 | extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
|
|---|
| 1143 | int __pref) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1144 |
|
|---|
| 1145 |
|
|---|
| 1146 |
|
|---|
| 1147 |
|
|---|
| 1148 |
|
|---|
| 1149 |
|
|---|
| 1150 |
|
|---|
| 1151 | extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
|
|---|
| 1152 | __const pthread_condattr_t *__restrict
|
|---|
| 1153 | __cond_attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1154 |
|
|---|
| 1155 |
|
|---|
| 1156 | extern int pthread_cond_destroy (pthread_cond_t *__cond)
|
|---|
| 1157 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1158 |
|
|---|
| 1159 |
|
|---|
| 1160 | extern int pthread_cond_signal (pthread_cond_t *__cond)
|
|---|
| 1161 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1162 |
|
|---|
| 1163 |
|
|---|
| 1164 | extern int pthread_cond_broadcast (pthread_cond_t *__cond)
|
|---|
| 1165 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1166 |
|
|---|
| 1167 |
|
|---|
| 1168 |
|
|---|
| 1169 |
|
|---|
| 1170 |
|
|---|
| 1171 |
|
|---|
| 1172 | extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
|
|---|
| 1173 | pthread_mutex_t *__restrict __mutex)
|
|---|
| 1174 | __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| [aad342c] | 1175 | # 984 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1176 | extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
|
|---|
| 1177 | pthread_mutex_t *__restrict __mutex,
|
|---|
| 1178 | __const struct timespec *__restrict
|
|---|
| 1179 | __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
|
|---|
| 1180 |
|
|---|
| 1181 |
|
|---|
| 1182 |
|
|---|
| 1183 |
|
|---|
| 1184 | extern int pthread_condattr_init (pthread_condattr_t *__attr)
|
|---|
| 1185 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1186 |
|
|---|
| 1187 |
|
|---|
| 1188 | extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
|
|---|
| 1189 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1190 |
|
|---|
| 1191 |
|
|---|
| 1192 | extern int pthread_condattr_getpshared (__const pthread_condattr_t *
|
|---|
| 1193 | __restrict __attr,
|
|---|
| 1194 | int *__restrict __pshared)
|
|---|
| 1195 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1196 |
|
|---|
| 1197 |
|
|---|
| 1198 | extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
|
|---|
| 1199 | int __pshared) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1200 |
|
|---|
| 1201 |
|
|---|
| 1202 |
|
|---|
| 1203 | extern int pthread_condattr_getclock (__const pthread_condattr_t *
|
|---|
| 1204 | __restrict __attr,
|
|---|
| 1205 | __clockid_t *__restrict __clock_id)
|
|---|
| 1206 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1207 |
|
|---|
| 1208 |
|
|---|
| 1209 | extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
|
|---|
| 1210 | __clockid_t __clock_id)
|
|---|
| 1211 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| [aad342c] | 1212 | # 1028 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1213 | extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
|
|---|
| 1214 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1215 |
|
|---|
| 1216 |
|
|---|
| 1217 | extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
|
|---|
| 1218 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1219 |
|
|---|
| 1220 |
|
|---|
| 1221 | extern int pthread_spin_lock (pthread_spinlock_t *__lock)
|
|---|
| 1222 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1223 |
|
|---|
| 1224 |
|
|---|
| 1225 | extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
|
|---|
| 1226 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1227 |
|
|---|
| 1228 |
|
|---|
| 1229 | extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
|
|---|
| 1230 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1231 |
|
|---|
| 1232 |
|
|---|
| 1233 |
|
|---|
| 1234 |
|
|---|
| 1235 |
|
|---|
| 1236 |
|
|---|
| 1237 | extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
|
|---|
| 1238 | __const pthread_barrierattr_t *__restrict
|
|---|
| 1239 | __attr, unsigned int __count)
|
|---|
| 1240 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1241 |
|
|---|
| 1242 |
|
|---|
| 1243 | extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
|
|---|
| 1244 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1245 |
|
|---|
| 1246 |
|
|---|
| 1247 | extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
|
|---|
| 1248 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1249 |
|
|---|
| 1250 |
|
|---|
| 1251 |
|
|---|
| 1252 | extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
|
|---|
| 1253 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1254 |
|
|---|
| 1255 |
|
|---|
| 1256 | extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
|
|---|
| 1257 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1258 |
|
|---|
| 1259 |
|
|---|
| 1260 | extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
|
|---|
| 1261 | __restrict __attr,
|
|---|
| 1262 | int *__restrict __pshared)
|
|---|
| 1263 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1264 |
|
|---|
| 1265 |
|
|---|
| 1266 | extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
|
|---|
| 1267 | int __pshared)
|
|---|
| 1268 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| [aad342c] | 1269 | # 1095 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1270 | extern int pthread_key_create (pthread_key_t *__key,
|
|---|
| 1271 | void (*__destr_function) (void *))
|
|---|
| 1272 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1273 |
|
|---|
| 1274 |
|
|---|
| 1275 | extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__));
|
|---|
| 1276 |
|
|---|
| 1277 |
|
|---|
| 1278 | extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__));
|
|---|
| 1279 |
|
|---|
| 1280 |
|
|---|
| 1281 | extern int pthread_setspecific (pthread_key_t __key,
|
|---|
| 1282 | __const void *__pointer) __attribute__ ((__nothrow__)) ;
|
|---|
| 1283 |
|
|---|
| 1284 |
|
|---|
| 1285 |
|
|---|
| 1286 |
|
|---|
| 1287 | extern int pthread_getcpuclockid (pthread_t __thread_id,
|
|---|
| 1288 | __clockid_t *__clock_id)
|
|---|
| 1289 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| [aad342c] | 1290 | # 1129 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1291 | extern int pthread_atfork (void (*__prepare) (void),
|
|---|
| 1292 | void (*__parent) (void),
|
|---|
| 1293 | void (*__child) (void)) __attribute__ ((__nothrow__));
|
|---|
| [aad342c] | 1294 | # 1143 "/usr/include/pthread.h" 3 4
|
|---|
| [dba07d0] | 1295 |
|
|---|
| [aad342c] | 1296 | # 2 "lazy01_bad.c" 2
|
|---|
| 1297 | # 1 "/usr/include/assert.h" 1 3 4
|
|---|
| 1298 | # 66 "/usr/include/assert.h" 3 4
|
|---|
| [dba07d0] | 1299 |
|
|---|
| 1300 |
|
|---|
| 1301 |
|
|---|
| [aad342c] | 1302 | extern void __assert_fail (__const char *__assertion, __const char *__file,
|
|---|
| 1303 | unsigned int __line, __const char *__function)
|
|---|
| 1304 | __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
|
|---|
| [dba07d0] | 1305 |
|
|---|
| 1306 |
|
|---|
| [aad342c] | 1307 | extern void __assert_perror_fail (int __errnum, __const char *__file,
|
|---|
| 1308 | unsigned int __line,
|
|---|
| 1309 | __const char *__function)
|
|---|
| 1310 | __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
|
|---|
| [dba07d0] | 1311 |
|
|---|
| 1312 |
|
|---|
| 1313 |
|
|---|
| 1314 |
|
|---|
| [aad342c] | 1315 | extern void __assert (const char *__assertion, const char *__file, int __line)
|
|---|
| 1316 | __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
|
|---|
| [dba07d0] | 1317 |
|
|---|
| 1318 |
|
|---|
| 1319 |
|
|---|
| [aad342c] | 1320 | # 3 "lazy01_bad.c" 2
|
|---|
| [dba07d0] | 1321 |
|
|---|
| [aad342c] | 1322 | pthread_mutex_t mutex;
|
|---|
| 1323 | int data = 0;
|
|---|
| [dba07d0] | 1324 |
|
|---|
| [aad342c] | 1325 | void *thread1(void *arg)
|
|---|
| [dba07d0] | 1326 | {
|
|---|
| [aad342c] | 1327 | pthread_mutex_lock(&mutex);
|
|---|
| 1328 | data++;
|
|---|
| 1329 | pthread_mutex_unlock(&mutex);
|
|---|
| [dba07d0] | 1330 | }
|
|---|
| 1331 |
|
|---|
| 1332 |
|
|---|
| [aad342c] | 1333 | void *thread2(void *arg)
|
|---|
| [dba07d0] | 1334 | {
|
|---|
| [aad342c] | 1335 | pthread_mutex_lock(&mutex);
|
|---|
| 1336 | data+=2;
|
|---|
| 1337 | pthread_mutex_unlock(&mutex);
|
|---|
| [dba07d0] | 1338 | }
|
|---|
| 1339 |
|
|---|
| 1340 |
|
|---|
| [aad342c] | 1341 | void *thread3(void *arg)
|
|---|
| [dba07d0] | 1342 | {
|
|---|
| [aad342c] | 1343 | pthread_mutex_lock(&mutex);
|
|---|
| 1344 | if (data >= 3){
|
|---|
| 1345 | ERROR: __VERIFIER_error();
|
|---|
| 1346 | ;
|
|---|
| [dba07d0] | 1347 | }
|
|---|
| [aad342c] | 1348 | pthread_mutex_unlock(&mutex);
|
|---|
| [dba07d0] | 1349 | }
|
|---|
| 1350 |
|
|---|
| 1351 |
|
|---|
| [aad342c] | 1352 | int main()
|
|---|
| [dba07d0] | 1353 | {
|
|---|
| [aad342c] | 1354 | pthread_mutex_init(&mutex, 0);
|
|---|
| [dba07d0] | 1355 |
|
|---|
| [aad342c] | 1356 | pthread_t t1, t2, t3;
|
|---|
| [dba07d0] | 1357 |
|
|---|
| [aad342c] | 1358 | pthread_create(&t1, 0, thread1, 0);
|
|---|
| 1359 | pthread_create(&t2, 0, thread2, 0);
|
|---|
| 1360 | pthread_create(&t3, 0, thread3, 0);
|
|---|
| [dba07d0] | 1361 |
|
|---|
| [aad342c] | 1362 | pthread_join(t1, 0);
|
|---|
| 1363 | pthread_join(t2, 0);
|
|---|
| 1364 | pthread_join(t3, 0);
|
|---|
| [dba07d0] | 1365 |
|
|---|
| 1366 | return 0;
|
|---|
| 1367 | }
|
|---|