Searched refs:to_write (Results 1 – 2 of 2) sorted by relevance
/external/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 224 uint32_t to_write; in write_binary_file() local 228 to_write = strlen(context) + 1; in write_binary_file() 229 len = fwrite(&to_write, sizeof(uint32_t), 1, bin_file); in write_binary_file() 234 len = fwrite(context, sizeof(char), to_write, bin_file); in write_binary_file() 235 if (len != to_write) in write_binary_file() 239 to_write = strlen(regex_str) + 1; in write_binary_file() 240 len = fwrite(&to_write, sizeof(uint32_t), 1, bin_file); in write_binary_file() 245 len = fwrite(regex_str, sizeof(char), to_write, bin_file); in write_binary_file() 246 if (len != to_write) in write_binary_file() 260 to_write = specs[i].hasMetaChars; in write_binary_file() [all …]
|
/external/tinycompress/ |
D | compress.c | 355 int to_write = 0; /* zero indicates we haven't written yet */ in compress_write() local 396 to_write = avail.avail; in compress_write() 398 to_write = size; in compress_write() 399 written = write(compress->fd, cbuf, to_write); in compress_write()
|