forked from duosecurity/duo_unix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacconfig.h
More file actions
40 lines (29 loc) · 748 Bytes
/
acconfig.h
File metadata and controls
40 lines (29 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* SPDX-License-Identifier: GPL-2.0-with-classpath-exception
*
* acconfig.h
*
* Copyright (c) 2023 Cisco Systems, Inc. and/or its affiliates
* All rights reserved.
*/
@BOTTOM@
#ifndef HAVE_ASPRINTF
#include <stdarg.h>
int asprintf(char **ret, const char *format, ...);
int vasprintf(char **ret, const char *format, va_list ap);
#endif
#ifndef HAVE_GETGROUPLIST
#include <grp.h>
int getgrouplist(const char *name, gid_t basegid, gid_t *groups, int *ngroups);
#endif
#ifndef HAVE_STRLCPY
#include <sys/types.h>
size_t strlcpy(char *dst, const char *src, size_t size);
#endif
#ifndef HAVE_STRNLEN
#include <sys/types.h>
size_t strnlen(const char *str, size_t maxlen);
#endif
#ifndef HAVE_TIMEGM
time_t timegm(struct tm *tm);
#endif