Lines Matching defs:item

4193  *		Get a single mapping item from buffer
4197 * Returns pointer to item, or NULL when there is no more
4209 struct MAPLIST *item;
4214 item = (struct MAPLIST*)ntfs_malloc(sizeof(struct MAPLIST));
4215 if (item) {
4221 item->maptext[dst++] = buf[src];
4231 item->maptext[dst] = '\0';
4234 } while (*psize && ((item->maptext[0] == '#') || !gotend));
4238 item->uidstr = item->maptext;
4239 item->gidstr = strchr(item->uidstr, ':');
4240 if (item->gidstr) {
4241 pu = item->gidstr++;
4242 item->sidstr = strchr(item->gidstr, ':');
4243 if (item->sidstr) {
4244 pg = item->sidstr++;
4245 q = strchr(item->sidstr, ':');
4252 ntfs_log_early_error("Bad mapping item \"%s\"\n",
4253 item->maptext);
4254 free(item);
4255 item = (struct MAPLIST*)NULL;
4258 free(item); /* free unused item */
4259 item = (struct MAPLIST*)NULL;
4263 return (item);
4284 struct MAPLIST *item;
4298 item = getmappingitem(reader, fileid, &offs,
4300 if (item) {
4301 item->next = (struct MAPLIST*)NULL;
4303 lastitem->next = item;
4305 firstitem = item;
4306 lastitem = item;
4308 } while (item);
4335 /* unchain item and free */
4343 /* unchain item and free */
4361 struct MAPLIST *item;
4371 for (item = firstitem; item; item = item->next) {
4372 if ((item->uidstr[0] >= '0') && (item->uidstr[0] <= '9'))
4373 uid = atoi(item->uidstr);
4376 if (item->uidstr[0]) {
4377 pwd = getpwnam(item->uidstr);
4382 item->uidstr);
4390 || (!item->uidstr[0] && !item->gidstr[0])) {
4391 sid = encodesid(item->sidstr);
4394 item->sidstr);
4398 if (sid && !item->uidstr[0] && !item->gidstr[0]
4401 item->sidstr);
4439 struct MAPLIST *item;
4453 for (item = firstitem; item; item = item->next) {
4454 secondstep = (item->uidstr[0] != '\0')
4455 || !item->gidstr[0];
4457 if ((item->gidstr[0] >= '0')
4458 && (item->gidstr[0] <= '9'))
4459 gid = atoi(item->gidstr);
4462 if (item->gidstr[0]) {
4463 grp = getgrnam(item->gidstr);
4468 item->gidstr);
4477 || (!item->uidstr[0] && !item->gidstr[0]))) {
4478 sid = encodesid(item->sidstr);
4479 if (sid && !item->uidstr[0] && !item->gidstr[0]