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:
parent
f2f4ba7452
commit
deb1694c3c
2 changed files with 2 additions and 2 deletions
|
@ -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_ */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue