Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.4.19 /net/socket.c

Filename:/net/socket.c
Lines Added:1
Lines Deleted:11
Also changed in: (Previous) 2.4.19-rc5-ac1  2.4.19-rc5  2.4.19-rc4  2.4.19-rc3-ac5  2.4.19-rc3-ac4  2.4.19-rc3-ac3 
(Following) 2.4.19-ac1  2.4.19-ac2  2.4.19-ac3  2.4.19-ac4  2.4.20-pre1  2.4.20-pre1-ac1 

Location
[  2.4.19
  [  net
     o  socket.c

Patch

diff -urN linux-2.4.18/net/socket.c linux-2.4.19/net/socket.c
--- linux-2.4.18/net/socket.c   Fri Dec 21 09:42:06 2001
+++ linux-2.4.19/net/socket.c   Fri Aug  2 17:39:46 2002
@@ -86,7 +86,6 @@
 #include <linux/netfilter.h>
 
 static int sock_no_open(struct inode *irrelevant, struct file *dontcare);
-static loff_t sock_lseek(struct file *file, loff_t offset, int whence);
 static ssize_t sock_read(struct file *file, char *buf,
           size_t size, loff_t *ppos);
 static ssize_t sock_write(struct file *file, const char *buf,
@@ -113,7 +112,7 @@
  */
 
 static struct file_operations socket_file_ops = {
-   llseek:      sock_lseek,
+   llseek:      no_llseek,
    read:      sock_read,
    write:      sock_write,
    poll:      sock_poll,
@@ -527,15 +526,6 @@
 
 
 /*
- *   Sockets are not seekable.
- */
-
-static loff_t sock_lseek(struct file *file, loff_t offset, int whence)
-{
-   return -ESPIPE;
-}
-
-/*
  *   Read data from a socket. ubuf is a user mode pointer. We make sure the user
  *   area ubuf...ubuf+size-1 is writable before asking the protocol.
  */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.