Check return value of chmod() and fcntl()

This commit is contained in:
Miroslav Lichvar
2014-06-06 12:07:31 +02:00
parent 9b630a0664
commit a8693a21f8
4 changed files with 15 additions and 9 deletions

2
util.h
View File

@@ -108,7 +108,7 @@ extern double UTI_FloatNetworkToHost(Float x);
extern Float UTI_FloatHostToNetwork(double x);
/* Set FD_CLOEXEC on descriptor */
extern void UTI_FdSetCloexec(int fd);
extern int UTI_FdSetCloexec(int fd);
extern int UTI_GenerateNTPAuth(int hash_id, const unsigned char *key, int key_len,
const unsigned char *data, int data_len, unsigned char *auth, int auth_len);