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 |
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 |
/* |
/* |