berval is defined as follows:
struct berval { unsigned long bv_len; char *bv_val; }; The fields in this structure are described below:
struct berval {
unsigned long bv_len;
char *bv_val;
};
bv_len
bv_val
Use a berval structure when working with attributes that contain binary data (such as a JPEG or audio file).