hurdextras-commit
[Top][All Lists]
Advanced

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

memfs memfs.c


From: Samuel Thibault
Subject: memfs memfs.c
Date: Tue, 3 Oct 2023 15:28:40 -0400 (EDT)

CVSROOT:        /sources/hurdextras
Module name:    memfs
Changes by:     Samuel Thibault <sthibaul>      23/10/03 15:28:40

Modified files:
        .              : memfs.c 

Log message:
        Fix build

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/memfs/memfs.c?cvsroot=hurdextras&r1=1.2&r2=1.3

Patches:
Index: memfs.c
===================================================================
RCS file: /sources/hurdextras/memfs/memfs.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- memfs.c     10 Feb 2013 10:34:00 -0000      1.2
+++ memfs.c     3 Oct 2023 19:28:39 -0000       1.3
@@ -209,11 +209,11 @@
 /* Read data from an IO object.  If OFFSet is -1, read from the object
    maintained file pointer.  If the object is not seekable, OFFSet is
    ignored.  The amount desired to be read is in AMOUNT.  */
-error_t
+kern_return_t
 trivfs_S_io_read (struct trivfs_protid *cred,
                  mach_port_t reply, mach_msg_type_name_t reply_type,
                  data_t *data, mach_msg_type_number_t *data_len,
-                 off_t offs, mach_msg_type_number_t amount)
+                 off_t offs, vm_size_t amount)
 {
   struct open *op;
 
@@ -277,10 +277,10 @@
    object at a time; servers implement congestion control by delaying
    responses to io_write.  Servers may drop data (returning ENOBUFS)
    if they receive more than one write when not prepared for it.  */
-error_t
+kern_return_t
 trivfs_S_io_write (struct trivfs_protid *cred,
                   mach_port_t reply, mach_msg_type_name_t reply_type,
-                  data_t data, mach_msg_type_number_t data_len,
+                  const_data_t data, mach_msg_type_number_t data_len,
                   off_t offs, mach_msg_type_number_t *amount)
 {
   struct open *op;
@@ -351,7 +351,7 @@
    The new offset is returned in *NEW_OFFS.  It is not possible to
    seek at locations < 0 or >= CONTENTS_LEN.  Doing so will result
    in OFFset being silently adjusted to 0 or CONTENTS_LEN.  */
-error_t
+kern_return_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)



reply via email to

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