summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-28 16:50:07 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-28 16:50:07 -0600
commit4c24c7c4a741eaeffc76339f07076cdad7a36c56 (patch)
tree337a94000f0e849884e81e8ac2ee188bf0a38179 /nuttx/net
parente735773fe5ea269b43dbecb246cec846b3a0368e (diff)
downloadpx4-nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.tar.gz
px4-nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.tar.bz2
px4-nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.zip
Clean up some naming: fd vs. fildes vs. filedes and filep vs filp
Diffstat (limited to 'nuttx/net')
-rw-r--r--nuttx/net/net_vfcntl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/nuttx/net/net_vfcntl.c b/nuttx/net/net_vfcntl.c
index 7650264bf..a4c924225 100644
--- a/nuttx/net/net_vfcntl.c
+++ b/nuttx/net/net_vfcntl.c
@@ -1,7 +1,7 @@
/****************************************************************************
* net/net_vfcntl.c
*
- * Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -97,14 +97,14 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
case F_GETFD:
/* Get the file descriptor flags defined in <fcntl.h> that are associated
- * with the file descriptor fildes. File descriptor flags are associated
+ * with the file descriptor fd. File descriptor flags are associated
* with a single file descriptor and do not affect other file descriptors
* that refer to the same file.
*/
case F_SETFD:
/* Set the file descriptor flags defined in <fcntl.h>, that are associated
- * with fildes, to the third argument, arg, taken as type int. If the
+ * with fd, to the third argument, arg, taken as type int. If the
* FD_CLOEXEC flag in the third argument is 0, the file shall remain open
* across the exec functions; otherwise, the file shall be closed upon
* successful execution of one of the exec functions.
@@ -115,7 +115,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
case F_GETFL:
/* Get the file status flags and file access modes, defined in <fcntl.h>,
- * for the file description associated with fildes. The file access modes
+ * for the file description associated with fd. The file access modes
* can be extracted from the return value using the mask O_ACCMODE, which is
* defined in <fcntl.h>. File status flags and file access modes are associated
* with the file description and do not affect other file descriptors that
@@ -140,7 +140,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
case F_SETFL:
/* Set the file status flags, defined in <fcntl.h>, for the file description
- * associated with fildes from the corresponding bits in the third argument,
+ * associated with fd from the corresponding bits in the third argument,
* arg, taken as type int. Bits corresponding to the file access mode and
* the file creation flags, as defined in <fcntl.h>, that are set in arg shall
* be ignored. If any bits in arg other than those mentioned here are changed
@@ -170,18 +170,18 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
break;
case F_GETOWN:
- /* If fildes refers to a socket, get the process or process group ID specified
+ /* If fd refers to a socket, get the process or process group ID specified
* to receive SIGURG signals when out-of-band data is available. Positive values
* indicate a process ID; negative values, other than -1, indicate a process group
- * ID. If fildes does not refer to a socket, the results are unspecified.
+ * ID. If fd does not refer to a socket, the results are unspecified.
*/
case F_SETOWN:
- /* If fildes refers to a socket, set the process or process group ID specified
+ /* If fd refers to a socket, set the process or process group ID specified
* to receive SIGURG signals when out-of-band data is available, using the value
- * of the third argument, arg, taken as type int. Positive values indicate a
+ * of the third argument, arg, taken as type int. Positive values indicate a
* process ID; negative values, other than -1, indicate a process group ID. If
- * fildes does not refer to a socket, the results are unspecified.
+ * fd does not refer to a socket, the results are unspecified.
*/
case F_GETLK: