Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6817eba in mainline


Ignore:
Timestamp:
2011-07-12T13:36:39Z (10 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master
Children:
1916d1f, 8ecef91
Parents:
f51f193
Message:

Bugfix in open() macro from fcntl.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/fcntl.h

    rf51f193 r6817eba  
    3838#include "sys/types.h"
    3939#include "libc/fcntl.h"
     40#include "errno.h"
    4041
    4142/* Mask for file access modes. */
     
    7273
    7374#undef open
    74 #define open(path, oflag, ...) \
     75#define open(path, ...) \
    7576        ({ \
    76                 int rc = open(path, oflag, ##__VA_ARGS__); \
     77                int rc = open(path, ##__VA_ARGS__); \
    7778                if (rc < 0) { \
    7879                        errno = -rc; \
Note: See TracChangeset for help on using the changeset viewer.