mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2340 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/sys/mman.h
|
||||
*
|
||||
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
||||
+2
-3
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/sys/mount.h
|
||||
*
|
||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -40,8 +40,6 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
****************************************************************************/
|
||||
@@ -57,6 +55,7 @@
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/sys/select.h
|
||||
*
|
||||
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -41,6 +41,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* sys/socket.h
|
||||
*
|
||||
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/sys/stat.h
|
||||
*
|
||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
||||
+11
-9
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/sys/statfs.h
|
||||
*
|
||||
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -41,7 +41,9 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
@@ -100,14 +102,14 @@
|
||||
|
||||
struct statfs
|
||||
{
|
||||
uint32 f_type; /* Type of filesystem (see definitions above) */
|
||||
size_t f_bsize; /* Optimal block size for transfers */
|
||||
size_t f_blocks; /* Total data blocks in the file system of this size */
|
||||
size_t f_bfree; /* Free blocks in the file system */
|
||||
size_t f_bavail; /* Free blocks avail to non-superuser */
|
||||
size_t f_files; /* Total file nodes in the file system */
|
||||
size_t f_ffree; /* Free file nodes in the file system */
|
||||
uint32 f_namelen; /* Maximum length of filenames */
|
||||
uint32_t f_type; /* Type of filesystem (see definitions above) */
|
||||
size_t f_bsize; /* Optimal block size for transfers */
|
||||
size_t f_blocks; /* Total data blocks in the file system of this size */
|
||||
size_t f_bfree; /* Free blocks in the file system */
|
||||
size_t f_bavail; /* Free blocks avail to non-superuser */
|
||||
size_t f_files; /* Total file nodes in the file system */
|
||||
size_t f_ffree; /* Free file nodes in the file system */
|
||||
uint32_t f_namelen; /* Maximum length of filenames */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
+2
-3
@@ -41,14 +41,13 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <time.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Public Type Definitions
|
||||
****************************************************************************/
|
||||
@@ -65,7 +64,7 @@ extern "C" {
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
EXTERN int gettimeofday(struct timeval *tp, void *tzp);
|
||||
EXTERN int gettimeofday(struct timeval *tp, FAR void *tzp);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
|
||||
+4
-3
@@ -41,11 +41,12 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <stdint.h>
|
||||
#include <nuttx/compiler.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Alternative alues for type bool (for historic reasons) */
|
||||
@@ -84,7 +85,7 @@
|
||||
#define PRIOR_OTHER_MAX 255
|
||||
|
||||
/* Scheduling Priorities. NOTE: Only the idle task can take
|
||||
* the TRUE minimum priority. */
|
||||
* the true minimum priority. */
|
||||
|
||||
#define SCHED_PRIORITY_MAX 255
|
||||
#define SCHED_PRIORITY_DEFAULT 100
|
||||
|
||||
Reference in New Issue
Block a user