From 15b01c16c2c7a8f6f95cf5cd058d4a764de48f34 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 24 Apr 2006 21:19:35 +0200 Subject: [PATCH] [PATCH] vmsplice: kill the fcntl bits, it's not in the kernel anymore --- vmsplice.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/vmsplice.c b/vmsplice.c index 5dd64ab..7a037b1 100644 --- a/vmsplice.c +++ b/vmsplice.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include @@ -86,8 +85,7 @@ int main(int argc, char *argv[]) { unsigned char *buffer; struct stat sb; - long page_size; - int i, ret; + int i; if (parse_options(argc, argv) < 0) return usage(argv[0]); @@ -99,16 +97,6 @@ int main(int argc, char *argv[]) return 1; } - ret = fcntl(STDOUT_FILENO, F_GETPSZ); - if (ret < 0) - return error("F_GETPSZ"); - - page_size = sysconf(_SC_PAGESIZE); - if (page_size < 0) - return error("_SC_PAGESIZE"); - - fprintf(stderr, "Pipe size: %d pages / %ld bytes\n", ret, ret * page_size); - buffer = ALIGN(malloc(2 * SPLICE_SIZE + ALIGN_MASK)); for (i = 0; i < 2 * SPLICE_SIZE; i++) buffer[i] = (i & 0xff); -- 2.25.1