[Dist-svn] SF.net SVN: dist:[193] trunk/dist
Brought to you by:
rmanfredi
From: <rma...@us...> - 2015-04-19 14:41:38
|
Revision: 193 http://sourceforge.net/p/dist/code/193 Author: rmanfredi Date: 2015-04-19 14:41:31 +0000 (Sun, 19 Apr 2015) Log Message: ----------- Unfortunately, the name length field in dirent is d_namlen, not d_namelen. Modified Paths: -------------- trunk/dist/MANIFEST Added Paths: ----------- trunk/dist/mcon/U/d_dirent_d_namlen.U Removed Paths: ------------- trunk/dist/mcon/U/d_dirent_d_namelen.U Modified: trunk/dist/MANIFEST =================================================================== --- trunk/dist/MANIFEST 2015-04-19 14:26:42 UTC (rev 192) +++ trunk/dist/MANIFEST 2015-04-19 14:41:31 UTC (rev 193) @@ -204,7 +204,7 @@ mcon/U/d_deflate.U Do we have zlib's deflate()? mcon/U/d_devpoll.U Can we use /dev/poll? mcon/U/d_difftime.U Do we have difftime()? -mcon/U/d_dirent_d_namelen.U Does struct dirent has a member d_namelen? +mcon/U/d_dirent_d_namlen.U Does struct dirent has a member d_namlen? mcon/U/d_dirent_d_type.U Does struct dirent has a member d_type? mcon/U/d_dirfd.U Do we have dirfd()? mcon/U/d_dladdr.U Do we have dladdr()? Deleted: trunk/dist/mcon/U/d_dirent_d_namelen.U =================================================================== --- trunk/dist/mcon/U/d_dirent_d_namelen.U 2015-04-19 14:26:42 UTC (rev 192) +++ trunk/dist/mcon/U/d_dirent_d_namelen.U 2015-04-19 14:41:31 UTC (rev 193) @@ -1,42 +0,0 @@ -?RCS: -?RCS: Copyright (c) 2015 Raphael Manfredi -?RCS: -?RCS: You may redistribute only under the terms of the Artistic License, -?RCS: as specified in the README file that comes with the distribution. -?RCS: You may reuse parts of this distribution only within the terms of -?RCS: that same Artistic License; a copy of which may be found at the root -?RCS: of the source tree for dist 4.0. -?RCS: -?MAKE:d_dirent_d_namelen: Trylink cat i_dirent -?MAKE: -pick add $@ %< -?S:d_dirent_d_namelen: -?S: This variable conditionally defines the HAS_DIRENT_D_NAMELEN symbol, -?S: which indicates to the C program that struct dirent has an -?S: integer member d_namelen. Better check for HAS_DIRENT_D_NAMELEN than -?S: DIRNAMLEN since the latter has a weaker test not involving compilation. -?S:. -?C:HAS_DIRENT_D_NAMELEN: -?C: This symbol, if defined, indicates that struct dirent has an -?C: integer member d_namelen to hold the actual string length of d_name. -?C:. -?H:#$d_dirent_d_namelen HAS_DIRENT_D_NAMELEN /**/ -?H:. -?LINT:set d_dirent_d_namelen -: check whether struct dirent has a member d_namelen. -$cat >try.c <<EOC -#include <sys/types.h> -#$i_dirent I_DIRENT -#ifdef I_DIRENT -#include <dirent.h> -#endif -int main(void) -{ - static struct dirent dir_entry; - dir_entry.d_namelen |= 1; - return 0; -} -EOC -cyn="whether struct dirent has a d_namelen member" -set d_dirent_d_namelen -eval $trylink - Copied: trunk/dist/mcon/U/d_dirent_d_namlen.U (from rev 192, trunk/dist/mcon/U/d_dirent_d_namelen.U) =================================================================== --- trunk/dist/mcon/U/d_dirent_d_namlen.U (rev 0) +++ trunk/dist/mcon/U/d_dirent_d_namlen.U 2015-04-19 14:41:31 UTC (rev 193) @@ -0,0 +1,42 @@ +?RCS: +?RCS: Copyright (c) 2015 Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic License, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic License; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?MAKE:d_dirent_d_namlen: Trylink cat i_dirent +?MAKE: -pick add $@ %< +?S:d_dirent_d_namlen: +?S: This variable conditionally defines the HAS_DIRENT_D_NAMLEN symbol, +?S: which indicates to the C program that struct dirent has an +?S: integer member d_namlen. Better check for HAS_DIRENT_D_NAMLEN than +?S: DIRNAMLEN since the latter has a weaker test not involving compilation. +?S:. +?C:HAS_DIRENT_D_NAMLEN: +?C: This symbol, if defined, indicates that struct dirent has an +?C: integer member d_namlen to hold the actual string length of d_name. +?C:. +?H:#$d_dirent_d_namlen HAS_DIRENT_D_NAMLEN /**/ +?H:. +?LINT:set d_dirent_d_namlen +: check whether struct dirent has a member d_namlen. +$cat >try.c <<EOC +#include <sys/types.h> +#$i_dirent I_DIRENT +#ifdef I_DIRENT +#include <dirent.h> +#endif +int main(void) +{ + static struct dirent dir_entry; + dir_entry.d_namlen |= 1; + return 0; +} +EOC +cyn="whether struct dirent has a d_namlen member" +set d_dirent_d_namlen +eval $trylink + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |