Lines Matching refs:attrbufptr

107 	void *attrbufptr = NULL;
180 MALLOC(attrbufptr, void *, maxattrblocksize, M_TEMP, M_WAITOK);
181 if (attrbufptr == NULL) {
185 attrptr = attrbufptr;
186 varptr = (char *)attrbufptr + fixedblocksize; /* Point to variable-length storage */
309 currattrbufsize = ((char *)varptr - (char *)attrbufptr);
322 *((u_int32_t *)attrbufptr) = currattrbufsize;
323 error = uiomove((caddr_t)attrbufptr, currattrbufsize, uio);
327 attrptr = attrbufptr;
329 varptr = (char *)attrbufptr + fixedblocksize;
406 if (attrbufptr)
407 FREE(attrbufptr, M_TEMP);
542 void *attrbufptr = *abp->ab_attrbufpp;
555 attrbufptr = *abp->ab_attrbufpp;
559 *((dev_t *)attrbufptr) = hfsmp->hfs_raw_dev;
560 attrbufptr = ((dev_t *)attrbufptr) + 1;
567 *((fsid_t *)attrbufptr) = fsid;
568 attrbufptr = ((fsid_t *)attrbufptr) + 1;
571 *((fsobj_type_t *)attrbufptr) = IFTOVT(cap->ca_mode);
572 attrbufptr = ((fsobj_type_t *)attrbufptr) + 1;
575 *((fsobj_tag_t *)attrbufptr) = VT_HFS;
576 attrbufptr = ((fsobj_tag_t *)attrbufptr) + 1;
591 ((fsobj_id_t *)attrbufptr)->fid_objno = cdp->cd_cnid;
592 ((fsobj_id_t *)attrbufptr)->fid_generation = 0;
593 attrbufptr = ((fsobj_id_t *)attrbufptr) + 1;
596 ((fsobj_id_t *)attrbufptr)->fid_objno = cdp->cd_cnid;
597 ((fsobj_id_t *)attrbufptr)->fid_generation = 0;
598 attrbufptr = ((fsobj_id_t *)attrbufptr) + 1;
601 ((fsobj_id_t *)attrbufptr)->fid_objno = cdp->cd_parentcnid;
602 ((fsobj_id_t *)attrbufptr)->fid_generation = 0;
603 attrbufptr = ((fsobj_id_t *)attrbufptr) + 1;
606 *((text_encoding_t *)attrbufptr) = cdp->cd_encoding;
607 attrbufptr = ((text_encoding_t *)attrbufptr) + 1;
611 ((struct user64_timespec *)attrbufptr)->tv_sec = cap->ca_itime;
612 ((struct user64_timespec *)attrbufptr)->tv_nsec = 0;
613 attrbufptr = ((struct user64_timespec *)attrbufptr) + 1;
616 ((struct user32_timespec *)attrbufptr)->tv_sec = cap->ca_itime;
617 ((struct user32_timespec *)attrbufptr)->tv_nsec = 0;
618 attrbufptr = ((struct user32_timespec *)attrbufptr) + 1;
623 ((struct user64_timespec *)attrbufptr)->tv_sec = cap->ca_mtime;
624 ((struct user64_timespec *)attrbufptr)->tv_nsec = 0;
625 attrbufptr = ((struct user64_timespec *)attrbufptr) + 1;
628 ((struct user32_timespec *)attrbufptr)->tv_sec = cap->ca_mtime;
629 ((struct user32_timespec *)attrbufptr)->tv_nsec = 0;
630 attrbufptr = ((struct user32_timespec *)attrbufptr) + 1;
635 ((struct user64_timespec *)attrbufptr)->tv_sec = cap->ca_ctime;
636 ((struct user64_timespec *)attrbufptr)->tv_nsec = 0;
637 attrbufptr = ((struct user64_timespec *)attrbufptr) + 1;
640 ((struct user32_timespec *)attrbufptr)->tv_sec = cap->ca_ctime;
641 ((struct user32_timespec *)attrbufptr)->tv_nsec = 0;
642 attrbufptr = ((struct user32_timespec *)attrbufptr) + 1;
647 ((struct user64_timespec *)attrbufptr)->tv_sec = cap->ca_atime;
648 ((struct user64_timespec *)attrbufptr)->tv_nsec = 0;
649 attrbufptr = ((struct user64_timespec *)attrbufptr) + 1;
652 ((struct user32_timespec *)attrbufptr)->tv_sec = cap->ca_atime;
653 ((struct user32_timespec *)attrbufptr)->tv_nsec = 0;
654 attrbufptr = ((struct user32_timespec *)attrbufptr) + 1;
659 ((struct user64_timespec *)attrbufptr)->tv_sec = cap->ca_btime;
660 ((struct user64_timespec *)attrbufptr)->tv_nsec = 0;
661 attrbufptr = ((struct user64_timespec *)attrbufptr) + 1;
664 ((struct user32_timespec *)attrbufptr)->tv_sec = cap->ca_btime;
665 ((struct user32_timespec *)attrbufptr)->tv_nsec = 0;
666 attrbufptr = ((struct user32_timespec *)attrbufptr) + 1;
671 bcopy(&cap->ca_finderinfo, attrbufptr, sizeof(u_int8_t) * 32);
672 finfo = (u_int8_t*)attrbufptr;
678 fip = (struct FndrFileInfo *)attrbufptr;
694 attrbufptr = (char *)attrbufptr + sizeof(u_int8_t) * 32;
706 *((uid_t *)attrbufptr) = nuid;
707 attrbufptr = ((uid_t *)attrbufptr) + 1;
720 *((gid_t *)attrbufptr) = ngid;
721 attrbufptr = ((gid_t *)attrbufptr) + 1;
731 *((u_int32_t *)attrbufptr) = (cap->ca_uid == UNKNOWNUID) ?
733 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
736 *((u_int32_t *)attrbufptr) = cap->ca_flags;
737 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
759 *((u_int32_t *)attrbufptr) = user_access;
760 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
763 *((u_int64_t *)attrbufptr) = cap->ca_fileid;
764 attrbufptr = ((u_int64_t *)attrbufptr) + 1;
767 *((u_int64_t *)attrbufptr) = cdp->cd_parentcnid;
768 attrbufptr = ((u_int64_t *)attrbufptr) + 1;
771 *abp->ab_attrbufpp = attrbufptr;
784 void *attrbufptr = *abp->ab_attrbufpp;
793 *((u_int32_t *)attrbufptr) = cattrp->ca_linkcount;
794 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
810 *((u_int32_t *)attrbufptr) = entries;
811 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
815 *((u_int32_t *)attrbufptr) = DIR_MNTSTATUS_MNTPOINT;
817 *((u_int32_t *)attrbufptr) = 0;
818 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
820 *abp->ab_attrbufpp = attrbufptr;
836 void *attrbufptr = *abp->ab_attrbufpp;
859 *((u_int32_t *)attrbufptr) = cattrp->ca_linkcount;
860 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
863 *((off_t *)attrbufptr) = totalsize;
864 attrbufptr = ((off_t *)attrbufptr) + 1;
867 *((off_t *)attrbufptr) =
869 attrbufptr = ((off_t *)attrbufptr) + 1;
872 *((u_int32_t *)attrbufptr) = hfsmp->hfs_logBlockSize;
873 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
876 *((u_int32_t *)attrbufptr) = hfsmp->vcbClpSiz;
877 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
881 *((u_int32_t *)attrbufptr) = (u_int32_t)cattrp->ca_rdev;
883 *((u_int32_t *)attrbufptr) = 0;
884 attrbufptr = ((u_int32_t *)attrbufptr) + 1;
888 *((off_t *)attrbufptr) = datasize;
889 attrbufptr = ((off_t *)attrbufptr) + 1;
901 *((off_t *)attrbufptr) = (off_t)rsrcfork->cf_blocks * (off_t)allocblksize;
902 attrbufptr = ((off_t *)attrbufptr) + 1;
905 *((off_t *)attrbufptr) = 0;
906 attrbufptr = ((off_t *)attrbufptr) + 1;
909 *((off_t *)attrbufptr) = 0;
910 attrbufptr = ((off_t *)attrbufptr) + 1;
917 *((off_t *)attrbufptr) = (off_t)datafork->cf_blocks * (off_t)allocblksize;
918 attrbufptr = ((off_t *)attrbufptr) + 1;
921 *((off_t *)attrbufptr) = rsrcfork->cf_size;
922 attrbufptr = ((off_t *)attrbufptr) + 1;
925 *((off_t *)attrbufptr) = (off_t)rsrcfork->cf_blocks * (off_t)allocblksize;
926 attrbufptr = ((off_t *)attrbufptr) + 1;
929 *abp->ab_attrbufpp = attrbufptr;