]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - fs/ncpfs/getopt.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / fs / ncpfs / getopt.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_GETOPT_H
3 #define _LINUX_GETOPT_H
4
5 #define OPT_NOPARAM 1
6 #define OPT_INT 2
7 #define OPT_STRING 4
8 struct ncp_option {
9 const char *name;
10 unsigned int has_arg;
11 int val;
12 };
13
14 extern int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
15 char **optopt, char **optarg, unsigned long *value);
16
17 #endif /* _LINUX_GETOPT_H */