Lines Matching full:gid
15 usage: groupadd [-S] [-g GID] [USER] GROUP
19 -g GID Group id
30 long gid; in GLOBALS() argument
33 /* Add a new group to the system, if GID is given then that is validated
34 * to be free, else a free GID is choosen by self.
43 if (TT.gid > INT_MAX) error_exit("gid should be less than '%d' ", INT_MAX);
44 if (getgrgid(TT.gid)) error_exit("group '%ld' is in use", TT.gid);
46 if (FLAG(S)) TT.gid = CFG_TOYBOX_UID_SYS;
47 else TT.gid = CFG_TOYBOX_UID_USR;
48 //find unused gid
49 while (getgrgid(TT.gid)) TT.gid++;
52 entry = xmprintf("%s:%s:%ld:", *toys.optargs, "x", TT.gid);