summaryrefslogtreecommitdiff
path: root/mcon/U
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2015-04-19 14:41:31 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2015-04-19 14:41:31 +0000
commit65f959231ac694a610f5cb49e432d93ec879f1d6 (patch)
treeb5a1649568f4d5834abb11e635dc0692f592e961 /mcon/U
parent86eaf7a0609ca060dba9e79180bc84a7fbac2bef (diff)
Unfortunately, the name length field in dirent is d_namlen, not d_namelen.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@193 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U')
-rw-r--r--mcon/U/d_dirent_d_namlen.U (renamed from mcon/U/d_dirent_d_namelen.U)24
1 files changed, 12 insertions, 12 deletions
diff --git a/mcon/U/d_dirent_d_namelen.U b/mcon/U/d_dirent_d_namlen.U
index 48361a6..00fdfb2 100644
--- a/mcon/U/d_dirent_d_namelen.U
+++ b/mcon/U/d_dirent_d_namlen.U
@@ -7,22 +7,22 @@
?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:d_dirent_d_namlen: Trylink cat i_dirent
?MAKE: -pick add $@ %<
-?S:d_dirent_d_namelen:
-?S: This variable conditionally defines the HAS_DIRENT_D_NAMELEN symbol,
+?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_namelen. Better check for HAS_DIRENT_D_NAMELEN than
+?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_NAMELEN:
+?C:HAS_DIRENT_D_NAMLEN:
?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: integer member d_namlen to hold the actual string length of d_name.
?C:.
-?H:#$d_dirent_d_namelen HAS_DIRENT_D_NAMELEN /**/
+?H:#$d_dirent_d_namlen HAS_DIRENT_D_NAMLEN /**/
?H:.
-?LINT:set d_dirent_d_namelen
-: check whether struct dirent has a member d_namelen.
+?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
@@ -32,11 +32,11 @@ $cat >try.c <<EOC
int main(void)
{
static struct dirent dir_entry;
- dir_entry.d_namelen |= 1;
+ dir_entry.d_namlen |= 1;
return 0;
}
EOC
-cyn="whether struct dirent has a d_namelen member"
-set d_dirent_d_namelen
+cyn="whether struct dirent has a d_namlen member"
+set d_dirent_d_namlen
eval $trylink