Annotation of freem/src/libfill.h, revision 1.4
1.1 snw 1: /*
1.4 ! snw 2: * $Id: libfill.h,v 1.3 2025/03/09 19:14:25 snw Exp $
1.1 snw 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: *
1.2 snw 8: * Author: Serena Willis <snw@coherent-logic.com>
1.1 snw 9: * Copyright (C) 1998 MUG Deutschland
1.3 snw 10: * Copyright (C) 2020, 2025 Coherent Logic Development LLC
1.1 snw 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: *
1.4 ! snw 28: * $Log: libfill.h,v $
! 29: * Revision 1.3 2025/03/09 19:14:25 snw
! 30: * First phase of REUSE compliance and header reformat
! 31: *
1.3 snw 32: *
33: * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
34: * SPDX-License-Identifier: AGPL-3.0-or-later
1.1 snw 35: **/
36:
37: #ifndef _LIBFILL_H
38: # define _LIBFILL_H
39:
40: void exit(int status);
41: char *strcat(char *dest, const char *src);
42: char *strcpy(char *dest, const char *src);
43: char *strchr(const char *s, int c);
44: char *strncpy(char *dest, const char *src, size_t n);
45: unsigned int sleep(unsigned int seconds);
46: void free(void *ptr);
47: size_t strlen(const char *s);
48: int strncmp(const char *s1, const char *s2, size_t n);
49: char *strtok(char *str, const char *delim);
50: void *calloc(size_t nmemb, size_t size);
51: void *malloc(size_t size);
52: char *strncat(char *dest, const char *src, size_t n);
53:
1.3 snw 54: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>