From 4c24c7c4a741eaeffc76339f07076cdad7a36c56 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 28 Sep 2013 16:50:07 -0600 Subject: Clean up some naming: fd vs. fildes vs. filedes and filep vs filp --- nuttx/net/net_vfcntl.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'nuttx/net') 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 * * 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 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 , 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 , - * 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 . 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 , 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 , 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: -- cgit v1.2.3