diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-11-08 19:03:33 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-11-08 19:03:33 +0000 |
commit | 0a0f96258627b475959f594ef2e81341189545bb (patch) | |
tree | c7fbca59bdf0dabab12bfa4b19462e29702bf2f1 /pfinet/io-ops.c | |
parent | b562d6a6873dcd96671b83773449c664d61933ba (diff) |
Formerly io-ops.c.~5~
Diffstat (limited to 'pfinet/io-ops.c')
-rw-r--r-- | pfinet/io-ops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index 08752a60..eb7ffaa9 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -25,6 +25,8 @@ #include <linux-inet/sock.h> #include <fcntl.h> #include <string.h> +#include <unistd.h> + error_t S_io_write (struct sock_user *user, @@ -79,10 +81,10 @@ S_io_read (struct sock_user *user, else { *datalen = err; - if (alloced && page_round (*datalen) < page_round (amount)) + if (alloced && round_page (*datalen) < round_page (amount)) vm_deallocate (mach_task_self (), - (vm_address_t) *data + page_round (*datalen), - page_round (amount) - page_round (*datalen)); + (vm_address_t) *data + round_page (*datalen), + round_page (amount) - round_page (*datalen)); err = 0; } return err; |