/src/sys/arch/atari/stand/ahdilabel/ |
magic.c | 52 struct disklabel *dl = (struct disklabel *)&p[1]; local in function:check_magic 56 (u_char *)dl - bblk == 7168) && 57 dl->d_npartitions <= MAXPARTITIONS && 58 dl->d_magic2 == DISKMAGIC && 59 dl->d_magic == DISKMAGIC && 60 dkcksum(dl) == 0) {
|
read.c | 50 struct disklabel *dl; local in function:ahdi_readlabel 55 if ((dl = read_dl (fd)) == NULL) { 60 if (dl->d_secsize != AHDI_BSIZE) { 78 if (dl->d_secperunit != ptable->secperunit) { 80 ptable->secperunit = dl->d_secperunit; 87 ptable->nsectors = dl->d_nsectors; 88 ptable->ntracks = dl->d_ntracks; 89 ptable->ncylinders = dl->d_ncylinders; 90 ptable->secpercyl = dl->d_secpercyl; 256 struct disklabel *dl; local in function:read_dl [all...] |
/src/sys/arch/atari/stand/tostools/libtos/ |
bsdlabel.c | 59 struct disklabel *dl = (struct disklabel *)&p[1]; local in function:bsd_getlabel 62 || (u_char *)dl - bblk == 7168 64 && dl->d_npartitions <= MAXPARTITIONS 65 && dl->d_magic2 == DISKMAGIC 66 && dl->d_magic == DISKMAGIC 67 && dkcksum(dl) == 0 69 memcpy(dlp, dl, sizeof(*dlp)); 82 dkcksum(struct disklabel *dl) 86 start = (u_short *)dl; 87 end = (u_short *)&dl->d_partitions[dl->d_npartitions] [all...] |
/src/usr.sbin/mopd/mopchk/ |
mopchk.c | 64 struct dllist dl; local in function:main 117 dl.ldfd = open(filename, O_RDONLY, 0); 118 if (dl.ldfd == -1) 121 if ((error = CheckElfFile(dl.ldfd)) == 0) { 122 if (GetElfFileInfo(&dl) < 0) { 126 } else if ((error = CheckAOutFile(dl.ldfd)) == 0) { 127 if (GetAOutFileInfo(&dl) < 0) { 131 } else if ((error = CheckMopFile(dl.ldfd)) == 0) { 132 if (GetMopFileInfo(&dl) < 0) { 138 (void) close(dl.ldfd) [all...] |
/src/lib/libcrypt/ |
crypt-sha1.c | 121 int dl; local in function:__crypt_sha1 157 dl = snprintf(passwd, sizeof (passwd), "%.*s%s%u", 162 __hmac_sha1((unsigned char *)passwd, dl, pwu, pl, hmac_buf);
|
/src/usr.sbin/mopd/mopcopy/ |
mopcopy.c | 103 struct dllist dl; local in function:main 111 dl.ldfd = open (argv[1], O_RDONLY); 112 if (dl.ldfd == -1) 115 if (GetFileInfo(&dl) == -1) 118 switch (dl.image_type) { 125 if (dl.e_machine != EM_VAX) 127 "(machine=%d)\n", argv[1], dl.e_machine); 128 for (i = 0, j = 0; j < dl.e_nsec; j++) 129 i += dl.e_sections[j].s_fsize + dl.e_sections[j].s_pad [all...] |
/src/sys/arch/atari/stand/libsa/ |
diskio.c | 58 struct disklabel *dl = label; local in function:init_dskio 59 struct partition *pd = &dl->d_partitions[root]; 61 if (dl->d_magic != DISKMAGIC || dl->d_magic2 != DISKMAGIC 62 || dl->d_npartitions > MAXPARTITIONS || dkcksum(dl) != 0) { 67 if (root >= dl->d_npartitions
|
/src/sys/arch/atari/stand/tostools/file2swp/ |
file2swp.c | 155 struct disklabel dl; local in function:check_bsdlabel 158 err = bsd_getlabel(dd, &dl, offset); 164 if (dl.d_partitions[1].p_size > 0) { 165 *start = dl.d_partitions[1].p_offset; 166 *end = *start + dl.d_partitions[1].p_size-1;
|
/src/sys/arch/hppa/hppa/ |
disksubr.c | 280 struct disklabel dl; local in function:writedisklabel 294 dl = *lp; 295 msg = readliflabel(bp, strat, &dl, &cdl, &partoff, &cyl, 0);
|
/src/sys/dev/ic/ |
msm6258.c | 73 short dl, c; local in function:pcm2adpcm_step 78 dl = adpcm_estim[estim]; 79 c = (df / 16) * 8 / dl; 90 mc->mc_amp += (short)(adpcm_estimindex[(int)s] * dl);
|
/src/tools/llvm/ |
Makefile | 12 realdepends realall: config/config.status need-dl need-terminfo support-modules 36 need-dl: Makefile 37 printf '#include <dlfcn.h>\nint main(void){void *p; return dladdr(p, p);}' > need-dl.c 38 if ${HOST_CC} -o need-dl.out -D_GNU_SOURCE need-dl.c > /dev/null 2>&1; then \ 40 elif ${HOST_CC} -o need-dl.out -D_GNU_SOURCE need-dl.c -ldl > /dev/null 2>&1; then \ 55 CLEANFILES+= need-dl need-dl.c need-dl.out need-terminfo need-terminfo.c need-terminfo.ou [all...] |
/src/usr.bin/mail/ |
head.c | 151 size_t dl = strlen(date); local in function:isdate 157 if (dl < cmatch_minlen) 161 if (dl == cmdp->tlen && cmatch(date, cmdp->tdata))
|
/src/lib/libc/net/ |
getifaddrs.c | 112 const struct sockaddr_dl *dl; local in function:__weak_alias 116 dl = (struct sockaddr_dl *)(void *)(ifm + 1); 117 dcnt += SA_RLEN((const struct sockaddr *)(const void *)dl) + 120 ncnt += dl->sdl_nlen + 1; 192 const struct sockaddr_dl *dl; local in function:__weak_alias 195 dl = (struct sockaddr_dl *)(void *)(ifm + 1); 201 memcpy(names, dl->sdl_data, 202 (size_t)dl->sdl_nlen); 203 names[dl->sdl_nlen] = 0; 204 names += dl->sdl_nlen + 1 [all...] |
/src/sys/arch/acorn32/stand/lib/ |
riscosdisk.c | 64 struct disklabel dl; local in function:rodisk_open 91 err = getdisklabel_acorn(f, &dl); 96 if (partition >= dl.d_npartitions || 97 dl.d_partitions[partition].p_size == 0) { 101 rd->boff = dl.d_partitions[partition].p_offset;
|
/src/sys/arch/atari/atari/ |
disksubr.c | 219 struct disklabel *dl = (struct disklabel *)&p[1]; local in function:bsd_label 228 || (char *)dl - (char *)bb == 7168 231 dl->d_npartitions <= MAXPARTITIONS && 232 dl->d_magic2 == DISKMAGIC && 233 dl->d_magic == DISKMAGIC && 234 dkcksum(dl) == 0) { 236 *offsetp = (char *)dl - (char *)bb; 237 *label = *dl; 256 ck_label(struct disklabel *dl, struct cpu_disklabel *cdl) 260 for (i = 0; i < dl->d_npartitions; ++i) [all...] |
/src/sys/arch/atari/stand/tostools/aptck/ |
disklbl.c | 102 struct disklabel *dl = (struct disklabel *)&p[1]; local in function:bsd_label 105 || (u_char *)dl - bblk == 7168 107 && dl->d_npartitions <= MAXPARTITIONS 108 && dl->d_magic2 == DISKMAGIC 109 && dl->d_magic == DISKMAGIC 110 && dkcksum(dl) == 0 112 dd->lblofs = (u_char *)dl - bblk; 126 dkcksum(struct disklabel *dl) 130 start = (u_short *)dl; 131 end = (u_short *)&dl->d_partitions[dl->d_npartitions] [all...] |
/src/usr.bin/rpcgen/ |
rpc_hout.c | 351 decl_list *dl; local in function:pprocdef 372 for (dl = proc->args.decls; dl != NULL; dl = dl->next) { 373 ptype(dl->decl.prefix, dl->decl.type, 1);
|
/src/usr.sbin/fstyp/ |
fstyp.c | 167 struct disklabel dl; local in function:type_check 179 error = ioctl(fd, DIOCGDINFO, &dl);
|
/src/usr.sbin/mopd/mopd/ |
process.c | 35 #include "dl.h" 436 struct dllist dl, *dl_rpr; local in function:mopProcessDL 503 dl_rpr = &dl; 570 struct dllist dl,*dl_rpr; local in function:mopProcessRC 606 dl_rpr = &dl;
|
/src/sbin/badsect/ |
badsect.c | 104 size_t dl = sizeof(_PATH_DEV); local in function:main 122 (void)strlcpy(name + dl - 1, dp->d_name, sizeof(name) - dl + 1); 139 name[dl - 1] = 'r'; 140 (void)strlcpy(name + dl, dp->d_name, sizeof(name) - dl);
|
/src/sys/arch/atari/dev/ |
md_root.c | 152 struct disklabel dl; local in function:loaddisk 187 if (bdp->d_ioctl(ld_dev, DIOCGDINFO, (void *)&dl, FREAD, lwp) == 0) { 189 rs.chunk = dl.d_secsize * dl.d_secpercyl; 190 rs.media_sz = dl.d_secperunit * dl.d_secsize;
|
/src/sys/arch/hpc/stand/libsa/ |
winblk.c | 69 struct disklabel dl; member in struct:winblk 262 memcpy(&ctx->dl, &ctx->buf[LABELOFFSET], sizeof(ctx->dl)); 264 if (ctx->dl.d_magic != DISKMAGIC || 265 ctx->dl.d_magic2 != DISKMAGIC || 266 dkcksum(&ctx->dl) != 0) { 276 if (partition < 0 || ctx->dl.d_npartitions <= partition) { 281 ctx->start = ctx->dl.d_partitions[partition].p_offset;
|
/src/sys/arch/hpcmips/stand/libsa/ |
winblk.c | 69 struct disklabel dl; member in struct:winblk 262 memcpy(&ctx->dl, &ctx->buf[LABELOFFSET], sizeof(ctx->dl)); 264 if (ctx->dl.d_magic != DISKMAGIC || 265 ctx->dl.d_magic2 != DISKMAGIC || 266 dkcksum(&ctx->dl) != 0) { 276 if (partition < 0 || ctx->dl.d_npartitions <= partition) { 281 ctx->start = ctx->dl.d_partitions[partition].p_offset;
|
/src/sbin/blkdiscard/ |
blkdiscard.c | 189 struct disklabel dl; local in function:main 191 if (ioctl(fd, DIOCGDINFO, &dl) != -1) { 194 size = (uint64_t)dl.d_partitions[part].p_size * 195 dl.d_secsize;
|
/src/sbin/gpt/ |
migrate.c | 175 struct disklabel *dl; local in function:migrate_disklabel 185 dl = (void*)(buf + LABELOFFSET); 187 if (le32toh(dl->d_magic) != DISKMAGIC || 188 le32toh(dl->d_magic2) != DISKMAGIC) { 194 rawofs = le32toh(dl->d_partitions[RAW_PART].p_offset) * 195 le32toh(dl->d_secsize); 196 for (i = 0; i < le16toh(dl->d_npartitions); i++) { 197 if (dl->d_partitions[i].p_fstype == FS_UNUSED) 199 ofs = le32toh(dl->d_partitions[i].p_offset) * 200 le32toh(dl->d_secsize) [all...] |