MCPcopy Index your code
hub / github.com/F-Stack/f-stack / gif_status

Function gif_status

tools/ifconfig/ifgif.c:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58static void gif_status(int);
59
60static void
61gif_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
80static void
81setgifopts(const char *val, int d, int s, const struct afswtch *afp)

Callers

nothing calls this directly

Calls 4

ioctl_vaFunction · 0.85
putcharFunction · 0.85
printbFunction · 0.70
ioctlFunction · 0.50

Tested by

no test coverage detected