Monado OpenXR Runtime
u_file.c File Reference

Very simple file opening functions. More...

#include "xrt/xrt_config_os.h"
#include "util/u_file.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <linux/limits.h>
Include dependency graph for u_file.c:

Functions

static int mkpath (const char *path)
 
static bool is_dir (const char *path)
 
ssize_t u_file_get_config_dir (char *out_path, size_t out_path_size)
 
ssize_t u_file_get_path_in_config_dir (const char *suffix, char *out_path, size_t out_path_size)
 
FILE * u_file_open_file_in_config_dir (const char *filename, const char *mode)
 
FILE * u_file_open_file_in_config_dir_subpath (const char *subpath, const char *filename, const char *mode)
 
ssize_t u_file_get_hand_tracking_models_dir (char *out_path, size_t out_path_size)
 
ssize_t u_file_get_runtime_dir (char *out_path, size_t out_path_size)
 
ssize_t u_file_get_path_in_runtime_dir (const char *suffix, char *out_path, size_t out_path_size)
 
char * u_file_read_content (FILE *file)
 
char * u_file_read_content_from_path (const char *path)
 

Detailed Description

Very simple file opening functions.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
Pete Black pblac.nosp@m.k@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om