This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] RTEMS: Harmonize MAXNAMLEN and NAME_MAX


On Jan 25 07:07, Sebastian Huber wrote:
> Override MAXNAMLEN definition in <dirent.h> and make sure it equals
> NAME_MAX.
> 
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---
>  newlib/libc/sys/rtems/include/sys/dirent.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/newlib/libc/sys/rtems/include/sys/dirent.h b/newlib/libc/sys/rtems/include/sys/dirent.h
> index 5a3a54d..47a0c8f 100644
> --- a/newlib/libc/sys/rtems/include/sys/dirent.h
> +++ b/newlib/libc/sys/rtems/include/sys/dirent.h
> @@ -50,6 +50,10 @@ struct dirent {
>  	char		d_name[NAME_MAX + 1];
>  };
>  
> +#if __BSD_VISIBLE
> +#define	MAXNAMLEN NAME_MAX
> +#endif
> +
>  int scandir ( const char *dirname,
>     struct dirent *** namelist,
>     int (*select)(const struct dirent *),
> -- 
> 1.8.4.5

Pushed.

Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]