Lines Matching refs:buffer

1283 	char buffer[20];
1293 strftime(buffer, sizeof(buffer), "%F %R", localtime(&file->date));
1294 ntfs_log_quiet("Date: %s\n", buffer);
1337 strftime(buffer, sizeof(buffer), "%F %R",
1339 ntfs_log_quiet("Date C: %s\n", buffer);
1340 strftime(buffer, sizeof(buffer), "%F %R",
1342 ntfs_log_quiet("Date A: %s\n", buffer);
1343 strftime(buffer, sizeof(buffer), "%F %R",
1345 ntfs_log_quiet("Date M: %s\n", buffer);
1346 strftime(buffer, sizeof(buffer), "%F %R",
1348 ntfs_log_quiet("Date R: %s\n", buffer);
1412 char buffer[20];
1420 strftime(buffer, sizeof(buffer), "%F", localtime(&file->date));
1457 percent, buffer, size, name);
1502 * @buffer: Data to write
1510 static unsigned int write_data(int fd, const char *buffer,
1515 if (!buffer) {
1520 result1 = write(fd, buffer, bufsize);
1524 /* Try again with the rest of the buffer */
1525 buffer += result1;
1528 result2 = write(fd, buffer, bufsize);
1540 * @buffer: Store the result here
1541 * @bufsize: Size of buffer
1554 * N.B. If the buffer isn't large enough the name will be truncated.
1559 const char *stream, char *buffer, int bufsize)
1566 snprintf(buffer, bufsize, "%s/%s:%s", dir, name, stream);
1568 snprintf(buffer, bufsize, "%s/%s", dir, name);
1571 snprintf(buffer, bufsize, "%s:%s", name, stream);
1573 snprintf(buffer, bufsize, "%s", name);
1575 return strlen(buffer);
1654 char *buffer = NULL;
1688 buffer = malloc(bufsize);
1689 if (!buffer)
1699 free(buffer);
1765 memset(buffer, opts.fillbyte, bufsize);
1767 if (write_data(fd, buffer, bufsize) < bufsize) {
1782 memset(buffer, opts.fillbyte, bufsize);
1784 if (write_data(fd, buffer, bufsize) < bufsize) {
1796 memset(buffer, 0, bufsize);
1798 if (write_data(fd, buffer, bufsize) < bufsize) {
1812 memset(buffer, opts.fillbyte, bufsize);
1813 if (write_data(fd, buffer, bufsize) < bufsize) {
1819 if (ntfs_cluster_read(vol, j, 1, buffer) < 1) {
1824 if (write_data(fd, buffer, bufsize) < bufsize) {
1873 if (buffer)
1874 free(buffer);
1895 char *buffer = NULL;
1915 buffer = malloc(BUFSIZE);
1916 if (!buffer) {
1940 size = ntfs_attr_pread(attr, i, read_count, buffer);
1945 b = buffer[j];
1998 free(buffer);
2020 char *buffer;
2034 buffer = malloc(vol->mft_record_size);
2035 if (!buffer) {
2072 vol->mft_record_size, buffer) < vol->mft_record_size) {
2077 if (write_data(fd, buffer, vol->mft_record_size) < vol->mft_record_size) {
2090 free(buffer);