File: ws_exit_codes.h

package info (click to toggle)
wireshark 4.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 351,436 kB
  • sloc: ansic: 3,103,613; cpp: 129,736; xml: 100,978; python: 56,510; perl: 24,575; sh: 5,874; lex: 4,383; pascal: 4,304; makefile: 164; ruby: 113; objc: 91; tcl: 35
file content (46 lines) | stat: -rw-r--r-- 1,629 bytes parent folder | download
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
41
42
43
44
45
46
/** @file
 *
 * Definition of exit codes for programs.
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __WS_EXIT_CODES_H__
#define __WS_EXIT_CODES_H__

/* Exit codes */
#define WS_EXIT_INVALID_OPTION               1
#define WS_EXIT_INVALID_INTERFACE            2
#define WS_EXIT_INVALID_FILE                 3
#define WS_EXIT_INVALID_FILTER               4
#define WS_EXIT_INVALID_CAPABILITY           5
#define WS_EXIT_IFACE_HAS_NO_LINK_TYPES      6
#define WS_EXIT_IFACE_HAS_NO_TIMESTAMP_TYPES 7
#define WS_EXIT_INIT_FAILED                  8
#define WS_EXIT_OPEN_ERROR                   9
#define WS_EXIT_PCAP_NOT_SUPPORTED           10
#define WS_EXIT_DUMPCAP_NOT_SUPPORTED        11
#define WS_EXIT_NO_INTERFACES                12
#define WS_EXIT_PCAP_ERROR                   13
#define WS_EXIT_READ_ERROR                   14
#define WS_EXIT_WRITE_ERROR                  15
#define WS_EXIT_PRINT_ERROR                  16
#define WS_EXIT_CAPTURE_ERROR                17
#define WS_EXIT_OUT_OF_MEMORY                18

/*
 * Not an exit code; returned by some routines to indicate that the
 * program was asked to print some stuff out and then exit, and that
 * the stuff's been printed successfully and there's nothing more
 * to do, so the caller should just exit now.
 *
 * An exit code out of the range of valid UN*X exit codes is used,
 * so we don't have to shuffle it if we add a new real exit code.
 */
#define WS_EXIT_NOW                          256

#endif /* __WS_EXIT_CODES_H__ */