diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-19 00:14:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-19 00:14:46 +0000 |
commit | 17553d10657c2a395a2ab1f7d6629453fc5ed342 (patch) | |
tree | a32ae4f4d40e07e38093273770ff0989b50935db /nuttx/fs/fs_open.c | |
parent | 3f09faeeeb7c23c496df9e3790fd3425429adddc (diff) | |
download | px4-nuttx-17553d10657c2a395a2ab1f7d6629453fc5ed342.tar.gz px4-nuttx-17553d10657c2a395a2ab1f7d6629453fc5ed342.tar.bz2 px4-nuttx-17553d10657c2a395a2ab1f7d6629453fc5ed342.zip |
Add fcntl(F_DUPFD)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1995 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_open.c')
-rw-r--r-- | nuttx/fs/fs_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fs_open.c b/nuttx/fs/fs_open.c index 8ab650376..76b941f95 100644 --- a/nuttx/fs/fs_open.c +++ b/nuttx/fs/fs_open.c @@ -140,7 +140,7 @@ int open(const char *path, int oflags, ...) /* Associate the inode with a file structure */ - fd = files_allocate(inode, oflags, 0); + fd = files_allocate(inode, oflags, 0, 0); if (fd < 0) { ret = EMFILE; |