Move to kernel style SPDX license identifiers
[babeltrace.git] / src / plugins / lttng-utils / debug-info / crc32.h
CommitLineData
c40a57e5 1/*
0235b0db 2 * SPDX-License-Identifier: BSD-4-Clause
c40a57e5 3 *
0235b0db 4 * Copyright (c) 1991, 1993 The Regents of the University of California.
c40a57e5
AB
5 */
6
0235b0db
MJ
7#ifndef _BABELTRACE_CRC32_H
8#define _BABELTRACE_CRC32_H
9
c40a57e5
AB
10#include <stdint.h>
11#include <stdio.h>
12#include <unistd.h>
91d81473 13#include "common/macros.h"
c40a57e5
AB
14
15/**
16 * Compute a 32-bit cyclic redundancy checksum for a given file.
17 *
18 * On success, the out parameter crc is set with the computed checksum
19 * value,
20 *
21 * @param fd File descriptor for the file for which to compute the CRC
22 * @param crc Out parameter, the computed checksum
23 * @returns 0 on success, -1 on failure.
24 */
25BT_HIDDEN
26int crc32(int fd, uint32_t *crc);
27
28#endif /* _BABELTRACE_CRC32_H */
This page took 0.072412 seconds and 4 git commands to generate.