Changeset b0b4592e in mainline for uspace/lib/posix


Ignore:
Timestamp:
2014-03-15T19:21:53Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c773adc
Parents:
2034f98 (diff), 8cffdf5 (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

Location:
uspace/lib/posix
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    r2034f98 rb0b4592e  
    3636
    3737INCLUDE_LIBC = ./include/libc
     38INCLUDE_LIBMATH = ./include/libmath
    3839
    3940LIBC_FILE = $(LIBC_PREFIX)/libc.a
     
    4647COLLISIONS_LIST = collisions.list
    4748
    48 PRE_DEPEND = $(INCLUDE_LIBC)
     49PRE_DEPEND = $(INCLUDE_LIBC) $(INCLUDE_LIBMATH)
    4950EXTRA_CLEAN = \
    50         $(INCLUDE_LIBC) \
     51        $(INCLUDE_LIBC) $(INCLUDE_LIBMATH) \
    5152        $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX) \
    5253        $(COLLISIONS_LIST)
     
    7374        source/string.c \
    7475        source/strings.c \
     76        source/sys/mman.c \
    7577        source/sys/stat.c \
    7678        source/sys/wait.c \
     
    8183
    8284$(INCLUDE_LIBC): ../c/include
     85        ln -s -f -n ../$^ $@
     86
     87$(INCLUDE_LIBMATH): ../math/include
    8388        ln -s -f -n ../$^ $@
    8489
  • uspace/lib/posix/include/posix/math.h

    r2034f98 rb0b4592e  
    3636#define POSIX_MATH_H_
    3737
    38 #include "libc/math.h"
     38#include "libmath/math.h"
    3939
    4040#endif /* POSIX_MATH_H_ */
  • uspace/lib/posix/include/posix/sys/mman.h

    r2034f98 rb0b4592e  
    4040#endif
    4141
    42 #include "sys/types.h"
     42#include "types.h"
    4343#include <abi/mm/as.h>
    4444
     
    6060#define PROT_EXEC  AS_AREA_EXEC
    6161
    62 extern void *mmap(void *start, size_t length, int prot, int flags, int fd,
     62extern void *
     63__POSIX_DEF__(mmap)(void *start, size_t length, int prot, int flags, int fd,
    6364    __POSIX_DEF__(off_t) offset);
    64 extern int munmap(void *start, size_t length);
     65extern int __POSIX_DEF__(munmap)(void *start, size_t length);
    6566
    6667
  • uspace/lib/posix/source/sys/mman.c

    r2034f98 rb0b4592e  
    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.