summaryrefslogtreecommitdiffstats
path: root/virtserial.h
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-09-28 16:51:53 +0530
committerAmit Shah <amit.shah@redhat.com>2010-09-28 16:51:53 +0530
commitda4085786b76598d279996c8e6ee87d3fa6a8da1 (patch)
tree84fe02e95349d217efc797553ed188c49ae638c9 /virtserial.h
parentf3963acf119801118d585df35e8d51c0cd384f54 (diff)
downloadtest-virtserial-da4085786b76598d279996c8e6ee87d3fa6a8da1.tar.gz
test-virtserial-da4085786b76598d279996c8e6ee87d3fa6a8da1.tar.xz
test-virtserial-da4085786b76598d279996c8e6ee87d3fa6a8da1.zip
auto-test: Add test for lseek()
lseek() on console ports should fail with -ESPIPE. (This behaviour will be seen from kernel 2.6.37 onwards. Older kernels just returned success without seeking.) Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'virtserial.h')
-rw-r--r--virtserial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/virtserial.h b/virtserial.h
index 45c06ad..984ae15 100644
--- a/virtserial.h
+++ b/virtserial.h
@@ -21,6 +21,7 @@
#define KEY_GET_SIGIO_RESULT 21
#define KEY_POLL_EVENTS 22
#define KEY_SHUTDOWN 23
+#define KEY_LSEEK 24
#define HOST_BIG_FILE "/tmp/amit/host-big-file"
#define GUEST_BIG_FILE "/tmp/amit/guest-big-file"