summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/mq_getattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/mq_getattr.c')
-rw-r--r--nuttx/sched/mq_getattr.c43
1 files changed, 22 insertions, 21 deletions
diff --git a/nuttx/sched/mq_getattr.c b/nuttx/sched/mq_getattr.c
index 71f2a87dfe..e788d6e71a 100644
--- a/nuttx/sched/mq_getattr.c
+++ b/nuttx/sched/mq_getattr.c
@@ -1,7 +1,7 @@
-/************************************************************
- * mq_getattr.c
+/************************************************************************
+ * sched/mq_getattr.c
*
- * 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
@@ -31,13 +31,14 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Included Files
- ************************************************************/
+ ************************************************************************/
+
+#include <nuttx/config.h>
-#include <sys/types.h> /* uint32, etc. */
#include <stdarg.h> /* va_list */
#include <unistd.h>
#include <string.h>
@@ -51,31 +52,31 @@
#include "sig_internal.h"
#include "mq_internal.h"
-/************************************************************
+/************************************************************************
* Definitions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Private Type Declarations
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Global Variables
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Private Variables
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Private Functions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Public Functions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Function: mq_getattr
*
* Description:
@@ -91,7 +92,7 @@
*
* Assumptions:
*
- ************************************************************/
+ ************************************************************************/
int mq_getattr(mqd_t mqdes, struct mq_attr *mq_stat)
{