9
0
Fork 0
barebox/commands
Alexander Aring 9d8a20592f fs: add pread and pwrite functions
Add pread and pwrite functions.

Split read and write functions to save some space.
The functions pread and pwrite saves and sets the file
position to a given offset and restore them afterwards.

This also makes the nandtest command use these function
which is necessary to not break compilation for the nandtest
command.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-02-20 08:22:42 +01:00
..
Kconfig Merge branch 'for-next/oftree' 2013-02-04 15:49:04 +01:00
Makefile Merge branch 'for-next/oftree' 2013-02-04 15:49:04 +01:00
automount.c cosmetic: extra new line in automount usage command 2012-10-13 20:20:17 +02:00
barebox-update.c Add in-system barebox update infrastructure 2012-10-17 20:23:41 +02:00
basename.c Add basename command 2012-06-30 16:53:59 +02:00
bootm.c Merge branch 'for-next/oftree' 2013-02-04 15:49:04 +01:00
cat.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
cd.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
clear.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
clk.c commands: Add clk commands 2012-10-04 15:19:55 +02:00
cp.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
crc.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
dfu.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
digest.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
dirname.c dirname: add -V option to return only path related to the mountpoint 2012-09-05 03:22:14 +08:00
echo.c Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
edit.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
exec.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
export.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
false.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
filetype.c add filetype command support 2012-10-30 15:42:39 +01:00
flash.c commands: flash: add missing newlines to error messages 2012-12-14 08:43:44 +01:00
global.c Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
go.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
gpio.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
help.c cosmetic: improve command list display 2012-10-12 10:52:53 +02:00
i2c.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
insmod.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
iomem.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
led.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
let.c commands: add let command which supports proper arithmetic 2013-01-09 10:32:54 +01:00
linux16.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
linux_exec.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ln.c command: add ln support 2012-09-05 03:22:14 +08:00
loadb.c commands: remove old Y-Modem implementation 2012-11-12 09:35:53 +01:00
loadenv.c move prototypes for envfs_* to envfs.h 2013-01-20 16:31:51 +01:00
loads.c commands: remove old Y-Modem implementation 2012-11-12 09:35:53 +01:00
loadxy.c commands: remove old Y-Modem implementation 2012-11-12 09:35:53 +01:00
login.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ls.c ls command: call stat() only when necessary 2012-12-03 11:23:25 +01:00
lsmod.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
magicvar.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
mem.c commands: mw: add the '-x' option (swap bytes) 2012-11-26 11:14:40 +01:00
meminfo.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
memtest.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
menu.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
miitool.c add 'miitool' command to view media-independent interface status 2012-10-30 10:24:12 +01:00
mkdir.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
mount.c mount: add compatibility to old mount command 2012-11-02 21:26:29 +01:00
msleep.c commands: add msleep command 2012-06-30 12:47:04 +02:00
nand.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
nandtest.c fs: add pread and pwrite functions 2013-02-20 08:22:42 +01:00
net.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
of_node.c commands: Add of_node command 2013-01-19 11:48:17 +01:00
of_property.c commands: Add of_property command 2013-01-19 11:48:17 +01:00
oftree.c oftree command: Add -s option to save internal oftree to file 2013-01-19 11:48:17 +01:00
partition.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
passwd.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
poweroff.c add 'poweroff' command 2012-06-30 12:47:25 +02:00
printenv.c environment variables: use linux list 2012-10-30 10:24:12 +01:00
pwd.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
readline.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
readlink.c command: add readlink support 2012-09-05 03:22:14 +08:00
reginfo.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
reset.c commands: reset: add shutdown_barebox() before reset_cpu() 2013-01-30 16:03:51 +01:00
rm.c rm: implement -r 2012-11-29 20:21:29 +01:00
rmdir.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
saveenv.c move prototypes for envfs_* to envfs.h 2013-01-20 16:31:51 +01:00
setenv.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
sleep.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
spi.c mem: add the swab (swap bytes) option to memory_display() 2012-11-26 11:14:40 +01:00
splash.c splash: init struct allocated the stack to 0 2012-11-21 11:53:37 +01:00
stddev.c fs: fix standard zero, full devices 2012-07-04 08:38:22 +02:00
test.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
tftp.c net: Add tftp command which uses the new tftp code 2012-09-28 16:23:43 +02:00
time.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
timeout.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
trigger.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
true.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ubi.c ubi: consolidate ubi-media.h 2012-12-19 10:30:56 +01:00
ubiformat.c fixup! commands: add ubiformat 2013-01-09 18:22:35 +01:00
uimage.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
umount.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
uncompress.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
usb.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
usbserial.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
version.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
wd.c Add a simple watchdog framework 2012-06-29 15:16:34 +02:00