Changeset 6cd10ac in mainline for uspace/lib/bithenge/include


Ignore:
Timestamp:
2012-08-21T12:07:58Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be1dcc26
Parents:
2ee05261
Message:

Bithenge: hide os.h from public include/

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

Legend:

Unmodified
Added
Removed
  • uspace/lib/bithenge/include/bithenge/blob.h

    r2ee05261 r6cd10ac  
    3939
    4040#include <sys/types.h>
     41#include <errno.h>
    4142#include "tree.h"
    4243
  • uspace/lib/bithenge/include/bithenge/os.h

    r2ee05261 r6cd10ac  
    11/*
    22 * Copyright (c) 2012 Sean Bartell
     3 * Copyright (c) 2012 Vojtech Horky
    34 * All rights reserved.
    45 *
     
    3031#define BITHENGE_OS_H_
    3132
     33
    3234#ifdef __HELENOS__
    33 #include "helenos/os.h"
     35typedef int64_t bithenge_int_t;
     36#define BITHENGE_PRId PRId64
     37
    3438#else
    35 #include "linux/os.h"
    36 #endif
     39/* Assuming GNU/Linux system. */
    3740
    38 #ifdef BITHENGE_FAILURE_ENABLE
    39 #include "failure.h"
    40 #else
    41 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
     44typedef intmax_t bithenge_int_t;
     45typedef uint64_t aoff64_t;
     46#define EOK 0
     47
    4548#endif
    4649
Note: See TracChangeset for help on using the changeset viewer.