#include "dln.h"
#include <strings.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
◆ dln_warning
#define dln_warning fprintf |
◆ dln_warning_arg
#define dln_warning_arg stderr, |
◆ PATHNAME_TOO_LONG
#define PATHNAME_TOO_LONG |
( |
| ) |
|
Value: ((
bp - fbuf) > 100 ? 100 : (
int)(
bp - fbuf)), fbuf, \
((
bp - fbuf) > 100 ?
"..." :
""), \
(fnlen > 100 ? 100 : (int)fnlen), fname, \
(fnlen > 100 ? "..." : ""))
◆ RETURN_IF
#define RETURN_IF |
( |
|
expr | ) |
if (expr) return (char *)fname; |
◆ S_ISDIR
#define S_ISDIR |
( |
|
m | ) |
(((m) & S_IFMT) == S_IFDIR) |
◆ S_ISREG
#define S_ISREG |
( |
|
m | ) |
(((m) & S_IFMT) == S_IFREG) |
◆ dln_find_exe_r()
char* dln_find_exe_r |
( |
const char * |
fname, |
|
|
const char * |
path, |
|
|
char * |
buf, |
|
|
size_t size |
DLN_FIND_EXTRA_ARG_DECL |
|
) |
| |
◆ dln_find_file_r()
char* dln_find_file_r |
( |
const char * |
fname, |
|
|
const char * |
path, |
|
|
char * |
buf, |
|
|
size_t size |
DLN_FIND_EXTRA_ARG_DECL |
|
) |
| |
◆ getenv()