Searched refs:buff (Results 1 - 25 of 263) sorted by relevance

1234567891011

/freebsd-10.0-release/contrib/libarchive/tar/test/
H A Dtest_print_longpath.c31 char buff[2048]; local
38 memset(buff, 0, sizeof(buff));
42 strncat(buff, "0123456789",
43 sizeof(buff) - strlen(buff) -1);
44 strncat(buff, "/", sizeof(buff) - strlen(buff) -1);
46 strncat(buff, "\
[all...]
H A Dtest_option_r.c33 char *buff; local
61 buff = malloc(buff_size);
62 assert(buff != NULL);
63 if (buff == NULL) {
69 buff[i] = "abcdefghijklmnopqrstuvwxyz"[rand() % 26];
70 buff[buff_size - 1] = '\0';
71 assertMakeFile("f1", 0644, buff);
90 assertEqualMem(p1 + 1536, buff, buff_size);
134 assertFileContents(buff, (int)strlen(buff), "f
[all...]
H A Dtest_copy.c109 char buff[250]; local
118 buff[j] = 'a' + (j % 26);
119 buff[j--] = '\0';
121 buff[j--] = '0' + (i % 10);
123 buff[j--] = '0' + ((i / 10) % 10);
125 buff[j--] = '0' + (char)(i / 100);
127 buff[j] = '_';
129 assertEqualInt(strlen(buff), i);
130 filenames[i] = strdup(buff);
137 char buff[26 local
[all...]
/freebsd-10.0-release/contrib/libarchive/libarchive/test/
H A Dtest_read_format_rar.c33 char buff[64]; local
54 assertA(size == archive_read_data(a, buff, size));
55 assertEqualMem(buff, test_txt, size);
66 assertEqualIntA(a, 0, archive_read_data(a, buff, sizeof(buff)));
76 assertA(size == archive_read_data(a, buff, size));
77 assertEqualMem(buff, test_txt, size);
106 char buff[64]; local
127 assertA(size == archive_read_data(a, buff, size));
128 assertEqualMem(buff, test_tx
139 char buff[64]; local
172 char buff[30]; local
297 char buff[30]; local
492 char buff[64]; local
627 char buff[64]; local
720 char buff[441]; local
801 char buff[64]; local
1010 char buff[441]; local
1167 char buff[64]; local
1299 char buff[64]; local
1436 char buff[64]; local
1503 char buff[64]; local
[all...]
H A Dtest_archive_api_feature.c30 char buff[128]; local
35 sprintf(buff, "libarchive %d.%d.%d",
40 archive_version_string(), buff);
41 assertEqualMem(buff, archive_version_string(), strlen(buff));
42 if (strlen(buff) < strlen(archive_version_string())) {
43 p = archive_version_string() + strlen(buff);
H A Dtest_write_disk_sparse.c41 char *buff, *p; local
45 buff = malloc(buff_size);
46 assert(buff != NULL);
47 if (buff == NULL)
60 memset(buff, 0, buff_size);
61 memcpy(buff, data, sizeof(data));
63 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size));
66 memset(buff, 0, buff_size);
67 memcpy(buff + buff_size / 2 - 3, data, sizeof(data));
69 assertEqualInt(buff_size, archive_write_data(a, buff, buff_siz
138 char *buff, *p; local
[all...]
H A Dtest_zip_filename_encoding.c35 char buff[4096]; local
56 archive_write_open_memory(a, buff, sizeof(buff), &used));
69 assertEqualInt(0x08, buff[7]);
70 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);
102 archive_write_open_memory(a, buff, sizeo
124 char buff[4096]; local
225 char buff[4096]; local
269 char buff[4096]; local
339 char buff[4096]; local
439 char buff[4096]; local
[all...]
H A Dtest_write_format_cpio_empty.c50 char buff[2048]; local
61 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
70 assertEqualMem(buff, ref, 87);
H A Dtest_gnutar_filename_encoding.c35 char buff[4096]; local
56 archive_write_open_memory(a, buff, sizeof(buff), &used));
69 assertEqualMem(buff, "\xAF\xE0\xA8", 3);
77 char buff[4096]; local
98 archive_write_open_memory(a, buff, sizeof(buff), &used));
111 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
119 char buff[4096]; local
140 archive_write_open_memory(a, buff, sizeo
161 char buff[4096]; local
207 char buff[4096]; local
248 char buff[4096]; local
284 char buff[4096]; local
325 char buff[4096]; local
366 char buff[4096]; local
[all...]
H A Dtest_ustar_filename_encoding.c35 char buff[4096]; local
56 archive_write_open_memory(a, buff, sizeof(buff), &used));
69 assertEqualMem(buff, "\xAF\xE0\xA8", 3);
77 char buff[4096]; local
98 archive_write_open_memory(a, buff, sizeof(buff), &used));
111 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
119 char buff[4096]; local
140 archive_write_open_memory(a, buff, sizeo
161 char buff[4096]; local
207 char buff[4096]; local
248 char buff[4096]; local
284 char buff[4096]; local
325 char buff[4096]; local
366 char buff[4096]; local
[all...]
H A Dtest_write_format_tar_empty.c35 char buff[2048]; local
45 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
54 assert(buff[i] == 0);
63 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
72 assert(buff[i] == 0);
H A Dtest_write_format_shar_empty.c35 char buff[2048]; local
46 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
H A Dtest_write_format_iso9660_boot.c95 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 Dtest_read_filter_uudecode.c77 char *buff; local
94 assert(NULL != (buff = malloc(uusize + 1024 * 1024)));
95 if (buff == NULL)
98 char *p = buff;
125 read_open_memory(a, buff, size, 2));
146 buff[extra + 1024] = buff[extra];
147 buff[size - 1] = '\n';
148 memcpy(buff + size, uudata, uusize);
156 read_open_memory(a, buff, siz
[all...]
H A Dtest_write_format_mtree_quoted_filename.c30 static char buff[4096]; variable
54 archive_write_open_memory(a, buff, sizeof(buff)-1, &used));
67 buff[used] = '\0';
69 assertEqualString(buff, image);
77 assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, used));
H A Dtest_write_filter_gzip_timestamp.c35 char *buff, *data; local
41 assert(NULL != (buff = (char *)malloc(buffsize)));
42 if (buff == NULL)
48 free(buff);
63 free(buff);
75 archive_write_open_memory(a, buff, buffsize, &used1));
86 assert(memcmp(buff + 4, "\x00\x00\x00\x00", 4) != 0);
100 archive_write_open_memory(a, buff, buffsize, &used1));
111 assertEqualMem(buff + 4, "\x00\x00\x00\x00", 4);
117 free(buff);
[all...]
H A Dtest_read_format_ar.c34 char buff[64]; local
60 assertA(8 == archive_read_data(a, buff, 10));
61 assertEqualMem(buff, "55667788", 8);
70 assertA(4 == archive_read_data(a, buff, 10));
71 assertEqualMem(buff, "3333", 4);
80 assertA(9 == archive_read_data(a, buff, 9));
81 assertEqualMem(buff, "987654321", 9);
H A Dtest_read_large.c30 static unsigned char buff[11 * 1024 * 1024]; variable
53 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
66 assertA(0 == archive_read_open_memory(a, buff, sizeof(buff)));
77 assertA(0 == archive_read_open_memory(a, buff, sizeof(buff)));
H A Dtest_write_format_zip_empty.c37 char buff[256]; local
46 assertEqualIntA(a, ARCHIVE_OK, archive_write_open_memory(a, buff, sizeof(buff), &used));
54 assertEqualMem(buff,
63 assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, 22));
69 assertEqualIntA(a, ARCHIVE_OK, read_open_memory(a, buff, 22, 1));
75 assertEqualIntA(a, ARCHIVE_OK, read_open_memory_seek(a, buff, 22, 22));
H A Dtest_tar_large.c55 void *buff; member in struct:memblock
65 void *buff; member in struct:memdata
77 static ssize_t memory_read(struct archive *, void *, const void **buff);
82 memory_write(struct archive *a, void *_private, const void *buff, size_t size) argument
96 if ((const char *)filedata <= (const char *)buff
97 && (const char *)buff < (const char *)filedata + filedatasize) {
106 block->buff = malloc(size);
107 memcpy(block->buff, buff, size);
120 memory_read(struct archive *a, void *_private, const void **buff) argument
[all...]
H A Dread_open_memory.c55 static ssize_t memory_read(struct archive *, void *, const void **buff);
56 static int read_open_memory_internal(struct archive *a, void *buff,
61 read_open_memory(struct archive *a, void *buff, size_t size, size_t read_size) argument
63 return read_open_memory_internal(a, buff, size, read_size, 2);
71 read_open_memory_minimal(struct archive *a, void *buff, size_t size, size_t read_size) argument
73 return read_open_memory_internal(a, buff, size, read_size, 1);
80 read_open_memory_seek(struct archive *a, void *buff, size_t size, size_t read_size) argument
82 return read_open_memory_internal(a, buff, size, read_size, 3);
86 read_open_memory_internal(struct archive *a, void *buff, argument
97 mine->start = mine->p = (unsigned char *)buff;
137 memory_read(struct archive *a, void *client_data, const void **buff) argument
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/des/
H A Dread2pwd.c120 char buf[BUFSIZ],buff[BUFSIZ]; local
122 if ((ok=UI_UTIL_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0)
125 OPENSSL_cleanse(buff,BUFSIZ);
133 char buf[BUFSIZ],buff[BUFSIZ]; local
135 if ((ok=UI_UTIL_read_pw(buf,buff,BUFSIZ,prompt,verify)) == 0)
138 OPENSSL_cleanse(buff,BUFSIZ);
/freebsd-10.0-release/crypto/openssl/crypto/ui/
H A Dui_compat.c64 int _ossl_old_des_read_pw(char *buf,char *buff,int size,const char *prompt,int verify) argument
66 return UI_UTIL_read_pw(buf, buff, size, prompt, verify);
H A Dui_util.c61 char buff[BUFSIZ]; local
64 ret=UI_UTIL_read_pw(buf,buff,(length>BUFSIZ)?BUFSIZ:length,prompt,verify);
65 OPENSSL_cleanse(buff,BUFSIZ);
69 int UI_UTIL_read_pw(char *buf,char *buff,int size,const char *prompt,int verify) argument
82 ok = UI_add_verify_string(ui,prompt,0,buff,0,size-1,
/freebsd-10.0-release/contrib/libarchive/libarchive/
H A Darchive_write_open_memory.c39 unsigned char * buff; member in struct:write_memory_data
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) argument
62 mine->buff = buff;
90 memory_write(struct archive *a, void *client_data, const void *buff, size_t length) argument
99 memcpy(mine->buff + mine->used, buff, length);

Completed in 197 milliseconds

1234567891011