File: falloc.h

package info (click to toggle)
lcsync 0.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,152 kB
  • sloc: ansic: 9,376; sh: 3,117; makefile: 246
file content (10 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only */
/* Copyright (c) 2021 Brett Sheffield <bacs@librecast.net> */

/* wrappers for *alloc */
void *calloc(size_t nmemb, size_t size);
void *malloc(size_t size);

/* set *alloc calls to force failure with ENOMEM after failafter allocations.
 * Set failafter to -1 to never force fail (default) */
void falloc_setfail(int failafter);