/dragonfly/usr.sbin/ppp/ |
H A D | auth.c | 134 while (fgets(buff, sizeof buff, fp)) { in auth_SetPhoneList() 136 if (buff[0] == '#') in auth_SetPhoneList() 138 buff[strlen(buff) - 1] = '\0'; in auth_SetPhoneList() 195 while (fgets(buff, sizeof buff, fp)) { in auth_Select() 197 if (buff[0] == '#') in auth_Select() 199 buff[strlen(buff) - 1] = '\0'; in auth_Select() 262 while (fgets(buff, sizeof buff, fp)) { in auth_Validate() 266 buff[strlen(buff) - 1] = 0; in auth_Validate() 316 while (fgets(buff, sizeof buff, fp)) { in auth_GetSecret() 318 if (buff[0] == '#') in auth_GetSecret() [all …]
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_ar.c | 78 const void *buff, size_t s); 150 char buff[60]; in archive_write_ar_header() local 183 memset(buff, ' ', 60); in archive_write_ar_header() 184 memcpy(&buff[AR_fmag_offset], "`\n", 2); in archive_write_ar_header() 188 buff[AR_name_offset] = '/'; in archive_write_ar_header() 207 buff[AR_name_offset] = buff[AR_name_offset + 1] = '/'; in archive_write_ar_header() 234 memcpy(&buff[AR_name_offset], in archive_write_ar_header() 274 buff[AR_name_offset] = '/'; in archive_write_ar_header() 276 buff + AR_name_offset + 1, in archive_write_ar_header() 300 buff + AR_name_offset + 3, in archive_write_ar_header() [all …]
|
H A D | archive_write_open_memory.c | 39 unsigned char * buff; member 44 static ssize_t memory_write(struct archive *, void *, const void *buff, size_t); 52 archive_write_open_memory(struct archive *a, void *buff, size_t buffSize, size_t *used) in archive_write_open_memory() argument 61 mine->buff = buff; in archive_write_open_memory() 89 memory_write(struct archive *a, void *client_data, const void *buff, size_t length) in memory_write() argument 98 memcpy(mine->buff + mine->used, buff, length); in memory_write()
|
H A D | archive_read_disk_set_standard_lookup.c | 64 char *buff; member 133 free(cache->buff); in cleanup() 196 cache->buff = malloc(cache->buff_size); in lookup_uname_helper() 198 if (cache->buff == NULL) in lookup_uname_helper() 203 cache->buff, cache->buff_size, &result); in lookup_uname_helper() 214 nbuff = realloc(cache->buff, nbuff_size); in lookup_uname_helper() 217 cache->buff = nbuff; in lookup_uname_helper() 265 cache->buff = malloc(cache->buff_size); in lookup_gname_helper() 267 if (cache->buff == NULL) in lookup_gname_helper() 281 nbuff = realloc(cache->buff, nbuff_size); in lookup_gname_helper() [all …]
|
H A D | archive_write_set_format_zip.c | 114 unsigned char *buff; member 219 segment->p = segment->buff; in cd_alloc() 247 (void)buff; /* UNUSED */ in fake_crc32() 1283 uint8_t buff[64]; in archive_write_zip_close() local 1293 segment->buff, segment->p - segment->buff); in archive_write_zip_close() 1307 memset(buff, 0, 56); in archive_write_zip_close() 1323 memset(buff, 0, 20); in archive_write_zip_close() 1336 memset(buff, 0, sizeof(buff)); in archive_write_zip_close() 1342 archive_le32enc(buff + 12, in archive_write_zip_close() 1344 archive_le32enc(buff + 16, in archive_write_zip_close() [all …]
|
H A D | archive_read_open_memory.c | 54 static ssize_t memory_read(struct archive *, void *, const void **buff); 57 archive_read_open_memory(struct archive *a, const void *buff, size_t size) in archive_read_open_memory() argument 59 return archive_read_open_memory2(a, buff, size, size); in archive_read_open_memory() 68 archive_read_open_memory2(struct archive *a, const void *buff, in archive_read_open_memory2() argument 78 mine->start = mine->p = (const unsigned char *)buff; in archive_read_open_memory2() 109 memory_read(struct archive *a, void *client_data, const void **buff) in memory_read() argument 115 *buff = mine->p; in memory_read()
|
H A D | archive_virtual.c | 128 archive_write_data(struct archive *a, const void *buff, size_t s) in archive_write_data() argument 130 return ((a->vtable->archive_write_data)(a, buff, s)); in archive_write_data() 134 archive_write_data_block(struct archive *a, const void *buff, size_t s, in archive_write_data_block() argument 143 return ((a->vtable->archive_write_data_block)(a, buff, s, o)); in archive_write_data_block() 160 const void **buff, size_t *s, la_int64_t *o) in archive_read_data_block() argument 162 return ((a->vtable->archive_read_data_block)(a, buff, s, o)); in archive_read_data_block()
|
H A D | archive_check_magic.c | 104 write_all_states(char *buff, unsigned int states) in write_all_states() argument 108 buff[0] = '\0'; in write_all_states() 113 strcat(buff, state_name(lowbit)); in write_all_states() 115 strcat(buff, "/"); in write_all_states() 117 return buff; in write_all_states()
|
H A D | archive_read_disk_entry_from_file.c | 340 void *buff = NULL; in setup_mac_metadata() local 394 buff = malloc(copyfile_stat.st_size); in setup_mac_metadata() 395 if (buff == NULL) { in setup_mac_metadata() 415 free(buff); in setup_mac_metadata() 713 char buff[512]; in setup_xattrs_namespace() local 777 strcpy(buff, "system."); in setup_xattrs_namespace() 779 strcpy(buff, "user."); in setup_xattrs_namespace() 781 name = buff + strlen(buff); in setup_xattrs_namespace() 855 char buff[4096]; in setup_sparse_fiemap() local 887 memset(buff, 0, sizeof(buff)); in setup_sparse_fiemap() [all …]
|
H A D | archive_write.c | 219 const void *buff, size_t length) in __archive_write_filter() argument 231 r = (f->write)(f, buff, length); in __archive_write_filter() 372 const char *buff = (const char *)_buff; in archive_write_client_write() local 387 a->client_data, buff, remaining); in archive_write_client_write() 391 buff += bytes_written; in archive_write_client_write() 402 memcpy(state->next, buff, to_copy); in archive_write_client_write() 405 buff += to_copy; in archive_write_client_write() 432 a->client_data, buff, state->buffer_size); in archive_write_client_write() 435 buff += bytes_written; in archive_write_client_write() 441 memcpy(state->next, buff, remaining); in archive_write_client_write() [all …]
|
/dragonfly/contrib/libarchive/libarchive_fe/ |
H A D | line_reader.c | 52 char *buff, *buff_end, *line_start, *line_end; member 118 if (lr->line_start > lr->buff) { in lafe_line_reader_next() 120 memmove(lr->buff, lr->line_start, in lafe_line_reader_next() 122 lr->buff_end -= lr->line_start - lr->buff; in lafe_line_reader_next() 123 lr->line_end -= lr->line_start - lr->buff; in lafe_line_reader_next() 124 lr->line_start = lr->buff; in lafe_line_reader_next() 136 p = realloc(lr->buff, new_buff_size + 1); in lafe_line_reader_next() 140 lr->buff_end = p + (lr->buff_end - lr->buff); in lafe_line_reader_next() 141 lr->line_end = p + (lr->line_end - lr->buff); in lafe_line_reader_next() 142 lr->line_start = lr->buff = p; in lafe_line_reader_next() [all …]
|
/dragonfly/usr.bin/find/ |
H A D | getdate.y | 681 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) { in LookupWord() 685 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) { in LookupWord() 693 else if (strlen(buff) == 4 && buff[3] == '.') { in LookupWord() 695 buff[3] = '\0'; in LookupWord() 731 buff[i] = '\0'; in LookupWord() 747 if (buff[1] == '\0' && isalpha(*buff)) { in LookupWord() 778 char buff[20]; in yylex() local 804 if (p < &buff[sizeof buff - 1]) in yylex() 942 char buff[128]; in main() local 947 while (gets(buff) && buff[0]) { in main() [all …]
|
/dragonfly/contrib/libarchive/tar/ |
H A D | util.c | 208 buff[i++] = c; in bsdtar_expand_char() 210 buff[i++] = '\\'; in bsdtar_expand_char() 212 case '\a': buff[i++] = 'a'; break; in bsdtar_expand_char() 213 case '\b': buff[i++] = 'b'; break; in bsdtar_expand_char() 214 case '\f': buff[i++] = 'f'; break; in bsdtar_expand_char() 235 char buff[32]; in yes() local 246 l = read(2, buff, sizeof(buff) - 1); in yes() 253 buff[l] = 0; in yes() 255 for (p = buff; *p != '\0'; p++) { in yes() 572 static char buff[24]; local [all …]
|
/dragonfly/lib/libcam/ |
H A D | scsi_cmdparse.c | 589 buff[ind++] = val; in do_encode() 597 buff[ind++] = val; in do_encode() 605 buff[ind++] = value; in do_encode() 610 buff[ind++] = value >> 8; in do_encode() 611 buff[ind++] = value; in do_encode() 617 buff[ind++] = value >> 16; in do_encode() 618 buff[ind++] = value >> 8; in do_encode() 619 buff[ind++] = value; in do_encode() 627 buff[ind++] = value >> 8; in do_encode() 628 buff[ind++] = value; in do_encode() [all …]
|
/dragonfly/sys/dev/sound/pci/ |
H A D | envy24ht.c | 652 buff->cs = 0x1000; in envy24ht_rom2cfg() 653 buff->cif = 0x00; in envy24ht_rom2cfg() 664 return buff; in envy24ht_rom2cfg() 669 buff = kmalloc(sizeof(*buff), M_ENVY24HT, M_WAITOK | M_ZERO); in envy24ht_rom2cfg() 676 buff->free = 1; in envy24ht_rom2cfg() 703 return buff; in envy24ht_rom2cfg() 923 buff = kmalloc(sizeof(*buff), M_ENVY24HT, M_WAITOK | M_ZERO); in envy24ht_spi_create() 924 if (buff == NULL) in envy24ht_spi_create() 932 buff->info = spicds_create(dev, buff, num, envy24ht_spi_ctl); in envy24ht_spi_create() 939 buff->dir = dir; in envy24ht_spi_create() [all …]
|
/dragonfly/contrib/gcc-8.0/libcpp/ |
H A D | macro.c | 1008 base_buff = buff; in collect_args() 1038 buff = _cpp_append_extend_buff (pfile, buff, in collect_args() 1293 _cpp_buff *buff; in enter_macro_context() local 1305 if (buff == NULL) in enter_macro_context() 1448 if (buff == NULL) in delete_macro_args() 1473 _cpp_free_buff (buff); in delete_macro_args() 2191 context->buff = buff; in push_ptoken_context() 2266 context->buff = NULL; in _cpp_push_text_context() 2295 return (BUFF_FRONT (buff) - buff->base) / sizeof (cpp_token *); in tokens_buff_count() 2303 if (BUFF_FRONT (buff) == buff->base) in tokens_buff_last_token_ptr() [all …]
|
/dragonfly/contrib/cvs-1.12/lib/ |
H A D | dirname.c | 104 char buff[MAX_BUFF_LEN + 1]; in main() local 108 buff[MAX_BUFF_LEN] = 0; in main() 109 while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) in main() 114 sscanf (buff, "%s %s", file, expected_result); in main()
|
/dragonfly/libexec/dma/ |
H A D | net.c | 127 char buff[BUF_SIZE]; in read_remote() local 147 (pos > 0 && memchr(buff + pos, '\n', len - pos) == NULL)) { in read_remote() 148 memmove(buff, buff + pos, len - pos); in read_remote() 153 if ((rlen = SSL_read(config.ssl, buff + len, sizeof(buff) - len)) == -1) { in read_remote() 158 if ((rlen = read(fd, buff + len, sizeof(buff) - len)) == -1) { in read_remote() 168 strncat(neterr, buff, copysize); in read_remote() 181 memcpy(extbuf + extbufpos, buff + len - rlen, rlen); in read_remote() 191 if (isdigit(buff[pos])) { in read_remote() 192 status_running = status_running * 10 + (buff[pos] - '0'); in read_remote() 203 switch (buff[pos]) { in read_remote() [all …]
|
/dragonfly/contrib/zstd/programs/ |
H A D | datagen.c | 160 BYTE* const buff = (BYTE*)malloc(stdDictSize + stdBlockSize); in RDG_genStdout() local 165 if (buff==NULL) { perror("datagen"); exit(1); } in RDG_genStdout() 172 RDG_genBlock(buff, stdDictSize, 0, matchProba, ldt, &seed32); in RDG_genStdout() 177 RDG_genBlock(buff, stdDictSize+stdBlockSize, stdDictSize, matchProba, ldt, &seed32); in RDG_genStdout() 179 { size_t const unused = fwrite(buff, 1, genBlockSize, stdout); (void)unused; } in RDG_genStdout() 181 memcpy(buff, buff + stdBlockSize, stdDictSize); in RDG_genStdout() 185 free(buff); in RDG_genStdout()
|
/dragonfly/contrib/gcc-4.7/libcpp/ |
H A D | macro.c | 736 base_buff = buff; in collect_args() 766 buff = _cpp_append_extend_buff (pfile, buff, in collect_args() 1010 _cpp_buff *buff; in enter_macro_context() local 1022 if (buff == NULL) in enter_macro_context() 1140 if (buff == NULL) in delete_macro_args() 1165 _cpp_free_buff (buff); in delete_macro_args() 1780 context->buff = buff; in push_ptoken_context() 1794 context->buff = NULL; in _cpp_push_token_context() 1837 context->buff = NULL; in _cpp_push_text_context() 1866 return (BUFF_FRONT (buff) - buff->base) / sizeof (cpp_token *); in tokens_buff_count() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | pretty-print.h | 114 output_buffer_formatted_text (output_buffer *buff) in output_buffer_formatted_text() argument 116 obstack_1grow (buff->obstack, '\0'); in output_buffer_formatted_text() 117 return (const char *) obstack_base (buff->obstack); in output_buffer_formatted_text() 123 output_buffer_append_r (output_buffer *buff, const char *start, int length) in output_buffer_append_r() argument 126 obstack_grow (buff->obstack, start, length); in output_buffer_append_r() 129 buff->line_length = 0; in output_buffer_append_r() 131 buff->line_length++; in output_buffer_append_r() 137 output_buffer_last_position_in_text (const output_buffer *buff) in output_buffer_last_position_in_text() argument 140 struct obstack *text = buff->obstack; in output_buffer_last_position_in_text()
|
/dragonfly/usr.bin/tcopy/ |
H A D | tcopy.c | 71 char *buff, *inf; in main() local 127 buff = getspace(maxblk); in main() 130 verify(inp, outp, buff); in main() 139 if ((nread = read(inp, buff, maxblk)) == -1) { in main() 141 nread = read(inp, buff, maxblk); in main() 173 nw = write(outp, buff, nread); in main() 212 verify(inp, outp, buff); in main()
|
/dragonfly/usr.sbin/lpr/chkprintcap/ |
H A D | skimprintcap.c | 77 char buff[BUFSIZ]; in skim_printcap() local 99 curline = fgets(buff, sizeof(buff), pc_file); in skim_printcap() 242 curline = fgets(buff, sizeof(buff), pc_file); in skim_printcap()
|
/dragonfly/usr.bin/vis/ |
H A D | vis.c | 165 char buff[4 * MB_LEN_MAX + 1]; /* max encoding length for one char */ in process() local 200 cp = buff; in process() 207 cp = buff; in process() 248 strsenvisx(buff, 4 * MB_LEN_MAX, mbibuff, in process() 252 cp = buff; in process()
|
/dragonfly/crypto/libressl/crypto/conf/ |
H A D | conf_def.c | 218 BUF_MEM *buff = NULL; in def_load_bio() local 228 if ((buff = BUF_MEM_new()) == NULL) { in def_load_bio() 253 if (!BUF_MEM_grow(buff, bufnum + CONFBUFSIZE)) { in def_load_bio() 257 p = &(buff->data[bufnum]); in def_load_bio() 290 p = &(buff->data[bufnum - 1]); in def_load_bio() 300 buf = buff->data; in def_load_bio() 393 if (buff != NULL) in def_load_bio() 394 BUF_MEM_free(buff); in def_load_bio() 399 if (buff != NULL) in def_load_bio() 400 BUF_MEM_free(buff); in def_load_bio()
|