diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 23:32:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 23:32:23 +0000 |
commit | d7d4a0d765d12cc152c62a37b490702c39d76447 (patch) | |
tree | d3969c50e49cd742124e05349431556344a93f54 /nuttx/include/sys | |
parent | 313eb5bb780f9e9baa353651996b51ce33a85fca (diff) | |
download | px4-nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.gz px4-nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.tar.bz2 px4-nuttx-d7d4a0d765d12cc152c62a37b490702c39d76447.zip |
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2340 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r-- | nuttx/include/sys/mman.h | 2 | ||||
-rw-r--r-- | nuttx/include/sys/mount.h | 5 | ||||
-rw-r--r-- | nuttx/include/sys/select.h | 3 | ||||
-rw-r--r-- | nuttx/include/sys/socket.h | 2 | ||||
-rw-r--r-- | nuttx/include/sys/stat.h | 2 | ||||
-rw-r--r-- | nuttx/include/sys/statfs.h | 20 | ||||
-rw-r--r-- | nuttx/include/sys/time.h | 5 | ||||
-rw-r--r-- | nuttx/include/sys/types.h | 7 |
8 files changed, 24 insertions, 22 deletions
diff --git a/nuttx/include/sys/mman.h b/nuttx/include/sys/mman.h index 9a140011c..81bed9ca2 100644 --- a/nuttx/include/sys/mman.h +++ b/nuttx/include/sys/mman.h @@ -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 diff --git a/nuttx/include/sys/mount.h b/nuttx/include/sys/mount.h index 0199325d7..e9ff0f4b5 100644 --- a/nuttx/include/sys/mount.h +++ b/nuttx/include/sys/mount.h @@ -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" diff --git a/nuttx/include/sys/select.h b/nuttx/include/sys/select.h index a38bb2b77..ec11349c8 100644 --- a/nuttx/include/sys/select.h +++ b/nuttx/include/sys/select.h @@ -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> diff --git a/nuttx/include/sys/socket.h b/nuttx/include/sys/socket.h index c384d1e3a..fdfb97787 100644 --- a/nuttx/include/sys/socket.h +++ b/nuttx/include/sys/socket.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 diff --git a/nuttx/include/sys/stat.h b/nuttx/include/sys/stat.h index 0377a53ff..ec3715dc8 100644 --- a/nuttx/include/sys/stat.h +++ b/nuttx/include/sys/stat.h @@ -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 diff --git a/nuttx/include/sys/statfs.h b/nuttx/include/sys/statfs.h index 05688f566..fb9654b08 100644 --- a/nuttx/include/sys/statfs.h +++ b/nuttx/include/sys/statfs.h @@ -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 */ }; /**************************************************************************** diff --git a/nuttx/include/sys/time.h b/nuttx/include/sys/time.h index 31efe1868..d9493b386 100644 --- a/nuttx/include/sys/time.h +++ b/nuttx/include/sys/time.h @@ -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) diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index 71108e653..286cc3fe9 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -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 |