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

1234567891011>>

/freebsd-11-stable/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
39 buff = NULL;
63 buff = malloc(buff_size);
64 assert(buff != NULL);
65 if (buff == NULL)
69 buff[i] = "abcdefghijklmnopqrstuvwxyz"[rand() % 26];
70 buff[buff_size - 1] = '\0';
71 assertMakeFile("f1", 0644, buff);
88 assertEqualMem(p1 + 1536, buff, buff_size);
129 assertFileContents(buff, (in
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_read_format_rar.c49 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
333 char buff[30]; local
552 char buff[64]; local
701 char buff[64]; local
802 char buff[441]; local
893 char buff[64]; local
1130 char buff[441]; local
1301 char buff[64]; local
1435 char buff[64]; local
1576 char buff[64]; local
1643 char buff[64]; local
[all...]
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_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_secure744.c43 char *buff = malloc(buff_size);
44 char *p = buff;
48 assert(buff != NULL);
57 while (p + 500 < buff + buff_size) {
62 buff[0] = ((n / 1000) % 10) + '0';
63 buff[1] = ((n / 100) % 10)+ '0';
64 buff[2] = ((n / 10) % 10)+ '0';
65 buff[3] = ((n / 1) % 10)+ '0';
66 buff[4] = '_';
71 archive_entry_copy_pathname(ae, buff);
[all...]
H A Dtest_zip_filename_encoding.c34 char buff[4096]; local
55 archive_write_open_memory(a, buff, sizeof(buff), &used));
68 assertEqualInt(0x08, buff[7]);
69 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
78 archive_write_open_memory(a, buff, sizeof(buff), &used));
91 assertEqualInt(0x08, buff[7]);
92 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
101 archive_write_open_memory(a, buff, sizeo
122 char buff[4096]; local
222 char buff[4096]; local
265 char buff[4096]; local
334 char buff[4096]; local
433 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.c34 char buff[4096]; local
55 archive_write_open_memory(a, buff, sizeof(buff), &used));
68 assertEqualMem(buff, "\xAF\xE0\xA8", 3);
75 char buff[4096]; local
96 archive_write_open_memory(a, buff, sizeof(buff), &used));
109 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
116 char buff[4096]; local
137 archive_write_open_memory(a, buff, sizeo
157 char buff[4096]; local
202 char buff[4096]; local
242 char buff[4096]; local
277 char buff[4096]; local
317 char buff[4096]; local
357 char buff[4096]; local
[all...]
H A Dtest_ustar_filename_encoding.c34 char buff[4096]; local
55 archive_write_open_memory(a, buff, sizeof(buff), &used));
68 assertEqualMem(buff, "\xAF\xE0\xA8", 3);
75 char buff[4096]; local
96 archive_write_open_memory(a, buff, sizeof(buff), &used));
109 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
116 char buff[4096]; local
137 archive_write_open_memory(a, buff, sizeo
157 char buff[4096]; local
202 char buff[4096]; local
242 char buff[4096]; local
277 char buff[4096]; local
317 char buff[4096]; local
357 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_read_format_7zip_packinfo_digests.c33 char buff[4]; local
58 assertEqualInt(4, archive_read_data(a, buff, sizeof(buff)));
59 assertEqualMem(buff, "aaa\n", 4);
70 assertEqualInt(4, archive_read_data(a, buff, sizeof(buff)));
71 assertEqualMem(buff, "bbb\n", 4);
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_format_zip_winzip_aes_large.c34 char buff[512]; local
72 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff)));
82 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff)));
92 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff)));
102 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff)));
141 assertEqualInt(512, archive_read_data(a, buff, sizeo
[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...]
/freebsd-11-stable/contrib/lua/src/
H A Dlzio.h29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0)
31 #define luaZ_buffer(buff) ((buff)->buffer)
32 #define luaZ_sizebuffer(buff) ((buff)->buffsize)
33 #define luaZ_bufflen(buff) ((buff)->n)
35 #define luaZ_buffremove(buff,
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlzio.h29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0)
31 #define luaZ_buffer(buff) ((buff)->buffer)
32 #define luaZ_sizebuffer(buff) ((buff)->buffsize)
33 #define luaZ_bufflen(buff) ((buff)->n)
35 #define luaZ_resetbuffer(buff) ((buf
[all...]
H A Dlzio.c24 const char *buff; local
26 buff = z->reader(L, z->data, &size);
28 if (buff == NULL || size == 0)
31 z->p = buff;
68 char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { argument
69 if (n > buff->buffsize) {
71 luaZ_resizebuffer(L, buff, n);
73 return buff->buffer;
/freebsd-11-stable/tests/sys/audit/
H A Dfile-read.c34 static char buff[1024]; variable
49 memset(buff, 0, sizeof(buff));
52 ATF_REQUIRE(readlink(path, buff, sizeof(buff)-1) != -1);
71 memset(buff, 0, sizeof(buff));
74 ATF_REQUIRE_EQ(-1, readlink(path, buff, sizeof(buff)-1));
93 memset(buff,
[all...]
/freebsd-11-stable/contrib/amd/amd/
H A Dsun_map_tok.l84 void sun_map_tok_setbuff(const char* buff);
103 /* copies the current position + maxsize into buff */
104 int sun_map_input(char *buff, int maxsize);
107 # define YY_INPUT(buff,result,maxsize) (result = sun_map_input(buff,maxsize))
195 sun_map_tok_setbuff(const char* buff)
197 sun_map_tok_end = buff + strlen(buff);
198 sun_map_tok_pos = buff;
199 sun_map_tok_buff = buff;
[all...]
/freebsd-11-stable/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-11-stable/crypto/openssl/crypto/ui/
H A Dui_compat.c65 int _ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, argument
68 return UI_UTIL_read_pw(buf, buff, size, prompt, verify);
H A Dui_util.c62 char buff[BUFSIZ]; local
66 UI_UTIL_read_pw(buf, buff, (length > BUFSIZ) ? BUFSIZ : length,
68 OPENSSL_cleanse(buff, BUFSIZ);
72 int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, argument
85 ok = UI_add_verify_string(ui, prompt, 0, buff, 0, size - 1, buf);
/freebsd-11-stable/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
61 mine->buff = buff;
89 memory_write(struct archive *a, void *client_data, const void *buff, size_t length) argument
98 memcpy(mine->buff + mine->used, buff, length);

Completed in 127 milliseconds

1234567891011>>