diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 12:05:58 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 12:05:58 +0100 |
commit | 19a1382fc9317ab88cdbf1dde76a8015868af51d (patch) | |
tree | d1e4cbf60e85a3f3b9eeca750f11b109c5954fd8 /fish/edit.c | |
parent | 17a45063960b4158fbe9541a2530ed6903b4f761 (diff) | |
download | libguestfs-19a1382fc9317ab88cdbf1dde76a8015868af51d.tar.gz libguestfs-19a1382fc9317ab88cdbf1dde76a8015868af51d.tar.xz libguestfs-19a1382fc9317ab88cdbf1dde76a8015868af51d.zip |
Implement "more" and "less" commands in guestfish.
Use commands such as:
more /etc/passwd
less /etc/fstab
These commands are specific to guestfish.
Diffstat (limited to 'fish/edit.c')
-rw-r--r-- | fish/edit.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fish/edit.c b/fish/edit.c index 5519bb95..c72ad1d8 100644 --- a/fish/edit.c +++ b/fish/edit.c @@ -29,24 +29,6 @@ /* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */ -static int -xwrite (int fd, const void *buf, size_t len) -{ - int r; - - while (len > 0) { - r = write (fd, buf, len); - if (r == -1) { - perror ("write"); - return -1; - } - buf += r; - len -= r; - } - - return 0; -} - static char * load_file (const char *filename, int *len_r) { |