source: mainline/uspace/lib/c/include/offset.h@ cd1e3fc0

Last change on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 751 bytes
RevLine 
[23c8acd9]1/*
[d7f7a4a]2 * SPDX-FileCopyrightText: 2017 Jakub Jermar
[23c8acd9]3 *
[d7f7a4a]4 * SPDX-License-Identifier: BSD-3-Clause
[23c8acd9]5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
[4805495]13#ifndef _LIBC_OFFSET_H_
14#define _LIBC_OFFSET_H_
[23c8acd9]15
[bc56f30]16#ifndef _HELENOS_SOURCE
17#error This file should only be included from HelenOS sources
18#endif
19
[23c8acd9]20#include <stdint.h>
[bc56f30]21#include <_bits/decls.h>
22#include <_bits/off64_t.h>
[23c8acd9]23
24/* off64_t */
25#define OFF64_MIN INT64_MIN
26#define OFF64_MAX INT64_MAX
27
28/* aoff64_t */
29#define AOFF64_MIN UINT64_MIN
30#define AOFF64_MAX UINT64_MAX
31
[7354b5e]32/* off64_t, aoff64_t */
33#define PRIdOFF64 PRId64
34#define PRIuOFF64 PRIu64
35#define PRIxOFF64 PRIx64
36#define PRIXOFF64 PRIX64
[23c8acd9]37
[bc56f30]38__HELENOS_DECLS_BEGIN;
[23c8acd9]39
40/** Absolute offset */
41typedef uint64_t aoff64_t;
42
[bc56f30]43__HELENOS_DECLS_END;
44
[23c8acd9]45#endif
46
47/** @}
48 */
Note: See TracBrowser for help on using the repository browser.