MCPcopy Create free account
hub / github.com/F-Stack/f-stack / Perror

Function Perror

tools/ifconfig/ifconfig.c:1602–1618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600}
1601
1602void
1603Perror(const char *cmd)
1604{
1605 switch (errno) {
1606
1607 case ENXIO:
1608 errx(1, "%s: no such interface", cmd);
1609 break;
1610
1611 case EPERM:
1612 errx(1, "%s: permission denied", cmd);
1613 break;
1614
1615 default:
1616 err(1, "%s", cmd);
1617 }
1618}
1619
1620/*
1621 * Print a value a la the %b format of the kernel's printf

Callers 4

ifconfigFunction · 0.85
getifflagsFunction · 0.85
setifflagsFunction · 0.85
setifcapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected