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
Line 
1/*
2 * SPDX-FileCopyrightText: 2017 Jakub Jermar
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
13#ifndef _LIBC_OFFSET_H_
14#define _LIBC_OFFSET_H_
15
16#ifndef _HELENOS_SOURCE
17#error This file should only be included from HelenOS sources
18#endif
19
20#include <stdint.h>
21#include <_bits/decls.h>
22#include <_bits/off64_t.h>
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
32/* off64_t, aoff64_t */
33#define PRIdOFF64 PRId64
34#define PRIuOFF64 PRIu64
35#define PRIxOFF64 PRIx64
36#define PRIXOFF64 PRIX64
37
38__HELENOS_DECLS_BEGIN;
39
40/** Absolute offset */
41typedef uint64_t aoff64_t;
42
43__HELENOS_DECLS_END;
44
45#endif
46
47/** @}
48 */
Note: See TracBrowser for help on using the repository browser.