diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-06 22:12:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-06 22:12:52 -0700 |
commit | 4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d (patch) | |
tree | 83554a7d15dbc7c8f5a8397ac6f6775f747fbde1 /net | |
parent | 7d95b6c73a642382b7ca0ee88dacdcdecc7432cb (diff) | |
download | history-4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d.tar.gz |
Add infrastructure for the VFS layer to mark files seekable.
We use a FMODE_LSEEK flag to match the existing read/write
bits. This allows us to check for seekability on a VFS level
for lseek/pread/pwrite, and cleans things up.
Update some sites that used the numeric constants to use
the symbolic values instead.
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 5bb81ec300e207..58398204d92cd0 100644 --- a/net/socket.c +++ b/net/socket.c @@ -401,7 +401,7 @@ int sock_map_fd(struct socket *sock) sock->file = file; file->f_op = SOCK_INODE(sock)->i_fop = &socket_file_ops; - file->f_mode = 3; + file->f_mode = FMODE_READ | FMODE_WRITE; file->f_flags = O_RDWR; file->f_pos = 0; fd_install(fd, file); |