projects
/
mesa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
util/tests: Use define instead of VLA
[mesa.git]
/
src
/
util
/
os_file.h
1
/*
2
* Copyright 2019 Intel Corporation
3
* SPDX-License-Identifier: MIT
4
*
5
* File operations helpers
6
*/
7
8
#ifndef _OS_FILE_H_
9
#define _OS_FILE_H_
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
/*
16
* Read a file.
17
* Returns a char* that the caller must free(), or NULL and sets errno.
18
*/
19
char
*
20
os_read_file
(
const char
*
filename
);
21
22
#ifdef __cplusplus
23
}
24
#endif
25
26
#endif
/* _OS_FILE_H_ */