| 1 |
|
|---|
| 2 |
|
|---|
| 3 | ----------------------------------------
|
|---|
| 4 | checking for C compiler
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | ----------------------------------------
|
|---|
| 8 | checking for -Wl,-E switch
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | ----------------------------------------
|
|---|
| 12 | checking for gcc builtin atomic operations
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | ----------------------------------------
|
|---|
| 16 | checking for C99 variadic macros
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 | ----------------------------------------
|
|---|
| 20 | checking for gcc variadic macros
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | ----------------------------------------
|
|---|
| 24 | checking for gcc builtin 64 bit byteswap
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | ----------------------------------------
|
|---|
| 28 | checking for unistd.h
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | ----------------------------------------
|
|---|
| 32 | checking for inttypes.h
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | ----------------------------------------
|
|---|
| 36 | checking for limits.h
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | ----------------------------------------
|
|---|
| 40 | checking for sys/filio.h
|
|---|
| 41 |
|
|---|
| 42 | objs/autotest.c:3:10: fatal error: 'sys/filio.h' file not found
|
|---|
| 43 | #include <sys/filio.h>
|
|---|
| 44 | ^~~~~~~~~~~~~
|
|---|
| 45 | 1 error generated.
|
|---|
| 46 | ----------
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | #include <sys/filio.h>
|
|---|
| 50 |
|
|---|
| 51 | int main(void) {
|
|---|
| 52 | return 0;
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | ----------
|
|---|
| 56 | cc -o objs/autotest objs/autotest.c
|
|---|
| 57 | ----------
|
|---|
| 58 |
|
|---|
| 59 | ----------------------------------------
|
|---|
| 60 | checking for sys/param.h
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | ----------------------------------------
|
|---|
| 64 | checking for sys/mount.h
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | ----------------------------------------
|
|---|
| 68 | checking for sys/statvfs.h
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | ----------------------------------------
|
|---|
| 72 | checking for crypt.h
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | ----------------------------------------
|
|---|
| 76 | checking for epoll
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 | ----------------------------------------
|
|---|
| 80 | checking for EPOLLRDHUP
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 | ----------------------------------------
|
|---|
| 84 | checking for EPOLLEXCLUSIVE
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 | ----------------------------------------
|
|---|
| 88 | checking for O_PATH
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | ----------------------------------------
|
|---|
| 92 | checking for sendfile()
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | ----------------------------------------
|
|---|
| 96 | checking for sendfile64()
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | ----------------------------------------
|
|---|
| 100 | checking for sys/prctl.h
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 | ----------------------------------------
|
|---|
| 104 | checking for prctl(PR_SET_DUMPABLE)
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 | ----------------------------------------
|
|---|
| 108 | checking for prctl(PR_SET_KEEPCAPS)
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | ----------------------------------------
|
|---|
| 112 | checking for capabilities
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 | ----------------------------------------
|
|---|
| 116 | checking for crypt_r()
|
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 | ----------------------------------------
|
|---|
| 120 | checking for sys/vfs.h
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 | ----------------------------------------
|
|---|
| 124 | checking for poll()
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | ----------------------------------------
|
|---|
| 128 | checking for /dev/poll
|
|---|
| 129 |
|
|---|
| 130 | objs/autotest.c:4:10: fatal error: 'sys/devpoll.h' file not found
|
|---|
| 131 | #include <sys/devpoll.h>
|
|---|
| 132 | ^~~~~~~~~~~~~~~
|
|---|
| 133 | 1 error generated.
|
|---|
| 134 | ----------
|
|---|
| 135 |
|
|---|
| 136 | #include <sys/types.h>
|
|---|
| 137 | #include <unistd.h>
|
|---|
| 138 | #include <sys/devpoll.h>
|
|---|
| 139 |
|
|---|
| 140 | int main(void) {
|
|---|
| 141 | int n, dp; struct dvpoll dvp;
|
|---|
| 142 | dp = 0;
|
|---|
| 143 | dvp.dp_fds = NULL;
|
|---|
| 144 | dvp.dp_nfds = 0;
|
|---|
| 145 | dvp.dp_timeout = 0;
|
|---|
| 146 | n = ioctl(dp, DP_POLL, &dvp);
|
|---|
| 147 | if (n == -1) return 1;
|
|---|
| 148 | return 0;
|
|---|
| 149 | }
|
|---|
| 150 |
|
|---|
| 151 | ----------
|
|---|
| 152 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 153 | ----------
|
|---|
| 154 |
|
|---|
| 155 | ----------------------------------------
|
|---|
| 156 | checking for kqueue
|
|---|
| 157 |
|
|---|
| 158 | objs/autotest.c:4:10: fatal error: 'sys/event.h' file not found
|
|---|
| 159 | #include <sys/event.h>
|
|---|
| 160 | ^~~~~~~~~~~~~
|
|---|
| 161 | 1 error generated.
|
|---|
| 162 | ----------
|
|---|
| 163 |
|
|---|
| 164 | #include <sys/types.h>
|
|---|
| 165 | #include <unistd.h>
|
|---|
| 166 | #include <sys/event.h>
|
|---|
| 167 |
|
|---|
| 168 | int main(void) {
|
|---|
| 169 | (void) kqueue();
|
|---|
| 170 | return 0;
|
|---|
| 171 | }
|
|---|
| 172 |
|
|---|
| 173 | ----------
|
|---|
| 174 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 175 | ----------
|
|---|
| 176 |
|
|---|
| 177 | ----------------------------------------
|
|---|
| 178 | checking for crypt()
|
|---|
| 179 |
|
|---|
| 180 | /tmp/autotest-1d7920.o: In function `main':
|
|---|
| 181 | autotest.c:(.text+0x24): undefined reference to `crypt'
|
|---|
| 182 | clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
|
|---|
| 183 | ----------
|
|---|
| 184 |
|
|---|
| 185 | #include <sys/types.h>
|
|---|
| 186 | #include <unistd.h>
|
|---|
| 187 |
|
|---|
| 188 |
|
|---|
| 189 | int main(void) {
|
|---|
| 190 | crypt("test", "salt");;
|
|---|
| 191 | return 0;
|
|---|
| 192 | }
|
|---|
| 193 |
|
|---|
| 194 | ----------
|
|---|
| 195 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 196 | ----------
|
|---|
| 197 |
|
|---|
| 198 | ----------------------------------------
|
|---|
| 199 | checking for crypt() in libcrypt
|
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 | ----------------------------------------
|
|---|
| 203 | checking for F_READAHEAD
|
|---|
| 204 |
|
|---|
| 205 | objs/autotest.c:7:14: error: use of undeclared identifier 'F_READAHEAD'
|
|---|
| 206 | fcntl(0, F_READAHEAD, 1);;
|
|---|
| 207 | ^
|
|---|
| 208 | 1 error generated.
|
|---|
| 209 | ----------
|
|---|
| 210 |
|
|---|
| 211 | #include <sys/types.h>
|
|---|
| 212 | #include <unistd.h>
|
|---|
| 213 | #include <fcntl.h>
|
|---|
| 214 |
|
|---|
| 215 | int main(void) {
|
|---|
| 216 | fcntl(0, F_READAHEAD, 1);;
|
|---|
| 217 | return 0;
|
|---|
| 218 | }
|
|---|
| 219 |
|
|---|
| 220 | ----------
|
|---|
| 221 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 222 | ----------
|
|---|
| 223 |
|
|---|
| 224 | ----------------------------------------
|
|---|
| 225 | checking for posix_fadvise()
|
|---|
| 226 |
|
|---|
| 227 |
|
|---|
| 228 | ----------------------------------------
|
|---|
| 229 | checking for O_DIRECT
|
|---|
| 230 |
|
|---|
| 231 |
|
|---|
| 232 | ----------------------------------------
|
|---|
| 233 | checking for F_NOCACHE
|
|---|
| 234 |
|
|---|
| 235 | objs/autotest.c:7:14: error: use of undeclared identifier 'F_NOCACHE'
|
|---|
| 236 | fcntl(0, F_NOCACHE, 1);;
|
|---|
| 237 | ^
|
|---|
| 238 | 1 error generated.
|
|---|
| 239 | ----------
|
|---|
| 240 |
|
|---|
| 241 | #include <sys/types.h>
|
|---|
| 242 | #include <unistd.h>
|
|---|
| 243 | #include <fcntl.h>
|
|---|
| 244 |
|
|---|
| 245 | int main(void) {
|
|---|
| 246 | fcntl(0, F_NOCACHE, 1);;
|
|---|
| 247 | return 0;
|
|---|
| 248 | }
|
|---|
| 249 |
|
|---|
| 250 | ----------
|
|---|
| 251 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 252 | ----------
|
|---|
| 253 |
|
|---|
| 254 | ----------------------------------------
|
|---|
| 255 | checking for directio()
|
|---|
| 256 |
|
|---|
| 257 | objs/autotest.c:8:5: warning: implicit declaration of function 'directio' is invalid in C99 [-Wimplicit-function-declaration]
|
|---|
| 258 | directio(0, DIRECTIO_ON);;
|
|---|
| 259 | ^
|
|---|
| 260 | objs/autotest.c:8:17: error: use of undeclared identifier 'DIRECTIO_ON'
|
|---|
| 261 | directio(0, DIRECTIO_ON);;
|
|---|
| 262 | ^
|
|---|
| 263 | 1 warning and 1 error generated.
|
|---|
| 264 | ----------
|
|---|
| 265 |
|
|---|
| 266 | #include <sys/types.h>
|
|---|
| 267 | #include <unistd.h>
|
|---|
| 268 | #include <sys/types.h>
|
|---|
| 269 | #include <sys/fcntl.h>
|
|---|
| 270 |
|
|---|
| 271 | int main(void) {
|
|---|
| 272 | directio(0, DIRECTIO_ON);;
|
|---|
| 273 | return 0;
|
|---|
| 274 | }
|
|---|
| 275 |
|
|---|
| 276 | ----------
|
|---|
| 277 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 278 | ----------
|
|---|
| 279 |
|
|---|
| 280 | ----------------------------------------
|
|---|
| 281 | checking for statfs()
|
|---|
| 282 |
|
|---|
| 283 |
|
|---|
| 284 | ----------------------------------------
|
|---|
| 285 | checking for statvfs()
|
|---|
| 286 |
|
|---|
| 287 |
|
|---|
| 288 | ----------------------------------------
|
|---|
| 289 | checking for dlopen()
|
|---|
| 290 |
|
|---|
| 291 | /tmp/autotest-596907.o: In function `main':
|
|---|
| 292 | autotest.c:(.text+0x19): undefined reference to `dlopen'
|
|---|
| 293 | autotest.c:(.text+0x30): undefined reference to `dlsym'
|
|---|
| 294 | clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
|
|---|
| 295 | ----------
|
|---|
| 296 |
|
|---|
| 297 | #include <sys/types.h>
|
|---|
| 298 | #include <unistd.h>
|
|---|
| 299 | #include <dlfcn.h>
|
|---|
| 300 |
|
|---|
| 301 | int main(void) {
|
|---|
| 302 | dlopen(NULL, RTLD_NOW | RTLD_GLOBAL); dlsym(NULL, "");
|
|---|
| 303 | return 0;
|
|---|
| 304 | }
|
|---|
| 305 |
|
|---|
| 306 | ----------
|
|---|
| 307 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 308 | ----------
|
|---|
| 309 |
|
|---|
| 310 | ----------------------------------------
|
|---|
| 311 | checking for dlopen() in libdl
|
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 | ----------------------------------------
|
|---|
| 315 | checking for sched_yield()
|
|---|
| 316 |
|
|---|
| 317 |
|
|---|
| 318 | ----------------------------------------
|
|---|
| 319 | checking for sched_setaffinity()
|
|---|
| 320 |
|
|---|
| 321 |
|
|---|
| 322 | ----------------------------------------
|
|---|
| 323 | checking for SO_SETFIB
|
|---|
| 324 |
|
|---|
| 325 | objs/autotest.c:7:31: error: use of undeclared identifier 'SO_SETFIB'
|
|---|
| 326 | setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 0);
|
|---|
| 327 | ^
|
|---|
| 328 | 1 error generated.
|
|---|
| 329 | ----------
|
|---|
| 330 |
|
|---|
| 331 | #include <sys/types.h>
|
|---|
| 332 | #include <unistd.h>
|
|---|
| 333 | #include <sys/socket.h>
|
|---|
| 334 |
|
|---|
| 335 | int main(void) {
|
|---|
| 336 | setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 0);
|
|---|
| 337 | return 0;
|
|---|
| 338 | }
|
|---|
| 339 |
|
|---|
| 340 | ----------
|
|---|
| 341 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 342 | ----------
|
|---|
| 343 |
|
|---|
| 344 | ----------------------------------------
|
|---|
| 345 | checking for SO_REUSEPORT
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 | ----------------------------------------
|
|---|
| 349 | checking for SO_ACCEPTFILTER
|
|---|
| 350 |
|
|---|
| 351 | objs/autotest.c:7:31: error: use of undeclared identifier 'SO_ACCEPTFILTER'
|
|---|
| 352 | setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
|
|---|
| 353 | ^
|
|---|
| 354 | 1 error generated.
|
|---|
| 355 | ----------
|
|---|
| 356 |
|
|---|
| 357 | #include <sys/types.h>
|
|---|
| 358 | #include <unistd.h>
|
|---|
| 359 | #include <sys/socket.h>
|
|---|
| 360 |
|
|---|
| 361 | int main(void) {
|
|---|
| 362 | setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
|
|---|
| 363 | return 0;
|
|---|
| 364 | }
|
|---|
| 365 |
|
|---|
| 366 | ----------
|
|---|
| 367 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 368 | ----------
|
|---|
| 369 |
|
|---|
| 370 | ----------------------------------------
|
|---|
| 371 | checking for SO_BINDANY
|
|---|
| 372 |
|
|---|
| 373 | objs/autotest.c:7:31: error: use of undeclared identifier 'SO_BINDANY'
|
|---|
| 374 | setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0);
|
|---|
| 375 | ^
|
|---|
| 376 | 1 error generated.
|
|---|
| 377 | ----------
|
|---|
| 378 |
|
|---|
| 379 | #include <sys/types.h>
|
|---|
| 380 | #include <unistd.h>
|
|---|
| 381 | #include <sys/socket.h>
|
|---|
| 382 |
|
|---|
| 383 | int main(void) {
|
|---|
| 384 | setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0);
|
|---|
| 385 | return 0;
|
|---|
| 386 | }
|
|---|
| 387 |
|
|---|
| 388 | ----------
|
|---|
| 389 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 390 | ----------
|
|---|
| 391 |
|
|---|
| 392 | ----------------------------------------
|
|---|
| 393 | checking for IP_TRANSPARENT
|
|---|
| 394 |
|
|---|
| 395 |
|
|---|
| 396 | ----------------------------------------
|
|---|
| 397 | checking for IP_BINDANY
|
|---|
| 398 |
|
|---|
| 399 | objs/autotest.c:8:31: error: use of undeclared identifier 'IP_BINDANY'
|
|---|
| 400 | setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0);
|
|---|
| 401 | ^
|
|---|
| 402 | 1 error generated.
|
|---|
| 403 | ----------
|
|---|
| 404 |
|
|---|
| 405 | #include <sys/types.h>
|
|---|
| 406 | #include <unistd.h>
|
|---|
| 407 | #include <sys/socket.h>
|
|---|
| 408 | #include <netinet/in.h>
|
|---|
| 409 |
|
|---|
| 410 | int main(void) {
|
|---|
| 411 | setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0);
|
|---|
| 412 | return 0;
|
|---|
| 413 | }
|
|---|
| 414 |
|
|---|
| 415 | ----------
|
|---|
| 416 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 417 | ----------
|
|---|
| 418 |
|
|---|
| 419 | ----------------------------------------
|
|---|
| 420 | checking for IP_BIND_ADDRESS_NO_PORT
|
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 | ----------------------------------------
|
|---|
| 424 | checking for IP_RECVDSTADDR
|
|---|
| 425 |
|
|---|
| 426 | objs/autotest.c:8:31: error: use of undeclared identifier 'IP_RECVDSTADDR'
|
|---|
| 427 | setsockopt(0, IPPROTO_IP, IP_RECVDSTADDR, NULL, 0);
|
|---|
| 428 | ^
|
|---|
| 429 | 1 error generated.
|
|---|
| 430 | ----------
|
|---|
| 431 |
|
|---|
| 432 | #include <sys/types.h>
|
|---|
| 433 | #include <unistd.h>
|
|---|
| 434 | #include <sys/socket.h>
|
|---|
| 435 | #include <netinet/in.h>
|
|---|
| 436 |
|
|---|
| 437 | int main(void) {
|
|---|
| 438 | setsockopt(0, IPPROTO_IP, IP_RECVDSTADDR, NULL, 0);
|
|---|
| 439 | return 0;
|
|---|
| 440 | }
|
|---|
| 441 |
|
|---|
| 442 | ----------
|
|---|
| 443 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 444 | ----------
|
|---|
| 445 |
|
|---|
| 446 | ----------------------------------------
|
|---|
| 447 | checking for IP_SENDSRCADDR
|
|---|
| 448 |
|
|---|
| 449 | objs/autotest.c:8:31: error: use of undeclared identifier 'IP_SENDSRCADDR'
|
|---|
| 450 | setsockopt(0, IPPROTO_IP, IP_SENDSRCADDR, NULL, 0);
|
|---|
| 451 | ^
|
|---|
| 452 | 1 error generated.
|
|---|
| 453 | ----------
|
|---|
| 454 |
|
|---|
| 455 | #include <sys/types.h>
|
|---|
| 456 | #include <unistd.h>
|
|---|
| 457 | #include <sys/socket.h>
|
|---|
| 458 | #include <netinet/in.h>
|
|---|
| 459 |
|
|---|
| 460 | int main(void) {
|
|---|
| 461 | setsockopt(0, IPPROTO_IP, IP_SENDSRCADDR, NULL, 0);
|
|---|
| 462 | return 0;
|
|---|
| 463 | }
|
|---|
| 464 |
|
|---|
| 465 | ----------
|
|---|
| 466 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 467 | ----------
|
|---|
| 468 |
|
|---|
| 469 | ----------------------------------------
|
|---|
| 470 | checking for IP_PKTINFO
|
|---|
| 471 |
|
|---|
| 472 |
|
|---|
| 473 | ----------------------------------------
|
|---|
| 474 | checking for IPV6_RECVPKTINFO
|
|---|
| 475 |
|
|---|
| 476 |
|
|---|
| 477 | ----------------------------------------
|
|---|
| 478 | checking for TCP_DEFER_ACCEPT
|
|---|
| 479 |
|
|---|
| 480 |
|
|---|
| 481 | ----------------------------------------
|
|---|
| 482 | checking for TCP_KEEPIDLE
|
|---|
| 483 |
|
|---|
| 484 |
|
|---|
| 485 | ----------------------------------------
|
|---|
| 486 | checking for TCP_FASTOPEN
|
|---|
| 487 |
|
|---|
| 488 |
|
|---|
| 489 | ----------------------------------------
|
|---|
| 490 | checking for TCP_INFO
|
|---|
| 491 |
|
|---|
| 492 |
|
|---|
| 493 | ----------------------------------------
|
|---|
| 494 | checking for accept4()
|
|---|
| 495 |
|
|---|
| 496 |
|
|---|
| 497 | ----------------------------------------
|
|---|
| 498 | checking for eventfd()
|
|---|
| 499 |
|
|---|
| 500 |
|
|---|
| 501 | ----------------------------------------
|
|---|
| 502 | checking for int size
|
|---|
| 503 |
|
|---|
| 504 |
|
|---|
| 505 | ----------------------------------------
|
|---|
| 506 | checking for long size
|
|---|
| 507 |
|
|---|
| 508 |
|
|---|
| 509 | ----------------------------------------
|
|---|
| 510 | checking for long long size
|
|---|
| 511 |
|
|---|
| 512 |
|
|---|
| 513 | ----------------------------------------
|
|---|
| 514 | checking for void * size
|
|---|
| 515 |
|
|---|
| 516 |
|
|---|
| 517 | ----------------------------------------
|
|---|
| 518 | checking for uint32_t
|
|---|
| 519 |
|
|---|
| 520 |
|
|---|
| 521 | ----------------------------------------
|
|---|
| 522 | checking for uint64_t
|
|---|
| 523 |
|
|---|
| 524 |
|
|---|
| 525 | ----------------------------------------
|
|---|
| 526 | checking for sig_atomic_t
|
|---|
| 527 |
|
|---|
| 528 |
|
|---|
| 529 | ----------------------------------------
|
|---|
| 530 | checking for sig_atomic_t size
|
|---|
| 531 |
|
|---|
| 532 |
|
|---|
| 533 | ----------------------------------------
|
|---|
| 534 | checking for socklen_t
|
|---|
| 535 |
|
|---|
| 536 |
|
|---|
| 537 | ----------------------------------------
|
|---|
| 538 | checking for in_addr_t
|
|---|
| 539 |
|
|---|
| 540 |
|
|---|
| 541 | ----------------------------------------
|
|---|
| 542 | checking for in_port_t
|
|---|
| 543 |
|
|---|
| 544 |
|
|---|
| 545 | ----------------------------------------
|
|---|
| 546 | checking for rlim_t
|
|---|
| 547 |
|
|---|
| 548 |
|
|---|
| 549 | ----------------------------------------
|
|---|
| 550 | checking for uintptr_t
|
|---|
| 551 |
|
|---|
| 552 |
|
|---|
| 553 | ----------------------------------------
|
|---|
| 554 | checking for system byte ordering
|
|---|
| 555 |
|
|---|
| 556 |
|
|---|
| 557 | ----------------------------------------
|
|---|
| 558 | checking for size_t size
|
|---|
| 559 |
|
|---|
| 560 |
|
|---|
| 561 | ----------------------------------------
|
|---|
| 562 | checking for off_t size
|
|---|
| 563 |
|
|---|
| 564 |
|
|---|
| 565 | ----------------------------------------
|
|---|
| 566 | checking for time_t size
|
|---|
| 567 |
|
|---|
| 568 |
|
|---|
| 569 | ----------------------------------------
|
|---|
| 570 | checking for AF_INET6
|
|---|
| 571 |
|
|---|
| 572 |
|
|---|
| 573 | ----------------------------------------
|
|---|
| 574 | checking for setproctitle()
|
|---|
| 575 |
|
|---|
| 576 | objs/autotest.c:7:5: warning: implicit declaration of function 'setproctitle' is invalid in C99 [-Wimplicit-function-declaration]
|
|---|
| 577 | setproctitle("test");;
|
|---|
| 578 | ^
|
|---|
| 579 | 1 warning generated.
|
|---|
| 580 | /tmp/autotest-96b5c8.o: In function `main':
|
|---|
| 581 | autotest.c:(.text+0x1c): undefined reference to `setproctitle'
|
|---|
| 582 | clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
|
|---|
| 583 | ----------
|
|---|
| 584 |
|
|---|
| 585 | #include <sys/types.h>
|
|---|
| 586 | #include <unistd.h>
|
|---|
| 587 | #include <stdlib.h>
|
|---|
| 588 |
|
|---|
| 589 | int main(void) {
|
|---|
| 590 | setproctitle("test");;
|
|---|
| 591 | return 0;
|
|---|
| 592 | }
|
|---|
| 593 |
|
|---|
| 594 | ----------
|
|---|
| 595 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 596 | ----------
|
|---|
| 597 |
|
|---|
| 598 | ----------------------------------------
|
|---|
| 599 | checking for pread()
|
|---|
| 600 |
|
|---|
| 601 |
|
|---|
| 602 | ----------------------------------------
|
|---|
| 603 | checking for pwrite()
|
|---|
| 604 |
|
|---|
| 605 |
|
|---|
| 606 | ----------------------------------------
|
|---|
| 607 | checking for pwritev()
|
|---|
| 608 |
|
|---|
| 609 |
|
|---|
| 610 | ----------------------------------------
|
|---|
| 611 | checking for sys_nerr
|
|---|
| 612 |
|
|---|
| 613 | /tmp/autotest-50a2c9.o: In function `main':
|
|---|
| 614 | autotest.c:(.text+0x1c): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
|
|---|
| 615 | 135
|
|---|
| 616 | ----------------------------------------
|
|---|
| 617 | checking for localtime_r()
|
|---|
| 618 |
|
|---|
| 619 |
|
|---|
| 620 | ----------------------------------------
|
|---|
| 621 | checking for clock_gettime(CLOCK_MONOTONIC)
|
|---|
| 622 |
|
|---|
| 623 |
|
|---|
| 624 | ----------------------------------------
|
|---|
| 625 | checking for posix_memalign()
|
|---|
| 626 |
|
|---|
| 627 |
|
|---|
| 628 | ----------------------------------------
|
|---|
| 629 | checking for memalign()
|
|---|
| 630 |
|
|---|
| 631 |
|
|---|
| 632 | ----------------------------------------
|
|---|
| 633 | checking for mmap(MAP_ANON|MAP_SHARED)
|
|---|
| 634 |
|
|---|
| 635 |
|
|---|
| 636 | ----------------------------------------
|
|---|
| 637 | checking for mmap("/dev/zero", MAP_SHARED)
|
|---|
| 638 |
|
|---|
| 639 |
|
|---|
| 640 | ----------------------------------------
|
|---|
| 641 | checking for System V shared memory
|
|---|
| 642 |
|
|---|
| 643 |
|
|---|
| 644 | ----------------------------------------
|
|---|
| 645 | checking for POSIX semaphores
|
|---|
| 646 |
|
|---|
| 647 | /tmp/autotest-cdb30b.o: In function `main':
|
|---|
| 648 | autotest.c:(.text+0x1b): undefined reference to `sem_init'
|
|---|
| 649 | autotest.c:(.text+0x39): undefined reference to `sem_destroy'
|
|---|
| 650 | clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
|
|---|
| 651 | ----------
|
|---|
| 652 |
|
|---|
| 653 | #include <sys/types.h>
|
|---|
| 654 | #include <unistd.h>
|
|---|
| 655 | #include <semaphore.h>
|
|---|
| 656 |
|
|---|
| 657 | int main(void) {
|
|---|
| 658 | sem_t sem;
|
|---|
| 659 | if (sem_init(&sem, 1, 0) == -1) return 1;
|
|---|
| 660 | sem_destroy(&sem);;
|
|---|
| 661 | return 0;
|
|---|
| 662 | }
|
|---|
| 663 |
|
|---|
| 664 | ----------
|
|---|
| 665 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 666 | ----------
|
|---|
| 667 |
|
|---|
| 668 | ----------------------------------------
|
|---|
| 669 | checking for POSIX semaphores in libpthread
|
|---|
| 670 |
|
|---|
| 671 |
|
|---|
| 672 | ----------------------------------------
|
|---|
| 673 | checking for struct msghdr.msg_control
|
|---|
| 674 |
|
|---|
| 675 |
|
|---|
| 676 | ----------------------------------------
|
|---|
| 677 | checking for ioctl(FIONBIO)
|
|---|
| 678 |
|
|---|
| 679 |
|
|---|
| 680 | ----------------------------------------
|
|---|
| 681 | checking for struct tm.tm_gmtoff
|
|---|
| 682 |
|
|---|
| 683 |
|
|---|
| 684 | ----------------------------------------
|
|---|
| 685 | checking for struct dirent.d_namlen
|
|---|
| 686 |
|
|---|
| 687 | objs/autotest.c:8:29: error: no member named 'd_namlen' in 'struct dirent'; did you mean 'd_name'?
|
|---|
| 688 | struct dirent dir; dir.d_namlen = 0;
|
|---|
| 689 | ^~~~~~~~
|
|---|
| 690 | d_name
|
|---|
| 691 | /usr/include/bits/dirent.h:33:10: note: 'd_name' declared here
|
|---|
| 692 | char d_name[256]; /* We must not include limits.h! */
|
|---|
| 693 | ^
|
|---|
| 694 | objs/autotest.c:8:38: error: array type 'char [256]' is not assignable
|
|---|
| 695 | struct dirent dir; dir.d_namlen = 0;
|
|---|
| 696 | ~~~~~~~~~~~~ ^
|
|---|
| 697 | objs/autotest.c:9:42: error: no member named 'd_namlen' in 'struct dirent'; did you mean 'd_name'?
|
|---|
| 698 | printf("%d", (int) dir.d_namlen);
|
|---|
| 699 | ^~~~~~~~
|
|---|
| 700 | d_name
|
|---|
| 701 | /usr/include/bits/dirent.h:33:10: note: 'd_name' declared here
|
|---|
| 702 | char d_name[256]; /* We must not include limits.h! */
|
|---|
| 703 | ^
|
|---|
| 704 | 3 errors generated.
|
|---|
| 705 | ----------
|
|---|
| 706 |
|
|---|
| 707 | #include <sys/types.h>
|
|---|
| 708 | #include <unistd.h>
|
|---|
| 709 | #include <dirent.h>
|
|---|
| 710 | #include <stdio.h>
|
|---|
| 711 |
|
|---|
| 712 | int main(void) {
|
|---|
| 713 | struct dirent dir; dir.d_namlen = 0;
|
|---|
| 714 | printf("%d", (int) dir.d_namlen);
|
|---|
| 715 | return 0;
|
|---|
| 716 | }
|
|---|
| 717 |
|
|---|
| 718 | ----------
|
|---|
| 719 | cc -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
|
|---|
| 720 | ----------
|
|---|
| 721 |
|
|---|
| 722 | ----------------------------------------
|
|---|
| 723 | checking for struct dirent.d_type
|
|---|
| 724 |
|
|---|
| 725 |
|
|---|
| 726 | ----------------------------------------
|
|---|
| 727 | checking for sysconf(_SC_NPROCESSORS_ONLN)
|
|---|
| 728 |
|
|---|
| 729 |
|
|---|
| 730 | ----------------------------------------
|
|---|
| 731 | checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE)
|
|---|
| 732 |
|
|---|
| 733 |
|
|---|
| 734 | ----------------------------------------
|
|---|
| 735 | checking for openat(), fstatat()
|
|---|
| 736 |
|
|---|
| 737 |
|
|---|
| 738 | ----------------------------------------
|
|---|
| 739 | checking for getaddrinfo()
|
|---|
| 740 |
|
|---|
| 741 |
|
|---|
| 742 | ----------------------------------------
|
|---|
| 743 | checking for PCRE library
|
|---|
| 744 |
|
|---|
| 745 |
|
|---|
| 746 | ----------------------------------------
|
|---|
| 747 | checking for PCRE JIT support
|
|---|
| 748 |
|
|---|
| 749 |
|
|---|
| 750 | ----------------------------------------
|
|---|
| 751 | checking for zlib library
|
|---|
| 752 |
|
|---|