diff --git a/src/lib/libast/tm/tvtouch.c b/src/lib/libast/tm/tvtouch.c index 11133fc0a..a03546cb6 100644 --- a/src/lib/libast/tm/tvtouch.c +++ b/src/lib/libast/tm/tvtouch.c @@ -149,7 +149,7 @@ tvtouch(const char* path, register const Tv_t* av, register const Tv_t* mv, cons return -1; umask(mode = umask(0)); mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); - if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, mode)) < 0) + if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) return -1; close(fd); errno = oerrno; @@ -253,7 +253,7 @@ tvtouch(const char* path, register const Tv_t* av, register const Tv_t* mv, cons errno = EINVAL; return -1; } - if ((fd = open(path, O_RDWR|O_CLOEXEC)) >= 0) + if ((fd = open(path, O_RDWR|O_cloexec)) >= 0) { char c; @@ -273,7 +273,7 @@ tvtouch(const char* path, register const Tv_t* av, register const Tv_t* mv, cons return -1; umask(mode = umask(0)); mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); - if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, mode)) < 0) + if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) return -1; close(fd); errno = oerrno;