Lines Matching defs:gid
41 * * An "alt gid" that this user can create files with
42 * * An "invalid gid" that this user is not permitted to create
52 gid_t gid = 0;
64 failure("Couldn't create a file for gid testing.");
73 /* This loop stops when we wrap the gid or examine 10,000 gids. */
74 for (gid = 1, n = 1; gid == n && n < 10000 ; n++, gid++) {
75 if (fchown(fd, uid, gid) != 0) {
76 _invalid_gid = gid;
83 * default. This is the "alternate" gid.
86 for (gid = 0, n = 0; gid == n && n < 10000 ; n++, gid++) {
88 if (gid == (gid_t)_default_gid)
90 if (fchown(fd, uid, gid) == 0) {
91 _alt_gid = gid;
277 skipping("Current user can't test gid restore: must belong to more than one group.");