aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/file.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-08-26 14:44:08 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-08-26 14:44:08 +0000
commite86447ca44b256dee9a1f22706260e02dfeb0431 (patch)
tree091e87922983a38d32f70ff0988157d6c09066f5 /sys/sys/file.h
parent44418c8be94dada188cb561c5bc3f87f75d4509e (diff)
downloadsrc-e86447ca44b256dee9a1f22706260e02dfeb0431.tar.gz
src-e86447ca44b256dee9a1f22706260e02dfeb0431.zip
- Remove socket file operations declaration from sys/file.h.
- Make them static in sys_socket.c. - Provide generic invfo_truncate() instead of soo_truncate(). Sponsored by: Netflix Sponsored by: Nginx, Inc.
Notes
Notes: svn path=/head/; revision=270664
Diffstat (limited to 'sys/sys/file.h')
-rw-r--r--sys/sys/file.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h
index 856f7991da3a..63072e0a03cf 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -231,23 +231,10 @@ int fget_write(struct thread *td, int fd, cap_rights_t *rightsp,
struct file **fpp);
int _fdrop(struct file *fp, struct thread *td);
-/*
- * The socket operations are used a couple of places.
- * XXX: This is wrong, they should go through the operations vector for
- * XXX: sockets instead of going directly for the individual functions. /phk
- */
-fo_rdwr_t soo_read;
-fo_rdwr_t soo_write;
-fo_truncate_t soo_truncate;
-fo_ioctl_t soo_ioctl;
-fo_poll_t soo_poll;
-fo_kqfilter_t soo_kqfilter;
-fo_stat_t soo_stat;
-fo_close_t soo_close;
-
fo_chmod_t invfo_chmod;
fo_chown_t invfo_chown;
fo_sendfile_t invfo_sendfile;
+fo_truncate_t invfo_truncate;
fo_sendfile_t vn_sendfile;
fo_seek_t vn_seek;