1
0

internal.h 619 B

123456789101112131415161718192021222324252627
  1. /*
  2. ** Copyright 2002-2003 University of Illinois Board of Trustees
  3. ** Copyright 2002-2003 Mark D. Roth
  4. ** All rights reserved.
  5. **
  6. ** internal.h - internal header file for libtar
  7. **
  8. ** Mark D. Roth <[email protected]>
  9. ** Campus Information Technologies and Educational Services
  10. ** University of Illinois at Urbana-Champaign
  11. */
  12. #include <libtar/config.h>
  13. #include <libtar/compat.h>
  14. #include <libtar/libtar.h>
  15. #ifdef HAVE_SYS_SYSMACROS_H
  16. #include <sys/sysmacros.h>
  17. #endif
  18. #ifndef HAVE_MAJOR
  19. # define major(dev) ((int)(((dev) >> 8) & 0xff))
  20. #endif
  21. #ifndef HAVE_MINOR
  22. # define minor(dev) ((int)((dev) & 0xff))
  23. #endif