/[hurd]/hurd/ufs/dir.h
ViewVC logotype

Diff of /hurd/ufs/dir.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by roland, Fri Oct 4 20:55:48 2002 UTC revision 1.7.2.1 by ams, Mon Oct 31 00:24:31 2005 UTC
# Line 1  Line 1 
1  /* Modified from BSD by Michael I. Bushnell for GNU Hurd ufs server. */  /* Modified from BSD by Michael I. Bushnell for GNU Hurd ufs server. */
2  /*  /*
3   * Copyright (c) 1982, 1986, 1989, 1993   * Copyright (c) 1982, 1986, 1989, 1993, 2005
4   *      The Regents of the University of California.  All rights reserved.   *      The Regents of the University of California.  All rights reserved.
5   * (c) UNIX System Laboratories, Inc.   * (c) UNIX System Laboratories, Inc.
6   * All or some portions of this file are derived from material licensed   * All or some portions of this file are derived from material licensed
# Line 91  struct directory_entry { Line 91  struct directory_entry {
91  /* Return the namlen from a struct direct, paying attention to whether  /* Return the namlen from a struct direct, paying attention to whether
92     this filesystem supports the type extension */     this filesystem supports the type extension */
93  #if (BYTE_ORDER == LITTLE_ENDIAN)  #if (BYTE_ORDER == LITTLE_ENDIAN)
94  #define DIRECT_NAMLEN(dp) (direct_symlink_extension || swab_disk            \  #define DIRECT_NAMLEN(dp) (*(direct_symlink_extension || swab_disk          \
95                             ? (dp)->d_namlen                                 \                               ? &(dp)->d_namlen                              \
96                             : (dp)->d_type)                               : &(dp)->d_type))
97  #else  #else
98  #define DIRECT_NAMLEN(dp) (!direct_symlink_extension && swab_disk           \  #define DIRECT_NAMLEN(dp) (*(!direct_symlink_extension && swab_disk         \
99                             ? (dp)->d_type                                   \                               ? &(dp)->d_type                                \
100                             : (dp)->d_namlen)                               : &(dp)->d_namlen))
101  #endif  #endif
102    
103  /*  /*

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26