Changeset 8e7c9fe in mainline for uspace/lib/posix/source/sys/mman.c


Ignore:
Timestamp:
2014-09-12T03:45:25Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c53b58e
Parents:
3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

most usb changes were reverted. blink and usbmass were fixed
known problems:
ehci won't initialize
usbmast asserts on unmount (happens on mainline too)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/sys/mman.c

    r3eb0c85 r8e7c9fe  
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup libposix
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #include <sys/mman.h>
    36 #include <sys/types.h>
    37 #include <as.h>
    38 #include <unistd.h>
     35#define LIBPOSIX_INTERNAL
     36#define __POSIX_DEF__(x) posix_##x
    3937
    40 void *mmap(void *start, size_t length, int prot, int flags, int fd,
    41     aoff64_t offset)
     38#include "../internal/common.h"
     39#include <posix/sys/mman.h>
     40#include <posix/sys/types.h>
     41#include <libc/as.h>
     42#include <posix/unistd.h>
     43
     44void *posix_mmap(void *start, size_t length, int prot, int flags, int fd,
     45    __POSIX_DEF__(off_t) offset)
    4246{
    4347        if (!start)
     
    5357}
    5458
    55 int munmap(void *start, size_t length)
     59int posix_munmap(void *start, size_t length)
    5660{
    5761        return as_area_destroy(start);
Note: See TracChangeset for help on using the changeset viewer.