Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 25 of 98) sorted by relevance

1234

/illumos-gate/usr/src/lib/libc/port/inet/
H A Dinet_ntoa.c155 unsigned int parts[4]; in inet_aton() local
156 unsigned int *pp = parts; in inet_aton()
193 if (pp >= parts + 3) in inet_aton()
209 n = pp - parts + 1; in inet_aton()
219 if ((val > 0xffffff) || (parts[0] > 0xff)) in inet_aton()
221 val |= parts[0] << 24; in inet_aton()
225 if ((val > 0xffff) || (parts[0] > 0xff) || (parts[1] > 0xff)) in inet_aton()
227 val |= (parts[0] << 24) | (parts[1] << 16); in inet_aton()
231 if ((val > 0xff) || (parts[0] > 0xff) || (parts[1] > 0xff) || in inet_aton()
232 (parts[2] > 0xff)) in inet_aton()
[all …]
H A Dinet_network.c60 in_addr_t parts[4], *pp = parts; in inet_network() local
86 if (pp >= parts + 4 || val > 0xff) in inet_network()
95 n = pp - parts; in inet_network()
98 val |= parts[i]; in inet_network()
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dinet_addr.c105 u_int parts[4]; local
106 register u_int *pp = parts;
143 if (pp >= parts + 3)
159 n = pp - parts + 1;
171 val |= parts[0] << 24;
177 val |= (parts[0] << 24) | (parts[1] << 16);
183 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dnet.c159 unsigned int parts[4]; in inet_addr() local
160 unsigned int *pp = parts; in inet_addr()
184 if (pp >= parts + 3 || val > 0xff) in inet_addr()
200 n = pp - parts + 1; in inet_addr()
209 val |= parts[0] << 24; in inet_addr()
215 val |= (parts[0] << 24) | (parts[1] << 16); in inet_addr()
221 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8); in inet_addr()
/illumos-gate/usr/src/cmd/format/
H A Dpartition.c363 register struct partition_info *parts; in get_partition() local
369 parts = cur_dtype->dtype_plist; in get_partition()
370 if (parts == NULL) { in get_partition()
425 parts = cur_dtype->dtype_plist; in make_partition()
426 if (parts == NULL) { in make_partition()
429 while (parts->pinfo_next != NULL) { in make_partition()
430 parts = parts->pinfo_next; in make_partition()
432 parts->pinfo_next = pptr; in make_partition()
492 if (cur_dtype->dtype_plist == parts) in delete_partition()
498 pptr->pinfo_next = parts->pinfo_next; in delete_partition()
[all …]
H A Dmain.c113 struct partition_info *parts; in main() local
287 for (parts = disk->disk_type->dtype_plist; parts != NULL; in main()
288 parts = parts->pinfo_next) in main()
289 if (strcmp(option_p, parts->pinfo_name) == 0) in main()
294 if (parts == NULL) { in main()
302 disk->disk_parts = parts; in main()
H A Dmenu_command.c1873 struct partition_info *parts, *plist; in c_backup() local
1992 for (parts = dtype->dtype_plist; parts != NULL; in c_backup()
1993 parts = parts->pinfo_next) in c_backup()
1994 if (parts_match(&label, parts)) in c_backup()
2001 if (parts == NULL) { in c_backup()
2002 parts = (struct partition_info *) in c_backup()
2006 dtype->dtype_plist = parts; in c_backup()
2010 plist->pinfo_next = parts; in c_backup()
2019 parts->pinfo_map[i].dkl_cylno = in c_backup()
2021 parts->pinfo_map[i].dkl_nblk = in c_backup()
[all …]
H A Dmenu_partition.c188 struct partition_info *pptr, *parts; in p_select() local
196 parts = cur_dtype->dtype_plist; in p_select()
201 if (parts == NULL) { in p_select()
211 for (i = 0, pptr = parts; pptr != NULL; pptr = pptr->pinfo_next) { in p_select()
228 for (i = 0, pptr = parts; i < index; i++, pptr = pptr->pinfo_next) in p_select()
H A Dmenu_fdisk.c431 register struct partition_info *parts; in update_cur_parts() local
470 parts = cur_dtype->dtype_plist; in update_cur_parts()
473 parts->pinfo_name = cur_parts->pinfo_name; in update_cur_parts()
528 bootptr = &boot_sec.parts[ipc];
758 bootptr = &mboot.parts[ipc];
883 bootptr = &mboot.parts[ipc];
H A Dstartup.c1294 parts = dtype->dtype_plist; in sup_setpart()
1295 if (parts == NULL) in sup_setpart()
1298 while (parts->pinfo_next != NULL) in sup_setpart()
1299 parts = parts->pinfo_next; in sup_setpart()
1300 parts->pinfo_next = pinfo; in sup_setpart()
1609 struct partition_info *parts; in add_device_to_disklist() local
2153 parts = search_dtype->dtype_plist; in add_device_to_disklist()
2154 if (parts == NULL) in add_device_to_disklist()
2157 while (parts->pinfo_next != NULL) in add_device_to_disklist()
2158 parts = parts->pinfo_next; in add_device_to_disklist()
[all …]
H A Dpartition.h62 void delete_partition(struct partition_info *parts);
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributePattern.java55 private Vector parts = new Vector(); field in AttributePattern
88 parts.addElement(new PatternPart(false, cstring)); in AttributePattern()
122 parts.addElement(new PatternPart(wc, middle)); in AttributePattern()
128 return (parts.size() > 1); in isWildcarded()
138 int i = 0, n = parts.size(); in match()
144 PatternPart p = (PatternPart)parts.elementAt(i); in match()
179 p = (PatternPart)parts.elementAt(i+1); in match()
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_network.c58 u_long parts[4], *pp = parts; local
87 if (pp >= parts + 4 || val > 0xffU)
96 n = pp - parts;
101 val |= parts[i] & 0xff;
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dattribute.c674 list_append(parts, string); in _process_value()
687 value->string = strdup(parts[0]); in _add_attribute_value()
693 (strcasecmp(parts[0], "no") == 0)) in _add_attribute_value()
698 value->integer = atoi(parts[0]); in _add_attribute_value()
703 if (atoi(parts[0]) < 0) { in _add_attribute_value()
713 = atoi(parts[0]); in _add_attribute_value()
716 if (parts[2] == NULL) { in _add_attribute_value()
723 } else if ((parts[1] != NULL) && (parts[2] != NULL)) { in _add_attribute_value()
733 if (parts[3][0] == 'i') in _add_attribute_value()
776 char **parts = NULL; in _papiAttributeFromStrings() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfstrtof.h218 S2F_part_t parts[16]; local
400 if (n >= ((~((S2F_batch)0)) / 10) && part < elementsof(parts))
402 parts[part].batch = n;
404 parts[part].digits = digits;
443 if (n && part < elementsof(parts))
445 parts[part].batch = n;
446 parts[part].digits = digits;
499 else if ((m = parts[part-1].digits - digits) > 0)
510 p = parts[part].batch;
511 c = digits - parts[part].digits;
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpartition.c608 (void) memcpy(iparts, bootblk.parts, ISIZE); in get_parts()
672 iparts[j].bootid = log_drv->parts[0].bootid; in get_parts()
673 iparts[j].beghead = log_drv->parts[0].beghead; in get_parts()
674 iparts[j].begsect = log_drv->parts[0].begsect; in get_parts()
675 iparts[j].begcyl = log_drv->parts[0].begcyl; in get_parts()
676 iparts[j].systid = log_drv->parts[0].systid; in get_parts()
677 iparts[j].endhead = log_drv->parts[0].endhead; in get_parts()
678 iparts[j].endsect = log_drv->parts[0].endsect; in get_parts()
679 iparts[j].endcyl = log_drv->parts[0].endcyl; in get_parts()
682 iparts[j].numsect = lel(log_drv->parts[0].numsect); in get_parts()
[all …]
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c1331 struct ipart parts[FD_NUMPART]; in write_default_label() local
1372 (void) memset(&parts, 0, sizeof (parts)); in write_default_label()
1375 parts[i].systid = UNUSED; in write_default_label()
1376 parts[i].numsect = lel(UNUSED); in write_default_label()
1378 parts[i].bootid = 0; in write_default_label()
1385 parts[0].bootid = ACTIVE; in write_default_label()
1386 parts[0].begsect = 1; in write_default_label()
1393 parts[0].beghead = 0; in write_default_label()
1394 parts[0].begcyl = 1; in write_default_label()
1395 parts[0].endhead = nhead - 1; in write_default_label()
[all …]
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c1126 uint32_t parts[4], *pp = parts; in inet_addr() local
1182 n = pp - parts; in inet_addr()
1186 val = parts[0]; in inet_addr()
1190 if (parts[1] > 0xffffff) in inet_addr()
1192 val = (parts[0] << 24) | (parts[1] & 0xffffff); in inet_addr()
1196 if (parts[2] > 0xffff) in inet_addr()
1198 val = (parts[0] << 24) | ((parts[1] & 0xff) << 16) | in inet_addr()
1199 (parts[2] & 0xffff); in inet_addr()
1203 if (parts[3] > 0xff) in inet_addr()
1205 val = (parts[0] << 24) | ((parts[1] & 0xff) << 16) | in inet_addr()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dnegrange.awk3 n = split(s, parts, "[^-A-Za-z0-9]+")
6 printf("s[%d] = \"%s\"\n", i, parts[i])
H A Dmanglprm.awk30 function process(s, n,parts)
34 n = split(Buffer,parts,"\n")
H A Dfunstack.awk232 function do_month( k,n,parts)
910 n = split(s,parts,/[$]/)# split into non-math (odd) and math (even) parts
915 ((k % 2) ? strip_braces(TeX_to_HTML_nonmath(parts[k])) : \
916 TeX_to_HTML_math(parts[k]))
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c401 *sysid = LE_8(temp->parts[0].systid); in fdisk_get_part_info()
699 temp->parts[0] = *ext_fdp; in fdisk_read_extpart()
701 temp->parts[1] = *ext_fdp; in fdisk_read_extpart()
885 temp->parts[0].systid = LE_8(partid); in fdisk_change_logical_drive_id()
921 part = &temp->parts[0]; in fdisk_add_logical_drive()
958 part = &pre->parts[1]; in fdisk_add_logical_drive()
1018 cur->parts[0].relsect = in fdisk_delete_logical_drive()
1020 LE_32(pre->parts[1].relsect)); in fdisk_delete_logical_drive()
1038 pre->parts[1] = cur->parts[1]; in fdisk_delete_logical_drive()
1239 temp->parts, abs_secnum); in fdisk_commit_ext_part()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmxfmt.c112 int parts; in tmxfmt() local
158 parts = 0; in tmxfmt()
174 if (!parts) in tmxfmt()
189 switch (parts) in tmxfmt()
192 parts++; in tmxfmt()
203 if (!parts++) in tmxfmt()
204 parts++; in tmxfmt()
528 if (parts > 1) in tmxfmt()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Doptions.c1830 u_char parts[3], *pp = parts; local
1869 if ((pp >= parts + 3) || (val > 0xff)) {
1885 n = pp - parts;
1892 val |= parts[0] << 24;
1897 val |= (parts[0] << 24) | (parts[1] << 16);
1902 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c1594 part = (struct ipart *)BootCod.parts; in mboot_read()
2056 if (temp->parts[0].systid == id && in load()
2057 temp->parts[0].bootid == act && in load()
2058 temp->parts[0].beghead == bhead && in load()
2062 temp->parts[0].endhead == ehead && in load()
4186 ext_tab = temp->parts[0];
5444 LE_32(temp->parts[0].relsect),
5445 LE_32(temp->parts[0].numsect),
5458 LE_32(temp->parts[1].relsect),
5459 LE_32(temp->parts[1].numsect),
[all …]

1234