Home
last modified time | relevance | path

Searched refs:nwritten (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/sched/clisrv/
Dwriten.c33 int nleft, nwritten; local
37 nwritten = write(fd, ptr, nleft);
38 if (nwritten <= 0)
39 return (nwritten); /* error */
40 nleft -= nwritten;
41 ptr += nwritten;
/external/mksh/src/
Dshf.c797 ssize_t nwritten = 0; in shf_vfprintf() local
807 nwritten++; in shf_vfprintf()
1037 nwritten++; in shf_vfprintf()
1041 nwritten++; in shf_vfprintf()
1047 nwritten++; in shf_vfprintf()
1053 nwritten += field; in shf_vfprintf()
1062 nwritten += precision; in shf_vfprintf()
1067 nwritten += field; in shf_vfprintf()
1072 return (shf_error(shf) ? -1 : nwritten); in shf_vfprintf()
Dfuncs.c567 ssize_t nwritten; in c_print() local
569 if ((nwritten = write(po.fd, s, len)) < 0) { in c_print()
583 s += nwritten; in c_print()
584 len -= nwritten; in c_print()
/external/mdnsresponder/mDNSShared/
DDebugServices.c1204 size_t nwritten = 0; in DebugSNPrintFVAList() local
1215 if (++nwritten >= buflen) goto exit; in DebugSNPrintFVAList()
1573 if (F.hSize) * (short *) s = (short)nwritten; in DebugSNPrintFVAList()
1574 else if (F.lSize) * (long *) s = (long)nwritten; in DebugSNPrintFVAList()
1575 else * (int *) s = (int)nwritten; in DebugSNPrintFVAList()
1582 if (++nwritten >= buflen) goto exit; in DebugSNPrintFVAList()
1589 if (++nwritten >= buflen) goto exit; in DebugSNPrintFVAList()
1592 if (i > buflen - nwritten) // Make sure we don't truncate in the middle of a UTF-8 character in DebugSNPrintFVAList()
1593 { i = buflen - nwritten; while (i>0 && (s[i] & 0xC0) == 0x80) i--; } in DebugSNPrintFVAList()
1595 nwritten += i; in DebugSNPrintFVAList()
[all …]
/external/libpcap/
Dpcap-sita.c370 int nwritten; in send_to_fd() local
374 if ((nwritten = write(fd, str, len)) <= 0) { in send_to_fd()
381 len -= nwritten; in send_to_fd()
382 str += nwritten; in send_to_fd()
/external/mdnsresponder/mDNSCore/
DDNSCommon.c2867 mDNSu32 nwritten = 0; in mDNS_vsnprintf() local
2878 if (++nwritten >= buflen) goto exit; in mDNS_vsnprintf()
3101 if (F.hSize) * (short *) s = (short)nwritten; in mDNS_vsnprintf()
3102 else if (F.lSize) * (long *) s = (long)nwritten; in mDNS_vsnprintf()
3103 else * (int *) s = (int)nwritten; in mDNS_vsnprintf()
3110 if (++nwritten >= buflen) goto exit; in mDNS_vsnprintf()
3117 if (++nwritten >= buflen) goto exit; in mDNS_vsnprintf()
3125 if (i > buflen - nwritten) in mDNS_vsnprintf()
3126 { i = buflen - nwritten; while (i>0 && (s[i] & 0xC0) == 0x80) i--; } in mDNS_vsnprintf()
3128 nwritten += i; in mDNS_vsnprintf()
[all …]
/external/python/cpython2/Objects/
Dfileobject.c1877 Py_ssize_t i, j, nwritten, len; in file_writelines() local
1970 nwritten = fwrite(PyString_AS_STRING(line), in file_writelines()
1972 if (nwritten != len) { in file_writelines()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-darwin.c3736 vki_uint64_t *, nwritten, struct sf_hdtr *, sf_header, int, flags); in PRE()
3746 vki_uint64_t *, nwritten, struct sf_hdtr *, sf_header, int, flags); in PRE()