You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
958 B
36 lines
958 B
16 years ago
|
/*
|
||
|
** Copyright 2002-2003 University of Illinois Board of Trustees
|
||
|
** Copyright 2002-2003 Mark D. Roth
|
||
|
** All rights reserved.
|
||
|
**
|
||
|
** internal.h - internal header file for libtar
|
||
|
**
|
||
|
** Mark D. Roth <roth@uiuc.edu>
|
||
|
** Campus Information Technologies and Educational Services
|
||
|
** University of Illinois at Urbana-Champaign
|
||
|
*/
|
||
|
|
||
|
#include <libtar/config.h>
|
||
|
#include <libtar/compat.h>
|
||
|
|
||
|
#include <libtar/libtar.h>
|
||
|
|
||
|
#ifdef HAVE_SYS_SYSMACROS_H
|
||
|
#include <sys/sysmacros.h>
|
||
|
#endif
|
||
|
|
||
|
#ifndef HAVE_MAJOR
|
||
|
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
||
|
#endif
|
||
|
#ifndef HAVE_MINOR
|
||
|
# define minor(dev) ((int)((dev) & 0xff))
|
||
|
#endif
|
||
|
/* On Cray XT3 when using thr PGI pgcc 7.0.4 sys/sysmacros.h ends up without
|
||
|
makedev(), since __i386__ is not defined when GLIBC_HAVE_LONG_LONG should
|
||
|
be enabled in features.h */
|
||
|
#ifndef HAVE_MAKEDEV
|
||
|
# define makedev(major, minor) ((((int)((major) & 0xff)) << 8 ) \
|
||
|
| ((int)((minor) & 0xff)) )
|
||
|
#endif
|
||
|
|