From 30ede997c3fc8764c5a84987028cc8b3b351bf48 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Feb 2015 14:01:14 -0600 Subject: Add BSD and SYSV types to sys/types to simplify porting. From Max Neklyudov --- nuttx/include/sys/types.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index 102bde622..cc8aee15d 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/sys/types.h * - * Copyright (C) 2007-2009, 2011-2012, 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011-2012, 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -240,11 +240,27 @@ typedef uint32_t clock_t; typedef uint32_t useconds_t; typedef int32_t suseconds_t; +/* BSD types provided only to support porting to NuttX. */ + +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef unsigned long u_long; + +/* SYSV types provided only to support porting to NuttX. */ + +typedef unsigned char unchar; +typedef unsigned short ushort; +typedef unsigned int uint; +typedef unsigned long ulong; +typedef signed char s_char; +typedef char *caddr_t; + /* Task entry point */ typedef CODE int (*main_t)(int argc, char *argv[]); -#endif +#endif /* __ASSEMBLY__ */ /**************************************************************************** * Global Function Prototypes -- cgit v1.2.3