Lines Matching defs:proto
332 struct direct proto, *newdirp;
368 proto.d_ino = iswap32(idesc->id_number);
370 proto.d_type = DT_DIR;
372 proto.d_type = 0;
373 proto.d_namlen = 1;
374 (void)strlcpy(proto.d_name, ".", sizeof(proto.d_name));
382 tmp = proto.d_type;
383 proto.d_type = proto.d_namlen;
384 proto.d_namlen = tmp;
386 entrysize = UFS_DIRSIZ(0, &proto, 0);
398 proto.d_reclen = dirp->d_reclen;
399 memmove(dirp, &proto, (size_t)entrysize);
408 proto.d_reclen = iswap16(entrysize);
409 memmove(dirp, &proto, (size_t)entrysize);
419 proto.d_ino = iswap32(inp->i_parent);
421 proto.d_type = DT_DIR;
423 proto.d_type = 0;
424 proto.d_namlen = 2;
425 (void)strlcpy(proto.d_name, "..", sizeof(proto.d_name));
433 tmp = proto.d_type;
434 proto.d_type = proto.d_namlen;
435 proto.d_namlen = tmp;
437 entrysize = UFS_DIRSIZ(0, &proto, 0);
442 proto.d_reclen = iswap16(iswap16(dirp->d_reclen) - n);
447 memset(dirp, 0, (size_t)iswap16(proto.d_reclen));
448 dirp->d_reclen = proto.d_reclen;
476 if (proto.d_ino == 0) {
482 inp->i_dotdot = proto.d_ino;
483 proto.d_reclen = dirp->d_reclen;
484 memmove(dirp, &proto, (size_t)entrysize);
492 if (proto.d_ino == 0) {
498 inp->i_dotdot = proto.d_ino;
500 proto.d_reclen = dirp->d_reclen;
501 memmove(dirp, &proto, (size_t)entrysize);
506 proto.d_reclen = entrysize;
507 memmove(dirp, &proto, (size_t)entrysize);