vlg_err(vlg, EXIT_FAILURE, "getrlimit(%s): %m\n", name);
vlg_err(vlg, EXIT_FAILURE, "getrlimit(RLIMIT_%s): %m\n", name);
static void opt_serv__sc_rlim_num(const char *name, int resource,                                  unsigned int num){  struct rlimit rlim[1];      if (getrlimit(resource, rlim) == -1)    vlg_err(vlg, EXIT_FAILURE, "getrlimit(%s): %m\n", name);  if (num == RLIM_INFINITY) /* only attempt upwards, if we are privilaged */  {    if ((rlim->rlim_max != RLIM_INFINITY) && !getuid())      rlim->rlim_max = num;  }  else  {    if ((num > rlim->rlim_max) && !getuid())      rlim->rlim_max = num;      if (num < rlim->rlim_max) /* can always do this ? */      rlim->rlim_max = num;  }    rlim->rlim_cur = rlim->rlim_max; /* upgrade soft to hard */    if (setrlimit(resource, rlim) == -1)    vlg_err(vlg, EXIT_FAILURE, "setrlimit(%s): %m\n", name);}