| 58 | static void gif_status(int); |
| 59 | |
| 60 | static void |
| 61 | gif_status(int s) |
| 62 | { |
| 63 | int opts; |
| 64 | |
| 65 | ifr.ifr_data = (caddr_t)&opts; |
| 66 | #ifndef FSTACK |
| 67 | if (ioctl(s, GIFGOPTS, &ifr) == -1) |
| 68 | #else |
| 69 | size_t offset = (char *)&(ifr.ifr_data) - (char *)&(ifr); |
| 70 | size_t clen = sizeof(int); |
| 71 | if (ioctl_va(s, GIFGOPTS, &ifr, 3, offset, ifr.ifr_data, clen) == -1) |
| 72 | #endif |
| 73 | return; |
| 74 | if (opts == 0) |
| 75 | return; |
| 76 | printb("\toptions", opts, GIFBITS); |
| 77 | putchar('\n'); |
| 78 | } |
| 79 | |
| 80 | static void |
| 81 | setgifopts(const char *val, int d, int s, const struct afswtch *afp) |