lsyncd/core/util.h

35 lines
601 B
C
Raw Normal View History

2018-03-27 07:09:12 +00:00
/*
| util.h from Lsyncd - Live (Mirror) Syncing Demon
|
|
| Small in Lsyncd commonly used utils.
|
|
| License: GPLv2 (see COPYING) or any later version
| Authors: Axel Kittenberger <axkibe@gmail.com>
*/
#ifndef LSYNCD_UTIL_H
#define LSYNCD_UTIL_H
/*
| Returns the absolute path of a path.
|
| This is a wrapper to various C-Library differences.
*/
extern char * get_realpath( char const * rpath );
/*
| Sets the non-blocking flag on a file descriptor.
*/
extern void non_block_fd( int fd );
/*
| Sets the close-on-exit flag on a file descriptor.
*/
extern void close_exec_fd( int fd );
#endif
2018-03-28 07:17:49 +00:00