diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-01 20:47:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-01 20:47:32 +0000 |
commit | 2e53693f16b113989e2050753483c7b97fb24c45 (patch) | |
tree | 33b0db130dc034b9599f3fca29c26118b260432f /nuttx/drivers | |
parent | eaf5d424d797e47f041bb75dbc0220d9ef9f5f6b (diff) | |
download | px4-nuttx-2e53693f16b113989e2050753483c7b97fb24c45.tar.gz px4-nuttx-2e53693f16b113989e2050753483c7b97fb24c45.tar.bz2 px4-nuttx-2e53693f16b113989e2050753483c7b97fb24c45.zip |
Add pascal test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@606 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/Makefile | 2 | ||||
-rw-r--r-- | nuttx/drivers/dev_null.c | 34 |
2 files changed, 18 insertions, 18 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile index d105e75ea..8b97332b5 100644 --- a/nuttx/drivers/Makefile +++ b/nuttx/drivers/Makefile @@ -44,7 +44,7 @@ AOBJS = $(ASRCS:.S=$(OBJEXT)) CSRCS = ifneq ($(CONFIG_NFILE_DESCRIPTORS),0) -CSRCS += dev_null.c serial.c lowconsole.c +CSRCS += dev_null.c dev_zero.c serial.c lowconsole.c endif CSRCS += $(NET_CSRCS) COBJS = $(CSRCS:.c=$(OBJEXT)) 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) { |