Searched defs:buffer (Results 101 - 125 of 1119) sorted by relevance

1234567891011>>

/freebsd-head/contrib/netbsd-tests/kernel/kqueue/write/
H A Dt_ttypty.c56 char buffer[128]; local
72 n = read(check_master ? aslave : amaster, buffer, 128);
73 (void)printf("tty: child read '%.*s'\n", n, buffer);
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dsha2.h71 u_int8_t buffer[SHA256_BLOCK_LENGTH]; member in struct:_SHA256_CTX
76 u_int8_t buffer[SHA512_BLOCK_LENGTH]; member in struct:_SHA512_CTX
/freebsd-head/share/examples/tests/tests/tap/
H A Dprintf_test.c93 char buffer[128]; local
95 if (snprintf(buffer, sizeof(buffer), "%s, %s!", "Hello",
101 if (strcmp(buffer, "Hello, tests!") != 0)
102 fail("Bad formatting: got %s", buffer);
111 char buffer[10]; local
113 if (snprintf(buffer, sizeof(buffer), "0123456789abcdef") != 16) {
121 if (strcmp(buffer, "012345678") != 0)
122 fail("Bad formatting: got %s", buffer);
131 char buffer[128]; local
[all...]
/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlzio.h24 char *buffer; member in struct:Mbuffer
29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0)
31 #define luaZ_buffer(buff) ((buff)->buffer)
39 (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \
56 const char *p; /* current position in buffer */
/freebsd-head/lib/libc/stdtime/
H A Dtimelocal.c45 char *buffer; member in struct:xlocale_time
116 if (l->buffer)
117 free(l->buffer);
135 &l->buffer, "LC_TIME",
/freebsd-head/usr.sbin/bluetooth/btpand/
H A Dclient.c129 log_err("Could not get socket send buffer size: %m");
136 log_err("Could not set socket send buffer size (%d): %m", n);
170 uint8_t buffer[512]; local
179 attr.vlen = sizeof(buffer);
180 attr.value = buffer;
/freebsd-head/usr.sbin/bluetooth/hccontrol/
H A Dsend_recv.c49 char buffer[512]; local
51 ng_hci_cmd_pkt_t *c = (ng_hci_cmd_pkt_t *) buffer;
52 ng_hci_event_pkt_t *e = (ng_hci_event_pkt_t *) buffer;
66 memcpy(buffer + sizeof(*c), cp, cp_size);
70 if (hci_send(s, buffer, sizeof(*c) + cp_size) == ERROR)
74 n = sizeof(buffer);
75 if (hci_recv(s, buffer, &n) == ERROR)
102 memcpy(rp, buffer + sizeof(*e) + sizeof(*cc), *rp_size);
134 hci_send(int s, char const *buffer, int size) argument
136 assert(buffer !
148 hci_recv(int s, char *buffer, int *size) argument
[all...]
/freebsd-head/sbin/ddb/
H A Dddb_script.c62 char *buffer, *line, *nextline; local
72 buffer = malloc(buflen);
73 if (buffer == NULL)
75 bzero(buffer, buflen);
77 ret = sysctlbyname(SYSCTL_SCRIPTS, buffer, &len, NULL, 0);
81 free(buffer);
86 * We nul'd the buffer before calling sysctl(), so at worst empty.
91 printf("%s", buffer);
92 free(buffer);
100 nextline = buffer;
[all...]
/freebsd-head/contrib/libevent/sample/
H A Dhttp-connect.c6 #include <event2/buffer.h>
40 char buffer[URL_MAX]; local
51 evhttp_uri_join(location, buffer, URL_MAX)));
57 char buffer[URL_MAX]; local
106 evutil_snprintf(buffer, URL_MAX, "%s:%d",
108 evhttp_make_request(evcon, req, EVHTTP_REQ_CONNECT, buffer);
/freebsd-head/contrib/libarchive/libarchive/
H A Darchive_read_open_file.c56 void *buffer; member in struct:read_FILE_data
82 mine->buffer = b;
114 *buff = mine->buffer;
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
177 free(mine->buffer);
/freebsd-head/contrib/capsicum-test/
H A Dmqueue.cc89 char* buffer = (char *)malloc(mqa.mq_msgsize); local
91 EXPECT_NOTCAPABLE(mq_timedreceive_(cap_write_mq, buffer, mqa.mq_msgsize, &priority, &ts));
92 EXPECT_OK(mq_timedreceive_(cap_read_mq, buffer, mqa.mq_msgsize, &priority, &ts));
93 EXPECT_EQ(std::string(message), std::string(buffer));
95 free(buffer);
/freebsd-head/tests/sys/kern/
H A Dpdeathsig.c163 char buffer; local
211 rc = read(pipe_cb[0], &buffer, 1);
220 rc = read(pipe_ca[0], &buffer, 1);
233 char buffer; local
302 rc = read(pipe_cd[0], &buffer, 1);
325 rc = read(pipe_db[0], &buffer, 1);
335 rc = read(pipe_ca[0], &buffer, 1);
/freebsd-head/contrib/libedit/TEST/
H A Dtest_filecompletion.c526 wchar_t *buffer = malloc(64 * sizeof(*buffer)); local
527 if (buffer == NULL)
531 memset(buffer, 0, 64 * sizeof(*buffer));
533 wmemcpy(buffer, inputs[i].user_typed_text, input_len);
534 buffer[input_len] = 0;
535 line.buffer = buffer;
536 line.cursor = line.buffer
[all...]
/freebsd-head/contrib/processor-trace/libipt/src/
H A Dpt_section_file.c197 int pt_sec_file_read(const struct pt_section *section, uint8_t *buffer, argument
206 if (!buffer || !section)
231 read = fread(buffer, 1, size, file);
/freebsd-head/contrib/llvm-project/libcxx/src/
H A Dcharconv.cpp35 append1(char* buffer, T i) argument
37 *buffer = '0' + static_cast<char>(i);
38 return buffer + 1;
43 append2(char* buffer, T i) argument
45 memcpy(buffer, &cDigitsLut[(i)*2], 2);
46 return buffer + 2;
51 append3(char* buffer, T i) argument
53 return append2(append1(buffer, (i) / 100), (i) % 100);
58 append4(char* buffer, T i) argument
60 return append2(append2(buffer, (
65 append2_no_zeros(char* buffer, T v) argument
75 append4_no_zeros(char* buffer, T v) argument
87 append8_no_zeros(char* buffer, T v) argument
102 __u32toa(uint32_t value, char* buffer) argument
123 __u64toa(uint64_t value, char* buffer) argument
[all...]
/freebsd-head/contrib/llvm-project/lldb/source/DataFormatters/
H A DStringPrinter.cpp33 GetPrintableImpl(uint8_t *buffer, uint8_t *buffer_end, uint8_t *&next);
65 GetPrintableImpl<StringPrinter::StringElementType::ASCII>(uint8_t *buffer, argument
70 switch (*buffer) {
102 if (isprint(*buffer))
103 retval = {buffer, 1};
106 sprintf((char *)data, "\\x%02x", *buffer);
112 next = buffer + 1;
130 GetPrintableImpl<StringPrinter::StringElementType::UTF8>(uint8_t *buffer, argument
135 unsigned utf8_encoded_len = llvm::getNumBytesForUTF8(*buffer);
137 if (1u + std::distance(buffer, buffer_en
229 GetPrintable(StringPrinter::StringElementType type, uint8_t *buffer, uint8_t *buffer_end, uint8_t *&next) argument
[all...]
/freebsd-head/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_safe_c_api.h33 // Use this only when buffer size is unknown
38 // Use this only when buffer size is unknown
41 // _TRUNCATE insures buffer size > max string to print.
63 static inline void __kmp_strncpy_truncate(char *buffer, size_t buf_size, argument
67 KMP_STRNCPY_S(buffer, buf_size, src, src_size);
68 buffer[buf_size - 1] = '\0';
70 KMP_STRNCPY_S(buffer, buf_size, src, src_size);
/freebsd-head/contrib/gdb/gdb/
H A Dkod-cisco.c33 /* Size of buffer used for remote communication. */
51 char buffer[PBUFSIZ];
70 (*gdb_kod_query) ("oI;", buffer, &bufsiz);
72 strcpy (buffer, "Cisco IOS/Classic/13.4 0.0.0");
76 for (i = 0; count && buffer[i] != '\0'; ++i)
78 if (buffer[i] == ' ')
82 if (buffer[i] == '\0')
84 if (strcmp (&buffer[i], "0.0.0"))
85 error ("Remote returned unknown stub version: %s\n", &buffer[i]);
112 char buffer[PBUFSI
50 char buffer[PBUFSIZ]; local
111 char buffer[PBUFSIZ], command[PBUFSIZ]; local
[all...]
/freebsd-head/contrib/binutils/opcodes/
H A Ds390-dis.c109 bfd_byte buffer[6]; local
123 memset (buffer, 0, 6);
124 status = (*info->read_memory_func) (memaddr, buffer, 6, info);
128 if ((*info->read_memory_func) (memaddr, buffer, bufsize + 1, info) != 0)
138 opsize = ((((buffer[0] >> 6) + 1) >> 1) + 1) << 1;
144 opsize = ((((buffer[0] >> 6) + 1) >> 1) + 1) << 1;
151 for (opcode = s390_opcodes + opc_index[(int) buffer[0]];
152 (opcode < opcode_end) && (buffer[0] == opcode->opcode[0]);
162 if ((buffer[1] & opcode->mask[1]) != opcode->opcode[1]
163 || (buffer[
[all...]
/freebsd-head/cddl/compat/opensolaris/lib/libumem/
H A Dumem.c155 void umem_cache_free(umem_cache_t *cache, void *buffer) argument
158 cache->destructor(buffer, cache->callback_data);
160 free(buffer);
/freebsd-head/crypto/heimdal/appl/telnet/telnet/
H A Dring.c39 * This defines a structure for a ring buffer.
41 * The circular buffer has two parts:
66 * clock, that when the times are EQUAL, then the buffer is FULL.
83 ring_init(Ring *ring, unsigned char *buffer, int count) argument
89 ring->supply = ring->consume = ring->bottom = buffer;
137 * Add characters from current segment to ring buffer.
253 * Move data into the "supply" portion of of the ring buffer.
256 ring_supply_data(Ring *ring, unsigned char *buffer, int count) argument
262 memmove(ring->supply, buffer, i);
265 buffer
275 ring_consume_data(Ring *ring, unsigned char *buffer, int count) argument
[all...]
/freebsd-head/libexec/bootpd/tools/bootpef/
H A Dbootpef.c100 byte *buffer;
143 buffer = (byte *) malloc(BUFFERSIZE);
144 if (!buffer) {
287 vp = buffer;
309 /* Write the buffer to the extension file. */
316 len = vp - buffer;
317 if (len != fwrite(buffer, 1, len, fp)) {
98 byte *buffer; variable
/freebsd-head/sys/contrib/octeon-sdk/
H A Dcvmx-sysinfo.c206 char buffer[80]; local
207 if (fgets(buffer, sizeof(buffer), infile))
209 const char *field = strtok(buffer, " ");
/freebsd-head/usr.sbin/nscd/agents/
H A Dgroup.c49 group_marshal_func(struct group *grp, char *buffer, size_t *buffer_size) argument
73 if ((desired_size > *buffer_size) || (buffer == NULL)) {
80 memset(buffer, 0, desired_size);
83 p = buffer + sizeof(struct group) + sizeof(char *);
84 memcpy(buffer + sizeof(struct group), &p, sizeof(char *));
115 memcpy(buffer, &new_grp, sizeof(struct group));
121 group_lookup_func(const char *key, size_t key_size, char **buffer, argument
132 assert(buffer != NULL);
178 *buffer = malloc(*buffer_size);
179 assert(*buffer !
198 group_mp_lookup_func(char **buffer, size_t *buffer_size, void *mdata) argument
[all...]
H A Dpasswd.c49 passwd_marshal_func(struct passwd *pwd, char *buffer, size_t *buffer_size) argument
69 if ((*buffer_size < desired_size) || (buffer == NULL)) {
76 memset(buffer, 0, desired_size);
79 p = buffer + sizeof(struct passwd) + sizeof(char *);
80 memcpy(buffer + sizeof(struct passwd), &p, sizeof(char *));
124 memcpy(buffer, &new_pwd, sizeof(struct passwd));
130 passwd_lookup_func(const char *key, size_t key_size, char **buffer, argument
141 assert(buffer != NULL);
186 *buffer = malloc(*buffer_size);
187 assert(*buffer !
206 passwd_mp_lookup_func(char **buffer, size_t *buffer_size, void *mdata) argument
[all...]

Completed in 439 milliseconds

1234567891011>>