mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Directly use <sys/_types.h> provided by Newlib
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
/* External definitions for functions in inet(3). */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
/* Required for byteorder(3) functions. */
|
||||
#include <machine/endian.h>
|
||||
|
@@ -41,7 +41,7 @@
|
||||
* __va_list from <sys/_types.h> and use it.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
void err(int, const char *, ...) __dead2 __printf0like(2, 3);
|
||||
|
@@ -58,7 +58,7 @@
|
||||
#define _NETDB_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
#ifndef _SIZE_T_DECLARED
|
||||
typedef __size_t size_t;
|
||||
|
@@ -34,7 +34,7 @@
|
||||
|
||||
#ifndef _LIBC_PRIVATE_H_
|
||||
#define _LIBC_PRIVATE_H_
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
#include <sys/_pthreadtypes.h>
|
||||
|
||||
/*
|
||||
@@ -230,7 +230,7 @@ extern void (*__cleanup)(void);
|
||||
* for the wrapped "new" pad-less syscalls are here for now.
|
||||
*/
|
||||
extern int __getosreldate(void);
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
/* Without pad */
|
||||
extern __off_t __sys_lseek(int, __off_t, int);
|
||||
extern int __sys_ftruncate(int, __off_t);
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#define _KVM_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
#include <nlist.h>
|
||||
|
||||
/* Default version symbol. */
|
||||
|
@@ -40,7 +40,7 @@
|
||||
#define _LIBUTIL_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
#include <sys/_stdint.h>
|
||||
|
||||
#ifndef _GID_T_DECLARED
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#define _NETINET_IN_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
#ifndef __rtems__
|
||||
#include <machine/endian.h>
|
||||
#else /* __rtems__ */
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#ifndef _SYS_SBUF_H_
|
||||
#define _SYS_SBUF_H_
|
||||
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
struct sbuf;
|
||||
typedef int (sbuf_drain_func)(void *, const char *, int);
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#define _SYS_SOCKET_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
#include <sys/_iovec.h>
|
||||
#include <machine/_align.h>
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#define _SYS_STDINT_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
#ifndef __rtems__
|
||||
#include <machine/_stdint.h>
|
||||
|
@@ -186,7 +186,7 @@ CODE facilitynames[] = {
|
||||
* __va_list from <sys/_types.h> and use it.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
void closelog(void);
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#define _SYS_UN_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <rtems/bsd/sys/_types.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
#ifndef _SA_FAMILY_T_DECLARED
|
||||
typedef __sa_family_t sa_family_t;
|
||||
|
Reference in New Issue
Block a user