Home
last modified time | relevance | path

Searched refs:rem (Results 1 – 25 of 83) sorted by relevance

1234

/titanic_52/usr/src/uts/common/os/
H A Dsctp_crc32.c129 int rem; in sctp_crc32() local
131 rem = 4 - ((uintptr_t)buf) & 3; in sctp_crc32()
132 if (rem != 0) { in sctp_crc32()
133 if (len < rem) { in sctp_crc32()
134 rem = len; in sctp_crc32()
136 sctp_crc_byte(&crc32, buf, rem); in sctp_crc32()
137 buf = buf + rem; in sctp_crc32()
138 len = len - rem; in sctp_crc32()
145 rem = len & 3; in sctp_crc32()
146 if (rem ! in sctp_crc32()
[all...]
/titanic_52/usr/src/cmd/mdb/common/libstand/
H A Dctime.c37 long rem; in localtime() local
45 rem = *clock % SECS_PER_DAY; in localtime()
46 while (rem < 0) { in localtime()
47 rem += SECS_PER_DAY; in localtime()
50 while (rem >= SECS_PER_DAY) { in localtime()
51 rem -= SECS_PER_DAY; in localtime()
54 tmp->tm_hour = (int)(rem / SECS_PER_HOUR); in localtime()
55 rem = rem % SECS_PER_HOUR; in localtime()
56 tmp->tm_min = (int)(rem / SECS_PER_MI in localtime()
[all...]
/titanic_52/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_igmp.c132 int rem = ilen; in interpret_igmpv3qry() local
143 rem -= sizeof (*qry); in interpret_igmpv3qry()
152 while (srccnt > 0 && rem >= sizeof (*src)) { in interpret_igmpv3qry()
153 rem -= sizeof (*src); in interpret_igmpv3qry()
181 int rem = ilen, auxlen; in interpret_igmpv3rpt() local
196 rem -= sizeof (*rpt); in interpret_igmpv3rpt()
197 while (grhcnt > 0 && rem >= sizeof (*grh)) { in interpret_igmpv3rpt()
198 rem -= sizeof (*grh); in interpret_igmpv3rpt()
210 while (srccnt > 0 && rem >= sizeof (*src)) { in interpret_igmpv3rpt()
211 rem in interpret_igmpv3rpt()
[all...]
H A Dsnoop_icmp.c911 int rem = ilen; in interpret_mldv2qry() local
921 rem -= sizeof (*qry); in interpret_mldv2qry()
930 while (srccnt > 0 && rem >= sizeof (*src)) { in interpret_mldv2qry()
931 rem -= sizeof (*src); in interpret_mldv2qry()
959 int rem = ilen, auxlen; in interpret_mldv2rpt() local
973 rem -= sizeof (*rpt); in interpret_mldv2rpt()
974 while (marcnt > 0 && rem >= sizeof (*mar)) { in interpret_mldv2rpt()
975 rem -= sizeof (*mar); in interpret_mldv2rpt()
987 while (srccnt > 0 && rem >= sizeof (*src)) { in interpret_mldv2rpt()
988 rem in interpret_mldv2rpt()
[all...]
/titanic_52/usr/src/stand/lib/sa/
H A Dtime.c95 int rem; in gmtime() local
102 rem = *clock % SECS_PER_DAY; in gmtime()
103 while (rem < 0) { in gmtime()
104 rem += SECS_PER_DAY; in gmtime()
107 while (rem >= SECS_PER_DAY) { in gmtime()
108 rem -= SECS_PER_DAY; in gmtime()
111 tmp->tm_hour = (int)(rem / SECS_PER_HOUR); in gmtime()
112 rem = rem % SECS_PER_HOUR; in gmtime()
113 tmp->tm_min = (int)(rem / SECS_PER_MI in gmtime()
[all...]
/titanic_52/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c79 static int rem; variable
220 (void) desrcpwrite(rem, "", 1); in main()
418 rem = -1; in main()
600 if (rem == -1) { in toremote()
657 rem = sock; in toremote()
718 rem = rcmd_af(&host, portnumber, in toremote()
722 if (rem < 0) in toremote()
730 if (read(rem, &resp, sizeof (resp)) in toremote()
738 (void) close(rem); in toremote()
740 rem in toremote()
[all...]
H A Drsh.c207 int c, rem; in main() local
567 status = kcmd(&rem, &host, portnumber, in main()
653 rem = rcmd_af(&host, portnumber, pwd->pw_name, user, args, in main()
655 if (rem < 0) in main()
666 if (setsockopt(rem, SOL_SOCKET, SO_DEBUG, (char *)&one, in main()
683 (void) shutdown(rem, SHUT_WR); in main()
693 (void) ioctl(rem, FIONBIO, &one); in main()
710 FD_SET(rem, &remset); in main()
711 if (select(rem + 1, NULL, &remset, NULL, NULL) < 0) { in main()
718 if (!FD_ISSET(rem, in main()
[all...]
H A Drlogin.c158 static int rem = -1; variable
722 rem = sock; in main()
723 if (rem < 0) in main()
733 rem = rcmd_af(&host, port_number, in main()
736 if (rem < 0) in main()
747 setsockopt(rem, SOL_SOCKET, SO_DEBUG, (char *)&on, in main()
754 (void) setsockopt(rem, SOL_SOCKET, SO_RCVBUF, (char *)&bufsize, in main()
823 if (ioctl(rem, SIOCATMARK, &atmark) >= 0) { in doit()
994 if (deswrite(rem, &cmdchar, 1, 0) < 0) { in writer()
1002 if ((n = deswrite(rem, in writer()
[all...]
/titanic_52/usr/src/lib/libc/port/gen/
H A Ddiv.c55 r.rem = num % denom;
65 * r.rem will have the same sign as denom and the opposite
67 * truncated towards -inf, r.rem will be positive (will
75 * if num >= 0, but r.rem < 0, we got the wrong answer.
77 * subtract denom from r.rem.
79 if (num >= 0 && r.rem < 0) {
81 r.rem -= denom;
95 r.rem = num % denom;
96 if (num >= 0 && r.rem < 0) {
98 r.rem
[all...]
/titanic_52/usr/src/lib/libc/i386/gen/
H A D_divdi3.s92 movl 12(%esp), %eax / rem, rem
93 movl 16(%esp), %edx / rem, rem
193 / uint64_t xt, yt, rem;
205 / (void) UDivRem(xt, yt, &rem);
206 / return (x < 0 ? (int64_t) - rem : rem);
236 movl 8(%esp), %eax / rem, rem
[all...]
H A D_div64.s634 movl 12(%esp), %eax / rem, rem
635 movl 16(%esp), %edx / rem, rem
735 / uint64_t xt, yt, rem;
747 / (void) UDivRem(xt, yt, &rem);
748 / return (x < 0 ? (int64_t) - rem : rem);
778 movl 8(%esp), %eax / rem, rem
[all...]
/titanic_52/usr/src/cmd/auths/
H A Dauths.c203 int rem, i; in simplify() local
210 * We walk the list, with "i + rem + 1" the cursor for the possible in simplify()
211 * candidate for removal. With "rem" we count the removed entries in simplify()
214 for (i = 0, rem = 0; i < cbs->auth_cnt - rem - 1; ) { in simplify()
215 if (strcmp(cbs->auths[i], cbs->auths[i + rem + 1]) == 0 || in simplify()
217 auth_match(cbs->auths[i], cbs->auths[i + rem + 1])) { in simplify()
218 free(cbs->auths[i + rem + 1]); in simplify()
219 rem++; in simplify()
222 if (rem > in simplify()
[all...]
/titanic_52/usr/src/uts/common/io/nxge/
H A Dnxge_fflp_hash.c257 int rem; in nxge_crc32c() local
259 rem = 4 - ((uintptr_t)buf) & 3; in nxge_crc32c()
260 if (rem != 0) { in nxge_crc32c()
261 if (len < rem) { in nxge_crc32c()
262 rem = len; in nxge_crc32c()
264 nxge_crc32c_byte(&crc32, buf, rem); in nxge_crc32c()
265 buf = buf + rem; in nxge_crc32c()
266 len = len - rem; in nxge_crc32c()
271 rem = len & 3; in nxge_crc32c()
272 if (rem ! in nxge_crc32c()
[all...]
/titanic_52/usr/src/common/util/i386/
H A Dmuldiv.s680 movl 12(%esp), %eax / rem, rem
681 movl 16(%esp), %edx / rem, rem
781 / uint64_t xt, yt, rem;
793 / (void) UDivRem(xt, yt, &rem);
794 / return (x < 0 ? (int64_t) - rem : rem);
824 movl 8(%esp), %eax / rem, rem
[all...]
/titanic_52/usr/src/uts/common/inet/ip/
H A Dinet_ntop.c383 int rem; in __inet_pton() local
390 rem = dbl_col - &v6buf.v6words_u[0]; in __inet_pton()
391 for (next = 0; next < rem; next++) { in __inet_pton()
395 rem = i - rem; in __inet_pton()
396 word = 8 - rem; in __inet_pton()
397 while (rem > 0) { in __inet_pton()
400 rem--; in __inet_pton()
/titanic_52/usr/src/cmd/ptools/ppriv/
H A Dppriv.c365 static priv_set_t **rem, **add, **assign; variable
394 rem = calloc(pri->priv_nsets, sizeof (priv_set_t *)); in loadprivinfo()
397 if (rem == NULL || add == NULL || assign == NULL) in loadprivinfo()
429 toupd = &rem; in parsespec()
451 if (((toupd == &rem || toupd == &add) && assign[ind] != NULL) || in parsespec()
453 rem[ind] != NULL || add[ind] != NULL))) { in parsespec()
482 if (rem[i] != NULL) in privupdate()
483 priv_intersect(rem[i], target); in privupdate()
564 if (rem[set] != NULL || add[set] != NULL || in privupdate_self()
567 if (rem[se in privupdate_self()
[all...]
/titanic_52/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c32 * to the outside world (which is why we use `wrem' and not `rem').
92 rem = 0; in server()
100 if (read(rem, cp, 1) <= 0) in server()
107 if (read(rem, cp, 1) != 1) in server()
289 (void) deswrite(rem, buf, strlen(buf), 0);
385 (void) deswrite(rem, buf, strlen(buf), 0);
415 (void) deswrite(rem, "E\n", 2, 0);
443 (void) deswrite(rem, buf, strlen(buf), 0);
453 (void) deswrite(rem, buf, strlen(buf), 0);
457 (void) deswrite(rem, bu
[all...]
H A Ddocmd.c288 if (cur_host != NULL && rem >= 0) {
343 status = kcmd(&rem, &rhost, port,
431 rem = rcmd_af(&rhost, port, user, ruser, buf, 0, AF_INET6);
434 if (rem < 0)
438 if (desread(rem, cp, 1, 0) != 1)
442 if (desread(rem, cp, 1, 0) != 1)
470 if (rem >= 0) { in closeconn()
471 (void) deswrite(rem, "\2\n", 2, 0); in closeconn()
472 (void) close(rem); in closeconn()
473 rem in closeconn()
[all...]
/titanic_52/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_generic.c226 int32_t cyl, rem, head, start_sector; in _m_raw_read() local
262 rem = r_p->offset%(fdchar.fdc_nhead * fdchar.fdc_secptrack); in _m_raw_read()
263 head = rem/fdchar.fdc_secptrack; in _m_raw_read()
264 start_sector = rem%fdchar.fdc_secptrack + 1; in _m_raw_read()
300 int32_t cyl, rem, head, start_sector; in _m_raw_write() local
335 rem = r_p->offset%(fdchar.fdc_nhead * fdchar.fdc_secptrack); in _m_raw_write()
336 head = rem/fdchar.fdc_secptrack; in _m_raw_write()
337 start_sector = rem%fdchar.fdc_secptrack + 1; in _m_raw_write()
/titanic_52/usr/src/boot/sys/boot/usb/
H A Dusb_busdma_loader.c174 usb_size_t rem; in usb_pc_common_mem_cb() local
186 rem = phys & (USB_PAGE_SIZE - 1); in usb_pc_common_mem_cb()
187 pc->page_offset_buf = rem; in usb_pc_common_mem_cb()
188 pc->page_offset_end += rem; in usb_pc_common_mem_cb()
189 length += rem; in usb_pc_common_mem_cb()
209 uint32_t rem; in usb_pc_alloc_mem() local
218 rem = (-((uintptr_t)ptr)) & (align - 1); in usb_pc_alloc_mem()
223 rem = 0; in usb_pc_alloc_mem()
227 pc->buffer = ((uint8_t *)ptr) + rem; in usb_pc_alloc_mem()
/titanic_52/usr/src/cmd/cdrw/
H A Dtrackio.c264 int blksize, i, sz_read, rem; in write_track() local
303 while ((rem = (sz_read % blksize)) != 0) { in write_track()
307 * rem contains the amount of data past the previous in write_track()
313 if ((sz_read + (blksize - rem)) > in write_track()
330 (blksize - rem)); in write_track()
344 ret = blksize - rem; in write_track()
454 while ((rem = (sz_read % blksize)) != 0) { in write_track()
463 if ((sz_read + (blksize - rem)) > in write_track()
476 (blksize - rem)); in write_track()
491 * rem contain in write_track()
[all...]
/titanic_52/usr/src/contrib/zlib/
H A Dadler32.c139 unsigned rem; in adler32_combine_() local
147 rem = (unsigned)len2; in adler32_combine_()
149 sum2 = rem * sum1; in adler32_combine_()
152 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem; in adler32_combine_()
/titanic_52/usr/src/boot/lib/libz/
H A Dadler32.c143 unsigned rem; local
151 rem = (unsigned)len2;
153 sum2 = rem * sum1;
156 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
/titanic_52/usr/src/cmd/ipf/tools/
H A Dipf.c377 int fl = 0, rem; local
386 rem = fl;
406 printf("remove flags %s (%d)\n", arg, rem);
438 rem = fl;
458 printf("remove flags %s%s (%d)\n", (rem & FR_INQUE) ? "I" : "",
459 (rem & FR_OUTQUE) ? "O" : "", rem);
/titanic_52/usr/src/cmd/troff/
H A Dn9.c90 int w, cnt, delim, rem, temp; in setline() local
122 if (rem = length % w) { in setline()
126 *i++ = makem(rem); in setline()
252 tchar c, rem, ver, neg; in setvline() local
286 rem = makem(i % v) | neg; in setvline()
291 if (absmot(rem) != 0) { in setvline()
293 *vlp++ = rem; in setvline()

1234