Home
last modified time | relevance | path

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

1234

/titanic_44/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 != 0) { in sctp_crc32()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Datomicio.c75 size_t pos = 0, rem; in atomiciov() local
97 rem = (size_t)res; in atomiciov()
98 pos += rem; in atomiciov()
100 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov()
101 rem -= iov[0].iov_len; in atomiciov()
106 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov()
113 iov[0].iov_base = ((char *)iov[0].iov_base) + rem; in atomiciov()
114 iov[0].iov_len -= rem; in atomiciov()
/titanic_44/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_MIN); in localtime()
57 tmp->tm_sec = (int)(rem % SECS_PER_MIN); in localtime()
/titanic_44/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_MIN); in gmtime()
114 tmp->tm_sec = (int)(rem % SECS_PER_MIN); in gmtime()
/titanic_44/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 -= sizeof (*src); 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 -= sizeof (*src); in interpret_mldv2rpt()
[all …]
/titanic_44/usr/src/lib/libc/port/gen/
H A Ddiv.c55 r.rem = num % denom;
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 -= denom;
/titanic_44/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 = rcmd_af(&host, portnumber, 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, &remset)) 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, &c, 1, 0)) <= 0) { in writer()
[all …]
/titanic_44/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
237 movl 12(%esp), %edx / rem, rem
262 negl %eax / rem
263 adcl $0, %edx /, rem
266 negl %edx / rem
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
779 movl 12(%esp), %edx / rem, rem
804 negl %eax / rem
805 adcl $0, %edx /, rem
808 negl %edx / rem
[all …]
/titanic_44/usr/src/cmd/auths/
H A Dauths.c203 int rem, i; in simplify() local
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 > 0) in simplify()
223 cbs->auths[i] = cbs->auths[i + rem]; in simplify()
227 cbs->auth_cnt -= rem; in simplify()
/titanic_44/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 != 0) { in nxge_crc32c()
[all …]
/titanic_44/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
825 movl 12(%esp), %edx / rem, rem
850 negl %eax / rem
851 adcl $0, %edx /, rem
854 negl %edx / rem
[all …]
/titanic_44/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_44/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[set] != NULL) in privupdate_self()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c92 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, buf, stb.st_size, 0);
496 (void) deswrite(rem, buf, strlen(buf), 0);
[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 = -1; in closeconn()
/titanic_44/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_44/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()
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()
496 ret = blksize - rem; in write_track()
/titanic_44/usr/src/uts/common/zmod/
H A Dadler32.c135 unsigned rem; local
138 rem = (unsigned)(len2 % BASE);
140 sum2 = rem * sum1;
143 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
/titanic_44/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_44/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()
/titanic_44/usr/src/cmd/audio/audioplay/
H A Daudioplay.c254 int rem; in main() local
597 rem = 0; in main()
598 while ((cnt = read(ifd, inbuf+rem, insiz-rem)) >= 0) { in main()
603 cnt = cnt + rem; in main()
604 rem = cnt % frame; in main()
605 cnt = cnt - rem; in main()
682 if (rem != 0) { in main()
683 (void *)memcpy(inbuf, inbuf + cnt, rem); in main()

1234