mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2005-01-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/include/tar.h: New (SUSv3). * Makefile.am: Integrate newlib-specific headers. Add libcsupport/include/tar.h. * libcsupport/Makefile.am: Remove newlib-specific headers.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2005-01-27 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libcsupport/include/tar.h: New (SUSv3).
|
||||
* Makefile.am: Integrate newlib-specific headers.
|
||||
Add libcsupport/include/tar.h.
|
||||
* libcsupport/Makefile.am: Remove newlib-specific headers.
|
||||
|
||||
2005-01-27 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libmisc/fsmount/fsmount.c: Include config.h.
|
||||
|
||||
@@ -46,6 +46,21 @@ include_HEADERS += backward/itron.h
|
||||
endif
|
||||
endif
|
||||
|
||||
if NEWLIB
|
||||
include_sysdir = $(includedir)/sys
|
||||
include_sys_HEADERS =
|
||||
|
||||
include_HEADERS += libcsupport/include/stdint.h
|
||||
include_HEADERS += libcsupport/include/inttypes.h
|
||||
include_HEADERS += libcsupport/include/tar.h
|
||||
|
||||
include_sys_HEADERS += libcsupport/include/sys/ioccom.h \
|
||||
libcsupport/include/sys/filio.h libcsupport/include/sys/ioctl.h \
|
||||
libcsupport/include/sys/sockio.h libcsupport/include/sys/ttycom.h \
|
||||
libcsupport/include/sys/termios.h libcsupport/include/sys/utsname.h \
|
||||
libcsupport/include/sys/cdefs.h
|
||||
endif
|
||||
|
||||
include_rtemsdir = $(includedir)/rtems
|
||||
include_rtems_HEADERS = include/rtems/bspIo.h include/rtems/userenv.h \
|
||||
include/rtems/fs.h include/rtems/pci.h include/rtems/stdint.h \
|
||||
@@ -151,6 +166,57 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/itron.h
|
||||
endif
|
||||
endif
|
||||
|
||||
if NEWLIB
|
||||
$(PROJECT_INCLUDE)/sys/$(dirstamp):
|
||||
@$(mkdir_p) $(PROJECT_INCLUDE)/sys
|
||||
@: > $(PROJECT_INCLUDE)/sys/$(dirstamp)
|
||||
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sys/$(dirstamp)
|
||||
|
||||
$(PROJECT_INCLUDE)/stdint.h: libcsupport/include/stdint.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/stdint.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/stdint.h
|
||||
|
||||
$(PROJECT_INCLUDE)/inttypes.h: libcsupport/include/inttypes.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/inttypes.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/inttypes.h
|
||||
|
||||
$(PROJECT_INCLUDE)/tar.h: libcsupport/include/tar.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tar.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/tar.h
|
||||
|
||||
$(PROJECT_INCLUDE)/sys/ioccom.h: libcsupport/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: libcsupport/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: libcsupport/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: libcsupport/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: libcsupport/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: libcsupport/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: libcsupport/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: libcsupport/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/$(dirstamp):
|
||||
@$(mkdir_p) $(PROJECT_INCLUDE)/rtems
|
||||
@: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
|
||||
|
||||
@@ -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)
|
||||
|
||||
47
cpukit/libcsupport/include/tar.h
Normal file
47
cpukit/libcsupport/include/tar.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user