2 * SPDX-License-Identifier: BSD-4-Clause
4 * Copyright (c) 1991, 1993 The Regents of the University of California.
7 #ifndef _BABELTRACE_CRC32_H
8 #define _BABELTRACE_CRC32_H
13 #include "common/macros.h"
16 * Compute a 32-bit cyclic redundancy checksum for a given file.
18 * On success, the out parameter crc is set with the computed checksum
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.
25 int crc32(int fd
, uint32_t *crc
);
27 #endif /* _BABELTRACE_CRC32_H */
This page took 0.04099 seconds and 4 git commands to generate.