* \0). This is the allocated size, not the actual string size.
*/
out = open_memstream(buf, &size);
* \0). This is the allocated size, not the actual string size.
*/
out = open_memstream(buf, &size);
fp = fdopen(metadata_stream->pos.fd, "r");
if (!fp) {
fprintf(stdout, "[error] Unable to open metadata stream.\n");
fp = fdopen(metadata_stream->pos.fd, "r");
if (!fp) {
fprintf(stdout, "[error] Unable to open metadata stream.\n");
struct ctf_file_stream *file_stream;
ret = openat(td->dirfd, path, flags);
struct ctf_file_stream *file_stream;
ret = openat(td->dirfd, path, flags);
td->dirfd = open(path, 0);
if (td->dirfd < 0) {
fprintf(stdout, "[error] Unable to open trace directory file descriptor.\n");
td->dirfd = open(path, 0);
if (td->dirfd < 0) {
fprintf(stdout, "[error] Unable to open trace directory file descriptor.\n");