diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-14 21:05:40 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-14 21:05:40 +0000 |
commit | 7c6185ae4bfefb70c17e75219db7269c03c7fd79 (patch) | |
tree | 189259eb60c6bdc6a646e62b0eb684ae5719554d /nuttx/fs/fs_filedup2.c | |
parent | 1faee63c00cf63807dea0681a8ee48104e0765f5 (diff) | |
download | px4-firmware-7c6185ae4bfefb70c17e75219db7269c03c7fd79.tar.gz px4-firmware-7c6185ae4bfefb70c17e75219db7269c03c7fd79.tar.bz2 px4-firmware-7c6185ae4bfefb70c17e75219db7269c03c7fd79.zip |
Clean-up files in fs/ directory
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4942 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/fs/fs_filedup2.c')
-rw-r--r-- | nuttx/fs/fs_filedup2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/fs/fs_filedup2.c b/nuttx/fs/fs_filedup2.c index 30a4a3aa0..0e785ca48 100644 --- a/nuttx/fs/fs_filedup2.c +++ b/nuttx/fs/fs_filedup2.c @@ -2,7 +2,7 @@ * fs/fs_filedup2.c * * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -87,15 +87,15 @@ int dup2(int fildes1, int fildes2) list = sched_getfiles(); if (!list) { - errno = EMFILE; + set_errno(EMFILE); return ERROR; } - /* Verify that fildes is a valid, open file descriptor */ + /* Verify that fildes is a valid, open file descriptor */ if (!DUP_ISOPEN(fildes1, list)) { - errno = EBADF; + set_errno(EBADF); return ERROR; } @@ -110,7 +110,7 @@ int dup2(int fildes1, int fildes2) if ((unsigned int)fildes2 >= CONFIG_NFILE_DESCRIPTORS) { - errno = EBADF; + set_errno(EBADF); return ERROR; } |