mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-23 20:39:31 +08:00
2000-11-01 Joel Sherrill <joel@OARcorp.com>
* include/Makefile.am, include/rtems/libio_.h, libc/Makefile.am, libc/assoc.c, libc/assocnamebad.c, libc/base_fs.c, libc/cfsetispeed.c, libc/cfsetospeed.c, libc/chdir.c, libc/chmod.c, libc/chown.c, libc/close.c, libc/closedir.c, libc/dup2.c, libc/error.c, libc/eval.c, libc/fchdir.c, libc/fchmod.c, libc/fcntl.c, libc/fdatasync.c, libc/fpathconf.c, libc/fstat.c, libc/fsync.c, libc/ftruncate.c, libc/getdents.c, libc/ioctl.c, libc/libio.c, libc/libio_sockets.c, libc/link.c, libc/lseek.c, libc/malloc.c, libc/mallocfreespace.c, libc/mknod.c, libc/mount.c, libc/newlibc.c, libc/no_libc.c, libc/open.c, libc/read.c, libc/readlink.c, libc/rmdir.c, libc/stat.c, libc/symlink.c, libc/tcsetattr.c, libc/telldir.c, libc/ttyname.c, libc/ttyname_r.c, libc/umask.c, libc/unlink.c, libc/unmount.c, libc/utime.c, libc/write.c: assoc.h, error.h, libio_.h, libio.h, and libcsupport.h moved from libc to lib/include/rtems and now must be referenced as <rtems/XXX.h>. * include/rtems/Makefile.am, include/rtems/.cvsignore: New file. * include/rtems/assoc.h, include/rtems/error.h, include/rtems/libcsupport.h, include/rtems/libio.h, include/rtems/libio_.h: New/moved files.
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __LIBIO__h
|
||||
#define __LIBIO__h
|
||||
#ifndef __RTEMS_LIBIO_INTERNAL__h
|
||||
#define __RTEMS_LIBIO_INTERNAL__h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
@@ -11,8 +11,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __LIBIO__h
|
||||
#define __LIBIO__h
|
||||
#ifndef __RTEMS_LIBIO_INTERNAL__h
|
||||
#define __RTEMS_LIBIO_INTERNAL__h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -56,34 +56,10 @@ C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
|
||||
endif
|
||||
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
|
||||
|
||||
H_FILES = libcsupport.h
|
||||
SYS_H_FILES =
|
||||
RTEMS_H_FILES = assoc.h error.h libio.h
|
||||
noinst_HEADERS = libio_.h
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../../../automake/compile.am
|
||||
include $(top_srcdir)/../../../automake/lib.am
|
||||
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \
|
||||
$(PROJECT_INCLUDE)/sys $(H_FILES:%=$(PROJECT_INCLUDE)/%) \
|
||||
$(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \
|
||||
$(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%)
|
||||
|
||||
$(PROJECT_INCLUDE):
|
||||
@$(mkinstalldirs) $@
|
||||
$(PROJECT_INCLUDE)/rtems:
|
||||
@$(mkinstalldirs) $@
|
||||
$(PROJECT_INCLUDE)/sys:
|
||||
@$(mkinstalldirs) $@
|
||||
|
||||
$(PROJECT_INCLUDE)/%.h: %.h
|
||||
$(INSTALL_DATA) $< $@
|
||||
$(PROJECT_INCLUDE)/rtems/%.h: %.h
|
||||
$(INSTALL_DATA) $< $@
|
||||
$(PROJECT_INCLUDE)/sys/%.h: %.h
|
||||
$(INSTALL_DATA) $< $@
|
||||
|
||||
TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
|
||||
|
||||
OBJS = $(C_O_FILES)
|
||||
@@ -105,6 +81,6 @@ $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
|
||||
DOC_FILES = TODO CASES
|
||||
|
||||
EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
|
||||
$(UNIX_C_FILES) $(H_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
|
||||
$(UNIX_C_FILES)
|
||||
|
||||
include $(top_srcdir)/../../../automake/local.am
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "assoc.h"
|
||||
#include <rtems/assoc.h>
|
||||
|
||||
#include <string.h> /* strcat, strcmp */
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "assoc.h"
|
||||
#include <rtems/assoc.h>
|
||||
|
||||
#include <stdio.h> /* sprintf */
|
||||
#include <string.h> /* strcat, strcmp */
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
/*
|
||||
* Global information for the base file system.
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <errno.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int cfsetispeed(
|
||||
struct termios *tp,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <errno.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int cfsetospeed(
|
||||
struct termios *tp,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int chdir(
|
||||
const char *pathname
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int chmod(
|
||||
const char *path,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int chown(
|
||||
const char *path,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int close(
|
||||
int fd
|
||||
|
||||
@@ -47,7 +47,7 @@ static char sccsid[] = "@(#)closedir.c 5.9 (Berkeley) 2/23/91";
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
/*
|
||||
* close a directory.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int dup2(
|
||||
int fildes,
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
||||
#include <rtems.h>
|
||||
|
||||
#include "error.h"
|
||||
#include <rtems/error.h>
|
||||
#include <rtems/assoc.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int rtems_filesystem_evaluate_path(
|
||||
const char *pathname,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int fchdir(
|
||||
int fd
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int fchmod(
|
||||
int fd,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int fcntl(
|
||||
int fd,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int fdatasync(
|
||||
int fd
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int fstat(
|
||||
int fd,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int fsync(
|
||||
int fd
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int ftruncate(
|
||||
int fd,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int getdents(
|
||||
int dd_fd,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h" /* libio_.h pulls in rtems */
|
||||
#include <rtems/libio_.h> /* libio_.h pulls in rtems */
|
||||
#include <rtems.h>
|
||||
#include <rtems/assoc.h> /* assoc.h not included by rtems.h */
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h" /* libio_.h pulls in rtems */
|
||||
#include <rtems/libio_.h> /* libio_.h pulls in rtems */
|
||||
#include <rtems.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int link(
|
||||
const char *existing,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
off_t lseek(
|
||||
int fd,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
||||
#include <rtems.h>
|
||||
#include "libcsupport.h"
|
||||
#include <rtems/libcsupport.h>
|
||||
#ifdef RTEMS_NEWLIB
|
||||
#include <sys/reent.h>
|
||||
#endif
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
||||
#include <rtems.h>
|
||||
#include "libcsupport.h"
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int mknod(
|
||||
const char *pathname,
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
Chain_Control rtems_filesystem_mount_table_control;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <rtems.h>
|
||||
|
||||
#if defined(RTEMS_NEWLIB)
|
||||
#include <libcsupport.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <stdlib.h> /* for free() */
|
||||
#include <string.h> /* for memset() */
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <rtems.h>
|
||||
#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
|
||||
|
||||
#include "libcsupport.h"
|
||||
#include <rtems/libcsupport.h>
|
||||
|
||||
#include <stdlib.h> /* for free() */
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
ssize_t read(
|
||||
int fd,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int readlink(
|
||||
const char *pathname,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int rmdir(
|
||||
const char *pathname
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int _STAT_NAME(
|
||||
const char *path,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int symlink(
|
||||
const char *actualpath,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
/* #include <sys/ioctl.h> */
|
||||
|
||||
#include <rtems/libio.h>
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int tcsetattr(
|
||||
int fd,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
|
||||
long telldir(
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <_syslist.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
|
||||
int ttyname_r(
|
||||
|
||||
@@ -50,7 +50,7 @@ static char sccsid[] = "@(#)ttyname.c 5.10 (Berkeley) 5/6/91";
|
||||
#include <_syslist.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
/*
|
||||
* ttyname_r() - POSIX 1003.1b 4.7.2 - Demetermine Terminal Device Name
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
mode_t umask(
|
||||
mode_t cmask
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
int unlink(
|
||||
const char *path
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "libio_.h"
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
/*
|
||||
* Data structures and routines private to mount/unmount pair.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user