/original-bsd/sys/i386/isa/ |
H A D | clock.c | 163 unsigned long sec; local 175 sec = bcd(rtcin(RTC_YEAR)) + 1900; 176 if (sec < 1970) 177 sec += 100; 178 leap = !(sec % 4); sec = ytos(sec); /* year */ 182 sec += bcd(rtcin(RTC_HRS)) * 60*60; /* hour */ 183 sec += bcd(rtcin(RTC_MIN)) * 60; /* minutes */ 184 sec += bcd(rtcin(RTC_SEC)); /* seconds */ 191 sec -= 60*60; 193 sec += tz.tz_minuteswest * 60; [all …]
|
H A D | fd.c | 405 int read,head,trac,sec,i,s,sectrac,cyl; in fdintr() local 436 sec = blknum % (sectrac * 2); in fdintr() 437 head = sec / sectrac; in fdintr() 438 sec = sec % sectrac + 1; in fdintr() 445 out_fdc(sec); /* sector XXX +1? */ in fdintr() 548 sec = in_fdc(); in fdintr() 549 printf("ST0 = %lx, PCN = %lx\n",i,sec); in fdintr()
|
/original-bsd/sys/hp300/stand/ |
H A D | hpib.c | 73 hpibsend(unit, slave, sec, buf, cnt) in hpibsend() argument 79 return (fhpibsend(unit, slave, sec, buf, cnt)); 80 return (nhpibsend(unit, slave, sec, buf, cnt)); 83 hpibrecv(unit, slave, sec, buf, cnt) in hpibrecv() argument 89 return (fhpibrecv(unit, slave, sec, buf, cnt)); 90 return (nhpibrecv(unit, slave, sec, buf, cnt)); 112 hpibgo(unit, slave, sec, addr, count, flag) in hpibgo() argument 118 fhpibrecv(unit, slave, sec, addr, count); 120 fhpibsend(unit, slave, sec, addr, count); 123 nhpibrecv(unit, slave, sec, addr, count); [all …]
|
H A D | fhpib.c | 52 fhpibsend(unit, slave, sec, buf, cnt) in fhpibsend() argument 68 if (sec != -1) 69 hd->hpib_data = C_SCG + sec; 84 if (sec == 0x12) 93 fhpibrecv(unit, slave, sec, buf, cnt) in fhpibrecv() argument 109 if (sec != -1) 110 hd->hpib_data = C_SCG + sec;
|
H A D | nhpib.c | 67 nhpibsend(unit, slave, sec, buf, cnt) in nhpibsend() argument 84 if (sec != -1) { 85 hd->hpib_data = C_SCG + sec; 104 nhpibrecv(unit, slave, sec, buf, cnt) in nhpibrecv() argument 121 if (sec != -1) { 122 hd->hpib_data = C_SCG + sec;
|
/original-bsd/sys/tahoe/stand/vdformat/ |
H A D | maps.c | 288 register int trk, sec; in write_bad_sector_map() local 295 for(sec = 0; sec < lab->d_nsectors; sec++) { in write_bad_sector_map() 299 dskaddr.sector = sec; in write_bad_sector_map() 370 for(sec=0; sec < lab->d_nsectors; sec++) { in get_smde_relocations() 390 for(sec=0; sec < lab->d_nsectors; sec++) { in get_smde_relocations() 606 for(sec=0; sec < lab->d_nsectors; sec++) 631 for(sec=0; sec < lab->d_nsectors; sec++) 696 register int i, sec; local 719 for(sec=0; sec < lab->d_nsectors; sec++) { 724 for(sec = 0; sec < lab->d_nsectors; sec++) [all …]
|
H A D | util.c | 46 dskadr *from_sector(sec) in from_sector() argument 47 unsigned int sec; in from_sector() 51 temp = *from_track((int)(sec / lab->d_nsectors)); 52 temp.sector = sec % lab->d_nsectors;
|
/original-bsd/usr.bin/f77/libU77/ |
H A D | alarm_.c | 28 long alarm_(sec, proc) in alarm_() argument 29 long *sec; in alarm_() 36 if (*sec) 39 alarm(*sec);
|
H A D | sleep_.c | 21 sleep_(sec) in sleep_() argument 22 long *sec; in sleep_() 24 sleep((unsigned int)*sec);
|
/original-bsd/sys/pmax/pmax/ |
H A D | clock.c | 91 int sec, min, hour, day, mon, year; local 108 sec = c->sec; 118 hour > 23 || min > 59 || sec > 59) { 137 time.tv_sec = days * SECDAY + hour * 3600 + min * 60 + sec; 167 int sec, min, hour, day, mon, year; in resettodr() local 194 sec = t % 60; in resettodr() 201 c->sec = sec; in resettodr()
|
/original-bsd/sys/hp300/dev/ |
H A D | hpib.c | 109 hpibsend(unit, slave, sec, addr, cnt) in hpibsend() argument 111 int slave, sec, addr, cnt; 114 return(fhpibsend(unit, slave, sec, addr, cnt)); 116 return(nhpibsend(unit, slave, sec, addr, cnt)); 119 hpibrecv(unit, slave, sec, addr, cnt) in hpibrecv() argument 121 int slave, sec, addr, cnt; 124 return(fhpibrecv(unit, slave, sec, addr, cnt)); 191 hpibgo(unit, slave, sec, addr, count, rw) in hpibgo() argument 193 int slave, sec, addr, count, rw; 196 fhpibgo(unit, slave, sec, addr, count, rw); [all …]
|
H A D | fhpib.c | 110 fhpibsend(unit, slave, sec, addr, origcnt) in fhpibsend() argument 111 int unit, slave, sec, origcnt; in fhpibsend() 128 if (sec != -1) 129 hd->hpib_data = C_SCG + sec; 148 if (sec == 0x12) 161 unit, slave, sec); 169 int unit, slave, sec, origcnt; in fhpibrecv() 186 if (sec != -1) 187 hd->hpib_data = C_SCG + sec; 217 unit, slave, sec); [all …]
|
H A D | nhpib.c | 83 nhpibsend(unit, slave, sec, addr, origcnt) in nhpibsend() argument 84 int unit, slave, sec, origcnt; in nhpibsend() 103 if (sec != -1) { 104 hd->hpib_data = C_SCG + sec; 135 nhpibrecv(unit, slave, sec, addr, origcnt) in nhpibrecv() argument 136 int unit, slave, sec, origcnt; in nhpibrecv() 155 if (sec != -1) { 156 hd->hpib_data = C_SCG + sec; 181 int sec, count, rw; 202 nhpibrecv(unit, slave, sec, 0, 0); [all …]
|
/original-bsd/sys/news3400/news3400/ |
H A D | clock.c | 91 int sec, min, hour, week, day, mon, year; local 103 sec = bcd_to_int(*rtc_data++); 114 hour > 23 || min > 59 || sec > 59) { 132 time.tv_sec = days * SECDAY + hour * 3600 + min * 60 + sec; 161 int sec, min, hour, week, day, mon, year; in resettodr() local 196 sec = t % 60; in resettodr() 199 *rtc_data++ = int_to_bcd(sec); in resettodr()
|
/original-bsd/usr.bin/uucp/UUAIDS/ |
H A D | sys_awk | 84 sec = time % 3600; 85 min = sec / 60; 86 sec %= 60; 100 sysname[sys], sys_xf[sys], by_rec[sys], by_xmt[sys], hours, min, sec, \ 112 sec = tot_time % 3600; 113 min = sec / 60; 114 sec %= 60; 116 "TOTALS", tot_xf, tot_by_rec, tot_by_xmt, hours, min, sec);
|
/original-bsd/sys/sparc/sparc/ |
H A D | clock.c | 313 chiptotime(sec, min, hour, day, mon, year) in chiptotime() argument 314 register int sec, min, hour, day, mon, year; in chiptotime() 318 sec = FROMBCD(sec); 335 return (days * SECDAY + hour * 3600 + min * 60 + sec); 339 int sec; member 383 c->sec = t % 60; 385 c->sec = TOBCD(c->sec); 400 int sec, min, hour, day, mon, year; local 411 sec = cl->cl_sec; 419 if ((time.tv_sec = chiptotime(sec, min, hour, day, mon, year)) == 0) { [all …]
|
/original-bsd/sys/hp300/hp300/ |
H A D | dkbad.c | 21 isbad(bt, cyl, trk, sec) in isbad() argument 23 int cyl, trk, sec; 28 blk = ((long)cyl << 16) + (trk << 8) + sec;
|
/original-bsd/usr.sbin/timed/timedc/ |
H A D | cmds.c | 69 unsigned long sec; local 77 sec = 0; 78 if (sendto(sock, &sec, sizeof(sec), 0, 99 if (recvfrom(sock,&sec,sizeof(sec),0, 105 sec = ntohl(sec); 106 if (sec < BU) { 109 hostname, sec); 112 sec -= BU; 115 return (sec - now.tv_sec);
|
/original-bsd/sys/i386/stand/ |
H A D | fd.c | 112 int i,j,cyl,sectrac,sec,head,numretry; local 148 sec = blknum % (sectrac * 2); 149 head = sec / sectrac; 150 sec = sec % sectrac + 1; 152 printf("sec %d hd %d cyl %d ", sec, head, cyl); 160 out_fdc(sec); /* sector XXX +1? */
|
/original-bsd/sys/vax/vax/ |
H A D | dkbad.c | 21 isbad(bt, cyl, trk, sec) in isbad() argument 27 blk = ((long)cyl << 16) + (trk << 8) + sec;
|
H A D | ka630.c | 71 c.sec = claddr->sec; 102 claddr->sec = c.sec; in ka630_clkwrite()
|
H A D | ka820.c | 93 c.sec = clock->sec; 102 c.sec >>= 1; /* tweak */ 123 c.sec <<= 1; /* tweak */ in ka820_clkwrite() 134 clock->sec = c.sec; in ka820_clkwrite()
|
/original-bsd/sys/i386/i386/ |
H A D | dkbad.c | 25 isbad(bt, cyl, trk, sec) in isbad() argument 31 blk = ((long)cyl << 16) + (trk << 8) + sec;
|
/original-bsd/old/sh/ |
H A D | print.c | 57 REG INT hr, min, sec; local 60 sec=t%60; t /= 60; 66 prn(sec); prc('s');
|
/original-bsd/sys/kern/ |
H A D | kern_clock.c | 308 register long ticks, sec; local 321 sec = tv->tv_sec - time.tv_sec; 322 if (sec <= 0x7fffffff / 1000 - 1000) 325 else if (sec <= 0x7fffffff / hz) 326 ticks = sec * hz;
|