posix: Extend open() function signature with ellipsis

The commit changes signature of open function from:
  int open(const char *name, int flags)
to
  int open(const char *name, int flags, ...)

Currently existing two argument invocations should not require any
rework.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2020-07-03 11:18:02 +00:00 committed by Carles Cufí
commit deb1694c3c
2 changed files with 2 additions and 2 deletions

View file

@ -15,6 +15,6 @@
#define F_GETFL 3
#define F_SETFL 4
int open(const char *name, int flags);
int open(const char *name, int flags, ...);
#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_FCNTL_H_ */

View file

@ -59,7 +59,7 @@ static inline void posix_fs_free_obj(struct posix_fs_desc *ptr)
*
* See IEEE 1003.1
*/
int open(const char *name, int flags)
int open(const char *name, int flags, ...)
{
int rc, fd;
struct posix_fs_desc *ptr = NULL;