MCPcopy Create free account
hub / github.com/eggert/tz / mode_option

Function mode_option

zic.c:795–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793static mode_t const no_mode = -1;
794static mode_t output_mode = -1;
795
796static mode_t
797mode_option(char const *arg)
798{
799#if HAVE_SETMODE
800 void *set = setmode(arg);
801 if (set) {
802 mode_t mode = getmode(set, CREAT_PERMS);
803 free(set);
804 return mode;
805 }
806#endif
807 return arg2num(arg, 8, min(MODE_T_MAX, ULONG_MAX),
808 N_("%s: -m '%s': invalid mode\n"));
809}
810
811static int

Callers 1

mainFunction · 0.85

Calls 1

arg2numFunction · 0.85

Tested by

no test coverage detected