summaryrefslogtreecommitdiff
path: root/nuttx/drivers/dev_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/dev_null.c')
-rw-r--r--nuttx/drivers/dev_null.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/nuttx/drivers/dev_null.c b/nuttx/drivers/dev_null.c
index c08f9b034..16ec4f059 100644
--- a/nuttx/drivers/dev_null.c
+++ b/nuttx/drivers/dev_null.c
@@ -1,7 +1,7 @@
-/************************************************************
- * dev_null.c
+/****************************************************************************
+ * drivers/dev_null.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,15 +31,15 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Compilation Switches
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h>
@@ -48,16 +48,16 @@
#include <errno.h>
#include <nuttx/fs.h>
-/************************************************************
+/****************************************************************************
* Private Function Prototypes
- ************************************************************/
+ ****************************************************************************/
static ssize_t devnull_read(struct file *, char *, size_t);
static ssize_t devnull_write(struct file *, const char *, size_t);
-/************************************************************
+/****************************************************************************
* Private Data
- ************************************************************/
+ ****************************************************************************/
static struct file_operations devnull_fops =
{
@@ -69,9 +69,9 @@ static struct file_operations devnull_fops =
0 /* ioctl */
};
-/************************************************************
+/****************************************************************************
* Private Functions
- ************************************************************/
+ ****************************************************************************/
static ssize_t devnull_read(struct file *filp, char *buffer, size_t len)
{
@@ -83,9 +83,9 @@ static ssize_t devnull_write(struct file *filp, const char *buffer, size_t len)
return len; /* Say that everything was written */
}
-/************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************/
+ ****************************************************************************/
void devnull_register(void)
{