Changeset 6cd10ac in mainline
- Timestamp:
- 2012-08-21T12:07:58Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be1dcc26
- Parents:
- 2ee05261
- Location:
- uspace
- Files:
-
- 1 added
- 16 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/test.c
r2ee05261 r6cd10ac 45 45 #include <bithenge/transform.h> 46 46 #include <bithenge/tree.h> 47 #include <bithenge/os.h> 48 49 #ifdef __HELENOS__ 50 #include <str_error.h> 51 #else 52 #include <string.h> 53 #define str_error strerror 54 #endif 47 55 48 56 int main(int argc, char *argv[]) -
uspace/lib/bithenge/Makefile.linux
r2ee05261 r6cd10ac 53 53 ifdef FAILURE 54 54 CFLAGS += -DBITHENGE_FAILURE_ENABLE=1 55 SOURCES += failure.c55 SOURCES += src/failure.c 56 56 endif 57 57 -
uspace/lib/bithenge/include/bithenge/blob.h
r2ee05261 r6cd10ac 39 39 40 40 #include <sys/types.h> 41 #include <errno.h> 41 42 #include "tree.h" 42 43 -
uspace/lib/bithenge/include/bithenge/os.h
r2ee05261 r6cd10ac 1 1 /* 2 2 * Copyright (c) 2012 Sean Bartell 3 * Copyright (c) 2012 Vojtech Horky 3 4 * All rights reserved. 4 5 * … … 30 31 #define BITHENGE_OS_H_ 31 32 33 32 34 #ifdef __HELENOS__ 33 #include "helenos/os.h" 35 typedef int64_t bithenge_int_t; 36 #define BITHENGE_PRId PRId64 37 34 38 #else 35 #include "linux/os.h" 36 #endif 39 /* Assuming GNU/Linux system. */ 37 40 38 #i fdef BITHENGE_FAILURE_ENABLE39 #include "failure.h"40 # else41 static inline int bithenge_should_fail(void) 42 { 43 return 0; 44 } 41 #include <inttypes.h> 42 #include <stdbool.h> 43 #define BITHENGE_PRId PRIdMAX 44 typedef intmax_t bithenge_int_t; 45 typedef uint64_t aoff64_t; 46 #define EOK 0 47 45 48 #endif 46 49 -
uspace/lib/bithenge/src/blob.c
r2ee05261 r6cd10ac 38 38 #include <errno.h> 39 39 #include <stdlib.h> 40 #include "common.h" 40 41 #include <bithenge/blob.h> 41 #include <bithenge/os.h>42 42 #include <bithenge/tree.h> 43 43 -
uspace/lib/bithenge/src/compound.c
r2ee05261 r6cd10ac 38 38 #include <bithenge/compound.h> 39 39 #include <bithenge/expression.h> 40 #include <bithenge/os.h>41 40 #include <bithenge/transform.h> 42 41 #include <bithenge/tree.h> 42 #include "common.h" 43 43 44 44 -
uspace/lib/bithenge/src/expression.c
r2ee05261 r6cd10ac 38 38 #include <errno.h> 39 39 #include <stdlib.h> 40 #include "common.h" 40 41 #include <bithenge/blob.h> 41 42 #include <bithenge/expression.h> 42 #include <bithenge/os.h>43 43 #include <bithenge/transform.h> 44 44 #include <bithenge/tree.h> -
uspace/lib/bithenge/src/failure.c
r2ee05261 r6cd10ac 46 46 #include <unistd.h> 47 47 #define BITHENGE_FAILURE_DECLS_ONLY 1 48 #include <bithenge/failure.h>49 #include " os.h"48 #include "failure.h" 49 #include "common.h" 50 50 51 51 /* This file raises fake errors from system calls, to test that Bithenge -
uspace/lib/bithenge/src/failure.h
r2ee05261 r6cd10ac 45 45 #include <sys/types.h> 46 46 #include <unistd.h> 47 #include "os.h"48 47 49 48 int bithenge_should_fail(void); -
uspace/lib/bithenge/src/file.c
r2ee05261 r6cd10ac 44 44 #include <sys/types.h> 45 45 #include <unistd.h> 46 #include "common.h" 46 47 #include <bithenge/blob.h> 47 48 #include <bithenge/file.h> 48 #include <bithenge/os.h>49 49 50 50 typedef struct { -
uspace/lib/bithenge/src/helenos/common.h
r2ee05261 r6cd10ac 27 27 */ 28 28 29 #ifndef BITHENGE_HELENOS_ OS_H_30 #define BITHENGE_HELENOS_ OS_H_29 #ifndef BITHENGE_HELENOS_COMMON_H_ 30 #define BITHENGE_HELENOS_COMMON_H_ 31 31 32 #include <bithenge/os.h> 32 33 #include <bool.h> 33 34 #include <byteorder.h> … … 37 38 #include <mem.h> 38 39 #include <stdlib.h> 40 #include <errno.h> 39 41 #include <str.h> 40 42 #include <str_error.h> 41 43 42 typedef int64_t bithenge_int_t;43 44 #define BITHENGE_PRId PRId64 44 45 -
uspace/lib/bithenge/src/linux/common.h
r2ee05261 r6cd10ac 27 27 */ 28 28 29 #ifndef BITHENGE_LINUX_ OS_H_30 #define BITHENGE_LINUX_ OS_H_29 #ifndef BITHENGE_LINUX_COMMON_H_ 30 #define BITHENGE_LINUX_COMMON_H_ 31 31 32 32 #include <endian.h> -
uspace/lib/bithenge/src/print.c
r2ee05261 r6cd10ac 43 43 #include <bithenge/print.h> 44 44 #include <bithenge/tree.h> 45 #include "common.h" 45 46 46 47 typedef struct { -
uspace/lib/bithenge/src/script.c
r2ee05261 r6cd10ac 40 40 #include <bithenge/compound.h> 41 41 #include <bithenge/expression.h> 42 #include <bithenge/os.h>43 42 #include <bithenge/script.h> 44 43 #include <bithenge/sequence.h> 45 44 #include <bithenge/transform.h> 46 45 #include <bithenge/tree.h> 46 #include "common.h" 47 47 48 48 /** @cond internal */ -
uspace/lib/bithenge/src/sequence.c
r2ee05261 r6cd10ac 38 38 #include <bithenge/blob.h> 39 39 #include <bithenge/expression.h> 40 #include <bithenge/os.h>41 40 #include <bithenge/sequence.h> 42 41 #include <bithenge/tree.h> 42 #include "common.h" 43 43 44 44 -
uspace/lib/bithenge/src/source.c
r2ee05261 r6cd10ac 40 40 #include <bithenge/file.h> 41 41 #include <bithenge/source.h> 42 #include "common.h" 42 43 43 44 #ifdef __HELENOS__ -
uspace/lib/bithenge/src/transform.c
r2ee05261 r6cd10ac 40 40 #include <stdlib.h> 41 41 #include <bithenge/blob.h> 42 #include <bithenge/os.h>43 42 #include <bithenge/print.h> 44 43 #include <bithenge/transform.h> 44 #include "common.h" 45 45 46 46 -
uspace/lib/bithenge/src/tree.c
r2ee05261 r6cd10ac 38 38 #include <stdlib.h> 39 39 #include <bithenge/blob.h> 40 #include <bithenge/os.h>41 40 #include <bithenge/tree.h> 41 #include "common.h" 42 42 43 43 static void blob_destroy(bithenge_node_t *base)
Note:
See TracChangeset
for help on using the changeset viewer.