Changeset e3480d5 in mainline for uspace/lib/posix/include


Ignore:
Timestamp:
2013-07-29T13:16:03Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf963b9
Parents:
ccdc63e
Message:

add lseek() to the posix library, move SEEK_CUR, SEEK_SET and SEEK_END from stdio.h to unistd.h

Location:
uspace/lib/posix/include/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/stdio.h

    rccdc63e re3480d5  
    6565
    6666#define BUFSIZ  4096
    67 #define SEEK_SET  0
    68 #define SEEK_CUR  1
    69 #define SEEK_END  2
    7067
    7168typedef struct _IO_FILE FILE;
  • uspace/lib/posix/include/posix/unistd.h

    rccdc63e re3480d5  
    4444#include "stddef.h"
    4545
     46#define SEEK_SET  0
     47#define SEEK_CUR  1
     48#define SEEK_END  2
     49
    4650/* Process Termination */
    4751#define _exit exit
     
    7781extern ssize_t __POSIX_DEF__(read)(int fildes, void *buf, size_t nbyte);
    7882extern ssize_t __POSIX_DEF__(write)(int fildes, const void *buf, size_t nbyte);
     83extern __POSIX_DEF__(off_t) __POSIX_DEF__(lseek)(int fildes,
     84    __POSIX_DEF__(off_t) offset, int whence);
    7985extern int __POSIX_DEF__(fsync)(int fildes);
    8086extern int __POSIX_DEF__(ftruncate)(int fildes, __POSIX_DEF__(off_t) length);
Note: See TracChangeset for help on using the changeset viewer.