.gitignore: add some more IDE / tools related file
[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
ae2be88d
SM
7#ifndef BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_CRC32_H
8#define BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_CRC32_H
0235b0db 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 */
c40a57e5
AB
25int crc32(int fd, uint32_t *crc);
26
ae2be88d 27#endif /* BABELTRACE_PLUGINS_LTTNG_UTILS_DEBUG_INFO_CRC32_H */
This page took 0.116504 seconds and 5 git commands to generate.