bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

random translator


From: James A Morrison
Subject: random translator
Date: Wed, 14 Aug 2002 20:29:46 -0400 (EDT)

 In case this hasn't been done yet, here is a patch to let marcus' random
translator compile with the recent hurd changes.

2002-08-14  James A. Morrison  <ja2morri@uwaterloo.ca>

            * random.c (trivfs_S_io_read): Fix arguemnts for updated interface.
            (trivfs_S_select):  remove *id_tag argument.
            (trivfs_S_io_readable): Change type of *amount from 
            msg_msg_type_number_t to vm_size_t.
            (trivfs_S_io_seek): off_t to loff_t.
            (trivfs_S_file_set_size): Likewise.
            (trivfs_S_io_map): Fix arguments for updated interface.

--- random.c.old        Sat Jun 23 09:50:16 2001
+++ random.c    Wed Aug 14 20:08:22 2002
@@ -137,10 +137,10 @@
    maintained file pointer.  If the object is not seekable, offset is
    ignored.  The amount desired to be read is in AMOUNT.  */
 error_t
-trivfs_S_io_read (struct trivfs_protid *cred,
+trivfs_S_io_read (trivfs_protid_t 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,
+                 loff_t offs, vm_size_t amount)
 {
   /* Deny access if they have bad credentials. */
   if (! cred)
@@ -197,8 +197,8 @@
                    mach_msg_type_name_t replytype,
                    char *data,
                    mach_msg_type_number_t datalen,
-                   off_t offset,
-                   mach_msg_type_number_t *amount)
+                   loff_t offset,
+                   vm_size_t *amount)
 {
   int i = 0;
   /* Deny access if they have bad credentials. */
@@ -235,7 +235,7 @@
 kern_return_t
 trivfs_S_io_readable (struct trivfs_protid *cred,
                       mach_port_t reply, mach_msg_type_name_t replytype,
-                      mach_msg_type_number_t *amount)
+                      vm_size_t *amount)
 {
   /* Deny access if they have bad credentials. */
   if (! cred)
@@ -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;
@@ -307,7 +306,7 @@
 error_t
 trivfs_S_io_seek (struct trivfs_protid *cred,
                  mach_port_t reply, mach_msg_type_name_t reply_type,
-                 off_t offs, int whence, off_t *new_offs)
+                 loff_t offs, int whence, loff_t *new_offs)
 {
   if (! cred)
     return EOPNOTSUPP;
@@ -322,7 +321,7 @@
 error_t
 trivfs_S_file_set_size (struct trivfs_protid *cred,
                         mach_port_t reply, mach_msg_type_name_t reply_type,
-                        off_t size)
+                        loff_t size)
 {
   if (!cred)
     return EOPNOTSUPP;
@@ -393,9 +392,11 @@
    objects can still be accessed by io_read and io_write.  */
 error_t
 trivfs_S_io_map(struct trivfs_protid *cred,
-                memory_object_t *rdobj,
+               mach_port_t reply,
+               mach_msg_type_name_t replyPoly,
+                mach_port_t *rdobj,
                 mach_msg_type_name_t *rdtype,
-                memory_object_t *wrobj,
+                mach_port_t *wrobj,
                 mach_msg_type_name_t *wrtype)
 {
   if (!cred)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]