⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newlib-1.13.0.patch.svn-base

📁 PSP开发环境(Linux) 包含PSPLINK 请自行选择需要安装的库及源代码
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
+#define PTRDIFF_MIN (-__STDINT_EXP(LONG_MAX) - 1L)+#define PTRDIFF_MAX __STDINT_EXP(LONG_MAX)++/** Macros for minimum-width integer constant expressions */+#define INT8_C(x)	x+#define UINT8_C(x)	x##U++#define INT16_C(x)	x+#define UINT16_C(x)	x##U++#if __have_long32+#define INT32_C(x)	x##L+#define UINT32_C(x)	x##UL+#else+#define INT32_C(x)	x+#define UINT32_C(x)	x##U+#endif++#if __int64_t_defined+#if __have_longlong64+#define INT64_C(x)	x##LL+#define UINT64_C(x)	x##ULL+#else+#define INT64_C(x)	x##L+#define UINT64_C(x)	x##UL+#endif+#endif++/** Macros for greatest-width integer constant expression */+#if __have_longlong64+#define INTMAX_C(x)	x##LL+#define UINTMAX_C(x)	x##ULL+#else+#define INTMAX_C(x)	x##L+#define UINTMAX_C(x)	x##UL+#endif+++#ifdef __cplusplus+}+#endif++#endif /* _STDINT_H */--- newlib-1.13.0/newlib/libc/include/sys/config.h	2004-06-22 21:54:51.000000000 +0000+++ newlib-psp/newlib/libc/include/sys/config.h	2006-05-13 20:29:20.000000000 +0000@@ -94,6 +94,12 @@ #endif #endif +/* We compile newlib with -G0 for PSP, but if we're compiling an app with $gp enabled,+   then _impure_ptr is expected to live in .sdata. */+#if defined(__psp__)+#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))+#endif+ #ifdef __xstormy16__ #define __SMALL_BITFIELDS #undef INT_MAX--- newlib-1.13.0/newlib/libc/include/sys/types.h	2003-07-02 20:32:07.000000000 +0000+++ newlib-psp/newlib/libc/include/sys/types.h	2006-05-13 20:29:20.000000000 +0000@@ -188,52 +188,6 @@  typedef unsigned short nlink_t; -/* We don't define fd_set and friends if we are compiling POSIX-   source, or if we have included (or may include as indicated-   by __USE_W32_SOCKETS) the W32api winsock[2].h header which-   defines Windows versions of them.   Note that a program which-   includes the W32api winsock[2].h header must know what it is doing;-   it must not call the cygwin32 select function.-*/-# if !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS)) -#  define _SYS_TYPES_FD_SET-#  define	NBBY	8		/* number of bits in a byte */-/*- * Select uses bit masks of file descriptors in longs.- * These macros manipulate such bit fields (the filesystem macros use chars).- * FD_SETSIZE may be defined by the user, but the default here- * should be >= NOFILE (param.h).- */-#  ifndef	FD_SETSIZE-#	define	FD_SETSIZE	64-#  endif--typedef	long	fd_mask;-#  define	NFDBITS	(sizeof (fd_mask) * NBBY)	/* bits per mask */-#  ifndef	howmany-#	define	howmany(x,y)	(((x)+((y)-1))/(y))-#  endif--/* We use a macro for fd_set so that including Sockets.h afterwards-   can work.  */-typedef	struct _types_fd_set {-	fd_mask	fds_bits[howmany(FD_SETSIZE, NFDBITS)];-} _types_fd_set;--#define fd_set _types_fd_set--#  define	FD_SET(n, p)	((p)->fds_bits[(n)/NFDBITS] |= (1L << ((n) % NFDBITS)))-#  define	FD_CLR(n, p)	((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS)))-#  define	FD_ISSET(n, p)	((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS)))-#  define	FD_ZERO(p)	(__extension__ (void)({ \-     size_t __i; \-     char *__tmp = (char *)p; \-     for (__i = 0; __i < sizeof (*(p)); ++__i) \-       *__tmp++ = 0; \-}))--# endif	/* !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS)) */- #undef __MS_types__ #undef _ST_INT32 --- newlib-1.13.0/newlib/libc/sys/psp/Makefile.am	1970-01-01 00:00:00.000000000 +0000+++ newlib-psp/newlib/libc/sys/psp/Makefile.am	2006-05-11 20:51:00.000000000 +0000@@ -0,0 +1,65 @@+## Process this file with automake to generate Makefile.in++AUTOMAKE_OPTIONS = cygnus++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)++noinst_LIBRARIES = lib.a++LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o	\+                     _gettimeofday.o _kill.o _lseek.o _open.o _read.o	\+                     _sbrk.o _wait.o _write.o clock.o isatty.o time.o	\+                     _link.o _unlink.o sleep.o opendir.o readdir.o	\+                     closedir.o getcwd.o chdir.o mkdir.o rmdir.o	\+                     realpath.o _stat.o truncate.o access.o tzset.o	\+                     __psp_set_errno.o mlock.o _fcntl.o _rename.o++SOCKET_MULT_OBJS = socket.o accept.o bind.o connect.o getsockopt.o \+				   listen.o recv.o recvfrom.o send.o sendto.o \+				   setsockopt.o shutdown.o getsockname.o getpeername.o \+				   inet_ntoa.o+				   +PIPE_OBJS = pipe.o ++FDMAN_OBJS = fdman.o++SELECT_OBJS = select.o++INTERRUPT_OBJS = interrupt.o++XPRINTF_MULT_OBJS = vxprintf.o _xprintf.o __sout.o vsnprintf.o snprintf.o vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o asprintf.o vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o _sprintf_r.o++NETDB_MULT_OBJS = h_errno.o gethostbyaddr.o gethostbyname.o++lib_a_SOURCES = libcglue.c socket.c pspcwd.c xprintf.c netdb.c pipe.c fdman.c select.c interrupt.S+lib_a_LIBADD  = $(LIBCGLUE_MULT_OBJS) $(SOCKET_MULT_OBJS) $(XPRINTF_MULT_OBJS) \+				$(NETDB_MULT_OBJS) $(PIPE_OBJS) $(FDMAN_OBJS) $(SELECT_OBJS) $(INTERRUPT_OBJS)++all: crt0.o++$(LIBCGLUE_MULT_OBJS): libcglue.c+	$(COMPILE) -DF_$* $< -c -o $@++$(SOCKET_MULT_OBJS): socket.c+	$(COMPILE) -DF_$* $< -c -o $@++$(XPRINTF_MULT_OBJS): xprintf.c+	$(COMPILE) -DF_$* $< -c -o $@++$(NETDB_MULT_OBJS): netdb.c+	$(COMPILE) -DF_$* $< -c -o $@++$(PIPE_OBJS): pipe.c+	$(COMPILE) -DF_$* $< -c -o $@++$(FDMAN_OBJS): fdman.c+	$(COMPILE) -DF_$* $< -c -o $@++$(SELECT_OBJS): select.c+	$(COMPILE) -DF_$* $< -c -o $@+	+$(INTERRUPT_OBJS): interrupt.S+	$(COMPILE) -DF_$* $< -c -o $@++ACLOCAL_AMFLAGS = -I ../../..+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host--- newlib-1.13.0/newlib/libc/sys/psp/Makefile.in	1970-01-01 00:00:00.000000000 +0000+++ newlib-psp/newlib/libc/sys/psp/Makefile.in	2006-05-11 20:54:00.000000000 +0000@@ -0,0 +1,389 @@+# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am++# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.+# This Makefile.in is free software; the Free Software Foundation+# gives unlimited permission to copy and/or distribute it,+# with or without modifications, as long as this notice is preserved.++# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A+# PARTICULAR PURPOSE.+++SHELL = @SHELL@++srcdir = @srcdir@+top_srcdir = @top_srcdir@+VPATH = @srcdir@+prefix = @prefix@+exec_prefix = @exec_prefix@++bindir = @bindir@+sbindir = @sbindir@+libexecdir = @libexecdir@+datadir = @datadir@+sysconfdir = @sysconfdir@+sharedstatedir = @sharedstatedir@+localstatedir = @localstatedir@+libdir = @libdir@+infodir = @infodir@+mandir = @mandir@+includedir = @includedir@+oldincludedir = /usr/include++DESTDIR =++pkgdatadir = $(datadir)/@PACKAGE@+pkglibdir = $(libdir)/@PACKAGE@+pkgincludedir = $(includedir)/@PACKAGE@++top_builddir = .++ACLOCAL = @ACLOCAL@+AUTOCONF = @AUTOCONF@+AUTOMAKE = @AUTOMAKE@+AUTOHEADER = @AUTOHEADER@++INSTALL = @INSTALL@+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)+INSTALL_DATA = @INSTALL_DATA@+INSTALL_SCRIPT = @INSTALL_SCRIPT@+transform = @program_transform_name@++NORMAL_INSTALL = :+PRE_INSTALL = :+POST_INSTALL = :+NORMAL_UNINSTALL = :+PRE_UNINSTALL = :+POST_UNINSTALL = :+build_alias = @build_alias@+build_triplet = @build@+host_alias = @host_alias@+host_triplet = @host@+target_alias = @target_alias@+target_triplet = @target@+AR = @AR@+AS = @AS@+CC = @CC@+CPP = @CPP@+EXEEXT = @EXEEXT@+HAVE_LIB = @HAVE_LIB@+LDFLAGS = @LDFLAGS@+LIB = @LIB@+LTLIB = @LTLIB@+MAINT = @MAINT@+MAKEINFO = @MAKEINFO@+NEWLIB_CFLAGS = @NEWLIB_CFLAGS@+OBJEXT = @OBJEXT@+PACKAGE = @PACKAGE@+RANLIB = @RANLIB@+VERSION = @VERSION@+aext = @aext@+libm_machine_dir = @libm_machine_dir@+machine_dir = @machine_dir@+newlib_basedir = @newlib_basedir@+oext = @oext@+sys_dir = @sys_dir@++AUTOMAKE_OPTIONS = cygnus++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)++noinst_LIBRARIES = lib.a++LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o	                     _gettimeofday.o _kill.o _lseek.o _open.o _read.o	                     _sbrk.o _wait.o _write.o clock.o isatty.o time.o	                     _link.o _unlink.o sleep.o opendir.o readdir.o	                     closedir.o getcwd.o chdir.o mkdir.o rmdir.o	                     realpath.o _stat.o truncate.o access.o tzset.o	                     __psp_set_errno.o mlock.o _fcntl.o _rename.o+++SOCKET_MULT_OBJS = socket.o accept.o bind.o connect.o getsockopt.o 				   listen.o recv.o recvfrom.o send.o sendto.o 				   setsockopt.o shutdown.o getsockname.o getpeername.o 				   inet_ntoa.o+++PIPE_OBJS = pipe.o ++FDMAN_OBJS = fdman.o++SELECT_OBJS = select.o++INTERRUPT_OBJS = interrupt.o++XPRINTF_MULT_OBJS = vxprintf.o _xprintf.o __sout.o vsnprintf.o snprintf.o vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o asprintf.o vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o _sprintf_r.o++NETDB_MULT_OBJS = h_errno.o gethostbyaddr.o gethostbyname.o++lib_a_SOURCES = libcglue.c socket.c pspcwd.c xprintf.c netdb.c pipe.c fdman.c select.c interrupt.S+lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) $(SOCKET_MULT_OBJS) $(XPRINTF_MULT_OBJS) 				$(NETDB_MULT_OBJS) $(PIPE_OBJS) $(FDMAN_OBJS) $(SELECT_OBJS) $(INTERRUPT_OBJS)+++ACLOCAL_AMFLAGS = -I ../../..+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4+mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs+CONFIG_CLEAN_FILES = +LIBRARIES =  $(noinst_LIBRARIES)+++DEFS = @DEFS@ -I. -I$(srcdir) +CPPFLAGS = @CPPFLAGS@+LIBS = @LIBS@+lib_a_DEPENDENCIES =  _close.o _exit.o _fork.o _fstat.o _getpid.o \+_gettimeofday.o _kill.o _lseek.o _open.o _read.o _sbrk.o _wait.o \+_write.o clock.o isatty.o time.o _link.o _unlink.o sleep.o opendir.o \+readdir.o closedir.o getcwd.o chdir.o mkdir.o rmdir.o realpath.o \+_stat.o truncate.o access.o tzset.o __psp_set_errno.o mlock.o _fcntl.o \+_rename.o socket.o accept.o bind.o connect.o getsockopt.o listen.o \+recv.o recvfrom.o send.o sendto.o setsockopt.o shutdown.o getsockname.o \+getpeername.o inet_ntoa.o vxprintf.o _xprintf.o __sout.o vsnprintf.o \+snprintf.o vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o \+asprintf.o vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o \+_sprintf_r.o h_errno.o gethostbyaddr.o gethostbyname.o pipe.o fdman.o \+select.o interrupt.o+lib_a_OBJECTS =  libcglue.o socket.o pspcwd.o xprintf.o netdb.o pipe.o \+fdman.o select.o interrupt.o+CFLAGS = @CFLAGS@+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)+CCLD = $(CC)+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@+DIST_COMMON =  README Makefile.am Makefile.in aclocal.m4 configure \+configure.in+++DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)++TAR = tar+GZIP_ENV = --best+SOURCES = $(lib_a_SOURCES)+OBJECTS = $(lib_a_OBJECTS)++all: all-redirect+.SUFFIXES:+.SUFFIXES: .S .c .o .s+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +	cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile++Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status+	cd $(top_builddir) \+	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status++$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  \+		../../../acinclude.m4 ../../../aclocal.m4 \+		../../../libtool.m4+	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)++config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)+	$(SHELL) ./config.status --recheck+$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)+	cd $(srcdir) && $(AUTOCONF)++mostlyclean-noinstLIBRARIES:++clean-noinstLIBRARIES:+	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)++distclean-noinstLIBRARIES:++maintainer-clean-noinstLIBRARIES:++.c.o:+	$(COMPILE) -c $<++.s.o:+	$(COMPILE) -c $<++.S.o:+	$(COMPILE) -c $<++mostlyclean-compile:+	-rm -f *.o core *.core++clean-compile:++distclean-compile:+	-rm -f *.tab.c++maintainer-clean-compile:++lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)+	-rm -f lib.a+	$(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)+	$(RANLIB) lib.a++tags: TAGS++ID: $(HEADERS) $(SOURCES) $(LISP)+	list='$(SOURCES) $(HEADERS)'; \+	unique=`for i in $$list; do echo $$i; done | \+	  awk '    { files[$$0] = 1; } \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -