File: stathelp.h

package info (click to toggle)
klibc 2.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,240 kB
  • sloc: ansic: 48,401; asm: 2,531; perl: 789; makefile: 231; sh: 160
file content (24 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * stathelp.h
 *
 * Helper macros for <klibc/archstat.h>
 */

#ifndef _KLIBC_STATHELP_H
#define _KLIBC_STATHELP_H

#include <klibc/endian.h>

/*
 * Most architectures have a 64-bit field for st_dev and st_rdev,
 * but dev_t is 32 bits (uint32_t == unsigned int), so make a
 * macro we can use across all architectures.
 */

#if __BYTE_ORDER == __BIG_ENDIAN
# define __stdev64(x)	unsigned int __##x, x;
#else
# define __stdev64(x)	unsigned int x, __##x;
#endif

#endif				/* _KLIBC_STATHELP_H */