diff -Naurx random random.orig/random.c random/random.c --- random.orig/random.c Sat Jun 23 15:50:16 2001 +++ random/random.c Wed Sep 4 17:23:10 2002 @@ -139,8 +139,8 @@ error_t trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - vm_address_t *data, mach_msg_type_number_t *data_len, - off_t offs, mach_msg_type_number_t amount) + data_t *data, mach_msg_type_number_t *data_len, + off_t offs, vm_size_t amount) { /* Deny access if they have bad credentials. */ if (! cred) @@ -170,7 +170,7 @@ /* Possibly allocate a new buffer. */ if (*data_len < amount) - *data = (vm_address_t) mmap (0, amount, PROT_READ|PROT_WRITE, + *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); amount = read_pool ((byte *) *data, amount, level); @@ -263,8 +263,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - int *type, - int *idtag) + int *type ) { if (!cred) return EOPNOTSUPP; @@ -393,6 +392,7 @@ objects can still be accessed by io_read and io_write. */ error_t trivfs_S_io_map(struct trivfs_protid *cred, + mach_port_t reply, mach_msg_type_name_t reply_type, memory_object_t *rdobj, mach_msg_type_name_t *rdtype, memory_object_t *wrobj,