diff options
Diffstat (limited to 'nuttx/fs/fs_open.c')
-rw-r--r-- | nuttx/fs/fs_open.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/fs/fs_open.c b/nuttx/fs/fs_open.c index 76b941f95..467eef858 100644 --- a/nuttx/fs/fs_open.c +++ b/nuttx/fs/fs_open.c @@ -1,7 +1,7 @@ /**************************************************************************** * fs_open.c * - * Copyright (C) 2007, 2008, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -69,6 +69,10 @@ int inode_checkflags(FAR struct inode *inode, int oflags) } } +/**************************************************************************** + * Name: open + ****************************************************************************/ + int open(const char *path, int oflags, ...) { struct filelist *list; @@ -181,7 +185,7 @@ int open(const char *path, int oflags, ...) errout_with_inode: inode_release(inode); errout: - *get_errno_ptr() = ret; + errno = ret; return ERROR; } |