Lines Matching defs:buffer
94 * Each function takes a pointer to a buffer, the size of the buffer,
96 * return the number of bytes written to the buffer. If the buffer is not big
103 * Translator functions to read from a NULL terminated string buffer into
105 * of bytes read from the string buffer. If there is an error reading data
106 * from the buffer, then 0 is returned. It is the caller's responsibility
152 #define DLMGMT_MAKE_FILE_DB_PATH(buffer, persistent) \
153 (void) snprintf((buffer), MAXPATHLEN, "%s", \
417 write_str(char *buffer, size_t buffer_length, char *name, void *value)
424 * the buffer, the string's length must be less then buffer_length.
433 * Since we know the string will fit in the buffer, snprintf will
437 return (GENERATE_PROPERTY_STRING(buffer, buffer_length, "%s",
442 write_boolean(char *buffer, size_t buffer_length, char *name, void *value)
448 * characters in the buffer.
453 return (GENERATE_PROPERTY_STRING(buffer, buffer_length, "%d",
458 write_uint64(char *buffer, size_t buffer_length, char *name, void *value)
469 return (GENERATE_PROPERTY_STRING(buffer, buffer_length, "%lld",
474 read_str(char *buffer, void **value)
479 if (ptr == NULL || (len = strlcpy(ptr, buffer, MAXLINKATTRVALLEN))
492 read_boolean(char *buffer, void **value)
499 *ptr = atoi(buffer);
506 read_int64(char *buffer, void **value)
513 *ptr = (int64_t)atoll(buffer);
1031 * buffer as-is.