MCPcopy Create free account
hub / github.com/acl-dev/acl / usage

Function usage

lib_fiber/cpp/src/fiber_server.cpp:978–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978static void usage(int argc, char * argv[])
979{
980 int i;
981 const char *service_name;
982
983 if (argc <= 0) {
984 acl_msg_fatal("%s(%d): argc(%d) invalid",
985 __FILE__, __LINE__, argc);
986 }
987
988 service_name = acl_safe_basename(argv[0]);
989
990 for (i = 0; i < argc; i++) {
991 acl_msg_info("argv[%d]: %s", i, argv[i]);
992 }
993
994 acl_msg_info("usage: %s -H[help]"
995 " -c [use chroot]"
996 " -n service_name"
997 " -s socket_count"
998 " -t transport"
999 " -u [use setgid initgroups setuid]"
1000 " -f conf_file"
1001 " -L listen_addrs",
1002 service_name);
1003}
1004
1005static int __first_name;
1006static va_list __ap_dest;

Callers 1

acl_fiber_server_mainFunction · 0.70

Calls 3

acl_msg_fatalFunction · 0.85
acl_safe_basenameFunction · 0.85
acl_msg_infoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…