Monado OpenXR Runtime
Functions
u_file.c File Reference

Very simple file opening functions. More...

#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

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 *filename, char *out_path, size_t out_path_size)
 
FILE * u_file_open_file_in_config_dir (const char *filename, const char *mode)
 

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

Function Documentation

◆ u_file_get_config_dir()

ssize_t u_file_get_config_dir ( char *  out_path,
size_t  out_path_size 
)

◆ u_file_get_path_in_config_dir()

ssize_t u_file_get_path_in_config_dir ( const char *  filename,
char *  out_path,
size_t  out_path_size 
)

◆ u_file_open_file_in_config_dir()

FILE* u_file_open_file_in_config_dir ( const char *  filename,
const char *  mode 
)