Searched defs:off (Results 1 - 25 of 291) sorted by relevance

1234567891011>>

/vbox/src/VBox/Runtime/common/path/
H A DRTPathCountComponents.cpp40 size_t off = rtPathRootSpecLen(pszPath); local
41 size_t c = off != 0;
42 while (pszPath[off])
45 while (!RTPATH_IS_SLASH(pszPath[off]) && pszPath[off])
46 off++;
47 while (RTPATH_IS_SLASH(pszPath[off]))
48 off++;
H A DRTPathStripTrailingSlash.cpp40 size_t off = strlen(pszPath); local
41 while (off > 1)
43 off--;
44 switch (pszPath[off])
49 if ( off == 2
52 return off + 1;
54 pszPath[off] = '\0';
58 return off + 1;
H A DrtPathRootSpecLen.cpp54 size_t off = 0; local
63 off = 2;
64 while (!RTPATH_IS_SLASH(pszPath[off]) && pszPath[off])
65 off++;
66 while (RTPATH_IS_SLASH(pszPath[off]))
67 off++;
70 while (!RTPATH_IS_SLASH(pszPath[off]) && pszPath[off])
71 off
[all...]
H A DRTPathCopyComponents.cpp63 size_t off = rtPathRootSpecLen(pszSrc); local
64 size_t c = off != 0;
65 while (c < cComponents && pszSrc[off])
68 while (!RTPATH_IS_SLASH(pszSrc[off]) && pszSrc[off])
69 off++;
70 while (RTPATH_IS_SLASH(pszSrc[off]))
71 off++;
75 * Copy up to but not including 'off'.
77 if (off >
[all...]
H A DRTPathParseSimple.cpp104 ssize_t off = offName - 1; local
105 while (off >= offRoot && RTPATH_IS_SLASH(pszPath[off]))
106 off--;
107 *pcchDir = RT_MAX(off, offRoot) + 1;
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ath/
H A Dath_main.c29 u32 off; local
47 off = ((unsigned long) iob->data) % common->cachelsz;
48 if (off != 0)
50 iob_reserve(iob, common->cachelsz - off);
51 *iob_addr += common->cachelsz - off;
/vbox/src/VBox/Runtime/generic/
H A DRTPathGetCurrentDrive-generic.cpp51 * Drive letter? Chop off at root slash.
60 * UNC? Chop off after share.
68 size_t off = 3; local
69 while (!RTPATH_IS_SLASH(pszPath[off]) && pszPath[off])
70 off++;
71 size_t offServerSlash = off;
74 if (RTPATH_IS_SLASH(pszPath[off]))
76 while (RTPATH_IS_SLASH(pszPath[off]))
77 off
[all...]
H A DRTFileReadAllEx-generic.cpp38 RTDECL(int) RTFileReadAllEx(const char *pszFilename, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile) argument
46 rc = RTFileReadAllByHandleEx(File, off, cbMax, fFlags, ppvFile, pcbFile);
H A DRTFileReadAllByHandleEx-generic.cpp40 RTDECL(int) RTFileReadAllByHandleEx(RTFILE File, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile) argument
58 RTFOFF cbAllocFile = cbFile > off ? cbFile - off : 0;
76 rc = RTFileSeek(File, off, RTFILE_SEEK_BEGIN, NULL);
/vbox/src/VBox/Runtime/testcase/
H A DtstRTFileAppend-1.cpp58 uint64_t off = 0; local
59 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_CURRENT, &offActual), VINF_SUCCESS);
65 off = 0;
66 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_CURRENT, &offActual), VINF_SUCCESS);
68 RTTestIPrintf(RTTESTLVL_INFO, "off=%llu after first write\n", offActual);
76 off = 5;
77 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_BEGIN, &offActual), VINF_SUCCESS);
98 off = 0;
99 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_CURRENT, &offActual), VINF_SUCCESS);
101 RTTestIPrintf(RTTESTLVL_INFO, "off
[all...]
H A DtstFileAppendWin-1.cpp71 LARGE_INTEGER off; local
93 off.QuadPart = 0;
94 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
96 else if (off.QuadPart != 0)
97 MyError("unexpected position on open: %ld - expected 0\n", (long)off.QuadPart);
102 off.QuadPart = 0;
103 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
105 else if (off
[all...]
H A DtstRTFilesystem.cpp58 uint64_t off = 0; local
70 while (off < cbFs)
74 rc = RTVfsIsRangeInUse(hVfs, off, 1024, &fUsed);
86 off += 1024;
H A DtstRTFileAio.cpp94 RTFOFF off = 0; local
109 rc = RTFileAioReqPrepareWrite(paReqs[i], File, off, papvBuf[i],
112 rc = RTFileAioReqPrepareRead(paReqs[i], File, off, papvBuf[i],
117 off += cbTransfer;
H A DtstRTR0Common.h203 size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1); local
204 size_t cbLeft = sizeof(g_szErr) - off;
207 char *psz = &g_szErr[off];
208 if (off)
231 size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1); local
234 RTStrPrintfV(&g_szErr[off], sizeof(g_szErr) - off, pszFormat, va);
244 size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1); local
245 size_t cbLeft = sizeof(g_szErr) - off;
248 char *psz = &g_szErr[off];
271 size_t off = RTStrNLen(g_szErr, sizeof(g_szErr) - 1); local
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/
H A Dfgetstr.c102 size_t off; local
137 * As a bonus, though, we can leave off the __SMOD.
145 for (len = fp->_r, off = 0;; len += fp->_r) {
155 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
156 len - off);
157 off = len;
169 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
/vbox/src/VBox/Runtime/common/vfs/
H A Dvfsiosmisc.cpp84 size_t off; local
85 while ((off = (pszCur - &achBuf[0])) < offEnd)
109 if (off < cbUsed)
111 cbUsed -= off;
/vbox/src/VBox/ValidationKit/bootsectors/
H A DVBoxBs2Linker.cpp144 size_t off = 0; local
178 off += cbRead;
/vbox/src/VBox/VMM/VMMAll/
H A DVMMAll.cpp49 unsigned off = 0; local
55 pszBuf[off++] = ((uNumber / 1000) % 10) + '0';
56 pszBuf[off++] = ((uNumber / 100) % 10) + '0';
58 pszBuf[off++] = ((uNumber / 10) % 10) + '0';
60 pszBuf[off++] = (uNumber % 10) + '0';
61 pszBuf[off] = '\0';
62 return off;
115 int off = 0; variable
117 szTmp[off++] = ',';
118 off
[all...]
/vbox/src/bldprogs/
H A Dpreload.cpp110 size_t off = 0; local
112 while (off < cbFile)
113 uCrc += puchFile[off++];
177 size_t off = strlen(psz); local
178 while ( off > 0
179 && ( psz[off - 1] == ' '
180 || psz[off - 1] == '\t'
181 || psz[off - 1] == '\n'
182 || psz[off - 1] == '\r')
184 psz[--off]
[all...]
/vbox/src/VBox/Devices/Network/slirp/
H A Dip_output.c106 * header (with len, off, ttl, proto, tos, src, dst).
123 int len, off, error = 0; local
226 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len)
249 mhip->ip_off = ((off - mhlen) >> 3) + (ip->ip_off & ~IP_MF);
252 if (off + len >= (u_int16_t)ip->ip_len)
253 len = (u_int16_t)ip->ip_len - off;
260 m_copydata(m0, off, len, buf); /* copy to buffer */
261 Log(("NAT:ip:frag: m_copydata(m0 = %p,off
[all...]
H A Dsbuf.c257 sbcopy(struct sbuf *sb, int off, int len, char *to) argument
261 from = sb->sb_rptr + off;
273 /* re-use off */
274 off = (sb->sb_data + sb->sb_datalen) - from;
275 if (off > len)
276 off = len;
277 memcpy(to, from, off);
278 len -= off;
280 memcpy(to+off, sb->sb_data, len);
H A Dtcp_output.c96 int off, flags, error; local
123 off = tp->snd_nxt - tp->snd_una;
156 if (off < SBUF_LEN(&so->so_snd))
167 len = min(SBUF_LEN(&so->so_snd), win) - off;
212 len + off >= SBUF_LEN(&so->so_snd))
424 sbcopy(&so->so_snd, off, (int) len, mtod(m, caddr_t) + hdrlen);
430 m->m_next = m_copy(so->so_snd.sb_mb, off, (int) len);
441 if (off + len == SBUF_LEN(&so->so_snd))
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ath/ath9k/
H A Dath9k.c58 static int ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data) argument
63 (off << AR5416_EEPROM_S));
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/
H A Ddt_buf.c92 size_t off = (size_t)(bp->dbu_ptr - bp->dbu_buf); local
93 size_t adj = roundup(off, align) - off;
115 bcopy(bp->dbu_buf, new_buf, off);
119 bp->dbu_ptr = new_buf + off;
145 size_t off = (size_t)(bp->dbu_ptr - bp->dbu_buf); local
146 return (roundup(off, align));
/vbox/src/VBox/NetworkServices/NAT/
H A Dproxy.h40 uint32_t off; member in struct:ip4_lomap

Completed in 205 milliseconds

1234567891011>>