2 * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org>
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 creat (const char *file
, mode_t mode
)
14 return _syscall2(int, __NC(creat
), const char*, file
, mode_t
, mode
)
16 return __open (file
, O_WRONLY
| O_CREAT
| O_TRUNC
, mode
);
20 CANCELLABLE_SYSCALL(int, creat
, (const char *file
, mode_t mode
), (file
, mode
))