[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/cp/ps/plat/inc/oss/oss_posix.h b/cp/ps/plat/inc/oss/oss_posix.h
new file mode 100644
index 0000000..9effacb
--- /dev/null
+++ b/cp/ps/plat/inc/oss/oss_posix.h
@@ -0,0 +1,106 @@
+/**************************************************************************

+*

+*                  Copyright (c) 2012 ZTE Corporation.

+*

+***************************************************************************

+* Ä£ ¿é Ãû : P98C_OSS

+* ÎÄ ¼þ Ãû : oss_posix.h

+* Ïà¹ØÎļþ : 

+* ʵÏÖ¹¦ÄÜ : posix¿âÍ·Îļþ

+* ×÷    Õß : chenxingfang

+* °æ    ±¾ : V1.0

+* Íê³ÉÈÕÆÚ : 2012-08-10 

+* ÆäËü˵Ã÷ : 

+**************************************************************************/

+

+/**************************************************************************

+* Ð޸ļǼ

+**************************************************************************/

+#ifndef _OSS_POSIX_H

+#define _OSS_POSIX_H

+

+#define _USE_POSIX

+#ifdef _USE_POSIX

+

+/**************************************************************************

+* #includeÇø

+**************************************************************************/

+#ifdef _OS_TOS

+#include <sys/time.h>

+#include <sys/types.h>

+#elif defined (_OS_LINUX)

+

+#else

+#include "sys/types.h"

+#endif

+

+#ifdef __cplusplus

+extern "C"

+{

+#endif

+

+/**************************************************************************

+* ³£Á¿¶¨ÒåÇø

+**************************************************************************/

+

+/**************************************************************************

+* Êý¾Ý½á¹¹¶¨ÒåÇø

+**************************************************************************/

+/* ʱ¼ä¶¨Òå */

+#ifndef _OS_WIN

+typedef struct timeval  ZOSS_S_TIMEVAL;

+typedef struct timezone ZOSS_S_TIMEZONE;

+typedef struct timespec ZOSS_S_TIMESPEC;

+#else

+# ifndef _USE_OS_SOCK

+typedef struct timeval

+# else

+typedef struct

+# endif

+{

+    SINT32  tv_sec;        

+    SINT32  tv_usec;     

+}ZOSS_S_TIMEVAL;

+

+typedef struct timezone

+{

+    SINT32  tz_minuteswest; /*  minutes west of Greenwich,ºÍGreenwich ʱ¼ä²îÁ˶àÉÙ·ÖÖÓ  */

+    SINT32  tz_dsttime;     /*  type of dst correction to apply ,ÈÕ¹â½ÚԼʱ¼äµÄ״̬Ëù´ú±íµÄ״̬ÈçÏÂ

+                                DST_NONE    ²»Ê¹ÓÃ

+                                DST_USA     ÃÀ¹ú

+                                DST_AUST    °ÄÖÞ

+                                DST_WET     Î÷Å·

+                                DST_MET     ÖÐÅ·

+                                DST_EET     ¶«Å·

+                                DST_CAN     ¼ÓÄôó

+                                DST_GB      ´ó²»Áеß

+                                DST_RUM     ÂÞÂíÄáÑÇ

+                                DST_TUR     ÍÁ¶úÆä

+                                DST_AUSTALT °ÄÖÞ(1986ÄêÒÔºó)    */

+}ZOSS_S_TIMEZONE;

+

+typedef struct timespec 

+{

+    SINT32  tv_sec;

+    SINT32  tv_nsec;

+}ZOSS_S_TIMESPEC;

+#endif

+

+/**************************************************************************

+* º¯ÊýÉùÃ÷Çø

+**************************************************************************/

+UINT32 zOss_Gettimeofday(ZOSS_S_TIMEVAL *tv, ZOSS_S_TIMEZONE *tz);

+UINT32 zOss_Settimeofday(ZOSS_S_TIMEVAL *tv, ZOSS_S_TIMEZONE *tz);

+

+/**************************************************************************

+* È«¾Ö±äÁ¿ÉùÃ÷Çø

+**************************************************************************/

+

+#ifdef __cplusplus

+}

+#endif

+

+#endif  /* _USE_POSIX   */

+

+#endif  /* _OSS_POSIX_H */

+