Changeset 95c675b in mainline for uspace/lib/c/include/offset.h


Ignore:
Timestamp:
2017-10-17T13:11:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (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

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/offset.h

    rdbf32b1 r95c675b  
    11/*
    2  * Copyright (c) 2010 Jiri Svoboda
     2 * Copyright (c) 2017 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    3030 * @{
    3131 */
    32 /** @file Formatting macros for types from sys/types.h and some other
    33  * system types.
     32/** @file
    3433 */
    3534
    36 #ifndef LIBC_SYS_TYPEFMT_H_
    37 #define LIBC_SYS_TYPEFMT_H_
     35#ifndef LIBC_OFFSET_H_
     36#define LIBC_OFFSET_H_
    3837
    39 #include <inttypes.h>
     38#include <stdint.h>
     39
     40/* off64_t */
     41#define OFF64_MIN  INT64_MIN
     42#define OFF64_MAX  INT64_MAX
     43
     44/* aoff64_t */
     45#define AOFF64_MIN  UINT64_MIN
     46#define AOFF64_MAX  UINT64_MAX
    4047
    4148/* off64_t, aoff64_t */
     
    4552#define PRIXOFF64 PRIX64
    4653
     54/** Relative offset */
     55typedef int64_t off64_t;
     56
     57/** Absolute offset */
     58typedef uint64_t aoff64_t;
     59
    4760#endif
    4861
Note: See TracChangeset for help on using the changeset viewer.