svn commit: r330256 - head/sys/sys

Rodney W. Grimes freebsd at pdx.rh.CN85.dnsmgr.net
Fri Mar 2 00:56:52 UTC 2018


> Author: eadler
> Date: Thu Mar  1 22:38:21 2018
> New Revision: 330256
> URL: https://svnweb.freebsd.org/changeset/base/330256
> 
> Log:
>   sys/sys: Use a more common spelling of 'dirent'

Actually, correct missed rename of direct to dirent,
the name of this structure in 4.2/4.3 was direct,
posix renamed it to dirent.  The comment probably
got missed when the rest of the file was changed.

>   Submitted by:	Domagoj Stolfa <domagoj.stolfa at gmail.com>
>   MFC After:	3 days
> 
> Modified:
>   head/sys/sys/dirent.h
> 
> Modified: head/sys/sys/dirent.h
> ==============================================================================
> --- head/sys/sys/dirent.h	Thu Mar  1 22:04:51 2018	(r330255)
> +++ head/sys/sys/dirent.h	Thu Mar  1 22:38:21 2018	(r330256)
> @@ -112,7 +112,7 @@ struct freebsd11_dirent {
>  
>  /*
>   * The _GENERIC_DIRSIZ macro gives the minimum record length which will hold
> - * the directory entry.  This returns the amount of space in struct direct
> + * the directory entry.  This returns the amount of space in struct dirent
>   * without the d_name field, plus enough space for the name with a terminating
>   * null byte (dp->d_namlen+1), rounded up to a 8 byte boundary.
>   *
> 
> 

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the svn-src-head mailing list