Changeset a3da2b2 in mainline
- Timestamp:
- 2012-08-31T09:55:22Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ca4c6ec1
- Parents:
- 33fee91
- Location:
- uspace
- Files:
-
- 2 edited
- 48 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r33fee91 ra3da2b2 225 225 226 226 ifeq ($(POSIX_COMPAT),y) 227 CFLAGS = -I$(LIBPOSIX_PREFIX) 227 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 228 228 LIBS += $(LIBPOSIX_PREFIX)/libposix.a 229 229 endif -
uspace/lib/posix/Makefile
r33fee91 ra3da2b2 33 33 LSONAME = libposix.so0 34 34 35 INCLUDE_LIBC = ./libc 35 EXTRA_CFLAGS = -Iinclude/ 36 37 INCLUDE_LIBC = ./include/libc 36 38 37 39 PRE_DEPEND = $(INCLUDE_LIBC) … … 39 41 40 42 SOURCES = \ 41 ctype.c \42 errno.c \43 fcntl.c \44 fnmatch.c \45 getopt.c \46 locale.c \47 math.c \48 pwd.c \49 s ignal.c \50 s tdio.c \51 s tdio/scanf.c \52 s tdlib.c \53 s tdlib/strtol.c \54 s tdlib/strtold.c \55 s tring.c \56 s trings.c \57 s ys/stat.c \58 s ys/wait.c \59 time.c \60 unistd.c43 source/ctype.c \ 44 source/errno.c \ 45 source/fcntl.c \ 46 source/fnmatch.c \ 47 source/getopt.c \ 48 source/locale.c \ 49 source/math.c \ 50 source/pwd.c \ 51 source/signal.c \ 52 source/stdio.c \ 53 source/stdio/scanf.c \ 54 source/stdlib.c \ 55 source/stdlib/strtol.c \ 56 source/stdlib/strtold.c \ 57 source/string.c \ 58 source/strings.c \ 59 source/sys/stat.c \ 60 source/sys/wait.c \ 61 source/time.c \ 62 source/unistd.c 61 63 62 64 include $(USPACE_PREFIX)/Makefile.common 63 65 64 66 $(INCLUDE_LIBC): ../c/include 65 ln -s -f -n $^ $@67 ln -s -f -n ../$^ $@ -
uspace/lib/posix/include/posix/sys/mman.h
r33fee91 ra3da2b2 36 36 #define POSIX_SYS_MMAN_H_ 37 37 38 #include " ../libc/sys/mman.h"38 #include "libc/sys/mman.h" 39 39 40 40 #undef PROT_NONE -
uspace/lib/posix/include/posix/sys/stat.h
r33fee91 ra3da2b2 37 37 #define POSIX_SYS_STAT_H_ 38 38 39 #include " ../libc/sys/stat.h"39 #include "libc/sys/stat.h" 40 40 #include "types.h" 41 41 #include "../time.h" -
uspace/lib/posix/include/posix/sys/types.h
r33fee91 ra3da2b2 37 37 #define POSIX_SYS_TYPES_H_ 38 38 39 #include " ../libc/sys/types.h"39 #include "libc/sys/types.h" 40 40 41 41 typedef unsigned int posix_ino_t; -
uspace/lib/posix/source/ctype.c
r33fee91 ra3da2b2 36 36 #define LIBPOSIX_INTERNAL 37 37 38 #include " ctype.h"38 #include "posix/ctype.h" 39 39 40 40 /** -
uspace/lib/posix/source/errno.c
r33fee91 ra3da2b2 33 33 */ 34 34 35 #include " errno.h"35 #include "posix/errno.h" 36 36 37 #include " stdlib.h"37 #include "posix/stdlib.h" 38 38 #include "libc/fibril.h" 39 39 -
uspace/lib/posix/source/fcntl.c
r33fee91 ra3da2b2 36 36 37 37 #include "internal/common.h" 38 #include " fcntl.h"38 #include "posix/fcntl.h" 39 39 40 40 #include "libc/unistd.h" 41 41 #include "libc/vfs/vfs.h" 42 #include " errno.h"42 #include "posix/errno.h" 43 43 44 44 /** -
uspace/lib/posix/source/fnmatch.c
r33fee91 ra3da2b2 42 42 */ 43 43 44 #include " stdbool.h"45 #include " ctype.h"46 #include " string.h"47 #include " stdlib.h"48 #include " assert.h"44 #include "posix/stdbool.h" 45 #include "posix/ctype.h" 46 #include "posix/string.h" 47 #include "posix/stdlib.h" 48 #include "posix/assert.h" 49 49 50 50 #define LIBPOSIX_INTERNAL 51 51 52 52 #include "internal/common.h" 53 #include " fnmatch.h"53 #include "posix/fnmatch.h" 54 54 55 55 /* Returned by _match... functions. */ -
uspace/lib/posix/source/getopt.c
r33fee91 ra3da2b2 36 36 #include "internal/common.h" 37 37 #include "libc/getopt.h" 38 #include " getopt.h"38 #include "posix/getopt.h" 39 39 40 40 -
uspace/lib/posix/source/locale.c
r33fee91 ra3da2b2 36 36 37 37 #include "internal/common.h" 38 #include " locale.h"38 #include "posix/locale.h" 39 39 40 #include " errno.h"41 #include " limits.h"42 #include " string.h"40 #include "posix/errno.h" 41 #include "posix/limits.h" 42 #include "posix/string.h" 43 43 44 44 /* Just a very basic dummy implementation. -
uspace/lib/posix/source/math.c
r33fee91 ra3da2b2 36 36 37 37 #include "internal/common.h" 38 #include " math.h"38 #include "posix/math.h" 39 39 40 40 /** -
uspace/lib/posix/source/pwd.c
r33fee91 ra3da2b2 35 35 #define LIBPOSIX_INTERNAL 36 36 37 #include "p wd.h"38 #include " string.h"39 #include " errno.h"40 #include " assert.h"37 #include "posix/pwd.h" 38 #include "posix/string.h" 39 #include "posix/errno.h" 40 #include "posix/assert.h" 41 41 42 42 static bool entry_read = false; -
uspace/lib/posix/source/signal.c
r33fee91 ra3da2b2 35 35 #define LIBPOSIX_INTERNAL 36 36 37 #include " signal.h"37 #include "posix/signal.h" 38 38 #include "internal/common.h" 39 #include " limits.h"40 #include " stdlib.h"41 #include " string.h"42 #include " errno.h"39 #include "posix/limits.h" 40 #include "posix/stdlib.h" 41 #include "posix/string.h" 42 #include "posix/errno.h" 43 43 44 44 #include "libc/fibril_synch.h" -
uspace/lib/posix/source/stdio.c
r33fee91 ra3da2b2 37 37 38 38 /* Has to be first. */ 39 #include " stdbool.h"39 #include "posix/stdbool.h" 40 40 41 41 #include "internal/common.h" 42 #include " stdio.h"43 44 #include " assert.h"45 #include " errno.h"46 #include " stdlib.h"47 #include " string.h"48 #include " sys/types.h"49 #include " unistd.h"42 #include "posix/stdio.h" 43 44 #include "posix/assert.h" 45 #include "posix/errno.h" 46 #include "posix/stdlib.h" 47 #include "posix/string.h" 48 #include "posix/sys/types.h" 49 #include "posix/unistd.h" 50 50 51 51 #include "libc/io/printf_core.h" … … 59 59 * need to be implemented in libc anyway 60 60 */ 61 #include "../ c/generic/private/stdio.h"61 #include "../../c/generic/private/stdio.h" 62 62 63 63 /** Clears the stream's error and end-of-file indicators. -
uspace/lib/posix/source/stdio/scanf.c
r33fee91 ra3da2b2 36 36 37 37 /* Must be first. */ 38 #include " ../stdbool.h"39 40 #include " ../assert.h"41 #include " ../errno.h"42 43 #include " ../stdio.h"44 #include " ../stdlib.h"45 #include " ../stddef.h"46 #include " ../string.h"47 #include " ../ctype.h"48 #include " ../sys/types.h"38 #include "posix/stdbool.h" 39 40 #include "posix/assert.h" 41 #include "posix/errno.h" 42 43 #include "posix/stdio.h" 44 #include "posix/stdlib.h" 45 #include "posix/stddef.h" 46 #include "posix/string.h" 47 #include "posix/ctype.h" 48 #include "posix/sys/types.h" 49 49 50 50 #include "../internal/common.h" 51 #include " ../libc/malloc.h"51 #include "libc/malloc.h" 52 52 53 53 /** Unified data type for possible data sources for scanf. */ -
uspace/lib/posix/source/stdlib.c
r33fee91 ra3da2b2 37 37 38 38 #include "internal/common.h" 39 #include " stdlib.h"40 41 #include " errno.h"42 #include " fcntl.h"43 #include " limits.h"44 #include " string.h"45 #include " sys/stat.h"46 #include " unistd.h"39 #include "posix/stdlib.h" 40 41 #include "posix/errno.h" 42 #include "posix/fcntl.h" 43 #include "posix/limits.h" 44 #include "posix/string.h" 45 #include "posix/sys/stat.h" 46 #include "posix/unistd.h" 47 47 48 48 #include "libc/sort.h" -
uspace/lib/posix/source/stdlib/strtol.c
r33fee91 ra3da2b2 36 36 37 37 #include "../internal/common.h" 38 #include " ../stdlib.h"39 40 #include " ../ctype.h"41 #include " ../errno.h"42 #include " ../inttypes.h"43 #include " ../limits.h"38 #include "posix/stdlib.h" 39 40 #include "posix/ctype.h" 41 #include "posix/errno.h" 42 #include "posix/inttypes.h" 43 #include "posix/limits.h" 44 44 45 45 #define intmax_t posix_intmax_t -
uspace/lib/posix/source/stdlib/strtold.c
r33fee91 ra3da2b2 36 36 37 37 /* Must be first. */ 38 #include " ../stdbool.h"38 #include "posix/stdbool.h" 39 39 40 40 #include "../internal/common.h" 41 #include " ../stdlib.h"42 43 #include " ../assert.h"44 #include " ../ctype.h"45 #include " ../stdint.h"46 #include " ../strings.h"47 #include " ../errno.h"48 #include " ../limits.h"49 50 #include " ../float.h"41 #include "posix/stdlib.h" 42 43 #include "posix/assert.h" 44 #include "posix/ctype.h" 45 #include "posix/stdint.h" 46 #include "posix/strings.h" 47 #include "posix/errno.h" 48 #include "posix/limits.h" 49 50 #include "posix/float.h" 51 51 52 52 #ifndef HUGE_VALL -
uspace/lib/posix/source/string.c
r33fee91 ra3da2b2 37 37 38 38 #include "internal/common.h" 39 #include " string.h"40 41 #include " assert.h"42 #include " errno.h"43 #include " limits.h"44 #include " stdlib.h"45 #include " signal.h"39 #include "posix/string.h" 40 41 #include "posix/assert.h" 42 #include "posix/errno.h" 43 #include "posix/limits.h" 44 #include "posix/stdlib.h" 45 #include "posix/signal.h" 46 46 47 47 #include "libc/str_error.h" -
uspace/lib/posix/source/strings.c
r33fee91 ra3da2b2 37 37 38 38 #include "internal/common.h" 39 #include " strings.h"39 #include "posix/strings.h" 40 40 41 #include " string.h"42 #include " ctype.h"41 #include "posix/string.h" 42 #include "posix/ctype.h" 43 43 44 44 #include "libc/mem.h" -
uspace/lib/posix/source/sys/stat.c
r33fee91 ra3da2b2 37 37 38 38 #include "../internal/common.h" 39 #include " stat.h"39 #include "posix/sys/stat.h" 40 40 41 #include " ../errno.h"42 #include " ../libc/mem.h"41 #include "posix/errno.h" 42 #include "libc/mem.h" 43 43 44 44 /** -
uspace/lib/posix/source/sys/wait.c
r33fee91 ra3da2b2 37 37 38 38 #include "../internal/common.h" 39 #include " wait.h"39 #include "posix/sys/wait.h" 40 40 41 #include " ../libc/task.h"42 #include " ../assert.h"43 #include " ../errno.h"44 #include " ../limits.h"45 #include " ../signal.h"41 #include "libc/task.h" 42 #include "posix/assert.h" 43 #include "posix/errno.h" 44 #include "posix/limits.h" 45 #include "posix/signal.h" 46 46 47 47 int __posix_wifexited(int status) { -
uspace/lib/posix/source/time.c
r33fee91 ra3da2b2 37 37 38 38 /* Must be first. */ 39 #include " stdbool.h"39 #include "posix/stdbool.h" 40 40 41 41 #include "internal/common.h" 42 #include " time.h"43 44 #include " ctype.h"45 #include " errno.h"46 #include " signal.h"47 #include " assert.h"42 #include "posix/time.h" 43 44 #include "posix/ctype.h" 45 #include "posix/errno.h" 46 #include "posix/signal.h" 47 #include "posix/assert.h" 48 48 49 49 #include "libc/malloc.h" -
uspace/lib/posix/source/unistd.c
r33fee91 ra3da2b2 37 37 38 38 #include "internal/common.h" 39 #include " unistd.h"40 41 #include " errno.h"42 #include " string.h"43 #include " fcntl.h"39 #include "posix/unistd.h" 40 41 #include "posix/errno.h" 42 #include "posix/string.h" 43 #include "posix/fcntl.h" 44 44 45 45 #include "libc/task.h"
Note:
See TracChangeset
for help on using the changeset viewer.