Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r38db6288 r73fbcbb  
    342342}
    343343
    344 ssize_t read(int fildes, void *buf, size_t nbyte)
     344ssize_t read(int fildes, void *buf, size_t nbyte) 
    345345{
    346346        sysarg_t rc;
     
    348348        aid_t req;
    349349       
    350         if (nbyte > DATA_XFER_LIMIT)
    351                 nbyte = DATA_XFER_LIMIT;
    352        
    353350        async_exch_t *exch = vfs_exchange_begin();
    354351       
    355352        req = async_send_1(exch, VFS_IN_READ, fildes, &answer);
    356         rc = async_data_read_start(exch, (void *) buf, nbyte);
     353        rc = async_data_read_start(exch, (void *)buf, nbyte);
    357354        if (rc != EOK) {
    358355                vfs_exchange_end(exch);
     
    380377        aid_t req;
    381378       
    382         if (nbyte > DATA_XFER_LIMIT)
    383                 nbyte = DATA_XFER_LIMIT;
    384        
    385379        async_exch_t *exch = vfs_exchange_begin();
    386380       
    387381        req = async_send_1(exch, VFS_IN_WRITE, fildes, &answer);
    388         rc = async_data_write_start(exch, (void *) buf, nbyte);
     382        rc = async_data_write_start(exch, (void *)buf, nbyte);
    389383        if (rc != EOK) {
    390384                vfs_exchange_end(exch);
     
    742736}
    743737
    744 int remove(const char *path)
    745 {
    746         return unlink(path);
    747 }
    748 
    749738int chdir(const char *path)
    750739{
Note: See TracChangeset for help on using the changeset viewer.