lkml.org 
[lkml]   [2004]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/2] Fix write() return values for tmpfs.
    This patch makes the return from the write() syscall actually an ssize_t
    instead of an int.

    Signed-off-by: Robin Holt <holt@sgi.com>


    Index: linux-2.6/mm/shmem.c
    ===================================================================
    --- linux-2.6.orig/mm/shmem.c 2004-09-14 14:40:06.000000000 -0500
    +++ linux-2.6/mm/shmem.c 2004-09-14 14:54:38.000000000 -0500
    @@ -1301,7 +1301,7 @@
    struct inode *inode = file->f_dentry->d_inode;
    loff_t pos;
    unsigned long written;
    - int err;
    + ssize_t err;

    if ((ssize_t) count < 0)
    return -EINVAL;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 14:06    [W:0.031 / U:0.236 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site