Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/libarchive/cat/bsdcat.h
39478 views
1
/*-
2
* SPDX-License-Identifier: BSD-2-Clause
3
*
4
* Copyright (c) 2014, Mike Kazantsev
5
* All rights reserved.
6
*/
7
8
#ifndef BSDCAT_H_INCLUDED
9
#define BSDCAT_H_INCLUDED
10
11
#if defined(PLATFORM_CONFIG_H)
12
/* Use hand-built config.h in environments that need it. */
13
#include PLATFORM_CONFIG_H
14
#else
15
/* Not having a config.h of some sort is a serious problem. */
16
#include "config.h"
17
#endif
18
19
struct bsdcat {
20
/* Option parser state */
21
int getopt_state;
22
char *getopt_word;
23
24
/* Miscellaneous state information */
25
int argc;
26
char **argv;
27
const char *argument;
28
};
29
30
enum {
31
OPTION_VERSION
32
};
33
34
int bsdcat_getopt(struct bsdcat *);
35
36
#endif
37
38