libcdio-paranoia 10.2+2.0.2
Macros | Functions
buffering_write.c File Reference
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include "utils.h"
#include "buffering_write.h"

Macros

#define OUTBUFSZ   32*1024
 

Functions

long int buffering_write (int fd, char *buffer, long num)
 
int buffering_close (int fd)
 

Macro Definition Documentation

◆ OUTBUFSZ

#define OUTBUFSZ   32*1024

Function Documentation

◆ buffering_close()

int buffering_close ( int  fd)

buffering_close() - writes out remaining buffered data before closing file.

◆ buffering_write()

long int buffering_write ( int  fd,
char *  buffer,
long  num 
)

buffering_write() - buffers data to a specified size before writing.

Restrictions:

  • MUST CALL BUFFERING_CLOSE() WHEN FINISHED!!!