/src/usr.sbin/gspa/gspa/ |
gsp_gram.y | 78 line : label ID operands { statement($2, $3); } 80 | label 86 label : ID ':' { set_label($1); } label
|
/src/sbin/newfs_v7fs/ |
newfs_v7fs.h | 38 const char *label; member in struct:progress_arg
|
newfs_v7fs.c | 212 static char label[32]; local in function:progress 221 if (p->label) 222 strcpy(label, p->label); 230 progress_bar(cdev, label, Progress.total, PROGRESS_BAR_GRANULE);
|
/src/sys/compat/linux/common/ |
linux_blkio.c | 72 struct disklabel label; local in function:linux_ioctl_blkio 85 * fails, it may be a disk without label; try to get 86 * the default label and compute the size from it. 90 error = ioctlf(fp, DIOCGDINFO, &label); 93 size = label.d_nsectors * label.d_ntracks * 94 label.d_ncylinders; 100 error = ioctlf(fp, DIOCGDINFO, &label); 103 error = copyout(&label.d_secsize, SCARG(uap, data), 104 sizeof label.d_secsize) [all...] |
linux_hdio.c | 75 struct disklabel label; local in function:linux_ioctl_hdio 110 error = ioctlf(fp, DIOCGDINFO, &label); 118 hdg.heads = label.d_ntracks; 119 hdg.cylinders = label.d_ncylinders; 120 hdg.sectors = label.d_nsectors; 129 error = ioctlf(fp, DIOCGDINFO, &label); 137 hdg_big.heads = label.d_ntracks; 138 hdg_big.cylinders = label.d_ncylinders; 139 hdg_big.sectors = label.d_nsectors;
|
/src/tests/lib/libc/locale/ |
t_wcsrtombs.c | 46 wchar_t label[] = L"L" L"\u0403" L"bel"; local in function:ATF_TC_BODY 47 const wchar_t *wp = label; 58 ATF_REQUIRE_EQ(wp - label, 1);
|
/src/usr.sbin/mscdlabel/ |
iso9660.c | 18 char label[32 + 1], date[] = "yyyy/mm/dd hh:mm", *d; local in function:printinfo 20 strlcpy(label, vd->volume_id, sizeof(label)); 22 d = label + strlen(label); 23 while (d > label && *(d - 1) == ' ') 33 printf("ISO filesystem, label \"%s\", creation time: %s\n", 34 label, date);
|
main.c | 130 struct disklabel label; local in function:main 155 * Get label template. If this fails we might have a plain file. 156 * Proceed to print out possible ISO label information, but 157 * don't try to write a label back. 159 res = ioctl(fd, DIOCGDINFO, &label); 184 p = &label.d_partitions[j]; 186 p->p_size = label.d_partitions[rawpart].p_size; 193 if (!j) /* no ISO track, let the label alone */ 197 /* write back label */ 198 if (label.d_npartitions < j [all...] |
/src/sbin/fsck_v7fs/ |
fsck_v7fs.h | 48 const char *label; member in struct:progress_arg
|
main.c | 198 static char label[32]; local in function:progress 207 if (p->label) 208 strcpy(label, p->label); 218 progress_bar(cdev, label, Progress.total, PROGRESS_BAR_GRANULE);
|
/src/sys/arch/x68k/stand/mboot/ |
mboot.c | 59 long *label = (void*) 0x3000; local in function:bootmain 60 if (IOCS_S_READ(0, 1, scsiid, size, label) < 0) { 64 if (label[0] != 0x58363853 || 65 label[1] != 0x43534931) { 72 struct cpu_disklabel *label = (void*) 0x3000; local in function:bootmain 76 if (IOCS_S_READ(2<<(2-size), size?2:1, scsiid, size, label) < 0) { 80 t = label->dosparts[0].dp_typname; 87 if (label->dosparts[i].dp_flag == PART_BOOTABLE) 89 else if (label->dosparts[i].dp_flag == PART_INUSE) 95 unsigned int start = label->dosparts[i].dp_start [all...] |
/src/sys/dev/fdt/ |
gpioleds.c | 85 char label[64]; local in function:gpioleds_attach 92 /* Get the label, fallback to node name */ 93 if (OF_getprop(child, "label", label, sizeof(label)) <= 0 && 94 OF_getprop(child, "name", label, sizeof(label)) <= 0) 103 if (led_attach(label, pin, gpioleds_get, gpioleds_set) == NULL) 106 aprint_normal(" %s", label);
|
/src/usr.sbin/installboot/arch/ |
x68k.c | 111 char label[X68K_LABELSIZE]; local in function:x68k_setboot 131 rv = pread(params->fsfd, label, sizeof label, 136 } else if (rv != sizeof label) { 158 memcpy(&bb[X68K_LABELOFFSET], &label, sizeof label);
|
hppa.c | 136 } label; local in function:hppa_setboot 150 rv = pread(params->fsfd, &label, HPPA_BOOT_BLOCK_SIZE, 0); 169 secsize = be32toh(label.l.d_secsize); 170 npart = be16toh(label.l.d_npartitions); 171 if (label.l.d_magic != htobe32(DISKMAGIC) || 172 label.l.d_magic2 != htobe32(DISKMAGIC) || 178 } else if (npart < 1 || label.l.d_partitions[0].p_size == 0) { 182 } else if (be32toh(label.l.d_partitions[0].p_offset) + 183 be32toh(label.l.d_partitions[0].p_size) > 199 memcpy(&bb[HPPA_LABELOFFSET], &label.l, HPPA_LABELSIZE) [all...] |
/src/usr.sbin/ldpd/ |
label.h | 1 /* $NetBSD: label.h,v 1.8 2013/07/31 06:58:23 kefren Exp $ */ 45 * MPLS label descriptor 48 * binding is the local label 49 * label is the peer associated label 51 struct label { struct 53 int binding, label; member in struct:label 60 struct label * label_add(const union sockunion *, const union sockunion *, 63 void label_del(struct label *); 67 struct label * label_get(const union sockunion *sodest [all...] |
/src/usr.sbin/makefs/ |
v7fs.c | 170 static char label[32]; local in function:progress 179 if (p->label) 180 strcpy(label, p->label); 188 progress_bar(cdev, label, Progress.total, PROGRESS_BAR_GRANULE);
|
/src/sys/arch/landisk/landisk/ |
autoconf.c | 84 struct disklabel label; local in function:match_bootdisk 90 * to boot from a disk without a label, but this is normally not 125 error = VOP_IOCTL(tmpvn, DIOCGDINFO, &label, FREAD, NOCRED); 131 aprint_error("match_bootdisk: can't get label for dev %s (%d)\n", 137 if (label.d_type == bid->label.type && 138 label.d_checksum == bid->label.checksum && 139 strncmp(label.d_packname, bid->label.packname, 16) == 0 [all...] |
/src/sys/arch/zaurus/zaurus/ |
autoconf.c | 94 struct disklabel label; local in function:match_bootdisk 102 * to boot from a disk without a label, but this is normally not 112 error = VOP_IOCTL(tmpvn, DIOCGDINFO, &label, FREAD, NOCRED); 119 printf("match_bootdisk: can't get label for dev %s (%d)\n", 125 if (label.d_type == bid->label.type && 126 label.d_checksum == bid->label.checksum && 127 strncmp(label.d_packname, bid->label.packname, 16) == 0 [all...] |
/src/bin/stty/ |
print.c | 197 static const char *label; variable in typeref:typename:const char * 207 label = lb; 215 col = printf("%s: %s", label, s);
|
/src/sys/arch/x68k/stand/newdisk/ |
newdisk.c | 74 struct disklabel label; local in function:main 123 if (ioctl(fd, DIOCGDINFO, &label) < 0) 126 if (label.d_secsize != 512) 131 label.d_secperunit); 136 #define n label.d_secperunit 160 #define n (label.d_secperunit/2)
|
/src/sys/netmpls/ |
mpls.h | 43 #define MPLS_LABEL_IPV4NULL 0 /* IPv4 Explicit NULL Label */ 44 #define MPLS_LABEL_RTALERT 1 /* Router Alert Label */ 45 #define MPLS_LABEL_IPV6NULL 2 /* IPv6 Explicit NULL Label */ 46 #define MPLS_LABEL_IMPLNULL 3 /* Implicit NULL Label */ 47 #define MPLS_LABEL_RESMAX 15 /* Maximum reserved Label */ 56 uint32_t label:20; member in struct:mpls_shim::__anonc6503a3f0108 58 uint32_t label:20;
|
/src/sys/miscfs/procfs/ |
procfs_limit.c | 88 static const char *label[] = RLIM_STRINGS; local in function:procfs_dolimit 110 label[i]);
|
/src/sbin/svhlabel/ |
svhlabel.c | 69 struct disklabel label; variable in typeref:struct:disklabel 76 if (ioctl(sd, DIOCGDINFO, &label) < 0) { 77 perror("get label"); 84 if (label.d_npartitions <= rawpart) 85 label.d_npartitions = rawpart + 1; 93 label.d_checksum = 0; 94 label.d_checksum = dkcksum(&label); 95 if (ioctl(sd, doraw ? DIOCWDINFO : DIOCSDINFO, &label) < 0) { 96 perror("set label"); [all...] |
/src/sys/arch/landisk/include/ |
bootinfo.h | 48 int labelsector; /* label valid if != -1 */ 52 } label; member in struct:btinfo_bootdisk
|
/src/sys/arch/mips/mips/ |
db_trace.c | 144 mips_label_t label; local in function:db_stack_trace_print 214 db_read_bytes((db_addr_t)&pcb->pcb_context, sizeof(label), (char *)&label); 215 sp = label.val[_L_SP]; 216 s8 = label.val[_L_S8]; 217 ra = label.val[_L_RA];
|