summaryrefslogtreecommitdiff
path: root/nuttx/examples/pashello
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-01 22:32:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-01 22:32:16 +0000
commit7a67f1634cf5ee06b87d90c16f68543f12e6349c (patch)
tree3eb8b5d2d7853ab10d752326806c2fcfa43862e4 /nuttx/examples/pashello
parent51f96a502ea130e3d83eff679b560608a8246a75 (diff)
downloadpx4-nuttx-7a67f1634cf5ee06b87d90c16f68543f12e6349c.tar.gz
px4-nuttx-7a67f1634cf5ee06b87d90c16f68543f12e6349c.tar.bz2
px4-nuttx-7a67f1634cf5ee06b87d90c16f68543f12e6349c.zip
Add fseek()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@613 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/pashello')
-rw-r--r--nuttx/examples/pashello/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nuttx/examples/pashello/device.c b/nuttx/examples/pashello/device.c
index 6231a8498..b157965c7 100644
--- a/nuttx/examples/pashello/device.c
+++ b/nuttx/examples/pashello/device.c
@@ -93,6 +93,7 @@ static ssize_t hello_read(struct file *filp, char *buffer, size_t len)
nread = hello_pex_len - offset;
}
memcpy(buffer, &hello_pex[offset], nread);
+ filep->f_pos += nread;
}
return nread;
}