1: /*
2: * $Id: libfill.h,v 1.4 2025/04/10 01:24:38 snw Exp $
3: * Provides correct definitions of standard library
4: * functions to get around compiler warnings until
5: * we can move to using the standard headers.
6: *
7: *
8: * Author: Serena Willis <snw@coherent-logic.com>
9: * Copyright (C) 1998 MUG Deutschland
10: * Copyright (C) 2020, 2025 Coherent Logic Development LLC
11: *
12: *
13: * This file is part of FreeM.
14: *
15: * FreeM is free software: you can redistribute it and/or modify
16: * it under the terms of the GNU Affero Public License as published by
17: * the Free Software Foundation, either version 3 of the License, or
18: * (at your option) any later version.
19: *
20: * FreeM is distributed in the hope that it will be useful,
21: * but WITHOUT ANY WARRANTY; without even the implied warranty of
22: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23: * GNU Affero Public License for more details.
24: *
25: * You should have received a copy of the GNU Affero Public License
26: * along with FreeM. If not, see <https://www.gnu.org/licenses/>.
27: *
28: * $Log: libfill.h,v $
29: * Revision 1.4 2025/04/10 01:24:38 snw
30: * Remove C++ style comments
31: *
32: * Revision 1.3 2025/03/09 19:14:25 snw
33: * First phase of REUSE compliance and header reformat
34: *
35: *
36: * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
37: * SPDX-License-Identifier: AGPL-3.0-or-later
38: **/
39:
40: #ifndef _LIBFILL_H
41: # define _LIBFILL_H
42:
43: void exit(int status);
44: char *strcat(char *dest, const char *src);
45: char *strcpy(char *dest, const char *src);
46: char *strchr(const char *s, int c);
47: char *strncpy(char *dest, const char *src, size_t n);
48: unsigned int sleep(unsigned int seconds);
49: void free(void *ptr);
50: size_t strlen(const char *s);
51: int strncmp(const char *s1, const char *s2, size_t n);
52: char *strtok(char *str, const char *delim);
53: void *calloc(size_t nmemb, size_t size);
54: void *malloc(size_t size);
55: char *strncat(char *dest, const char *src, size_t n);
56:
57: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>