GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include "at_exit_funcs.h"
#include "error.h"
#include "tools.h"
#include "reg_deps.h"
#include "reg_entries.h"
#include "reg_html.h"
#include "actions.h"
Go to the source code of this file.
Macros | |
#define | EXTERN extern |
#define | PROGVERSION 1.03 |
#define | MAXSTR 2048 /* maximum length of strings this program handles */ |
#define | NONE 0 |
#define | HELP 1 |
#define | VERSION 2 |
#define | INSTALL 3 |
#define | BIN_INSTALL 4 |
#define | QUERY 5 |
#define | CLEAN 6 |
#define | LICENSE 7 |
#define | TEST_INSTALL 8 |
#define | DETAILS 9 |
#define | UNINSTALL 10 |
#define | RESTORE 11 |
#define | LIST 12 |
#define | ERR_INVOCATION -1 |
#define | ERR_NO_ACCESS_EXT -2 |
#define | ERR_CONFIGURE_EXT -3 |
#define | ERR_COMPILE_EXT -4 |
#define | ERR_INSTALL_EXT -5 |
#define | ERR_INVALID_EXT -6 |
#define | ERR_UNPACK_EXT -7 |
#define | ERR_RM_TMPDIR -8 |
#define | ERR_MISSING_CMD -9 |
#define | ERR_NO_LICENSE -10 |
#define | ERR_VERSION -11 |
#define | ERR_MISSING_BINS -12 |
#define | ERR_UNINSTALL_EXT -13 |
#define | ERR_SU -14 |
#define | ERR_REGISTER_EXT -15 |
#define | ERR_EXISTS_EXT -16 |
#define | ERR_CHECK_DEPS -17 |
#define | ERR_MISSING_DEPS -18 |
#define | ERR_DEREGISTER_EXT -19 |
#define | ERR_DOWNLOAD -20 |
#define | ERR_REGISTER_ENTRIES_GISMAN -21 |
#define | ERR_DEREGISTER_ENTRIES_GISMAN -22 |
#define | ERR_DUMP_PLAIN_TXT -23 |
#define | ERR_REGISTER_HTML -24 |
#define | ERR_DEREGISTER_HTML -25 |
#define | ERR_RESTORE -26 |
#define | ERR_MISSING_CFG -27 |
#define | ERR_DUMP_HTML -28 |
#define | ERR_LIST -29 |
#define | ERR_TMPFILE -30 |
#define | ERR_RM_TMPFILE -31 |
#define | ERR_REGISTER_ENTRIES_GISMAN2 -32 |
#define | ERR_DEREGISTER_ENTRIES_GISMAN2 -33 |
#define | TYPE_UNKNOWN 0 |
#define | TAR_GZIP 1 |
#define | TAR_BZIP2 2 |
#define | ZIP 3 |
#define | TAR 4 |
#define | TOKEN_SUBMENU 0 |
#define | TOKEN_ENTRY 1 |
#define | TOKEN_COMMAND 2 |
#define | TOKEN_SEPARATOR 3 |
#define BIN_INSTALL 4 |
Definition at line 66 of file globals.h.
Referenced by main(), and run_post().
#define CLEAN 6 |
Definition at line 68 of file globals.h.
Referenced by main(), and run_post().
#define DETAILS 9 |
Definition at line 71 of file globals.h.
Referenced by main(), and run_post().
#define ERR_CHECK_DEPS -17 |
Definition at line 93 of file globals.h.
Referenced by check_dependencies(), and depstr().
#define ERR_COMPILE_EXT -4 |
Definition at line 80 of file globals.h.
Referenced by source_install(), and test_install().
#define ERR_CONFIGURE_EXT -3 |
Definition at line 79 of file globals.h.
Referenced by source_install(), and test_install().
#define ERR_DEREGISTER_ENTRIES_GISMAN -22 |
Definition at line 98 of file globals.h.
Referenced by deregister_entries_gisman().
#define ERR_DEREGISTER_ENTRIES_GISMAN2 -33 |
Definition at line 109 of file globals.h.
Referenced by deregister_entries_gisman2().
#define ERR_DEREGISTER_EXT -19 |
Definition at line 95 of file globals.h.
Referenced by deregister_extension().
#define ERR_DOWNLOAD -20 |
Definition at line 96 of file globals.h.
Referenced by wget_extension().
#define ERR_DUMP_PLAIN_TXT -23 |
Definition at line 99 of file globals.h.
Referenced by dump_html(), and dump_plain().
#define ERR_EXISTS_EXT -16 |
Definition at line 92 of file globals.h.
Referenced by register_extension().
#define ERR_INSTALL_EXT -5 |
Definition at line 81 of file globals.h.
Referenced by bin_install(), source_install(), su(), and test_install().
#define ERR_INVALID_EXT -6 |
Definition at line 82 of file globals.h.
Referenced by check_extension(), and get_package_name().
#define ERR_LIST -29 |
Definition at line 105 of file globals.h.
Referenced by list_extensions().
#define ERR_MISSING_CFG -27 |
Definition at line 103 of file globals.h.
Referenced by source_install(), and test_install().
#define ERR_MISSING_CMD -9 |
Definition at line 85 of file globals.h.
Referenced by source_clean(), source_install(), su(), and test_install().
#define ERR_MISSING_DEPS -18 |
Definition at line 94 of file globals.h.
Referenced by check_dependencies().
#define ERR_NO_ACCESS_EXT -2 |
Definition at line 78 of file globals.h.
Referenced by bin_install(), check_extension(), main(), query_extension(), show_details(), show_license(), source_clean(), source_install(), and test_install().
#define ERR_REGISTER_ENTRIES_GISMAN -21 |
Definition at line 97 of file globals.h.
Referenced by check_ext_menu(), delete_str(), deregister_entries_gisman(), find_pos(), insert_str(), register_entries_gisman(), and restore_entries_gisman().
#define ERR_REGISTER_ENTRIES_GISMAN2 -32 |
Definition at line 108 of file globals.h.
Referenced by register_entries_gisman2().
#define ERR_REGISTER_EXT -15 |
Definition at line 91 of file globals.h.
Referenced by register_extension().
#define ERR_REGISTER_HTML -24 |
Definition at line 100 of file globals.h.
Referenced by deregister_html(), register_html(), and restore_html().
#define ERR_UNPACK_EXT -7 |
Definition at line 83 of file globals.h.
Referenced by main(), and unpack_extension().
#define INSTALL 3 |
Definition at line 65 of file globals.h.
Referenced by main(), and run_post().
#define LICENSE 7 |
Definition at line 69 of file globals.h.
Referenced by main(), and run_post().
#define LIST 12 |
Definition at line 74 of file globals.h.
Referenced by G_extend_histogram().
#define MAXSTR 2048 /* maximum length of strings this program handles */ |
Definition at line 59 of file globals.h.
Referenced by bin_install(), binaries_exist(), check_dependencies(), check_extension(), delete_ext_html(), depstr(), deregister_entries_gisman(), deregister_entries_gisman2(), deregister_extension(), deregister_html(), dump_ascii(), dump_html(), dump_plain(), exit_db(), exit_tmp(), get_configure_options(), get_package_name(), insert_str(), list_binaries(), list_extensions(), main(), nc_fgets(), nc_fgets_html(), nc_fgets_nb(), new_ext_html(), new_item(), new_submenu(), print_cfg(), print_error(), print_warning(), query_extension(), register_entries_gisman(), register_entries_gisman2(), register_extension(), register_html(), restore(), restore_entries_gisman(), restore_html(), run_post(), show_details(), show_license(), source_clean(), source_install(), su(), test_install(), uninstall(), unpack_extension(), and wget_extension().
#define PROGVERSION 1.03 |
Definition at line 57 of file globals.h.
Referenced by show_version().
#define QUERY 5 |
Definition at line 67 of file globals.h.
Referenced by main(), and run_post().
#define TAR 4 |
Definition at line 115 of file globals.h.
Referenced by unpack_extension().
#define TAR_BZIP2 2 |
Definition at line 113 of file globals.h.
Referenced by unpack_extension().
#define TAR_GZIP 1 |
Definition at line 112 of file globals.h.
Referenced by unpack_extension().
#define TYPE_UNKNOWN 0 |
Definition at line 111 of file globals.h.
Referenced by unpack_extension().
#define ZIP 3 |
Definition at line 114 of file globals.h.
Referenced by unpack_extension().
Definition at line 171 of file globals.h.
Referenced by main(), source_install(), and test_install().
Definition at line 170 of file globals.h.
Referenced by get_configure_options(), main(), source_install(), and test_install().
Definition at line 175 of file globals.h.
Referenced by exit_db(), exit_tmp(), and main().
Definition at line 178 of file globals.h.
Referenced by exit_msg(), main(), and print_error().
Definition at line 143 of file globals.h.
Referenced by run_post().
Definition at line 161 of file globals.h.
Referenced by check_dependencies(), deregister_extension(), main(), new_ext_html(), register_extension(), and run_post().
Definition at line 136 of file globals.h.
Referenced by run_post().
Definition at line 134 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 133 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 132 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 130 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 131 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 128 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 129 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 139 of file globals.h.
Referenced by run_post().
Definition at line 135 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 141 of file globals.h.
Referenced by run_post().
Definition at line 140 of file globals.h.
Referenced by run_post().
Definition at line 124 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 125 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 126 of file globals.h.
Referenced by bin_install(), source_install(), and test_install().
Definition at line 166 of file globals.h.
Referenced by bin_install(), main(), register_entries_gisman2(), and source_install().
Definition at line 165 of file globals.h.
Referenced by bin_install(), deregister_entries_gisman(), deregister_entries_gisman2(), main(), register_entries_gisman(), restore_entries_gisman(), source_install(), and uninstall().
Definition at line 167 of file globals.h.
Referenced by bin_install(), deregister_html(), main(), register_html(), restore_html(), source_install(), and uninstall().
Definition at line 137 of file globals.h.
Referenced by run_post().
Definition at line 138 of file globals.h.
Referenced by run_post().
Definition at line 172 of file globals.h.
Referenced by bin_install(), main(), source_clean(), source_install(), and test_install().
Definition at line 163 of file globals.h.
Referenced by main(), source_install(), and test_install().
Definition at line 155 of file globals.h.
Referenced by bin_install(), exit_db(), main(), source_install(), and test_install().
Definition at line 154 of file globals.h.
Referenced by bin_install(), exit_db(), main(), source_install(), and test_install().
Definition at line 153 of file globals.h.
Referenced by bin_install(), exit_db(), main(), source_install(), and test_install().
Definition at line 151 of file globals.h.
Referenced by bin_install(), exit_db(), main(), source_install(), and test_install().
Definition at line 150 of file globals.h.
Referenced by deregister_entries_gisman(), exit_db(), main(), register_entries_gisman(), restore(), and restore_entries_gisman().
Definition at line 158 of file globals.h.
Referenced by deregister_html(), exit_db(), main(), register_html(), restore(), and restore_html().
Definition at line 152 of file globals.h.
Referenced by bin_install(), exit_db(), main(), source_install(), and test_install().
Definition at line 156 of file globals.h.
Referenced by bin_install(), deregister_entries_gisman(), deregister_html(), exit_db(), main(), register_entries_gisman(), register_html(), restore(), restore_entries_gisman(), restore_html(), source_clean(), source_install(), test_install(), and uninstall().
Definition at line 149 of file globals.h.
Referenced by bin_install(), deregister_extension(), exit_db(), main(), register_extension(), source_install(), and uninstall().
Definition at line 148 of file globals.h.
Referenced by exit_tmp(), main(), and unpack_extension().
Definition at line 127 of file globals.h.
Referenced by uninstall().
Definition at line 169 of file globals.h.
Referenced by bin_install(), main(), source_install(), and uninstall().
Definition at line 162 of file globals.h.
Referenced by main(), and new_ext_html().
Definition at line 147 of file globals.h.
Referenced by bin_install(), deregister_entries_gisman(), deregister_entries_gisman2(), deregister_html(), exit_db(), exit_tmp(), main(), register_entries_gisman(), register_entries_gisman2(), register_html(), restore(), restore_entries_gisman(), restore_html(), run_post(), source_clean(), source_install(), test_install(), uninstall(), unpack_extension(), and wget_extension().
Definition at line 179 of file globals.h.
Referenced by exit_msg(), main(), and print_warning().