sect
int sect;
sect = next() - '0'; /* 1st digit of section number */
printf("Section %c", sect + '0');
sect = 10 * sect + ch - '0';
switch (sect) {
printf("Invalid data section number: %d\n", sect);
rdesc(int sect)
&& !(sect == 5 && (locc == 0 || locc >= 100))) {
switch (sect) { /* now put it into right table */
if (sect != 5 || (locc > 0 && locc < 100)) {
int ns_newmsg_rr(ns_newmsg *handle, ns_sect sect,
setsection(ns_msg *msg, ns_sect sect) {
msg->_sect = sect;
if (sect == ns_s_max) {
msg->_msg_ptr = msg->_sections[(int)sect];
static void setsection(ns_msg *msg, ns_sect sect);
ns_sect sect;
sect = ns_s_max, n = 0;
sect = ns_s_an, n = ancount;
sect = ns_s_ns, n = nscount;
sect = ns_s_max, n = 0;
if (ns_parserr(&msg, sect, i, &rr) < 0) {
p_section(sect, ns_o_query), i));
switch (sect) {
save_ns(res_state statp, ns_msg *msg, ns_sect sect,
for (i = 0; i < ns_msg_count(*msg, sect); i++) {
if (ns_parserr(msg, sect, i, &rr) < 0) {
p_section(sect, ns_o_query), i));
save_a(res_state statp, ns_msg *msg, ns_sect sect,
for (i = 0; i < ns_msg_count(*msg, sect); i++) {
if (ns_parserr(msg, sect, i, &rr) < 0) {
p_section(sect, ns_o_query), i));
char *sect;
if ((sect = findwhitespace(from)) != NULL) {
*sect++ = '\0';
if ((trail = findwhitespace(sect)) != NULL)
length = strlen(sect);
(void) memmove(to, sect, length);
unsigned long cyl, head, sect;
sect = sector - cyl * dos_cylindersectors;
head = sect / dos_sectors;
sect -= head * dos_sectors;
if (head == dos_heads - 1 && sect == dos_sectors - 1)
if (head == 0 && sect == 0)
printf("/%lu/%lu", head, sect + 1);
iopb->sect = iopb->head = iopb->cyl = 0;
iopb->sect = block % iorq->xy->nsect;
iopb->sect = iorq->blockno % XYFM_BPS;
iopb->cyl, iopb->head, iopb->sect);
iopb->sect = i % iorq->xy->nhead;
volatile u_char sect; /* sector # */
int block, sect, head, cyl, scount;
sect = block % lp->d_secpercyl;
head = sect / lp->d_nsectors;
sect = sect % lp->d_nsectors;
*rsize = 512 * min(scount, lp->d_nsectors - sect);
creg.udc_dsect = sect + 1; /* sectors are numbered 1..15
int block, sect, head, cyl, scount, cmd;
sect = block % lp->d_secpercyl;
head = sect / lp->d_nsectors;
sect = sect % lp->d_nsectors;
block, dblk, cyl, sect, head);
*rsize = 512 * min(scount, lp->d_nsectors - sect);
creg.udc_dsect = sect;
sect = dblk % nsect + sc->fmt.minsec.R;
(sect)),
int cyl, head, sect;
lflop.sect = fparams.nspt;
u_int sect;
uint8_t head, sect, cmd = 0;
sect = 0;
sect = (ata_bio->blkno >> 0) & 0xff;
sect = blkno % drvp->lp->d_nsectors;
sect++; /* Sectors begin with 1, not 0. */
head, sect, count, features);
head, sect, nblks,
u_int8_t head, sect, cmd = 0;
sect = 0;
sect = (ata_bio->blkno >> 0) & 0xff;
sect = blkno % drvp->lp->d_nsectors;
sect++; /* Sectors begin with 1, not 0. */
head, sect, nblks,
int sect;
for (sect = 0; sect < le32toh(fileheader->nsections); sect++) {
if (txp_download_fw_section(sc, secthead, sect))
const struct txp_fw_section_header *sect, int sectnum)
if (sect->nbytes == 0)
rseg = ((const uint8_t *)sect) - ((const uint8_t *)tc990image);
rseg += le32toh(sect->nbytes);
if (txp_dma_malloc(sc, le32toh(sect->nbytes), &dma, 0)) {
memcpy(dma.dma_vaddr, ((const uint8_t *)sect) + sizeof(*sect),
le32toh(sect->nbytes));
m.m_len = le32toh(sect->nbytes);
csum = in_cksum(&m, le32toh(sect->nbytes));
if (csum != sect->cksum) {
sectnum, sect->cksum, csum);
WRITE_REG(sc, TXP_H2A_1, le32toh(sect->nbytes));
WRITE_REG(sc, TXP_H2A_2, le32toh(sect->cksum));
WRITE_REG(sc, TXP_H2A_3, le32toh(sect->addr));
iopb->sect = iopb->head = iopb->cyl = 0;
iopb->sect = block % iorq->xy->nsect;
iopb->sect = iorq->blockno % XYFM_BPS;
iopb->cyl, iopb->head, iopb->sect);
iopb->sect = i % iorq->xy->nhead;
volatile u_char sect; /* sector # */
u_long frag, sect, zone, izone, a, b, m, n;
sect = (addr & 0xff) +
if (sect > 0)
sect--;
sect <<= fcmp->drec.share_size;
if (sect << fcmp->drec.log2secsize < n
>> fcmp->drec.log2secsize) + sect;
sect -= (n<<fcmp->drec.log2bpmb)
struct sect text, data, bss;
struct sect ndata, nbss;
struct sect ntxt;
combine(struct sect *base, struct sect *new, int pad)
static void combine(struct sect *, struct sect *, int);
struct sect text, data, bss; /* a.out-compatible sections */
struct sect ndata, nbss;
struct sect ntxt;
combine(struct sect *base, struct sect *new, int pad)
static void combine(struct sect *, struct sect *, int);
int sect;
sect = blk % (dp->d_nsectors * dp->d_ntracks);
hdr->hpup_track = (u_char)(sect / dp->d_nsectors);
hdr->hpup_sect = (u_char)(sect % dp->d_nsectors);
read_sectn(FILE *fp, off_t sect, unsigned count, unsigned bytespersec)
return (read_buf(fp, sect * bytespersec, bytespersec * count));
read_sect(FILE *fp, off_t sect, unsigned bytespersec)
return (read_sectn(fp, sect, 1, bytespersec));
unsigned n, sect;
for (sect = 0; sect < 11; sect++) {
sector = read_sect(fp, region + sect, bytespersec);
if (sect == 0) {