From e18080ab06ebce8a07fe54e601ce200908ac6ce2 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 27 Jan 2005 06:42:37 +0000 Subject: 2005-01-27 Ralf Corsepius * libcsupport/include/tar.h: New (SUSv3). * Makefile.am: Integrate newlib-specific headers. Add libcsupport/include/tar.h. * libcsupport/Makefile.am: Remove newlib-specific headers. --- cpukit/libcsupport/Makefile.am | 79 ---------------------------------------- cpukit/libcsupport/include/tar.h | 47 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 79 deletions(-) create mode 100644 cpukit/libcsupport/include/tar.h (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index eada99e963..31a8007eb7 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -15,21 +15,6 @@ include_rtems_HEADERS = include/chain.h include/console.h include/clockdrv.h \ include/iosupp.h include/ringbuf.h include/rtc.h include/spurious.h \ include/timerdrv.h include/vmeintr.h -include_HEADERS = - -#if NEWLIB -include_sysdir = $(includedir)/sys -include_sys_HEADERS = - -if RTEMS_PROVIDES_STDINT_H -include_HEADERS += include/stdint.h -endif - -if RTEMS_PROVIDES_INTTYPES_H -include_HEADERS += include/inttypes.h -endif -#endif - ## motorola include_rtems_motoroladir = $(includedir)/rtems/motorola @@ -42,14 +27,6 @@ include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \ include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \ include/rtems/termiostypes.h include/rtems/cdefs.h -## sys - -if NEWLIB -include_sys_HEADERS += include/sys/ioccom.h include/sys/filio.h \ - include/sys/ioctl.h include/sys/sockio.h include/sys/ttycom.h \ - include/sys/termios.h include/sys/utsname.h include/sys/cdefs.h -endif - ## zilog include_rtems_zilogdir = $(includedir)/rtems/zilog @@ -153,11 +130,6 @@ endif PREINSTALL_DIRS = PREINSTALL_FILES = -$(PROJECT_INCLUDE)/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE) - @: > $(PROJECT_INCLUDE)/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) - $(PROJECT_INCLUDE)/rtems/$(dirstamp): @$(mkdir_p) $(PROJECT_INCLUDE)/rtems @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) @@ -199,23 +171,6 @@ $(PROJECT_INCLUDE)/rtems/vmeintr.h: include/vmeintr.h $(PROJECT_INCLUDE)/rtems/$ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/vmeintr.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/vmeintr.h -$(PROJECT_INCLUDE)/sys/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/sys - @: > $(PROJECT_INCLUDE)/sys/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sys/$(dirstamp) - -if RTEMS_PROVIDES_STDINT_H -$(PROJECT_INCLUDE)/stdint.h: include/stdint.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/stdint.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/stdint.h -endif - -if RTEMS_PROVIDES_INTTYPES_H -$(PROJECT_INCLUDE)/inttypes.h: include/inttypes.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/inttypes.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/inttypes.h -endif - $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp): @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/motorola @: > $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp) @@ -257,40 +212,6 @@ $(PROJECT_INCLUDE)/rtems/cdefs.h: include/rtems/cdefs.h $(PROJECT_INCLUDE)/rtems $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cdefs.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cdefs.h -if NEWLIB -$(PROJECT_INCLUDE)/sys/ioccom.h: include/sys/ioccom.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioccom.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioccom.h - -$(PROJECT_INCLUDE)/sys/filio.h: include/sys/filio.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/filio.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/filio.h - -$(PROJECT_INCLUDE)/sys/ioctl.h: include/sys/ioctl.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioctl.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioctl.h - -$(PROJECT_INCLUDE)/sys/sockio.h: include/sys/sockio.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/sockio.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/sockio.h - -$(PROJECT_INCLUDE)/sys/ttycom.h: include/sys/ttycom.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ttycom.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ttycom.h - -$(PROJECT_INCLUDE)/sys/termios.h: include/sys/termios.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/termios.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/termios.h - -$(PROJECT_INCLUDE)/sys/utsname.h: include/sys/utsname.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/utsname.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/utsname.h - -$(PROJECT_INCLUDE)/sys/cdefs.h: include/sys/cdefs.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/cdefs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/cdefs.h -endif - $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp): @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/zilog @: > $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp) diff --git a/cpukit/libcsupport/include/tar.h b/cpukit/libcsupport/include/tar.h new file mode 100644 index 0000000000..a8e9938d6d --- /dev/null +++ b/cpukit/libcsupport/include/tar.h @@ -0,0 +1,47 @@ +/* + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + * + * $Id$ + */ + +/** @file tar.h + * Newlib specific tar.h + */ + +#ifndef _TAR_H +#define _TAR_H + +/* General definitions */ +#define TMAGIC "ustar" /* ustar plus null byte. */ +#define TMAGLEN 6 /* Length of the above. */ +#define TVERSION "00" /* 00 without a null byte. */ +#define TVERSLEN 2 /* Length of the above. */ + +/* Typeflag field definitions */ +#define REGTYPE '0' /* Regular file. */ +#define AREGTYPE '\0' /* Regular file. */ +#define LNKTYPE '1' /* Link. */ +#define SYMTYPE '2' /* Symbolic link. */ +#define CHRTYPE '3' /* Character special. */ +#define BLKTYPE '4' /* Block special. */ +#define DIRTYPE '5' /* Directory. */ +#define FIFOTYPE '6' /* FIFO special. */ +#define CONTTYPE '7' /* Reserved. */ + +/* Mode field bit definitions (octal) */ +#define TSUID 04000 /* Set UID on execution. */ +#define TSGID 02000 /* Set GID on execution. */ +#define TSVTX 01000 /* On directories, restricted deletion flag. */ +#define TUREAD 00400 /* Read by owner. */ +#define TUWRITE 00200 /* Write by owner. */ +#define TUEXEC 00100 /* Execute/search by owner. */ +#define TGREAD 00040 /* Read by group. */ +#define TGWRITE 00020 /* Write by group. */ +#define TGEXEC 00010 /* Execute/search by group. */ +#define TOREAD 00004 /* Read by other. */ +#define TOWRITE 00002 /* Write by other. */ +#define TOEXEC 00001 /* Execute/search by other. */ + +#endif -- cgit v1.2.3