Searched refs:siz (Results 1 - 13 of 13) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/
H A Dffs_subr.c141 register int siz, pos; local
145 for (siz = 1; siz < fs->fs_frag; siz++) {
146 if ((inblk & (1 << (siz + (fs->fs_frag % NBBY)))) == 0)
148 field = around[siz];
149 subfield = inside[siz];
150 for (pos = siz; pos <= fs->fs_frag; pos++) {
152 fraglist[siz] += cnt;
153 pos += siz;
154 field <<= siz; local
155 subfield <<= siz; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/device/
H A Dsubrs.c446 * Appends src to string dst of size siz (unlike strncat, siz is the
447 * full size of dst, not space left). At most siz-1 characters
448 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
449 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
450 * If retval >= siz, truncation occurred.
453 strlcat(char *dst, const char *src, size_t siz) argument
457 size_t n = siz;
464 n = siz - dlen;
481 * Copy src to string dst of size siz
486 strlcpy(char *dst, const char *src, size_t siz) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Desp_input.c223 size_t siz; local
228 siz = (((*sumalgo->sumsiz)(sav) + 3) & ~(4 - 1));
229 if (m->m_pkthdr.len < off + ESPMAXLEN + siz) {
233 if (AH_MAXSUMSIZE < siz) {
236 (u_long)siz));
241 m_copydata(m, m->m_pkthdr.len - siz, siz, &sum0[0]);
243 if (esp_auth(m, off, m->m_pkthdr.len - off - siz, sav, sum)) {
250 if (bcmp(sum0, sum, siz) != 0) {
258 m_adj(m, -siz);
668 size_t siz; local
[all...]
H A Desp_output.c703 size_t siz; local
711 siz = ((aalgo->sumsiz)(sav) + 3) & ~(4 - 1);
712 if (AH_MAXSUMSIZE < siz)
727 if (!(n->m_flags & M_EXT) && siz < M_TRAILINGSPACE(n)) { /* XXX */
728 n->m_len += siz;
729 m->m_pkthdr.len += siz;
730 p = mtod(n, u_char *) + n->m_len - siz;
742 nn->m_len = siz;
746 m->m_pkthdr.len += siz;
749 bcopy(authbuf, p, siz);
[all...]
H A Dah_input.c106 size_t siz; local
177 siz = (*algo->sumsiz)(sav);
178 siz1 = ((siz + 3) & ~(4 - 1));
189 * Here, we do not do "siz1 == siz". This is because the way
209 if (siz1 < siz) {
212 (u_long)siz1, (u_long)siz,
305 if (bcmp(sumpos, cksum, siz) != 0) {
568 size_t siz; local
629 siz = (*algo->sumsiz)(sav);
630 siz1 = ((siz
[all...]
H A Dipcomp_core.c152 u_int siz)
155 ptr = _MALLOC(items * siz, M_TEMP, M_NOWAIT);
149 deflate_alloc( __unused void *aux, u_int items, u_int siz) argument
H A Desp_core.c1094 size_t siz; local
1135 siz = (((*algo->sumsiz)(sav) + 3) & ~(4 - 1));
1136 if (sizeof(sumbuf) < siz) {
1138 "esp_auth: AH_MAXSUMSIZE is too small: siz=%lu\n",
1139 (u_long)siz));
1179 bcopy(sumbuf, sum, siz); /*XXX*/
H A Dah_core.c1341 int siz; local
1349 siz = (*algo->sumsiz)(sav);
1375 bzero(mtod(n, caddr_t) + hdrsiz, siz);
1496 int siz; local
1502 siz = (*algo->sumsiz)(sav);
1526 bzero(mtod(n, caddr_t) + hdrsiz, siz);
H A Dipsec.c1990 size_t siz, clen; local
2013 siz = 0;
2052 siz += clen;
2055 return siz;
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_syscalls.c841 int siz, procrastinate, opcnt = 0; local
1080 siz = 0;
1082 siz += mbuf_len(m);
1085 if (siz <= 0 || siz > NFS_MAXPACKET) {
1086 printf("mbuf siz=%d\n",siz);
1090 mbuf_pkthdr_setlen(m, siz);
1101 *(u_long*)mbuf_data(m) = htonl(0x80000000 | siz);
H A Dnfs_serv.c3899 int siz, count, fullsiz, eofflag, nentries; local
3925 siz = ((count + DIRBLKSIZ - 1) & ~(DIRBLKSIZ - 1));
3927 if (siz > xfer)
3928 siz = xfer;
3929 fullsiz = siz;
3955 MALLOC(rbuf, caddr_t, siz, M_TEMP, M_WAITOK);
3978 siz -= uio_resid(auio);
3981 if (siz == 0) {
4008 cend = rbuf + siz;
4017 siz
4118 int siz, dircount, maxcount, fullsiz, eofflag, dirlen, nentries, isdotdot; local
[all...]
H A Dnfs_socket.c2526 * siz arg. is used to decide if adding a cluster is worthwhile
2533 size_t siz)
2542 siz = 0;
2548 siz += RPC_REPLYSIZ;
2549 if (siz >= nfs_mbuf_minclsize) {
2559 if (siz < nfs_mbuf_minclsize) {
2529 nfsrv_rephead( struct nfsrv_descript *nd, __unused struct nfsrv_sock *slp, struct nfsm_chain *nmrepp, size_t siz) argument
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_subr.c6521 int eofflag, siz = UIO_BUFF_SIZE, nentries = 0; local
6542 MALLOC(rbuf, caddr_t, siz, M_TEMP, M_WAITOK);
6565 siz = UIO_BUFF_SIZE;
6573 siz -= uio_resid(auio);
6579 cend = rbuf + siz;
6635 siz = UIO_BUFF_SIZE;
6645 siz -= uio_resid(auio);
6651 cend = rbuf + siz;

Completed in 142 milliseconds