Changeset 58898d1d in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2017-03-24T20:31:54Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e9b2534
Parents:
c9e3692
Message:

Remove VFS_IN_SEEK from VFS

Location:
uspace/lib/c/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/dirent.h

    rc9e3692 r58898d1d  
    3838#define NAME_MAX  256
    3939
     40#include <sys/types.h>
     41
    4042struct dirent {
    4143        char d_name[NAME_MAX + 1];
     
    4547        int fd;
    4648        struct dirent res;
     49        aoff64_t pos;
    4750} DIR;
    4851
  • uspace/lib/c/include/ipc/vfs.h

    rc9e3692 r58898d1d  
    6565        VFS_IN_READ = IPC_FIRST_USER_METHOD,
    6666        VFS_IN_WRITE,
    67         VFS_IN_SEEK,
    6867        VFS_IN_TRUNCATE,
    6968        VFS_IN_FSTAT,
  • uspace/lib/c/include/stdio.h

    rc9e3692 r58898d1d  
    5454                        (void) __SYSCALL3(SYS_KIO, KIO_WRITE, (sysarg_t) _buf, str_size(_buf)); \
    5555        }
    56 
    57 #ifndef SEEK_SET
    58         #define SEEK_SET  0
    59 #endif
    60 
    61 #ifndef SEEK_CUR
    62         #define SEEK_CUR  1
    63 #endif
    64 
    65 #ifndef SEEK_END
    66         #define SEEK_END  2
    67 #endif
    6856
    6957enum _buffer_type {
  • uspace/lib/c/include/unistd.h

    rc9e3692 r58898d1d  
    6060extern int dup2(int, int);
    6161
    62 extern ssize_t write(int, const void *, size_t);
    63 extern ssize_t read(int, void *, size_t);
     62extern ssize_t write(int, aoff64_t *, const void *, size_t);
     63extern ssize_t read(int, aoff64_t *, void *, size_t);
    6464
    65 extern off64_t lseek(int, off64_t, int);
    6665extern int ftruncate(int, aoff64_t);
    6766
  • uspace/lib/c/include/vfs/vfs.h

    rc9e3692 r58898d1d  
    4343#include <async.h>
    4444
     45#define MAX_OPEN_FILES  128
     46
    4547enum vfs_change_state_type {
    4648        VFS_PASS_HANDLE
Note: See TracChangeset for help on using the changeset viewer.