Searched refs:sbuf (Results 1 - 17 of 17) sorted by relevance

/vbox/src/VBox/Devices/Network/slirp/bsd/sys/
H A Dsbuf.h28 * $FreeBSD: src/sys/sys/sbuf.h,v 1.14.18.1.2.1 2009/04/15 03:14:26 kensmith Exp $
43 struct sbuf { struct
53 #define SBUF_OVERFLOWED 0x00040000 /* sbuf overflowed */
54 #define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */
62 struct sbuf *sbuf_new(struct sbuf *, char *, int, int);
65 void sbuf_clear(struct sbuf *);
66 int sbuf_setpos(struct sbuf *, int);
67 int sbuf_bcat(struct sbuf *, const void *, size_t);
68 int sbuf_bcpy(struct sbuf *, cons
[all...]
/vbox/src/VBox/Devices/Network/slirp/
H A Dsbuf.h3 * NAT - sbuf declarations/defines.
36 struct sbuf struct
41 * bytes should be written in the sbuf */
43 * byte should be read from the sbuf */
47 void sbfree (struct sbuf *);
48 void sbdrop (struct sbuf *, int);
49 void sbreserve (PNATState, struct sbuf *, int);
51 void sbappendsb (PNATState, struct sbuf *, struct mbuf *);
52 void sbcopy (struct sbuf *, int, int, char *);
H A Dsbuf.c3 * NAT - sbuf implemenation.
38 sbfree(struct sbuf *sb)
57 sbdrop(struct sbuf *sb, int num)
73 sbreserve(PNATState pData, struct sbuf *sb, int size)
204 sbappendsb(PNATState pData, struct sbuf *sb, struct mbuf *m)
252 * Copy data from sbuf to a normal, straight buffer
253 * Don't update the sbuf rptr, this will be
257 sbcopy(struct sbuf *sb, int off, int len, char *to)
H A Dsocket.h55 /* XXX union these with not-yet-used sbuf params */
87 struct sbuf so_rcv; /* Receive buffer */
88 struct sbuf so_snd; /* Send buffer */
H A Ddebug.c504 * Prints sbuf state
513 const struct sbuf *sb = (struct sbuf *)pvValue;
518 AssertReturn(RTStrCmp(pszType, "sbuf") == 0, 0);
519 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "[sbuf:%p cc:%d, datalen:%d, wprt:%p, rptr:%p data:%p]",
650 rc = RTStrFormatTypeRegister("sbuf", printSbuf, NULL); AssertRC(rc);
H A Dsocket.c234 * Read from so's socket into sb_snd, updating all relevant sbuf fields
242 struct sbuf *sb = &so->so_snd;
256 Log2(("%s: so = %R[natsock] so->so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb));
324 Log2(("%s: so = %R[natsock] so->so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb));
415 Log2(("%s: update so_snd (readed nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, nn, sb));
419 Log2(("%s: alter sb_wptr so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, sb));
466 struct sbuf *sb = &so->so_rcv;
525 * updating all sbuf field as necessary
531 struct sbuf *sb = &so->so_rcv;
545 Log2(("%s: so = %R[natsock] so->so_rcv = %R[sbuf]\
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/
H A Dgettemp.c80 struct stat sbuf; local
132 if (stat(path, &sbuf))
134 if (!S_ISDIR(sbuf.st_mode)) {
155 } else if (lstat(path, &sbuf))
H A Dvsnprintf_ss.c115 if (sbuf < tailp) \
116 *sbuf++ = (C); \
120 vsnprintf_ss(char *sbuf, size_t slen, const char *fmt0, va_list ap)
145 _DIAGASSERT(n == 0 || sbuf != NULL);
148 tailp = sbuf + slen;
488 if (sbuf == tailp)
489 sbuf[-1] = '\0';
491 *sbuf = '\0';
/vbox/src/VBox/Devices/Network/slirp/bsd/kern/
H A Dsubr_sbuf.c50 #include <sys/sbuf.h>
53 static MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers");
96 _assert_sbuf_integrity(const char *fun, struct sbuf *s)
99 ("%s called with a NULL sbuf pointer", fun));
101 ("%s called with uninitialized or corrupt sbuf", fun));
103 ("wrote past end of sbuf (%d >= %d)", s->s_len, s->s_size));
107 _assert_sbuf_state(const char *fun, struct sbuf *s, int state)
110 ("%s called with %sfinished or corrupt sbuf", fun,
138 * Extend an sbuf.
141 sbuf_extend(struct sbuf *
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dsprintf.c61 static char sbuf[20000]; variable
79 sprintf(sbuf, pattern, i);
83 (strncmp(s, sbuf, sizeof(sbuf)) != 0)) {
86 pattern, i, s, buf, sbuf);
157 sprintf(sbuf, spattern, l);
161 (strncmp(s, sbuf, sizeof(sbuf)) != 0)) {
164 pattern, l, s, buf, sbuf);
252 sprintf(sbuf, spatter
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/
H A Dsurface_base.c984 const BYTE *sbuf; local
1307 sbuf = sbase;
1316 memcpy(dbuf, sbuf, width);
1317 sbuf += slock.Pitch;
1323 sbuf += (slock.Pitch*dstheight);
1327 sbuf -= slock.Pitch;
1329 memcpy(dbuf, sbuf, width);
1336 memmove(dbuf, sbuf, width);
1337 sbuf += slock.Pitch;
1344 sbuf
1637 const BYTE *sbuf; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/lib/prstreams/
H A Dprstrms.cpp169 char * sbuf = new char[STRM_BUFSIZ]; local
170 if (!sbuf)
174 streambuf::setb(sbuf,sbuf+STRM_BUFSIZ,0);
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsLocalFileUnix.cpp993 struct stat sbuf; local
994 if (lstat(mPath.get(), &sbuf) == -1)
996 LL_I2L(*aLastModTimeOfLink, (PRInt32)sbuf.st_mtime);
1037 struct stat sbuf; local
1038 if (lstat(mPath.get(), &sbuf) == -1)
1040 *aPermissionsOfLink = NORMALIZE_PERMS(sbuf.st_mode);
1108 struct stat sbuf; local
1109 if (lstat(mPath.get(), &sbuf) == -1)
1112 LL_UI2L(*aFileSize, (PRUint32)sbuf.st_size);
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/
H A Ddtrace.c376 struct stat sbuf; local
390 if (fstat(fd, &sbuf) == -1)
393 if ((buf = malloc((sz = sbuf.st_size) + 1)) == NULL)
457 struct stat sbuf; local
466 if (fstat(fd, &sbuf) == -1)
469 if ((buf = malloc((sz = sbuf.st_size) + 1)) == NULL)
508 O_WRONLY | O_CREAT | O_EXCL, sbuf.st_mode)) == -1)
519 if (chown(tmpname, sbuf.st_uid, sbuf.st_gid) != 0) {
522 (int)sbuf
[all...]
/vbox/src/VBox/Devices/Network/lwip-new/src/netif/ppp/
H A Dauth.c1234 struct stat sbuf;
1236 if (fstat(fileno(f), &sbuf) < 0) {
1238 } else if ((sbuf.st_mode & (S_IRWXG | S_IRWXO)) != 0) {
/vbox/src/VBox/Additions/x11/x11include/xproto-7.0.18/X11/
H A DXos_r.h477 char sbuf[X_LINE_MAX]; member in struct:__anon9658
484 getservbyname_r((s),(p),&(sp).sent,(sp).sbuf,sizeof((sp).sbuf))
/vbox/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/
H A Dsurface.c7043 const BYTE *sbuf; local
7203 sbuf = sbase;
7212 memcpy(dbuf, sbuf, width);
7213 sbuf += src_map.row_pitch;
7220 sbuf += src_map.row_pitch * dstheight;
7224 sbuf -= src_map.row_pitch;
7226 memcpy(dbuf, sbuf, width);
7234 memmove(dbuf, sbuf, width);
7235 sbuf += src_map.row_pitch;
7245 sbuf
[all...]

Completed in 87 milliseconds