/vbox/src/VBox/Devices/PC/ipxe/src/core/ |
H A D | cpio.c | 38 char buf[9]; local 40 snprintf ( buf, sizeof ( buf ), "%08lx", value ); 41 memcpy ( field, buf, 8 );
|
/vbox/src/VBox/Devices/Network/lwip-new/src/include/lwip/ |
H A D | netbuf.h | 66 void netbuf_delete (struct netbuf *buf); 67 void * netbuf_alloc (struct netbuf *buf, u16_t size); 68 void netbuf_free (struct netbuf *buf); 69 err_t netbuf_ref (struct netbuf *buf, 74 err_t netbuf_data (struct netbuf *buf, 76 s8_t netbuf_next (struct netbuf *buf); 77 void netbuf_first (struct netbuf *buf); 80 #define netbuf_copy_partial(buf, dataptr, len, offset) \ 81 pbuf_copy_partial((buf)->p, (dataptr), (len), (offset)) 82 #define netbuf_copy(buf,datapt [all...] |
/vbox/src/VBox/Devices/Network/lwip-new/src/api/ |
H A D | netbuf.c | 58 struct netbuf *buf; local 60 buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); 61 if (buf != NULL) { 62 buf->p = NULL; 63 buf->ptr = NULL; 64 ipX_addr_set_any(LWIP_IPV6, &buf->addr); 65 buf->port = 0; 68 buf->flags = 0; 70 buf->toport_chksum = 0; 72 ipX_addr_set_any(LWIP_IPV6, &buf 87 netbuf_delete(struct netbuf *buf) argument 107 netbuf_alloc(struct netbuf *buf, u16_t size) argument 131 netbuf_free(struct netbuf *buf) argument 150 netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size) argument 193 netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len) argument 218 netbuf_next(struct netbuf *buf) argument 239 netbuf_first(struct netbuf *buf) argument [all...] |
/vbox/src/libs/xpcom18a4/ipc/ipcd/extensions/lock/src/ |
H A D | ipcLockProtocol.cpp | 45 static inline PRUint8 get_opcode(const PRUint8 *buf) argument 47 return (buf[0] & 0x0f); 50 static inline PRUint8 get_flags(const PRUint8 *buf) argument 52 return (buf[0] & 0xf0) >> 4; 55 static inline const char *get_key(const PRUint8 *buf) argument 57 return ((const char *) buf) + 1; 69 PRUint8 *buf = (PRUint8 *) ::operator new(len); local 70 if (!buf) 73 buf[0] = (msg->opcode | (msg->flags << 4)); 75 memcpy(&buf[ 81 IPC_UnflattenLockMsg(const PRUint8 *buf, PRUint32 bufLen, ipcLockMsg *msg) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | pipepong.c | 62 char buf[1024]; local 67 memset(buf, 0, sizeof(buf)); 68 nBytes = fread(buf, 1, 5, stdin); 69 fprintf(stderr, "pong process: received \"%s\"\n", buf); 75 if (strcmp(buf, "ping") != 0) { 77 buf); 81 strcpy(buf, "pong"); 82 fprintf(stderr, "pong process: sending \"%s\"\n", buf); 83 nBytes = fwrite(buf, [all...] |
H A D | pipepong2.c | 65 char buf[1024]; local 91 memset(buf, 0, sizeof(buf)); 92 nBytes = PR_Read(pipe_read, buf, sizeof(buf)); 98 printf("pong process: received \"%s\"\n", buf); 104 if (strcmp(buf, "ping") != 0) { 106 buf); 110 strcpy(buf, "pong"); 111 printf("pong process: sending \"%s\"\n", buf); [all...] |
H A D | sockpong.c | 65 char buf[1024]; local 81 memset(buf, 0, sizeof(buf)); 82 nBytes = PR_Read(sock, buf, sizeof(buf)); 88 printf("pong process: received \"%s\"\n", buf); 94 if (strcmp(buf, "ping") != 0) { 96 buf); 100 strcpy(buf, "pong"); 101 printf("pong process: sending \"%s\"\n", buf); [all...] |
H A D | prftest.c | 57 char buf[BUF_SIZE]; local 66 PR_snprintf(buf, BUF_SIZE, "%hx %x %lx %llx", i16, n, i32, i64); 73 if (!strcmp(buf, answer)) { 77 printf("Converted string is %s\n", buf); 86 PR_snprintf(buf, BUF_SIZE, "%d %hd %lld %ld", n, i16, i64, i32); 87 if (!strcmp(buf, "30 -32 333 64")) { 91 printf("Converted string is %s\n", buf);
|
H A D | pipeself.c | 64 char buf[1024]; local 70 memset(buf, 0, sizeof(buf)); 71 nBytes = PR_Read(pong_in, buf, sizeof(buf)); 76 printf("pong thread: received \"%s\"\n", buf); 82 if (strcmp(buf, "ping") != 0) { 84 buf); 87 strcpy(buf, "pong"); 88 printf("pong thread: sending \"%s\"\n", buf); 113 char buf[1024]; local [all...] |
/vbox/src/libs/zlib-1.2.6/contrib/blast/ |
H A D | blast.h | 34 typedef unsigned (*blast_in)(void *how, unsigned char **buf); 35 typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len); 48 * The input function is invoked: len = infun(how, &buf), where buf is set by 54 * The output function is invoked: err = outfun(how, buf, len), where the bytes 55 * to be written are buf[0..len-1]. If err is not zero, then blast() returns
|
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestMultiAggPrinta.java | 46 StringBuffer buf = new StringBuffer(); 47 buf.append(PrintaRecord.class.getName()); 48 buf.append("[aggregations = "); 49 buf.append(rec.getAggregations()); 50 buf.append(", formattedStrings = "); 51 buf.append(rec.getFormattedStrings()); 52 buf.append(", tuples = "); 53 buf.append(rec.getTuples()); 54 buf.append(", output = "); 55 buf [all...] |
H A D | TestProbeData.java | 57 StringBuilder buf = new StringBuilder(); 58 buf.append("[probe "); 59 buf.append(p.getEnabledProbeID()); 60 buf.append(' '); 62 buf.append("pid$target"); 63 buf.append(':'); 64 buf.append(d.getModule()); 65 buf.append(':'); 66 buf.append(d.getFunction()); 67 buf [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/ |
H A D | perror.c | 60 static char buf[ASCII_STRING_MAX]; local 70 (void)strerror_r(errno, buf, sizeof(buf)); 71 (void)fprintf(stderr, "%s%s%s\n", s, separator, buf);
|
H A D | gets.c | 57 gets(char *buf) argument 62 _DIAGASSERT(buf != NULL); 65 for (s = buf; (c = getchar_unlocked()) != '\n'; ) { 67 if (s == buf) { 79 return (buf);
|
H A D | setbuf.c | 56 setbuf(FILE *fp, char *buf) argument 60 /* buf may be NULL */ 62 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
|
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/bus/ |
H A D | isa_ids.c | 12 static char buf[7]; local 18 buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) ); 23 sprintf ( &buf[3], "%04x", bswap_16 ( product ) ); 25 return buf;
|
/vbox/src/recompiler/tests/ |
H A D | testthread.c | 14 char buf[512]; local 17 snprintf(buf, sizeof(buf), "thread1: %d %s\n", i, (char *)arg); 18 write(1, buf, strlen(buf)); 27 char buf[512]; local 29 snprintf(buf, sizeof(buf), "thread2: %d %s\n", i, (char *)arg); 30 write(1, buf, strlen(buf)); [all...] |
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/ |
H A D | utime.h | 68 static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); } argument 69 static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime32(s, (struct __utimbuf32*)buf); } argument 70 static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime32(s, (struct __utimbuf32*)buf); } argument 72 static inline int _futime(int fd, struct _utimbuf *buf) { return _futime64(fd, (struct __utimbuf64*)buf); } argument 73 static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime64(s, (struct __utimbuf64*)buf); } argument 74 _wutime(const wchar_t *s, struct _utimbuf *buf) argument 84 utime(const char* path, struct _utimbuf* buf) argument [all...] |
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/sys/ |
H A D | utime.h | 68 static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); } argument 69 static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime32(s, (struct __utimbuf32*)buf); } argument 70 static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime32(s, (struct __utimbuf32*)buf); } argument 72 static inline int _futime(int fd, struct _utimbuf *buf) { return _futime64(fd, (struct __utimbuf64*)buf); } argument 73 static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime64(s, (struct __utimbuf64*)buf); } argument 74 _wutime(const wchar_t *s, struct _utimbuf *buf) argument 84 utime(const char* path, struct _utimbuf* buf) argument [all...] |
/vbox/src/VBox/GuestHost/OpenGL/util/ |
H A D | environment.c | 19 char *buf; 22 buf = (char *) crAlloc( len ); 23 sprintf( buf, "%s=%s", var, value ); 24 putenv( buf ); 26 /* don't free the buf, the string is *part* of the environment,
|
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/ |
H A D | editstring.h | 15 char *buf; member in struct:edit_string 35 * @v buf Buffer for string 38 static inline void init_editstring ( struct edit_string *string, char *buf, argument 40 string->buf = buf;
|
/vbox/src/VBox/VMM/ |
H A D | pure_test.sh | 45 read buf # ignore 46 read buf; baseline_r0=`echo $buf | kmk_sed -e 's/^[[:space:]]*\([^[[:space:]]*\).*$/\1/' ` 47 read buf; baseline_rc=`echo $buf | kmk_sed -e 's/^[[:space:]]*\([^[[:space:]]*\).*$/\1/' ` 48 read buf; baseline_r3=`echo $buf | kmk_sed -e 's/^[[:space:]]*\([^[[:space:]]*\).*$/\1/' ` 69 read buf # ignore 70 read buf; cur_r0=`echo $buf | kmk_se [all...] |
/vbox/src/libs/xpcom18a4/ipc/ipcd/shared/src/ |
H A D | ipcLog.cpp | 72 WritePrefix(char *buf, PRUint32 bufLen) argument 74 return PR_snprintf(buf, bufLen, "[%u:%p] %s ", 88 WritePrefix(char *buf, PRUint32 bufLen) argument 90 return PR_snprintf(buf, bufLen, "[%u:%p] %s ", 125 char buf[512]; local 130 if (nb > sizeof(buf) - 2) 131 nb = sizeof(buf) - 2; 132 PL_strncpy(buf, ipcLogPrefix, nb); 133 buf[nb++] = ' '; 137 nb = WritePrefix(buf, sizeo [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Locale/ |
H A D | _wcstod.h | 59 char *buf, *end; local 90 buf = (void *)malloc(bufsiz + 1); 91 if (buf == NULL) 95 len = wcstombs(buf, src, bufsiz + 1); 98 _DIAGASSERT(buf[len] == '\0'); 101 val = _STRTOD_FUNC(buf, &end); 102 if (buf == end) { 103 free(buf); 115 *endptr = __UNCONST(start + (size_t)(end - buf)); 117 free(buf); [all...] |
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libctf/common/ |
H A D | ctf_subr.c | 54 ctf_data_free(void *buf, size_t size) argument 57 (void) munmap(buf, size); 59 RTMemProtect(buf, size, RTMEM_PROT_WRITE | RTMEM_PROT_READ); 60 RTMemPageFree(buf, size); 65 ctf_data_protect(void *buf, size_t size) argument 68 (void) mprotect(buf, size, PROT_READ); 70 int rc = RTMemProtect(buf, size, RTMEM_PROT_READ); 87 ctf_free(void *buf, size_t size) argument 90 free(buf); 92 RTMemFree(buf); [all...] |