/freebsd-10.0-release/crypto/openssl/apps/ |
H A D | app_rand.c | 125 char buffer[200]; local 135 file = RAND_file_name(buffer, sizeof buffer); 196 char buffer[200]; local 206 file = RAND_file_name(buffer, sizeof buffer);
|
/freebsd-10.0-release/sys/dev/drm2/ |
H A D | drm_buffer.h | 29 * Multipart buffer for coping data which is larger than the page size. 51 * Return the index of page that buffer is currently pointing at. 73 * Advance the buffer iterator number of bytes that is given. 81 * Allocate the drm buffer object. 89 * Copy the user data to the begin of the buffer and reset the processing 92 * user_data: A pointer the data that is copied to the buffer. 99 * Free the drm buffer object 104 * Read an object from buffer that may be split to multiple parts. If object 105 * is not split function just returns the pointer to object in buffer. But in 109 * The processing location of the buffer i 130 drm_buffer_pointer_to_dword(struct drm_buffer *buffer, int offset) argument 144 drm_buffer_pointer_to_byte(struct drm_buffer *buffer, int offset) argument [all...] |
/freebsd-10.0-release/usr.bin/at/ |
H A D | perm.c | 61 char *buffer; local 66 if ((buffer = malloc(len+2)) == NULL) 69 while(fgets(buffer, len+2, fp) != NULL) 71 if ((strncmp(name, buffer, len) == 0) && 72 (buffer[len] == '\n')) 79 free(buffer);
|
/freebsd-10.0-release/lib/libc/net/ |
H A D | nscache.c | 59 char *buffer; local 104 buffer = (char *)malloc(NSS_CACHE_BUFFER_INITIAL_SIZE); 105 memset(buffer, 0, NSS_CACHE_BUFFER_INITIAL_SIZE); 114 cache_data->key, cache_data->key_size, buffer, 118 buffer = (char *)realloc(buffer, buffer_size); 119 memset(buffer, 0, buffer_size); 125 free(buffer); 133 res = cache_info->unmarshal_func(buffer, buffer_size, retval, 138 free(buffer); 163 char *buffer; local 265 char *buffer; local 333 char *buffer; local [all...] |
/freebsd-10.0-release/sbin/ddb/ |
H A D | ddb_capture.c | 47 * Interface with the ddb(4) capture buffer of a live kernel using sysctl, or 99 char *buffer, *db_capture_buf; local 109 buffer = malloc(db_capture_bufoff + 1); 110 if (buffer == NULL) 113 bzero(buffer, db_capture_bufoff + 1); 115 if (kread(kvm, db_capture_buf, buffer, db_capture_bufoff, 0) < 0) 116 errx(-1, "kvm: unable to read buffer"); 118 printf("%s\n", buffer); 119 free(buffer); 126 char *buffer; local [all...] |
/freebsd-10.0-release/sys/security/mac/ |
H A D | mac_syscalls.c | 82 char *elements, *buffer; local 116 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 118 buffer, mac.m_buflen); 120 error = copyout(buffer, mac.m_string, strlen(buffer)+1); 122 free(buffer, M_MACTEMP); 131 char *elements, *buffer; local 150 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 152 elements, buffer, mac.m_buflen); 154 error = copyout(buffer, ma 168 char *buffer; local 225 char *elements, *buffer; local 320 char *elements, *buffer; local 371 char *elements, *buffer; local 430 char *buffer; local 527 char *buffer; local 579 char *buffer; local [all...] |
/freebsd-10.0-release/contrib/xz/src/liblzma/simple/ |
H A D | x86.c | 28 uint8_t *buffer, size_t size) 49 uint8_t b = buffer[buffer_pos]; 68 b = buffer[buffer_pos + 4]; 75 | ((uint32_t)(buffer[buffer_pos + 3]) << 16) 76 | ((uint32_t)(buffer[buffer_pos + 2]) << 8) 77 | (buffer[buffer_pos + 1]); 102 buffer[buffer_pos + 4] 104 buffer[buffer_pos + 3] = (uint8_t)(dest >> 16); 105 buffer[buffer_pos + 2] = (uint8_t)(dest >> 8); 106 buffer[buffer_po 27 x86_code(lzma_simple *simple, uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size) argument [all...] |
/freebsd-10.0-release/sys/dev/ieee488/ |
H A D | ugpib.h | 110 int ibcmd(int handle, void *buffer, long cnt); 111 int ibcmda(int handle, void *buffer, long cnt); 114 int ibdiag(int handle, void *buffer, long cnt); 131 int ibrd(int handle, void *buffer, long cnt); 132 int ibrda(int handle, void *buffer, long cnt); 134 int ibrdkey(int handle, void *buffer, int cnt); 149 int ibwrt(int handle, const void *buffer, long cnt); 150 int ibwrta(int handle, const void *buffer, long cnt); 152 int ibwrtkey(int handle, const void *buffer, int cnt); 153 int ibxtrc(int handle, void *buffer, lon [all...] |
/freebsd-10.0-release/sys/ofed/include/linux/ |
H A D | moduleparam.h | 41 typedef int (*param_get_fn)(char *buffer, struct kernel_param *kp); 103 param_get_byte(char *buffer, struct kernel_param *kp) argument 118 param_get_short(char *buffer, struct kernel_param *kp) argument 133 param_get_ushort(char *buffer, struct kernel_param *kp) argument 148 param_get_int(char *buffer, struct kernel_param *kp) argument 163 param_get_uint(char *buffer, struct kernel_param *kp) argument 178 param_get_long(char *buffer, struct kernel_param *kp) argument 193 param_get_ulong(char *buffer, struct kernel_param *kp) argument 208 param_get_charp(char *buffer, struct kernel_param *kp) argument 223 param_get_bool(char *buffer, struc argument [all...] |
/freebsd-10.0-release/usr.bin/brandelf/ |
H A D | brandelf.c | 117 char buffer[EI_NIDENT]; local 124 if (read(fd, buffer, EI_NIDENT) < EI_NIDENT) { 129 if (buffer[0] != ELFMAG0 || buffer[1] != ELFMAG1 || 130 buffer[2] != ELFMAG2 || buffer[3] != ELFMAG3) { 138 argv[0], iselftype(buffer[EI_OSABI]), 139 buffer[EI_OSABI]); 147 buffer[EI_OSABI] = type; 149 if (write(fd, buffer, EI_NIDEN [all...] |
/freebsd-10.0-release/contrib/libyaml/src/ |
H A D | reader.c | 53 /* Ensure that we had enough bytes in the raw buffer. */ 90 * Update the raw buffer. 98 /* Return if the raw buffer is full. */ 108 /* Move the remaining bytes in the raw buffer to the beginning. */ 119 /* Call the read handler to fill the buffer. */ 135 * Ensure that the buffer contains at least `length` characters. 138 * The length is supposed to be significantly less that the buffer size. 148 /* If the EOF flag is set and the raw buffer is empty, do nothing. */ 153 /* Return if the buffer contains enough characters. */ 165 /* Move the unread characters to the beginning of the buffer [all...] |
H A D | scanner.c | 481 * Ensure that the buffer contains the required number of characters. 491 * Advance the buffer pointer. 498 parser->buffer.pointer += WIDTH(parser->buffer)) 501 (IS_CRLF(parser->buffer) ? \ 506 parser->buffer.pointer += 2) : \ 507 IS_BREAK(parser->buffer) ? \ 512 parser->buffer.pointer += WIDTH(parser->buffer)) : 0) 515 * Copy a character to a string buffer an [all...] |
/freebsd-10.0-release/contrib/opie/libopie/ |
H A D | lock.c | 94 char buffer[128], buffer2[128], *c, *c2; local 160 if ((i = read(fh, buffer, sizeof(buffer))) <= 0) 163 buffer[sizeof(buffer) - 1] = 0; 164 buffer[i - 1] = 0; 166 if (!(c = strchr(buffer, '\n'))) 176 if (!(pid = atoi(buffer))) 205 if (snprintf(buffer, sizeof(buffer), " [all...] |
/freebsd-10.0-release/usr.sbin/bluetooth/hccontrol/ |
H A D | send_recv.c | 47 char buffer[512]; local 49 ng_hci_cmd_pkt_t *c = (ng_hci_cmd_pkt_t *) buffer; 50 ng_hci_event_pkt_t *e = (ng_hci_event_pkt_t *) buffer; 64 memcpy(buffer + sizeof(*c), cp, cp_size); 68 if (hci_send(s, buffer, sizeof(*c) + cp_size) == ERROR) 72 n = sizeof(buffer); 73 if (hci_recv(s, buffer, &n) == ERROR) 100 memcpy(rp, buffer + sizeof(*e) + sizeof(*cc), *rp_size); 132 hci_send(int s, char const *buffer, int size) argument 134 assert(buffer ! 146 hci_recv(int s, char *buffer, int *size) argument [all...] |
/freebsd-10.0-release/contrib/binutils/opcodes/ |
H A D | s390-dis.c | 109 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-10.0-release/contrib/ntp/libparse/ |
H A D | clk_rawdcf.c | 122 BUFFER_MAX, /* bit buffer */ 221 unsigned char *buffer, 227 unsigned char *s = buffer; 232 parseprintf(DD_RAWDCF,("parse: convert_rawdcf: \"%s\"\n", buffer)); 262 if ((ext_bf(buffer, DCF_S, dcfprm->zerobits) == 1) && 263 pcheck(buffer, DCF_P_P1, dcfprm->zerobits) && 264 pcheck(buffer, DCF_P_P2, dcfprm->zerobits) && 265 pcheck(buffer, DCF_P_P3, dcfprm->zerobits)) 268 * buffer OK 276 clock_time->minute = ext_bf(buffer, DCF_M1 220 convert_rawdcf( unsigned char *buffer, int size, struct dcfparam *dcfprm, clocktime_t *clock_time ) argument 334 cvt_rawdcf( unsigned char *buffer, int size, struct format *param, clocktime_t *clock_time, void *local ) argument [all...] |
H A D | clk_dcf7000.c | 77 24, /* string buffer */ 88 unsigned char *buffer, 95 if (!Strok(buffer, format->fixed_string)) 101 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day, 103 Stoi(&buffer[format->field_offsets[O_MONTH].offset], &clock_time->month, 105 Stoi(&buffer[format->field_offsets[O_YEAR].offset], &clock_time->year, 107 Stoi(&buffer[format->field_offsets[O_HOUR].offset], &clock_time->hour, 109 Stoi(&buffer[format->field_offsets[O_MIN].offset], &clock_time->minute, 111 Stoi(&buffer[format->field_offsets[O_SEC].offset], &clock_time->second, 118 unsigned char *f = &buffer[forma 87 cvt_dcf7000( unsigned char *buffer, int size, struct format *format, clocktime_t *clock_time, void *local ) argument [all...] |
/freebsd-10.0-release/contrib/ncurses/ncurses/tinfo/ |
H A D | make_keys.c | 73 char buffer[BUFSIZ]; local 79 while (fgets(buffer, sizeof(buffer), ifp) != 0) { 80 if (*buffer == '#') 86 scanned = sscanf(buffer, "%255s %255s", to, from);
|
/freebsd-10.0-release/contrib/nvi/vi/ |
H A D | v_put.c | 30 * v_Put -- [buffer]P 31 * Insert the contents of the buffer before the cursor. 50 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, 61 * v_put -- [buffer]p 62 * Insert the contents of the buffer after the cursor. 81 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, 93 * Historical whackadoo. The dot command `puts' the numbered buffer 94 * after the last one put. For example, `"4p.' would put buffer #4 95 * and buffer #5. If the user continued to enter '.', the #9 buffer [all...] |
/freebsd-10.0-release/sys/dev/e1000/ |
H A D | e1000_manage.h | 41 s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer, 46 u8 *buffer, u16 length); 48 u8 e1000_calculate_checksum(u8 *buffer, u32 length); 49 s32 e1000_host_interface_command(struct e1000_hw *hw, u8 *buffer, u32 length); 50 s32 e1000_load_firmware(struct e1000_hw *hw, u8 *buffer, u32 length);
|
/freebsd-10.0-release/contrib/gdb/gdb/mi/ |
H A D | mi-out.c | 33 struct ui_file *buffer; member in struct:ui_out_data 193 char buffer[20]; /* FIXME: how many chars long a %d can become? */ local 198 sprintf (buffer, "%d", value); 199 mi_field_string (uiout, fldno, width, alignment, fldname, buffer); 230 fprintf_unfiltered (data->buffer, "%s=", fldname); 231 fprintf_unfiltered (data->buffer, "\""); 233 fputstr_unfiltered (string, '"', data->buffer); 234 fprintf_unfiltered (data->buffer, "\""); 251 fprintf_unfiltered (data->buffer, "%s=\"", fldname); 253 fputs_unfiltered ("\"", data->buffer); 365 do_write(void *data, const char *buffer, long length_buffer) argument [all...] |
/freebsd-10.0-release/contrib/texinfo/info/ |
H A D | terminal.c | 78 /* A buffer which holds onto the current terminal description, and a pointer 516 char *buffer; 536 buffer = term_string_buffer; 555 BC = tgetstr ("pc", &buffer); 581 term_cr = tgetstr ("cr", &buffer); 582 term_clreol = tgetstr ("ce", &buffer); 583 term_clrpag = tgetstr ("cl", &buffer); 584 term_goto = tgetstr ("cm", &buffer); 587 term_AL = tgetstr ("AL", &buffer); 588 term_DL = tgetstr ("DL", &buffer); 515 char *buffer; local [all...] |
/freebsd-10.0-release/contrib/binutils/bfd/ |
H A D | cpu-arm.c | 223 bfd_byte *buffer, 238 namesz = bfd_get_32 (abfd, buffer); 239 descsz = bfd_get_32 (abfd, buffer + offsetof (arm_Note, descsz)); 240 type = bfd_get_32 (abfd, buffer + offsetof (arm_Note, type)); 241 descr = (char *) buffer + offsetof (arm_Note, name); 243 /* Check for buffer overflow. */ 278 bfd_byte * buffer; local 294 if (!bfd_malloc_and_get_section (abfd, arm_arch_section, &buffer)) 298 if (! arm_check_note (abfd, buffer, buffer_size, NOTE_ARCH_STRING, & arch_string)) 323 strcpy ((char *) buffer 222 arm_check_note(bfd *abfd, bfd_byte *buffer, bfd_size_type buffer_size, const char *expected_name, char **description_return) argument 375 bfd_byte * buffer; local [all...] |
/freebsd-10.0-release/contrib/subversion/subversion/libsvn_subr/ |
H A D | gpg_agent.c | 103 * buffer BUF. Buf is assumed to be N bytes large. Return TRUE if a response 104 * message could be read that fits into the buffer. Else return FALSE. 114 /* Clear existing buffer content before reading response. */ 118 /* Require the message to fit into the buffer and be terminated 167 char *buffer; 211 buffer = apr_palloc(pool, BUFFER_SIZE); 212 if (!receive_from_gpg_agent(sd, buffer, BUFFER_SIZE)) 218 if (strncmp(buffer, "OK", 2) != 0) 233 if (!receive_from_gpg_agent(sd, buffer, BUFFER_SIZE)) 238 if (strncmp(buffer, " 166 char *buffer; local 283 char *buffer; local [all...] |
/freebsd-10.0-release/contrib/subversion/subversion/include/private/ |
H A D | svn_temp_serializer.h | 45 * the internal buffer in addition to its suggested_buffer_size parameter. 46 * To allocate a 512 buffer, including overhead, just specify a size of 69 * You may suggest a larger initial buffer size in @a suggested_buffer_size 70 * to minimize the number of internal buffer re-allocations during the 88 * already been serialized to @a buffer but contains references to new 93 * If the allocated data buffer is actually larger, you may specifiy that 100 * To add item referenced from other parts of the buffer, serialize from 107 svn_temp_serializer__init_append(void *buffer, 170 * @return the number of bytes currently used in the serialization buffer 177 * @return a reference to the data buffer containin [all...] |