/netbsd-current/external/bsd/libarchive/dist/tar/test/ |
H A D | test_print_longpath.c | 30 char buff[2048]; local 37 memset(buff, 0, sizeof(buff)); 41 strncat(buff, "0123456789", 42 sizeof(buff) - strlen(buff) -1); 43 strncat(buff, "/", sizeof(buff) - strlen(buff) -1); 45 strncat(buff, "\ [all...] |
H A D | test_option_r.c | 32 char *buff; local 38 buff = NULL; 62 buff = malloc(buff_size); 63 assert(buff != NULL); 64 if (buff == NULL) 68 buff[i] = "abcdefghijklmnopqrstuvwxyz"[rand() % 26]; 69 buff[buff_size - 1] = '\0'; 70 assertMakeFile("f1", 0644, buff); 87 assertEqualMem(p1 + 1536, buff, buff_size); 128 assertFileContents(buff, (in [all...] |
/netbsd-current/external/bsd/libarchive/dist/libarchive/test/ |
H A D | test_read_format_rar.c | 49 char buff[64]; local 70 assertA(size == archive_read_data(a, buff, size)); 71 assertEqualMem(buff, test_txt, size); 84 assertEqualIntA(a, 0, archive_read_data(a, buff, sizeof(buff))); 96 assertA(size == archive_read_data(a, buff, size)); 97 assertEqualMem(buff, test_txt, size); 132 char buff[64]; local 153 assertA(size == archive_read_data(a, buff, size)); 154 assertEqualMem(buff, test_tx 167 char buff[64]; local 202 char buff[30]; local 341 char buff[30]; local 560 char buff[64]; local 709 char buff[64]; local 810 char buff[441]; local 894 char buff[64]; local 1183 char buff[441]; local 1354 char buff[64]; local 1488 char buff[64]; local 1629 char buff[64]; local 1696 char buff[64]; local [all...] |
H A D | test_write_disk_sparse.c | 40 char *buff, *p; local 44 buff = malloc(buff_size); 45 assert(buff != NULL); 46 if (buff == NULL) 59 memset(buff, 0, buff_size); 60 memcpy(buff, data, sizeof(data)); 62 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size)); 65 memset(buff, 0, buff_size); 66 memcpy(buff + buff_size / 2 - 3, data, sizeof(data)); 68 assertEqualInt(buff_size, archive_write_data(a, buff, buff_siz 137 char *buff, *p; local [all...] |
H A D | test_archive_api_feature.c | 29 char buff[128]; local 34 snprintf(buff, sizeof(buff), "libarchive %d.%d.%d", 39 archive_version_string(), buff); 40 assertEqualMem(buff, archive_version_string(), strlen(buff)); 41 if (strlen(buff) < strlen(archive_version_string())) { 42 p = archive_version_string() + strlen(buff);
|
H A D | test_write_disk_secure744.c | 42 char *buff = malloc(buff_size); 43 char *p = buff; 47 assert(buff != NULL); 56 while (p + 500 < buff + buff_size) { 61 buff[0] = ((n / 1000) % 10) + '0'; 62 buff[1] = ((n / 100) % 10)+ '0'; 63 buff[2] = ((n / 10) % 10)+ '0'; 64 buff[3] = ((n / 1) % 10)+ '0'; 65 buff[4] = '_'; 70 archive_entry_copy_pathname(ae, buff); [all...] |
H A D | test_zip_filename_encoding.c | 33 char buff[4096]; local 54 archive_write_open_memory(a, buff, sizeof(buff), &used)); 67 assertEqualInt(0x08, buff[7]); 68 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 79 archive_write_open_memory(a, buff, sizeof(buff), &used)); 92 assertEqualInt(0x08, buff[7]); 93 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 103 archive_write_open_memory(a, buff, sizeo 124 char buff[4096]; local 224 char buff[4096]; local 267 char buff[4096]; local 336 char buff[4096]; local 435 char buff[4096]; local [all...] |
H A D | test_write_format_cpio_empty.c | 49 char buff[2048]; local 60 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 69 assertEqualMem(buff, ref, 87);
|
H A D | test_gnutar_filename_encoding.c | 32 char buff[4096]; local 53 archive_write_open_memory(a, buff, sizeof(buff), &used)); 66 assertEqualMem(buff, "\xAF\xE0\xA8", 3); 73 char buff[4096]; local 94 archive_write_open_memory(a, buff, sizeof(buff), &used)); 107 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 114 char buff[4096]; local 135 archive_write_open_memory(a, buff, sizeo 155 char buff[4096]; local 200 char buff[4096]; local 240 char buff[4096]; local 275 char buff[4096]; local 315 char buff[4096]; local 355 char buff[4096]; local [all...] |
H A D | test_ustar_filename_encoding.c | 33 char buff[4096]; local 54 archive_write_open_memory(a, buff, sizeof(buff), &used)); 67 assertEqualMem(buff, "\xAF\xE0\xA8", 3); 74 char buff[4096]; local 95 archive_write_open_memory(a, buff, sizeof(buff), &used)); 108 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 115 char buff[4096]; local 136 archive_write_open_memory(a, buff, sizeo 156 char buff[4096]; local 201 char buff[4096]; local 241 char buff[4096]; local 276 char buff[4096]; local 316 char buff[4096]; local 356 char buff[4096]; local [all...] |
H A D | test_read_format_7zip_packinfo_digests.c | 32 char buff[4]; local 57 assertEqualInt(4, archive_read_data(a, buff, sizeof(buff))); 58 assertEqualMem(buff, "aaa\n", 4); 69 assertEqualInt(4, archive_read_data(a, buff, sizeof(buff))); 70 assertEqualMem(buff, "bbb\n", 4);
|
H A D | test_write_format_tar_empty.c | 34 char buff[2048]; local 44 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 53 assert(buff[i] == 0); 62 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 71 assert(buff[i] == 0);
|
H A D | test_write_format_shar_empty.c | 34 char buff[2048]; local 45 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
|
H A D | test_write_format_iso9660_boot.c | 95 unsigned char *buff; local 101 buff = malloc(buffsize); 102 assert(buff != NULL); 112 assertA(0 == archive_write_open_memory(a, buff, buffsize, &used)); 138 assertEqualMem(buff+i, nullb, 2048); 143 assertEqualMem(buff+2048*16, primary_id, 8); 144 assertEqualMem(buff+2048*16+0x28, 146 assertEqualMem(buff+2048*16+0x50, volumesize, 8); 150 assertEqualMem(buff+2048*17, boot_id, sizeof(boot_id)); 153 assert(buff[204 [all...] |
H A D | test_read_format_zip_winzip_aes_large.c | 33 char buff[512]; local 71 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 81 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 91 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 101 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 140 assertEqualInt(512, archive_read_data(a, buff, sizeo [all...] |
H A D | test_read_filter_uudecode.c | 76 char *buff; local 93 assert(NULL != (buff = malloc(uusize + 1024 * 1024))); 94 if (buff == NULL) 97 char *p = buff; 124 read_open_memory(a, buff, size, 2)); 145 buff[extra + 1024] = buff[extra]; 146 buff[size - 1] = '\n'; 147 memcpy(buff + size, uudata, uusize); 155 read_open_memory(a, buff, siz [all...] |
H A D | test_write_format_mtree_quoted_filename.c | 29 static char buff[4096]; variable 53 archive_write_open_memory(a, buff, sizeof(buff)-1, &used)); 66 buff[used] = '\0'; 68 assertEqualString(buff, image); 76 assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, used));
|
/netbsd-current/external/mit/lua/dist/src/ |
H A D | lzio.h | 31 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) 33 #define luaZ_buffer(buff) ((buff)->buffer) 34 #define luaZ_sizebuffer(buff) ((buff)->buffsize) 35 #define luaZ_bufflen(buff) ((buff)->n) 37 #define luaZ_buffremove(buff, [all...] |
/netbsd-current/external/bsd/am-utils/dist/amd/ |
H A D | sun_map_tok.l | 86 void sun_map_tok_setbuff(const char* buff); 105 /* copies the current position + maxsize into buff */ 106 int sun_map_input(char *buff, int maxsize); 109 # define YY_INPUT(buff,result,maxsize) (result = sun_map_input(buff,maxsize)) 197 sun_map_tok_setbuff(const char* buff) 199 sun_map_tok_end = buff + strlen(buff); 200 sun_map_tok_pos = buff; 201 sun_map_tok_buff = buff; [all...] |
/netbsd-current/crypto/external/bsd/openssl/lib/libdes/ |
H A D | oread2pwd.c | 64 char buf[BUFSIZ],buff[BUFSIZ]; local 66 if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0) 69 OPENSSL_cleanse(buff,BUFSIZ); 77 char buf[BUFSIZ],buff[BUFSIZ]; local 79 if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0) 82 OPENSSL_cleanse(buff,BUFSIZ);
|
/netbsd-current/sys/arch/luna68k/stand/boot/ |
H A D | getline.c | 82 getline(const char *prompt, char *buff) argument 85 char *p, *lp = buff; 101 if (lp > buff) { 112 for (p = buff; p < lp; ++p) 118 lp = buff; 131 return lp - buff;
|
/netbsd-current/crypto/external/bsd/openssl.old/lib/libdes/ |
H A D | oread2pwd.c | 64 char buf[BUFSIZ],buff[BUFSIZ]; local 66 if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0) 69 OPENSSL_cleanse(buff,BUFSIZ); 77 char buf[BUFSIZ],buff[BUFSIZ]; local 79 if ((ok=des_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0) 82 OPENSSL_cleanse(buff,BUFSIZ);
|
/netbsd-current/external/bsd/unbound/dist/testcode/ |
H A D | unitdname.c | 66 dname_test_qdl(sldns_buffer* buff) argument 69 unit_assert( query_dname_len(buff) == 0); 70 unit_assert( query_dname_len(dname_to_buf(buff, ".")) == 1 ); 71 unit_assert( query_dname_len(dname_to_buf(buff, "bla.foo.")) == 9 ); 72 unit_assert( query_dname_len(dname_to_buf(buff, "x.y.z.example.com." 78 dname_test_qdtl(sldns_buffer* buff) argument 81 sldns_buffer_write_at(buff, 0, "\012abCDeaBCde\003cOm\000", 16); 82 query_dname_tolower(sldns_buffer_begin(buff)); 83 unit_assert( memcmp(sldns_buffer_begin(buff), 86 sldns_buffer_write_at(buff, 166 dname_test_pkt_dname_len(sldns_buffer* buff) argument 865 sldns_buffer* buff = sldns_buffer_new(65800); local [all...] |
/netbsd-current/sbin/mount_portal/examples/ |
H A D | fing.c | 15 char buff[FING_BUFSIZE]; local 26 n = fread(buff, (size_t) 1, FING_BUFSIZE, fp); 27 fwrite(buff, (size_t) 1, n, stdout);
|
/netbsd-current/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_write_open_memory.c | 38 unsigned char * buff; member in struct:write_memory_data 43 static ssize_t memory_write(struct archive *, void *, const void *buff, size_t); 51 archive_write_open_memory(struct archive *a, void *buff, size_t buffSize, size_t *used) argument 60 mine->buff = buff; 88 memory_write(struct archive *a, void *client_data, const void *buff, size_t length) argument 97 memcpy(mine->buff + mine->used, buff, length);
|