Lines Matching defs:nt
428 scripting_fprintf(f, "\t:nc#%d:nt#%d:ns#%d:\\\n",
672 struct dl_custom_ptype *nt;
674 nt = realloc(dl_custom_ptypes, dl_custom_ptype_count+1);
675 if (nt == NULL)
677 dl_custom_ptypes = nt;
678 nt = dl_custom_ptypes + dl_custom_ptype_count;
680 memset(nt, 0, sizeof(*nt));
681 nt->type = type;
682 snprintf(nt->short_desc, sizeof(nt->short_desc), "%u", type);
683 nt->short_desc[sizeof(nt->short_desc)-1] = 0;
684 snprintf(nt->description, sizeof(nt->description),
686 nt->description[sizeof(nt->description)-1] = 0;
687 nt->desc.generic_ptype = PT_unknown;
688 nt->desc.short_desc = nt->short_desc;
689 nt->desc.description = nt->description;
690 return &nt->desc;
727 size_t nt;
733 case PT_root: nt = FS_BSDFFS; break;
734 case PT_swap: nt = FS_SWAP; break;
737 nt = FS_MSDOS; break;
738 case PT_EXT2: nt = FS_EX2FS; break;
740 nt = FS_SYSVBFS; break;
741 default: nt = FS_UNUSED; break;
744 return disklabel_get_type(nt);