From 5b29a67ef915fceabb4ff394474ff73561e87f43 Mon Sep 17 00:00:00 2001 From: jef Date: Tue, 13 Nov 2007 20:19:17 +0000 Subject: [PATCH] remove msvc build of grass libraries from qgis git-svn-id: http://svn.osgeo.org/qgis/trunk@7398 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/providers/grass/CMakeLists.txt | 16 - src/providers/grass/vc/CMakeLists.txt | 509 -------------- src/providers/grass/vc/XDR-copyright.txt | 26 - src/providers/grass/vc/dirent.h | 275 -------- src/providers/grass/vc/grass_dbmibase.def | 279 -------- src/providers/grass/vc/grass_dbmiclient.def | 59 -- src/providers/grass/vc/grass_dgl.def | 247 ------- src/providers/grass/vc/grass_dig2.def | 177 ----- src/providers/grass/vc/grass_gis.def | 730 -------------------- src/providers/grass/vc/grass_gproj.def | 29 - src/providers/grass/vc/grass_linkm.def | 11 - src/providers/grass/vc/grass_rtree.def | 38 - src/providers/grass/vc/grass_vect.def | 311 --------- src/providers/grass/vc/rpc.h | 119 ---- src/providers/grass/vc/rpc/auth.h | 212 ------ src/providers/grass/vc/rpc/auth_uni.h | 89 --- src/providers/grass/vc/rpc/auth_unix.h | 101 --- src/providers/grass/vc/rpc/bcopy.h | 22 - src/providers/grass/vc/rpc/clnt.h | 364 ---------- src/providers/grass/vc/rpc/index.html | 10 - src/providers/grass/vc/rpc/netdb.h | 51 -- src/providers/grass/vc/rpc/rpc_msg.h | 215 ------ src/providers/grass/vc/rpc/svc.h | 291 -------- src/providers/grass/vc/rpc/svc_auth.h | 53 -- src/providers/grass/vc/rpc/types.h | 104 --- src/providers/grass/vc/rpc/xdr.h | 281 -------- src/providers/grass/vc/unistd.h | 12 - src/providers/grass/vc/xdr.c | 599 ---------------- src/providers/grass/vc/xdr_float.c | 302 -------- src/providers/grass/vc/xdr_mem.c | 243 ------- src/providers/grass/vc/xdr_stdio.c | 238 ------- 31 files changed, 6013 deletions(-) delete mode 100755 src/providers/grass/vc/CMakeLists.txt delete mode 100755 src/providers/grass/vc/XDR-copyright.txt delete mode 100755 src/providers/grass/vc/dirent.h delete mode 100755 src/providers/grass/vc/grass_dbmibase.def delete mode 100755 src/providers/grass/vc/grass_dbmiclient.def delete mode 100755 src/providers/grass/vc/grass_dgl.def delete mode 100755 src/providers/grass/vc/grass_dig2.def delete mode 100755 src/providers/grass/vc/grass_gis.def delete mode 100755 src/providers/grass/vc/grass_gproj.def delete mode 100755 src/providers/grass/vc/grass_linkm.def delete mode 100755 src/providers/grass/vc/grass_rtree.def delete mode 100755 src/providers/grass/vc/grass_vect.def delete mode 100755 src/providers/grass/vc/rpc.h delete mode 100755 src/providers/grass/vc/rpc/auth.h delete mode 100755 src/providers/grass/vc/rpc/auth_uni.h delete mode 100755 src/providers/grass/vc/rpc/auth_unix.h delete mode 100755 src/providers/grass/vc/rpc/bcopy.h delete mode 100755 src/providers/grass/vc/rpc/clnt.h delete mode 100644 src/providers/grass/vc/rpc/index.html delete mode 100755 src/providers/grass/vc/rpc/netdb.h delete mode 100755 src/providers/grass/vc/rpc/rpc_msg.h delete mode 100755 src/providers/grass/vc/rpc/svc.h delete mode 100755 src/providers/grass/vc/rpc/svc_auth.h delete mode 100644 src/providers/grass/vc/rpc/types.h delete mode 100644 src/providers/grass/vc/rpc/xdr.h delete mode 100755 src/providers/grass/vc/unistd.h delete mode 100644 src/providers/grass/vc/xdr.c delete mode 100644 src/providers/grass/vc/xdr_float.c delete mode 100644 src/providers/grass/vc/xdr_mem.c delete mode 100644 src/providers/grass/vc/xdr_stdio.c diff --git a/src/providers/grass/CMakeLists.txt b/src/providers/grass/CMakeLists.txt index 2516a0e818ee..d9e800e50397 100644 --- a/src/providers/grass/CMakeLists.txt +++ b/src/providers/grass/CMakeLists.txt @@ -17,22 +17,6 @@ IF (NOT MSVC) SET_SOURCE_FILES_PROPERTIES(qgsgrassprovider.cpp PROPERTIES COMPILE_FLAGS -Wno-error ) SET_SOURCE_FILES_PROPERTIES(qgsgrass.cpp PROPERTIES COMPILE_FLAGS -Wno-error ) SET_SOURCE_FILES_PROPERTIES(provider.cpp PROPERTIES COMPILE_FLAGS -Wno-error ) -ELSE (NOT MSVC) - SUBDIRS(vc) - - SET(GRASS_LIBRARIES - ${GRASS_LIBRARIES} - grass_gis - grass_vect - grass_gproj - grass_dbmibase - grass_dbmiclient - grass_linkm - grass_dig2 - grass_dgl - xdr - ${GDAL_LIBRARY} - ) ENDIF (NOT MSVC) ######################################################## diff --git a/src/providers/grass/vc/CMakeLists.txt b/src/providers/grass/vc/CMakeLists.txt deleted file mode 100755 index 906c0a1fe9ab..000000000000 --- a/src/providers/grass/vc/CMakeLists.txt +++ /dev/null @@ -1,509 +0,0 @@ -ADD_DEFINITIONS(-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\") - -INCLUDE(FindZLIB) - -ADD_DEFINITIONS( - -I${CMAKE_CURRENT_SOURCE_DIR} - -I${GRASS_PREFIX}/lib/db/dbmi_base - -I${ZLIB_INCLUDE_DIR} - -D__MINGW32__ - -Dpopen=G_popen - -Dpclose=G_pclose) - -ADD_LIBRARY (xdr STATIC - xdr.c - xdr_mem.c - xdr_float.c - xdr_stdio.c) - -ADD_LIBRARY (grass_datetime STATIC - ${GRASS_PREFIX}/lib/datetime/between.c - ${GRASS_PREFIX}/lib/datetime/change.c - ${GRASS_PREFIX}/lib/datetime/copy.c - ${GRASS_PREFIX}/lib/datetime/diff.c - ${GRASS_PREFIX}/lib/datetime/error.c - ${GRASS_PREFIX}/lib/datetime/format.c - ${GRASS_PREFIX}/lib/datetime/incr1.c - ${GRASS_PREFIX}/lib/datetime/incr2.c - ${GRASS_PREFIX}/lib/datetime/incr3.c - ${GRASS_PREFIX}/lib/datetime/local.c - ${GRASS_PREFIX}/lib/datetime/misc.c - ${GRASS_PREFIX}/lib/datetime/same.c - ${GRASS_PREFIX}/lib/datetime/scan.c - ${GRASS_PREFIX}/lib/datetime/sign.c - ${GRASS_PREFIX}/lib/datetime/type.c - ${GRASS_PREFIX}/lib/datetime/tz1.c - ${GRASS_PREFIX}/lib/datetime/tz2.c - ${GRASS_PREFIX}/lib/datetime/values.c -) - -ADD_LIBRARY (grass_gis SHARED - ${GRASS_PREFIX}/lib/gis/adj_cellhd.c - ${GRASS_PREFIX}/lib/gis/align_window.c - ${GRASS_PREFIX}/lib/gis/alloc.c - ${GRASS_PREFIX}/lib/gis/alloc_cell.c - ${GRASS_PREFIX}/lib/gis/area.c - ${GRASS_PREFIX}/lib/gis/area_ellipse.c - ${GRASS_PREFIX}/lib/gis/area_poly1.c - ${GRASS_PREFIX}/lib/gis/area_poly2.c - ${GRASS_PREFIX}/lib/gis/area_sphere.c - ${GRASS_PREFIX}/lib/gis/ascii_chk.c - ${GRASS_PREFIX}/lib/gis/ask.c - ${GRASS_PREFIX}/lib/gis/ask_cell.c - ${GRASS_PREFIX}/lib/gis/ask_vctrs.c - ${GRASS_PREFIX}/lib/gis/asprintf.c - ${GRASS_PREFIX}/lib/gis/auto_mask.c - ${GRASS_PREFIX}/lib/gis/basename.c - ${GRASS_PREFIX}/lib/gis/bres_line.c - ${GRASS_PREFIX}/lib/gis/cats.c - ${GRASS_PREFIX}/lib/gis/cellstats_eq.c - ${GRASS_PREFIX}/lib/gis/cell_stats.c - ${GRASS_PREFIX}/lib/gis/cell_title.c - ${GRASS_PREFIX}/lib/gis/clear_scrn.c - ${GRASS_PREFIX}/lib/gis/clicker.c - ${GRASS_PREFIX}/lib/gis/closecell.c - ${GRASS_PREFIX}/lib/gis/color_compat.c - ${GRASS_PREFIX}/lib/gis/color_free.c - ${GRASS_PREFIX}/lib/gis/color_get.c - ${GRASS_PREFIX}/lib/gis/color_hist.c - ${GRASS_PREFIX}/lib/gis/color_init.c - ${GRASS_PREFIX}/lib/gis/color_insrt.c - ${GRASS_PREFIX}/lib/gis/color_invrt.c - ${GRASS_PREFIX}/lib/gis/color_look.c - ${GRASS_PREFIX}/lib/gis/color_org.c - ${GRASS_PREFIX}/lib/gis/color_rand.c - ${GRASS_PREFIX}/lib/gis/color_range.c - ${GRASS_PREFIX}/lib/gis/color_read.c - ${GRASS_PREFIX}/lib/gis/color_remove.c - ${GRASS_PREFIX}/lib/gis/color_rule.c - ${GRASS_PREFIX}/lib/gis/color_rules.c - ${GRASS_PREFIX}/lib/gis/color_rule_get.c - ${GRASS_PREFIX}/lib/gis/color_set.c - ${GRASS_PREFIX}/lib/gis/color_shift.c - ${GRASS_PREFIX}/lib/gis/color_str.c - ${GRASS_PREFIX}/lib/gis/color_write.c - ${GRASS_PREFIX}/lib/gis/color_xform.c - ${GRASS_PREFIX}/lib/gis/commas.c - ${GRASS_PREFIX}/lib/gis/copy.c - ${GRASS_PREFIX}/lib/gis/copy_file.c - ${GRASS_PREFIX}/lib/gis/date.c - ${GRASS_PREFIX}/lib/gis/datum.c - ${GRASS_PREFIX}/lib/gis/debug.c - ${GRASS_PREFIX}/lib/gis/dig_title.c - ${GRASS_PREFIX}/lib/gis/distance.c - ${GRASS_PREFIX}/lib/gis/done_msg.c - ${GRASS_PREFIX}/lib/gis/endian.c - ${GRASS_PREFIX}/lib/gis/env.c - ${GRASS_PREFIX}/lib/gis/error.c - ${GRASS_PREFIX}/lib/gis/file_name.c - ${GRASS_PREFIX}/lib/gis/find_cell.c - ${GRASS_PREFIX}/lib/gis/find_etc.c - ${GRASS_PREFIX}/lib/gis/find_file.c - ${GRASS_PREFIX}/lib/gis/find_vect.c - ${GRASS_PREFIX}/lib/gis/flate.c - ${GRASS_PREFIX}/lib/gis/fork.c - ${GRASS_PREFIX}/lib/gis/format.c - ${GRASS_PREFIX}/lib/gis/fpreclass.c - ${GRASS_PREFIX}/lib/gis/geodesic.c - ${GRASS_PREFIX}/lib/gis/geodist.c - ${GRASS_PREFIX}/lib/gis/getl.c - ${GRASS_PREFIX}/lib/gis/gets.c - ${GRASS_PREFIX}/lib/gis/get_cellhd.c - ${GRASS_PREFIX}/lib/gis/get_datum_name.c - ${GRASS_PREFIX}/lib/gis/get_ellipse.c - ${GRASS_PREFIX}/lib/gis/get_ell_name.c - ${GRASS_PREFIX}/lib/gis/get_projinfo.c - ${GRASS_PREFIX}/lib/gis/get_projname.c - ${GRASS_PREFIX}/lib/gis/get_row.c - ${GRASS_PREFIX}/lib/gis/get_row_colr.c - ${GRASS_PREFIX}/lib/gis/get_window.c - ${GRASS_PREFIX}/lib/gis/gisbase.c - ${GRASS_PREFIX}/lib/gis/gisdbase.c - ${GRASS_PREFIX}/lib/gis/gishelp.c - ${GRASS_PREFIX}/lib/gis/gisinit.c - ${GRASS_PREFIX}/lib/gis/histogram.c - ${GRASS_PREFIX}/lib/gis/history.c - ${GRASS_PREFIX}/lib/gis/histo_eq.c - ${GRASS_PREFIX}/lib/gis/home.c - ${GRASS_PREFIX}/lib/gis/icon.c - ${GRASS_PREFIX}/lib/gis/index.c - ${GRASS_PREFIX}/lib/gis/init_map.c - ${GRASS_PREFIX}/lib/gis/interp.c - ${GRASS_PREFIX}/lib/gis/intersect.c - ${GRASS_PREFIX}/lib/gis/intr_char.c - ${GRASS_PREFIX}/lib/gis/is.c - ${GRASS_PREFIX}/lib/gis/key_value1.c - ${GRASS_PREFIX}/lib/gis/key_value2.c - ${GRASS_PREFIX}/lib/gis/key_value3.c - ${GRASS_PREFIX}/lib/gis/key_value4.c - ${GRASS_PREFIX}/lib/gis/legal_name.c - ${GRASS_PREFIX}/lib/gis/line_dist.c - ${GRASS_PREFIX}/lib/gis/list.c - ${GRASS_PREFIX}/lib/gis/ll_format.c - ${GRASS_PREFIX}/lib/gis/ll_scan.c - ${GRASS_PREFIX}/lib/gis/locale.c - ${GRASS_PREFIX}/lib/gis/location.c - ${GRASS_PREFIX}/lib/gis/ls.c - ${GRASS_PREFIX}/lib/gis/mach_name.c - ${GRASS_PREFIX}/lib/gis/make_colr.c - ${GRASS_PREFIX}/lib/gis/make_loc.c - ${GRASS_PREFIX}/lib/gis/make_mapset.c - ${GRASS_PREFIX}/lib/gis/mapcase.c - ${GRASS_PREFIX}/lib/gis/mapset.c - ${GRASS_PREFIX}/lib/gis/mapset_msc.c - ${GRASS_PREFIX}/lib/gis/mapset_nme.c - ${GRASS_PREFIX}/lib/gis/maskfd.c - ${GRASS_PREFIX}/lib/gis/mask_info.c - ${GRASS_PREFIX}/lib/gis/myname.c - ${GRASS_PREFIX}/lib/gis/named_colr.c - ${GRASS_PREFIX}/lib/gis/nl_to_spaces.c - ${GRASS_PREFIX}/lib/gis/nme_in_mps.c - ${GRASS_PREFIX}/lib/gis/null_val.c - ${GRASS_PREFIX}/lib/gis/open.c - ${GRASS_PREFIX}/lib/gis/opencell.c - ${GRASS_PREFIX}/lib/gis/open_misc.c - ${GRASS_PREFIX}/lib/gis/overwrite.c - ${GRASS_PREFIX}/lib/gis/parser.c - ${GRASS_PREFIX}/lib/gis/paths.c - ${GRASS_PREFIX}/lib/gis/percent.c - ${GRASS_PREFIX}/lib/gis/plot.c - ${GRASS_PREFIX}/lib/gis/pole_in_poly.c - ${GRASS_PREFIX}/lib/gis/popen.c - ${GRASS_PREFIX}/lib/gis/progrm_nme.c - ${GRASS_PREFIX}/lib/gis/proj1.c - ${GRASS_PREFIX}/lib/gis/proj2.c - ${GRASS_PREFIX}/lib/gis/proj3.c - ${GRASS_PREFIX}/lib/gis/putenv.c - ${GRASS_PREFIX}/lib/gis/put_cellhd.c - ${GRASS_PREFIX}/lib/gis/put_row.c - ${GRASS_PREFIX}/lib/gis/put_title.c - ${GRASS_PREFIX}/lib/gis/put_window.c - ${GRASS_PREFIX}/lib/gis/quant.c - ${GRASS_PREFIX}/lib/gis/quant_io.c - ${GRASS_PREFIX}/lib/gis/quant_rw.c - ${GRASS_PREFIX}/lib/gis/radii.c - ${GRASS_PREFIX}/lib/gis/range.c - ${GRASS_PREFIX}/lib/gis/raster.c - ${GRASS_PREFIX}/lib/gis/raster_metadata.c - ${GRASS_PREFIX}/lib/gis/rd_cellhd.c - ${GRASS_PREFIX}/lib/gis/reclass.c - ${GRASS_PREFIX}/lib/gis/remove.c - ${GRASS_PREFIX}/lib/gis/rename.c - ${GRASS_PREFIX}/lib/gis/rhumbline.c - ${GRASS_PREFIX}/lib/gis/rotate.c - ${GRASS_PREFIX}/lib/gis/sample.c - ${GRASS_PREFIX}/lib/gis/set_window.c - ${GRASS_PREFIX}/lib/gis/short_way.c - ${GRASS_PREFIX}/lib/gis/sleep.c - ${GRASS_PREFIX}/lib/gis/snprintf.c - ${GRASS_PREFIX}/lib/gis/spawn.c - ${GRASS_PREFIX}/lib/gis/squeeze.c - ${GRASS_PREFIX}/lib/gis/store.c - ${GRASS_PREFIX}/lib/gis/strings.c - ${GRASS_PREFIX}/lib/gis/system.c - ${GRASS_PREFIX}/lib/gis/tempfile.c - ${GRASS_PREFIX}/lib/gis/timestamp.c - ${GRASS_PREFIX}/lib/gis/token.c - ${GRASS_PREFIX}/lib/gis/trim_dec.c - ${GRASS_PREFIX}/lib/gis/unctrl.c - ${GRASS_PREFIX}/lib/gis/unix_socks.c - ${GRASS_PREFIX}/lib/gis/verbose.c - ${GRASS_PREFIX}/lib/gis/view.c - ${GRASS_PREFIX}/lib/gis/whoami.c - ${GRASS_PREFIX}/lib/gis/win32_pipes.c - ${GRASS_PREFIX}/lib/gis/window_map.c - ${GRASS_PREFIX}/lib/gis/wind_2_box.c - ${GRASS_PREFIX}/lib/gis/wind_format.c - ${GRASS_PREFIX}/lib/gis/wind_in.c - ${GRASS_PREFIX}/lib/gis/wind_limits.c - ${GRASS_PREFIX}/lib/gis/wind_overlap.c - ${GRASS_PREFIX}/lib/gis/wind_scan.c - ${GRASS_PREFIX}/lib/gis/writ_zeros.c - ${GRASS_PREFIX}/lib/gis/wr_cellhd.c - ${GRASS_PREFIX}/lib/gis/yes.c - ${GRASS_PREFIX}/lib/gis/zero.c - ${GRASS_PREFIX}/lib/gis/zero_cell.c - ${GRASS_PREFIX}/lib/gis/zone.c -) -SET_TARGET_PROPERTIES(grass_gis PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_gis.def") -TARGET_LINK_LIBRARIES(grass_gis xdr grass_datetime ${ZLIB_LIBRARY}) - -ADD_LIBRARY (grass_vect SHARED - ${GRASS_PREFIX}/lib/vector/Vlib/area.c - ${GRASS_PREFIX}/lib/vector/Vlib/array.c - ${GRASS_PREFIX}/lib/vector/Vlib/box.c - ${GRASS_PREFIX}/lib/vector/Vlib/break_lines.c - ${GRASS_PREFIX}/lib/vector/Vlib/break_polygons.c - ${GRASS_PREFIX}/lib/vector/Vlib/bridges.c - ${GRASS_PREFIX}/lib/vector/Vlib/buffer.c - ${GRASS_PREFIX}/lib/vector/Vlib/build.c - ${GRASS_PREFIX}/lib/vector/Vlib/build_nat.c - ${GRASS_PREFIX}/lib/vector/Vlib/build_ogr.c - ${GRASS_PREFIX}/lib/vector/Vlib/close_ogr.c - ${GRASS_PREFIX}/lib/vector/Vlib/rewind_ogr.c - ${GRASS_PREFIX}/lib/vector/Vlib/cats.c - ${GRASS_PREFIX}/lib/vector/Vlib/cindex.c - ${GRASS_PREFIX}/lib/vector/Vlib/clean_nodes.c - ${GRASS_PREFIX}/lib/vector/Vlib/close.c - ${GRASS_PREFIX}/lib/vector/Vlib/close_nat.c - ${GRASS_PREFIX}/lib/vector/Vlib/constraint.c - ${GRASS_PREFIX}/lib/vector/Vlib/dangles.c - ${GRASS_PREFIX}/lib/vector/Vlib/dbcolumns.c - ${GRASS_PREFIX}/lib/vector/Vlib/error.c - ${GRASS_PREFIX}/lib/vector/Vlib/field.c - ${GRASS_PREFIX}/lib/vector/Vlib/find.c - ${GRASS_PREFIX}/lib/vector/Vlib/graph.c - ${GRASS_PREFIX}/lib/vector/Vlib/header.c - ${GRASS_PREFIX}/lib/vector/Vlib/hist.c - ${GRASS_PREFIX}/lib/vector/Vlib/init_head.c - ${GRASS_PREFIX}/lib/vector/Vlib/intersect.c - ${GRASS_PREFIX}/lib/vector/Vlib/legal_vname.c - ${GRASS_PREFIX}/lib/vector/Vlib/level.c - ${GRASS_PREFIX}/lib/vector/Vlib/level_two.c - ${GRASS_PREFIX}/lib/vector/Vlib/line.c - ${GRASS_PREFIX}/lib/vector/Vlib/list.c - ${GRASS_PREFIX}/lib/vector/Vlib/map.c - ${GRASS_PREFIX}/lib/vector/Vlib/net.c - ${GRASS_PREFIX}/lib/vector/Vlib/open.c - ${GRASS_PREFIX}/lib/vector/Vlib/open_nat.c - ${GRASS_PREFIX}/lib/vector/Vlib/open_ogr.c - ${GRASS_PREFIX}/lib/vector/Vlib/overlap.c - ${GRASS_PREFIX}/lib/vector/Vlib/overlay.c - ${GRASS_PREFIX}/lib/vector/Vlib/poly.c - ${GRASS_PREFIX}/lib/vector/Vlib/read.c - ${GRASS_PREFIX}/lib/vector/Vlib/read_nat.c - ${GRASS_PREFIX}/lib/vector/Vlib/read_ogr.c - ${GRASS_PREFIX}/lib/vector/Vlib/remove_areas.c - ${GRASS_PREFIX}/lib/vector/Vlib/remove_duplicates.c - ${GRASS_PREFIX}/lib/vector/Vlib/rewind.c - ${GRASS_PREFIX}/lib/vector/Vlib/rewind_nat.c - ${GRASS_PREFIX}/lib/vector/Vlib/select.c - ${GRASS_PREFIX}/lib/vector/Vlib/sindex.c - ${GRASS_PREFIX}/lib/vector/Vlib/snap.c - ${GRASS_PREFIX}/lib/vector/Vlib/tin.c - ${GRASS_PREFIX}/lib/vector/Vlib/type.c - ${GRASS_PREFIX}/lib/vector/Vlib/window.c - ${GRASS_PREFIX}/lib/vector/Vlib/write.c - ${GRASS_PREFIX}/lib/vector/Vlib/write_nat.c -) -SET_TARGET_PROPERTIES(grass_vect PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_vect.def") -TARGET_LINK_LIBRARIES(grass_vect grass_gis grass_rtree grass_dbmiclient grass_dig2 grass_linkm grass_dgl ${GDAL_LIBRARY} ${PROJ_LIBRARY}) - -ADD_LIBRARY(grass_dig2 SHARED - ${GRASS_PREFIX}/lib/vector/diglib/allocation.c - ${GRASS_PREFIX}/lib/vector/diglib/angle.c - ${GRASS_PREFIX}/lib/vector/diglib/box.c - ${GRASS_PREFIX}/lib/vector/diglib/cindex.c - ${GRASS_PREFIX}/lib/vector/diglib/cindex_rw.c - ${GRASS_PREFIX}/lib/vector/diglib/file.c - ${GRASS_PREFIX}/lib/vector/diglib/frmt.c - ${GRASS_PREFIX}/lib/vector/diglib/head.c - ${GRASS_PREFIX}/lib/vector/diglib/inside.c - ${GRASS_PREFIX}/lib/vector/diglib/linecros.c - ${GRASS_PREFIX}/lib/vector/diglib/line_dist.c - ${GRASS_PREFIX}/lib/vector/diglib/list.c - ${GRASS_PREFIX}/lib/vector/diglib/plus.c - ${GRASS_PREFIX}/lib/vector/diglib/plus_area.c - ${GRASS_PREFIX}/lib/vector/diglib/plus_line.c - ${GRASS_PREFIX}/lib/vector/diglib/plus_node.c - ${GRASS_PREFIX}/lib/vector/diglib/plus_struct.c - ${GRASS_PREFIX}/lib/vector/diglib/poly.c - ${GRASS_PREFIX}/lib/vector/diglib/portable.c - ${GRASS_PREFIX}/lib/vector/diglib/port_init.c - ${GRASS_PREFIX}/lib/vector/diglib/port_test.c - ${GRASS_PREFIX}/lib/vector/diglib/prune.c - ${GRASS_PREFIX}/lib/vector/diglib/spindex.c - ${GRASS_PREFIX}/lib/vector/diglib/spindex_rw.c - ${GRASS_PREFIX}/lib/vector/diglib/struct_alloc.c - ${GRASS_PREFIX}/lib/vector/diglib/type.c - ${GRASS_PREFIX}/lib/vector/diglib/update.c -) -SET_TARGET_PROPERTIES(grass_dig2 PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_dig2.def") -TARGET_LINK_LIBRARIES(grass_dig2 grass_gis grass_rtree) - -ADD_LIBRARY (grass_rtree SHARED - ${GRASS_PREFIX}/lib/vector/rtree/card.c - ${GRASS_PREFIX}/lib/vector/rtree/index.c - ${GRASS_PREFIX}/lib/vector/rtree/node.c - ${GRASS_PREFIX}/lib/vector/rtree/rect.c - ${GRASS_PREFIX}/lib/vector/rtree/split_q.c -) -SET_TARGET_PROPERTIES(grass_rtree PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_rtree.def") - -ADD_LIBRARY(grass_dgl SHARED - ${GRASS_PREFIX}/lib/vector/dglib/graph.c - ${GRASS_PREFIX}/lib/vector/dglib/graph_v1.c - ${GRASS_PREFIX}/lib/vector/dglib/graph_v2.c - ${GRASS_PREFIX}/lib/vector/dglib/helpers.c - ${GRASS_PREFIX}/lib/vector/dglib/tree.c - ${GRASS_PREFIX}/lib/vector/dglib/heap.c - ${GRASS_PREFIX}/lib/vector/dglib/avl.c - ${GRASS_PREFIX}/lib/vector/dglib/tavl.c -) -SET_TARGET_PROPERTIES(grass_dgl PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_dgl.def") - -ADD_LIBRARY (grass_gproj SHARED - ${GRASS_PREFIX}/lib/proj/convert.c - ${GRASS_PREFIX}/lib/proj/datum.c - ${GRASS_PREFIX}/lib/proj/do_proj.c - ${GRASS_PREFIX}/lib/proj/ellipse.c - ${GRASS_PREFIX}/lib/proj/get_proj.c -) -SET_TARGET_PROPERTIES(grass_gproj PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_gproj.def") -TARGET_LINK_LIBRARIES(grass_gproj grass_gis grass_rtree grass_dig2 ${PROJ_LIBRARY} ${GDAL_LIBRARY}) - -ADD_LIBRARY (grass_dbmibase SHARED - ${GRASS_PREFIX}/lib/db/dbmi_base/alloc.c - ${GRASS_PREFIX}/lib/db/dbmi_base/case.c - ${GRASS_PREFIX}/lib/db/dbmi_base/column.c - ${GRASS_PREFIX}/lib/db/dbmi_base/columnfmt.c - ${GRASS_PREFIX}/lib/db/dbmi_base/connect.c - ${GRASS_PREFIX}/lib/db/dbmi_base/cursor.c - ${GRASS_PREFIX}/lib/db/dbmi_base/datetime.c - ${GRASS_PREFIX}/lib/db/dbmi_base/dbmscap.c - ${GRASS_PREFIX}/lib/db/dbmi_base/default_name.c - ${GRASS_PREFIX}/lib/db/dbmi_base/dirent.c - ${GRASS_PREFIX}/lib/db/dbmi_base/error.c - ${GRASS_PREFIX}/lib/db/dbmi_base/handle.c - ${GRASS_PREFIX}/lib/db/dbmi_base/index.c - ${GRASS_PREFIX}/lib/db/dbmi_base/interval.c - ${GRASS_PREFIX}/lib/db/dbmi_base/isdir.c - ${GRASS_PREFIX}/lib/db/dbmi_base/legal_dbname.c - ${GRASS_PREFIX}/lib/db/dbmi_base/login.c - ${GRASS_PREFIX}/lib/db/dbmi_base/ret_codes.c - ${GRASS_PREFIX}/lib/db/dbmi_base/sqlCtype.c - ${GRASS_PREFIX}/lib/db/dbmi_base/sqltype.c - ${GRASS_PREFIX}/lib/db/dbmi_base/string.c - ${GRASS_PREFIX}/lib/db/dbmi_base/strip.c - ${GRASS_PREFIX}/lib/db/dbmi_base/table.c - ${GRASS_PREFIX}/lib/db/dbmi_base/token.c - ${GRASS_PREFIX}/lib/db/dbmi_base/value.c - ${GRASS_PREFIX}/lib/db/dbmi_base/valuefmt.c - ${GRASS_PREFIX}/lib/db/dbmi_base/whoami.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdr.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrchar.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrcolumn.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrdatetime.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrdouble.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrfloat.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrhandle.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrindex.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrint.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrprocedure.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrshort.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrstring.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrtable.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrtoken.c - ${GRASS_PREFIX}/lib/db/dbmi_base/xdrvalue.c - ${GRASS_PREFIX}/lib/db/dbmi_base/zero.c -) -SET_SOURCE_FILES_PROPERTIES(${GRASS_PREFIX}/lib/db/dbmi_base/xdr.c PROPERTIES COMPILE_FLAGS -U__MINGW32__) -SET_TARGET_PROPERTIES(grass_dbmibase PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_dbmibase.def") -TARGET_LINK_LIBRARIES(grass_dbmibase grass_gis) - -ADD_LIBRARY (grass_linkm SHARED - ${GRASS_PREFIX}/lib/linkm/destroy.c - ${GRASS_PREFIX}/lib/linkm/dispose.c - ${GRASS_PREFIX}/lib/linkm/init.c - ${GRASS_PREFIX}/lib/linkm/new.c - ${GRASS_PREFIX}/lib/linkm/next.c - ${GRASS_PREFIX}/lib/linkm/oom.c -) -SET_TARGET_PROPERTIES(grass_linkm PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_linkm.def") - -ADD_LIBRARY (grass_dbmiclient SHARED - ${GRASS_PREFIX}/lib/db/dbmi_client/column.c - ${GRASS_PREFIX}/lib/db/dbmi_client/copy_tab.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_add_col.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_bindupdate.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_closedb.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_close_cur.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_createdb.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_create_idx.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_create_tab.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_delete.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_deletedb.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_desc_table.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_drop_col.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_drop_index.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_drop_tab.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_execute.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_fetch.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_finddb.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_insert.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_listdb.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_list_drivers.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_list_idx.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_list_tabs.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_opendb.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_openinsert.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_openselect.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_openupdate.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_priv.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_rows.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_update.c - ${GRASS_PREFIX}/lib/db/dbmi_client/c_version.c - ${GRASS_PREFIX}/lib/db/dbmi_client/db.c - ${GRASS_PREFIX}/lib/db/dbmi_client/delete_tab.c - ${GRASS_PREFIX}/lib/db/dbmi_client/printtab.c - ${GRASS_PREFIX}/lib/db/dbmi_client/select.c - ${GRASS_PREFIX}/lib/db/dbmi_client/shutdown.c - ${GRASS_PREFIX}/lib/db/dbmi_client/start.c - ${GRASS_PREFIX}/lib/db/dbmi_client/table.c -) -SET_TARGET_PROPERTIES(grass_dbmiclient PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_dbmiclient.def") -TARGET_LINK_LIBRARIES(grass_dbmiclient grass_dbmibase) - -ADD_LIBRARY (grass_I SHARED - ${GRASS_PREFIX}/lib/imagery/alloc.c - ${GRASS_PREFIX}/lib/imagery/ask_group.c - ${GRASS_PREFIX}/lib/imagery/c_assign.c - ${GRASS_PREFIX}/lib/imagery/c_begin.c - ${GRASS_PREFIX}/lib/imagery/c_clear.c - ${GRASS_PREFIX}/lib/imagery/c_distinct.c - ${GRASS_PREFIX}/lib/imagery/c_exec.c - ${GRASS_PREFIX}/lib/imagery/c_execmem.c - ${GRASS_PREFIX}/lib/imagery/c_means.c - ${GRASS_PREFIX}/lib/imagery/c_merge.c - ${GRASS_PREFIX}/lib/imagery/c_nclasses.c - ${GRASS_PREFIX}/lib/imagery/c_point.c - ${GRASS_PREFIX}/lib/imagery/c_reassign.c - ${GRASS_PREFIX}/lib/imagery/c_reclass.c - ${GRASS_PREFIX}/lib/imagery/c_sep.c - ${GRASS_PREFIX}/lib/imagery/c_sig.c - ${GRASS_PREFIX}/lib/imagery/c_sum2.c - ${GRASS_PREFIX}/lib/imagery/eol.c - ${GRASS_PREFIX}/lib/imagery/find.c - ${GRASS_PREFIX}/lib/imagery/fopen.c - ${GRASS_PREFIX}/lib/imagery/georef.c - ${GRASS_PREFIX}/lib/imagery/group.c - ${GRASS_PREFIX}/lib/imagery/list_gp.c - ${GRASS_PREFIX}/lib/imagery/list_subgp.c - ${GRASS_PREFIX}/lib/imagery/loc_info.c - ${GRASS_PREFIX}/lib/imagery/ls_groups.c - ${GRASS_PREFIX}/lib/imagery/points.c - ${GRASS_PREFIX}/lib/imagery/ref.c - ${GRASS_PREFIX}/lib/imagery/sig.c - ${GRASS_PREFIX}/lib/imagery/sigfile.c - ${GRASS_PREFIX}/lib/imagery/sigset.c - ${GRASS_PREFIX}/lib/imagery/sigsetfile.c - ${GRASS_PREFIX}/lib/imagery/target.c - ${GRASS_PREFIX}/lib/imagery/title.c - ${GRASS_PREFIX}/lib/imagery/var.c -) -SET_TARGET_PROPERTIES(grass_I PROPERTIES LINK_FLAGS "/def:${CMAKE_CURRENT_SOURCE_DIR}/grass_I.def") -TARGET_LINK_LIBRARIES(grass_I grass_gis) - -INSTALL(TARGETS - grass_gis - grass_vect - grass_dig2 - grass_rtree - grass_dgl - grass_gproj - grass_dbmibase - grass_linkm - grass_dbmiclient - grass_I - RUNTIME DESTINATION ${QGIS_BIN_DIR} - ARCHIVE DESTINATION lib) diff --git a/src/providers/grass/vc/XDR-copyright.txt b/src/providers/grass/vc/XDR-copyright.txt deleted file mode 100755 index e0878e60656f..000000000000 --- a/src/providers/grass/vc/XDR-copyright.txt +++ /dev/null @@ -1,26 +0,0 @@ - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 diff --git a/src/providers/grass/vc/dirent.h b/src/providers/grass/vc/dirent.h deleted file mode 100755 index d6fa90b24cfc..000000000000 --- a/src/providers/grass/vc/dirent.h +++ /dev/null @@ -1,275 +0,0 @@ -/* - * dirent.h - dirent API for Microsoft Visual Studio - * - * Copyright (C) 2006 Toni Ronkko - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * ``Software''), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - * IN NO EVENT SHALL TONI RONKKO BE LIABLE FOR ANY CLAIM, DAMAGES OR - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - * - * - * Mar 4, 2007, Toni Ronkko - * Bug fix: due to the strncpy_s() function this file only compiled in - * Visual Studio 2005. Using the new string functions only when the - * compiler version allows. - * - * Nov 2, 2006, Toni Ronkko - * Major update: removed support for Watcom C, MS-DOS and Turbo C to - * simplify the file, updated the code to compile cleanly on Visual - * Studio 2005 with both unicode and multi-byte character strings, - * removed rewinddir() as it had a bug. - * - * Aug 20, 2006, Toni Ronkko - * Removed all remarks about MSVC 1.0, which is antiqued now. Simplified - * comments by removing SGML tags. - * - * May 14 2002, Toni Ronkko - * Embedded the function definitions directly to the header so that no - * source modules need to be included in the Visual Studio project. Removed - * all the dependencies to other projects so that this very header can be - * used independently. - * - * May 28 1998, Toni Ronkko - * First version. - */ -#ifndef DIRENT_H -#define DIRENT_H - -#include -#include -#include -#include - - -typedef struct dirent { - /* name of current directory entry (a multi-byte character string) */ - char d_name[MAX_PATH + 1]; - - /* file attributes */ - WIN32_FIND_DATA data; -} dirent; - - -typedef struct DIR { - /* current directory entry */ - dirent current; - - /* is there an un-processed entry in current? */ - int cached; - - /* file search handle */ - HANDLE search_handle; - - /* search pattern (3 = zero terminator + pattern "\\*") */ - TCHAR patt[MAX_PATH + 3]; -} DIR; - - -static DIR *opendir (const char *dirname); -static struct dirent *readdir (DIR *dirp); -static int closedir (DIR *dirp); -static void rewinddir (DIR *dirp); - - -/* use the new safe string functions introduced in Visual Studio 2005 */ -#if defined(_MSC_VER) && _MSC_VER >= 1400 -# define STRNCPY(dest,src,size) strncpy_s((dest),(size),(src),_TRUNCATE) -#else -# define STRNCPY(dest,src,size) strncpy((dest),(src),(size)) -#endif - - -/* - * Open directory stream DIRNAME for read and return a pointer to the - * internal working area that is used to retrieve individual directory - * entries. - */ -static DIR* -opendir( - const char *dirname) -{ - DIR *dirp; - assert (dirname != NULL); - assert (strlen (dirname) < MAX_PATH); - - /* construct new DIR structure */ - dirp = (DIR*) malloc (sizeof (struct DIR)); - if (dirp != NULL) { - TCHAR *p; - - /* prepare search pattern */ -#ifdef _UNICODE - - /* convert directory name to wide character string */ - MultiByteToWideChar( - CP_ACP, /* code page */ - 0, /* conversion flags */ - dirname, /* mb-string to convert */ - -1, /* length of mb-string */ - dirp->patt, /* wc-string to produce */ - MAX_PATH); /* max length of wc-string */ - dirp->patt[MAX_PATH] = '\0'; - - /* append search pattern to directory name */ - p = wcschr (dirp->patt, '\0'); - if (dirp->patt < p && *(p-1) != '\\' && *(p-1) != ':') { - *p++ = '\\'; - } - *p++ = '*'; - *p = '\0'; - -#else /* !_UNICODE */ - - /* take directory name... */ - STRNCPY (dirp->patt, dirname, sizeof(dirp->patt)); - dirp->patt[MAX_PATH] = '\0'; - - /* ... and append search pattern to it */ - p = strchr (dirp->patt, '\0'); - if (dirp->patt < p && *(p-1) != '\\' && *(p-1) != ':') { - *p++ = '\\'; - } - *p++ = '*'; - *p = '\0'; - -#endif /* !_UNICODE */ - - /* open stream and retrieve first file */ - dirp->search_handle = FindFirstFile (dirp->patt, &dirp->current.data); - if (dirp->search_handle == INVALID_HANDLE_VALUE) { - /* invalid search pattern? */ - free (dirp); - return NULL; - } - - /* there is an un-processed directory entry in memory now */ - dirp->cached = 1; - - } - return dirp; -} - - -/* - * Read a directory entry, and return a pointer to a dirent structure - * containing the name of the entry in d_name field. Individual directory - * entries returned by this very function include regular files, - * sub-directories, pseudo-directories "." and "..", but also volume labels, - * hidden files and system files may be returned. - */ -static struct dirent * -readdir( - DIR *dirp) -{ - assert (dirp != NULL); - - if (dirp->search_handle == INVALID_HANDLE_VALUE) { - /* directory stream was opened/rewound incorrectly or it ended normally */ - return NULL; - } - - /* get next directory entry */ - if (dirp->cached != 0) { - /* a valid directory entry already in memory */ - dirp->cached = 0; - } else { - /* read next directory entry from disk */ - if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) { - /* the very last file has been processed or an error occured */ - FindClose (dirp->search_handle); - dirp->search_handle = INVALID_HANDLE_VALUE; - return NULL; - } - } - - /* copy directory entry to d_name */ -#ifdef _UNICODE - - /* convert entry name to multibyte */ - WideCharToMultiByte( - CP_ACP, /* code page */ - 0, /* conversion flags */ - dirp->current.data.cFileName, /* wc-string to convert */ - -1, /* length of wc-string */ - dirp->current.d_name, /* mb-string to produce */ - MAX_PATH, /* max length of mb-string */ - NULL, /* use sys default character */ - NULL); /* don't care */ - dirp->current.d_name[MAX_PATH] = '\0'; - -#else /* !_UNICODE */ - - /* copy as a multibyte character string */ - STRNCPY (dirp->current.d_name, dirp->current.data.cFileName, sizeof(dirp->current.d_name)); - dirp->current.d_name[MAX_PATH] = '\0'; - -#endif /* !_UNICODE */ - - return &dirp->current; -} - -/* - * Rewind the directory - * - */ -static void -rewinddir( - DIR *dirp) -{ - assert (dirp != NULL); - - /* release search handle */ - if (dirp->search_handle != INVALID_HANDLE_VALUE) { - FindClose (dirp->search_handle); - dirp->search_handle = INVALID_HANDLE_VALUE; - } - - /* open stream and retrieve first file */ - dirp->search_handle = FindFirstFile (dirp->patt, &dirp->current.data); - if (dirp->search_handle == INVALID_HANDLE_VALUE) { - return; - } - - /* there is an un-processed directory entry in memory now */ - dirp->cached = 1; -} - -/* - * Close directory stream opened by opendir() function. Close of the - * directory stream invalidates the DIR structure as well as any previously - * read directory entry. - */ -static int -closedir( - DIR *dirp) -{ - assert (dirp != NULL); - - /* release search handle */ - if (dirp->search_handle != INVALID_HANDLE_VALUE) { - FindClose (dirp->search_handle); - dirp->search_handle = INVALID_HANDLE_VALUE; - } - - /* release directory handle */ - free (dirp); - return 0; -} - - -#endif /*DIRENT_H*/ diff --git a/src/providers/grass/vc/grass_dbmibase.def b/src/providers/grass/vc/grass_dbmibase.def deleted file mode 100755 index 0fac3d902ba2..000000000000 --- a/src/providers/grass/vc/grass_dbmibase.def +++ /dev/null @@ -1,279 +0,0 @@ -LIBRARY grass_dbmibase.dll -EXPORTS -add_login -db_CatValArray_alloc -db_CatValArray_free -db_CatValArray_init -db_CatValArray_realloc -db_Cstring_to_lowercase -db_Cstring_to_uppercase -db__recv -db__recv_char -db__recv_column_default_value -db__recv_column_definition -db__recv_column_value -db__recv_datetime -db__recv_double -db__recv_double_array -db__recv_float -db__recv_float_array -db__recv_handle -db__recv_index -db__recv_index_array -db__recv_int -db__recv_int_array -db__recv_procnum -db__recv_return_code -db__recv_short -db__recv_short_array -db__recv_string -db__recv_string_array -db__recv_table_data -db__recv_table_definition -db__recv_token -db__recv_value -db__send -db__send_Cstring -db__send_char -db__send_column_default_value -db__send_column_definition -db__send_column_value -db__send_datetime -db__send_double -db__send_double_array -db__send_failure -db__send_float -db__send_float_array -db__send_handle -db__send_index -db__send_index_array -db__send_int -db__send_int_array -db__send_procedure_not_implemented -db__send_procedure_ok -db__send_short -db__send_short_array -db__send_string -db__send_string_array -db__send_success -db__send_table_data -db__send_table_definition -db__send_token -db__send_value -db__set_protocol_fds -db__start_procedure_call -db_alloc_cursor_column_flags -db_alloc_cursor_table -db_alloc_dirent_array -db_alloc_handle_array -db_alloc_index_array -db_alloc_index_columns -db_alloc_string_array -db_alloc_table -db_append_string -db_auto_print_errors -db_auto_print_protocol_errors -db_calloc -db_char_to_lowercase -db_char_to_uppercase -db_clear_error -db_convert_Cstring_to_column_default_value -db_convert_Cstring_to_column_value -db_convert_Cstring_to_value -db_convert_Cstring_to_value_datetime -db_convert_column_default_value_to_string -db_convert_column_value_to_string -db_convert_value_datetime_into_string -db_convert_value_to_string -db_copy_dbmscap_entry -db_copy_string -db_copy_value -db_dbmscap_filename -db_debug -db_debug_off -db_debug_on -db_dirent -db_double_quote_string -db_drop_token -db_enlarge_string -db_error -db_find_token -db_free_column -db_free_cursor -db_free_cursor_column_flags -db_free_dbmscap -db_free_dirent_array -db_free_handle -db_free_handle_array -db_free_index -db_free_index_array -db_free_string -db_free_string_array -db_free_table -db_get_column_default_value -db_get_column_description -db_get_column_host_type -db_get_column_length -db_get_column_name -db_get_column_precision -db_get_column_scale -db_get_column_select_priv -db_get_column_sqltype -db_get_column_update_priv -db_get_column_value -db_get_connection -db_get_cursor_number_of_columns -db_get_cursor_table -db_get_cursor_token -db_get_default_database_name -db_get_default_driver_name -db_get_default_group_name -db_get_default_schema_name -db_get_error_code -db_get_error_msg -db_get_error_who -db_get_handle_dbname -db_get_handle_dbschema -db_get_index_column_name -db_get_index_name -db_get_index_number_of_columns -db_get_index_table_name -db_get_login -db_get_string -db_get_table_column -db_get_table_delete_priv -db_get_table_description -db_get_table_insert_priv -db_get_table_name -db_get_table_number_of_columns -db_get_table_select_priv -db_get_table_update_priv -db_get_value_as_double -db_get_value_day -db_get_value_double -db_get_value_hour -db_get_value_int -db_get_value_minute -db_get_value_month -db_get_value_seconds -db_get_value_string -db_get_value_year -db_has_dbms -db_init_column -db_init_cursor -db_init_handle -db_init_index -db_init_string -db_init_table -db_interval_range -db_isdir -db_legal_tablename -db_malloc -db_memory_error -db_new_token -db_nocase_compare -db_noproc_error -db_on_error -db_print_error -db_print_index -db_procedure_not_implemented -db_protocol_error -db_read_dbmscap -db_realloc -db_set_column_description -db_set_column_has_defined_default_value -db_set_column_has_undefined_default_value -db_set_column_host_type -db_set_column_length -db_set_column_name -db_set_column_null_allowed -db_set_column_precision -db_set_column_scale -db_set_column_select_priv_granted -db_set_column_select_priv_not_granted -db_set_column_sqltype -db_set_column_update_priv_granted -db_set_column_update_priv_not_granted -db_set_column_use_default_value -db_set_connection -db_set_cursor_column_flag -db_set_cursor_column_for_update -db_set_cursor_mode -db_set_cursor_mode_insensitive -db_set_cursor_mode_scroll -db_set_cursor_table -db_set_cursor_token -db_set_cursor_type_insert -db_set_cursor_type_readonly -db_set_cursor_type_update -db_set_error_who -db_set_handle -db_set_index_column_name -db_set_index_name -db_set_index_table_name -db_set_index_type_non_unique -db_set_index_type_unique -db_set_login -db_set_string -db_set_string_no_copy -db_set_table_delete_priv_granted -db_set_table_delete_priv_not_granted -db_set_table_description -db_set_table_insert_priv_granted -db_set_table_insert_priv_not_granted -db_set_table_name -db_set_table_select_priv_granted -db_set_table_select_priv_not_granted -db_set_table_update_priv_granted -db_set_table_update_priv_not_granted -db_set_value_datetime_current -db_set_value_datetime_not_current -db_set_value_day -db_set_value_double -db_set_value_hour -db_set_value_int -db_set_value_minute -db_set_value_month -db_set_value_not_null -db_set_value_null -db_set_value_seconds -db_set_value_string -db_set_value_year -db_sizeof_string -db_sqltype_name -db_sqltype_to_Ctype -db_store -db_strip -db_syserror -db_table_to_sql -db_test_column_has_default_value -db_test_column_has_defined_default_value -db_test_column_has_undefined_default_value -db_test_column_null_allowed -db_test_column_use_default_value -db_test_cursor_any_column_flag -db_test_cursor_any_column_for_update -db_test_cursor_column_flag -db_test_cursor_column_for_update -db_test_cursor_mode_insensitive -db_test_cursor_mode_scroll -db_test_cursor_type_fetch -db_test_cursor_type_insert -db_test_cursor_type_update -db_test_index_type_unique -db_test_value_datetime_current -db_test_value_isnull -db_unset_column_has_default_value -db_unset_column_null_allowed -db_unset_column_use_default_value -db_unset_cursor_column_flag -db_unset_cursor_column_for_update -db_unset_cursor_mode -db_unset_cursor_mode_insensitive -db_unset_cursor_mode_scroll -db_whoami -db_zero -db_zero_string -init_login -read_file -write_file diff --git a/src/providers/grass/vc/grass_dbmiclient.def b/src/providers/grass/vc/grass_dbmiclient.def deleted file mode 100755 index 6620b5383122..000000000000 --- a/src/providers/grass/vc/grass_dbmiclient.def +++ /dev/null @@ -1,59 +0,0 @@ -LIBRARY grass_dbmiclient.dll -EXPORTS -db_CatValArray_get_value -db_CatValArray_get_value_double -db_CatValArray_get_value_int -db_CatValArray_sort -db_CatValArray_sort_by_value -db__copy_table -db_add_column -db_begin_transaction -db_bind_update -db_close_cursor -db_close_database -db_close_database_shutdown_driver -db_column_Ctype -db_column_sqltype -db_commit_transaction -db_copy_table -db_copy_table_by_ints -db_copy_table_select -db_copy_table_where -db_create_database -db_create_index -db_create_index2 -db_create_table -db_delete -db_delete_database -db_delete_table -db_describe_table -db_drop_column -db_drop_index -db_drop_table -db_execute_immediate -db_fetch -db_find_database -db_get_column -db_get_num_rows -db_get_table_number_of_rows -db_grant_on_table -db_gversion -db_insert -db_list_databases -db_list_drivers -db_list_indexes -db_list_tables -db_open_database -db_open_insert_cursor -db_open_select_cursor -db_open_update_cursor -db_print_column_definition -db_print_table_definition -db_select_CatValArray -db_select_int -db_select_value -db_shutdown_driver -db_start_driver -db_start_driver_open_database -db_table_exists -db_update diff --git a/src/providers/grass/vc/grass_dgl.def b/src/providers/grass/vc/grass_dgl.def deleted file mode 100755 index fee0ac1ffc16..000000000000 --- a/src/providers/grass/vc/grass_dgl.def +++ /dev/null @@ -1,247 +0,0 @@ -LIBRARY grass_dgl.dll -EXPORTS -DGL_GET_NODE_INEDGESET_FUNC -avl_allocator_default -avl_assert_delete -avl_assert_insert -avl_copy -avl_create -avl_delete -avl_destroy -avl_find -avl_free -avl_insert -avl_malloc -avl_probe -avl_replace -avl_t_copy -avl_t_cur -avl_t_find -avl_t_first -avl_t_init -avl_t_insert -avl_t_last -avl_t_next -avl_t_prev -avl_t_replace -dglAddEdge -dglAddEdgeX -dglAddNode -dglDelEdge -dglDelNode -dglDepthComponents -dglDepthSpanning -dglEdgeGet_Attr -dglEdgeGet_Cost -dglEdgeGet_Head -dglEdgeGet_Id -dglEdgeGet_Tail -dglEdgeSet_Attr -dglEdge_T_First -dglEdge_T_Initialize -dglEdge_T_Next -dglEdge_T_Release -dglEdgesetGet_EdgeCount -dglEdgeset_T_First -dglEdgeset_T_Initialize -dglEdgeset_T_Next -dglEdgeset_T_Release -dglErrno -dglFlatten -dglFreeSPReport -dglGetEdge -dglGetNode -dglGet_AloneNodeCount -dglGet_Cost -dglGet_EdgeAttrSize -dglGet_EdgeCount -dglGet_EdgePrioritizer -dglGet_EdgeSize -dglGet_Endianess -dglGet_Family -dglGet_HeadNodeCount -dglGet_NodeAttrSize -dglGet_NodeCount -dglGet_NodePrioritizer -dglGet_NodeSize -dglGet_Opaque -dglGet_Options -dglGet_State -dglGet_TailNodeCount -dglGet_Version -dglHeapExtractMax -dglHeapExtractMin -dglHeapFree -dglHeapInit -dglHeapInsertMax -dglHeapInsertMin -dglIOContextInitialize -dglIOContextRelease -dglInitialize -dglInitializeSPCache -dglMinimumSpanning -dglNodeGet_Attr -dglNodeGet_Id -dglNodeGet_InDegree -dglNodeGet_InEdgeset -dglNodeGet_OutDegree -dglNodeGet_OutEdgeset -dglNodeGet_Status -dglNodeGet_Valence -dglNodeSet_Attr -dglNode_T_Find -dglNode_T_First -dglNode_T_Initialize -dglNode_T_Next -dglNode_T_Release -dglRead -dglReadChunk -dglRelease -dglReleaseSPCache -dglResetStats -dglSet_Cost -dglSet_Family -dglSet_Opaque -dglSet_Options -dglSet_Version -dglShortestDistance -dglShortestPath -dglStrerror -dglTreeEdgeAdd -dglTreeEdgeAlloc -dglTreeEdgeCancel -dglTreeEdgeCompare -dglTreeEdgePri32Add -dglTreeEdgePri32Alloc -dglTreeEdgePri32Cancel -dglTreeEdgePri32Compare -dglTreeGetAllocator -dglTreeNode2Add -dglTreeNode2Alloc -dglTreeNode2Cancel -dglTreeNode2Compare -dglTreeNodeAdd -dglTreeNodeAlloc -dglTreeNodeCancel -dglTreeNodeCompare -dglTreeNodePri32Add -dglTreeNodePri32Alloc -dglTreeNodePri32Cancel -dglTreeNodePri32Compare -dglTreePredistAdd -dglTreePredistAlloc -dglTreePredistCancel -dglTreePredistCompare -dglTreeTouchI32Add -dglTreeTouchI32Alloc -dglTreeTouchI32Cancel -dglTreeTouchI32Compare -dglUnflatten -dglWrite -dglWriteChunk -dgl_add_edge_V1 -dgl_add_edge_V2 -dgl_add_node_V1 -dgl_add_node_V2 -dgl_del_edge_V1 -dgl_del_edge_V2 -dgl_del_node_V1 -dgl_del_node_V2 -dgl_del_node_inedge_V2 -dgl_del_node_outedge_V2 -dgl_depthfirst_spanning_V1 -dgl_depthfirst_spanning_V2 -dgl_dijkstra_V1 -dgl_dijkstra_V1_FLAT -dgl_dijkstra_V1_TREE -dgl_dijkstra_V2 -dgl_dijkstra_V2_FLAT -dgl_dijkstra_V2_TREE -dgl_edge_prioritizer_add -dgl_edge_prioritizer_del -dgl_edge_t_first_V1 -dgl_edge_t_first_V2 -dgl_edge_t_initialize_V1 -dgl_edge_t_initialize_V2 -dgl_edge_t_next_V1 -dgl_edge_t_next_V2 -dgl_edge_t_release_V1 -dgl_edge_t_release_V2 -dgl_edgeset_t_first_V1 -dgl_edgeset_t_first_V2 -dgl_edgeset_t_initialize_V1 -dgl_edgeset_t_initialize_V2 -dgl_edgeset_t_next_V1 -dgl_edgeset_t_next_V2 -dgl_edgeset_t_release_V1 -dgl_edgeset_t_release_V2 -dgl_flatten_V1 -dgl_flatten_V2 -dgl_get_edge_V1 -dgl_get_edge_V2 -dgl_get_node_V1 -dgl_get_node_V2 -dgl_getnode_inedgeset_V2 -dgl_getnode_outedgeset_V1 -dgl_getnode_outedgeset_V2 -dgl_initialize_V1 -dgl_initialize_V2 -dgl_mempop -dgl_mempush -dgl_minimum_spanning_V1 -dgl_minimum_spanning_V2 -dgl_node_t_find_V1 -dgl_node_t_find_V2 -dgl_node_t_first_V1 -dgl_node_t_first_V2 -dgl_node_t_initialize_V1 -dgl_node_t_initialize_V2 -dgl_node_t_next_V1 -dgl_node_t_next_V2 -dgl_node_t_release_V1 -dgl_node_t_release_V2 -dgl_read_V1 -dgl_read_V2 -dgl_release_V1 -dgl_release_V2 -dgl_sp_cache_initialize_V1 -dgl_sp_cache_initialize_V2 -dgl_sp_cache_release_V1 -dgl_sp_cache_release_V2 -dgl_span_depthfirst_spanning_V1_FLAT -dgl_span_depthfirst_spanning_V1_TREE -dgl_span_depthfirst_spanning_V2_FLAT -dgl_span_depthfirst_spanning_V2_TREE -dgl_span_minimum_spanning_V1_FLAT -dgl_span_minimum_spanning_V1_TREE -dgl_span_minimum_spanning_V2_FLAT -dgl_span_minimum_spanning_V2_TREE -dgl_swapInt32Bytes -dgl_swapInt64Bytes -dgl_unflatten_V1 -dgl_unflatten_V2 -dgl_write_V1 -dgl_write_V2 -tavl_allocator_default -tavl_assert_delete -tavl_assert_insert -tavl_copy -tavl_create -tavl_delete -tavl_destroy -tavl_find -tavl_free -tavl_insert -tavl_malloc -tavl_probe -tavl_replace -tavl_t_copy -tavl_t_cur -tavl_t_find -tavl_t_first -tavl_t_init -tavl_t_insert -tavl_t_last -tavl_t_next -tavl_t_prev -tavl_t_replace diff --git a/src/providers/grass/vc/grass_dig2.def b/src/providers/grass/vc/grass_dig2.def deleted file mode 100755 index f240952382a4..000000000000 --- a/src/providers/grass/vc/grass_dig2.def +++ /dev/null @@ -1,177 +0,0 @@ -LIBRARY grass_dig2.dll -EXPORTS -Cur_Head -dbl_cnvrt -dbl_order -dig_Rd_P_area -dig_Rd_P_isle -dig_Rd_P_line -dig_Rd_P_node -dig_Rd_Plus_head -dig_Rd_spindx_head -dig_Wr_P_area -dig_Wr_P_isle -dig_Wr_P_line -dig_Wr_P_node -dig_Wr_Plus_head -dig_Wr_spindx_head -dig__alloc_space -dig__byte_order_out -dig__falloc -dig__fread_port_C -dig__fread_port_D -dig__fread_port_F -dig__fread_port_I -dig__fread_port_L -dig__fread_port_P -dig__fread_port_S -dig__frealloc -dig__fwrite_port_C -dig__fwrite_port_D -dig__fwrite_port_F -dig__fwrite_port_I -dig__fwrite_port_L -dig__fwrite_port_P -dig__fwrite_port_S -dig__read_head -dig__write_head -dig_add_area -dig_add_isle -dig_add_line -dig_add_node -dig_alloc_area -dig_alloc_areas -dig_alloc_cats -dig_alloc_isle -dig_alloc_isles -dig_alloc_line -dig_alloc_lines -dig_alloc_node -dig_alloc_nodes -dig_alloc_points -dig_alloc_space -dig_angle_next_line -dig_area_add_isle -dig_area_alloc_isle -dig_area_alloc_line -dig_area_del_isle -dig_area_set_box -dig_box_copy -dig_box_extend -dig_build_area_with_line -dig_calc_begin_angle -dig_calc_end_angle -dig_cidx_add_cat -dig_cidx_add_cat_sorted -dig_cidx_del_cat -dig_cidx_free -dig_cidx_init -dig_cidx_sort -dig_del_area -dig_del_isle -dig_del_line -dig_distance2_point_to_line -dig_dump_spidx -dig_falloc -dig_fflush -dig_file_free -dig_file_init -dig_file_load -dig_find_area_poly -dig_find_intersection -dig_find_node -dig_fread -dig_frealloc -dig_free_plus -dig_free_plus_areas -dig_free_plus_isles -dig_free_plus_lines -dig_free_plus_nodes -dig_fseek -dig_ftell -dig_fwrite -dig_get_poly_points -dig_in_area_bbox -dig_init_list -dig_init_plus -dig_init_portable -dig_is_line_degenerate -dig_isle_alloc_line -dig_isle_set_box -dig_line_add_updated -dig_line_box -dig_line_degenerate -dig_line_get_area -dig_line_get_box -dig_line_reset_updated -dig_line_set_area -dig_line_set_box -dig_list_add -dig_load_plus -dig_node_add_line -dig_node_add_updated -dig_node_alloc_line -dig_node_angle_check -dig_node_line_angle -dig_node_reset_updated -dig_out_of_memory -dig_prune -dig_read_cidx -dig_read_cidx_head -dig_read_frmt_ascii -dig_read_spidx -dig_rewind -dig_select_areas -dig_select_isles -dig_select_lines -dig_select_nodes -dig_set_cur_port -dig_set_distance_to_line_tolerance -dig_spidx_add_area -dig_spidx_add_isle -dig_spidx_add_line -dig_spidx_add_node -dig_spidx_del_area -dig_spidx_del_isle -dig_spidx_del_line -dig_spidx_del_node -dig_spidx_free -dig_spidx_free_areas -dig_spidx_free_isles -dig_spidx_free_lines -dig_spidx_free_nodes -dig_spidx_init -dig_test_for_intersection -dig_type_from_store -dig_type_to_store -dig_which_node -dig_write_areas -dig_write_cidx -dig_write_cidx_head -dig_write_frmt_ascii -dig_write_isles -dig_write_lines -dig_write_nodes -dig_write_plus_file -dig_write_spidx -dig_x_intersect -flt_cnvrt -flt_order -int_cnvrt -int_order -lng_cnvrt -lng_order -nat_dbl -nat_flt -nat_int -nat_lng -nat_shrt -port_init -rtree_dump_branch -rtree_dump_node -rtree_read_branch -rtree_read_node -rtree_write_branch -rtree_write_node -shrt_cnvrt -shrt_order diff --git a/src/providers/grass/vc/grass_gis.def b/src/providers/grass/vc/grass_gis.def deleted file mode 100755 index 434b6e1e5429..000000000000 --- a/src/providers/grass/vc/grass_gis.def +++ /dev/null @@ -1,730 +0,0 @@ -LIBRARY grass_gis.dll -EXPORTS - G_3dview_warning @ 4 - G__ @ 5 DATA - G__allocate_null_bits @ 6 - G__check_for_auto_masking @ 7 - G__check_format @ 8 - G__check_fp_type @ 9 - G__check_gisinit @ 10 - G__check_null_bit @ 11 - G__color_free_fp_lookup @ 12 - G__color_free_lookup @ 13 - G__color_free_rules @ 14 - G__color_reset @ 15 - G__convert_01_flags @ 16 - G__convert_flags_01 @ 17 - G__create_alt_env @ 18 - G__create_alt_search_path @ 19 - G__create_window_mapping @ 20 - G__env_name @ 21 - G__file_name @ 22 - G__file_name_misc @ 23 - G__get_gisrc_file @ 24 - G__get_window @ 25 - G__getenv @ 26 - G__getenv2 @ 27 - G__home @ 28 - G__init_null_bits @ 29 - G__init_null_patterns @ 30 - G__init_window @ 31 - G__insert_color_into_lookup @ 32 - G__interpolate_color_rule @ 33 - G__location_path @ 34 - G__lookup_colors @ 35 -; G(long, short) - G__ls @ 36 - G__machine_name @ 37 - G__make_location @ 38 - G__make_mapset @ 39 - G__make_mapset_element @ 40 - G__make_mapset_element_misc @ 41 - G__mapset @ 42 - G__mapset_name @ 43 - G__mapset_permissions @ 44 - G__mapset_permissions2 @ 45 - G__mask_info @ 46 - G__name_in_mapset @ 47 - G__name_is_fully_qualified @ 48 - G__null_bitstream_size @ 49 - G__open_cell_old @ 50 - G__open_null_write @ 51 - G__organize_colors @ 52 - G__projection_name @ 53 - G__projection_units @ 54 - G__put_null_value_row @ 55 - G__put_window @ 56 - G__quant_export @ 57 - G__quant_get_rule_for_d_raster_val @ 58 - G__quant_import @ 59 - G__quant_organize_fp_lookup @ 60 - G__random_d_initialize_0 @ 61 - G__random_f_initialize_0 @ 62 - G__raster_misc_read_line @ 63 - G__raster_misc_write_line @ 64 - G__read_Cell_head @ 65 - G__read_Cell_head_array @ 66 - G__read_cats @ 67 - G__read_env @ 68 - G__read_row_ptrs @ 69 - G__read_timestamp @ 70 - G__reallocate_mask_buf @ 71 - G__reallocate_null_buf @ 72 - G__reallocate_temp_buf @ 73 - G__reallocate_work_buf @ 74 - G__remove_fp_range @ 75 - G__row_update_range @ 76 - G__set_flags_from_01_random @ 77 - G__set_gisrc_file @ 78 - G__set_null_value @ 79 - G__setenv @ 80 - G__setenv2 @ 81 - G__switch_env @ 82 - G__switch_search_path @ 83 - G__temp_element @ 84 - G__tempfile @ 85 - G__unit_name @ 86 - G__write_Cell_head @ 87 - G__write_Cell_head3 @ 88 - G__write_cats @ 89 - G__write_colors @ 90 - G__write_data @ 91 -; G__write_data_compressed @ 92 - G__write_env @ 93 - G__write_fp_format @ 94 - G__write_null_bits @ 95 - G__write_row_ptrs @ 96 - G__write_timestamp @ 97 - G_add_c_raster_color_rule @ 98 - G_add_color_rule @ 99 - G_add_d_raster_color_rule @ 100 - G_add_f_raster_color_rule @ 101 - G_add_histogram @ 102 - G_add_mapset_to_search_path @ 103 - G_add_modular_c_raster_color_rule @ 104 - G_add_modular_color_rule @ 105 - G_add_modular_d_raster_color_rule @ 106 - G_add_modular_f_raster_color_rule @ 107 - G_add_modular_raster_color_rule @ 108 - G_add_raster_color_rule @ 109 - G_adjust_Cell_head @ 110 - G_adjust_Cell_head3 @ 111 - G_adjust_east_longitude @ 112 - G_adjust_easting @ 113 - G_adjust_window_to_box @ 114 - G_align_window @ 115 - G_allocate_c_raster_buf @ 116 - G_allocate_cell_buf @ 117 - G_allocate_d_raster_buf @ 118 - G_allocate_f_raster_buf @ 119 - G_allocate_null_buf @ 120 - G_allocate_raster_buf @ 121 - G_area_for_zone_on_ellipsoid @ 122 - G_area_for_zone_on_sphere @ 123 - G_area_of_cell_at_row @ 124 - G_area_of_polygon @ 125 - G_ascii_check @ 126 - G_ask_any @ 127 - G_ask_any_ext @ 128 - G_ask_cell_any @ 129 - G_ask_cell_in_mapset @ 130 - G_ask_cell_new @ 131 - G_ask_cell_old @ 132 - G_ask_colors @ 133 - G_ask_datum_name @ 134 - G_ask_ellipse_name @ 135 - G_ask_in_mapset @ 136 - G_ask_in_mapset_ext @ 137 - G_ask_new @ 138 - G_ask_new_ext @ 139 - G_ask_new_file @ 140 - G_ask_old @ 141 - G_ask_old_ext @ 142 - G_ask_old_file @ 143 - G_ask_proj_name @ 144 - G_ask_vector_any @ 145 - G_ask_vector_in_mapset @ 146 - G_ask_vector_new @ 147 - G_ask_vector_old @ 148 - G_asprintf @ 149 - G_available_mapsets @ 150 - G_basename @ 151 - G_begin_cell_area_calculations @ 152 - G_begin_distance_calculations @ 153 - G_begin_ellipsoid_polygon_area @ 154 - G_begin_geodesic_distance @ 155 - G_begin_geodesic_equation @ 156 - G_begin_polygon_area_calculations @ 157 - G_begin_rhumbline_equation @ 158 - G_begin_zone_area_on_ellipsoid @ 159 - G_begin_zone_area_on_sphere @ 160 - G_bresenham_line @ 161 - G_calloc @ 162 - G_cell_stats_histo_eq @ 163 - G_cellvalue_format @ 164 - G_check_input_output_name @ 165 - G_check_overwrite @ 166 - G_chop @ 167 - G_chrcat @ 168 - G_chrcpy @ 169 - G_chrmov @ 170 - G_clear_screen @ 171 - G_clicker @ 172 - G_close_cell @ 173 - G_col_to_easting @ 174 - G_color_name @ 175 - G_color_values @ 176 - G_colors_count @ 177 -; G_command_history @ 178 - G_compare_projections @ 179 - G_construct_default_range @ 180 - G_convert_dirseps_from_host @ 181 - G_convert_dirseps_to_host @ 182 - G_copy @ 183 - G_copy_file @ 184 - G_copy_raster_cats @ 185 - G_create_key_value @ 186 - G_darea0_on_ellipsoid @ 187 - G_darea0_on_sphere @ 188 - G_database_datum_name @ 189 - G_database_ellipse_name @ 190 - G_database_projection_name @ 191 - G_database_unit_name @ 192 - G_database_units_to_meters_factor @ 193 - G_date @ 194 - G_datum_description @ 195 - G_datum_ellipsoid @ 196 - G_datum_name @ 197 - G_debug @ 198 - G_define_flag @ 199 - G_define_module @ 200 - G_define_option @ 201 - G_define_standard_option @ 202 - G_disable_interactive @ 203 - G_distance @ 204 - G_distance2_point_to_line @ 205 - G_distance_between_line_segments @ 206 - G_distance_point_to_line_segment @ 207 - G_done_msg @ 208 - G_dump @ 209 - G_easting_to_col @ 210 - G_ellipsoid_description @ 211 - G_ellipsoid_name @ 212 - G_ellipsoid_polygon_area @ 213 - G_extend_histogram @ 214 - G_fatal_error @ 215 - G_find_cell @ 216 - G_find_cell2 @ 217 - G_find_cell_stat @ 218 - G_find_etc @ 219 - G_find_file @ 220 - G_find_file2 @ 221 - G_find_file2_misc @ 222 - G_find_file_misc @ 223 - G_find_key_value @ 224 - G_find_vector @ 225 - G_find_vector2 @ 226 - G_fopen_append @ 227 - G_fopen_append_misc @ 228 - G_fopen_modify @ 229 - G_fopen_modify_misc @ 230 - G_fopen_new @ 231 - G_fopen_new_misc @ 232 - G_fopen_old @ 233 - G_fopen_old_misc @ 234 - G_fork @ 235 - G_format_easting @ 236 - G_format_northing @ 237 - G_format_resolution @ 238 - G_format_timestamp @ 239 - G_fpreclass_add_rule @ 240 - G_fpreclass_clear @ 241 - G_fpreclass_get_cell_value @ 242 - G_fpreclass_get_ith_rule @ 243 - G_fpreclass_get_limits @ 244 - G_fpreclass_get_neg_infinite_rule @ 245 - G_fpreclass_get_pos_infinite_rule @ 246 - G_fpreclass_init @ 247 - G_fpreclass_nof_rules @ 248 - G_fpreclass_perform_dd @ 249 - G_fpreclass_perform_df @ 250 - G_fpreclass_perform_di @ 251 - G_fpreclass_perform_fd @ 252 - G_fpreclass_perform_ff @ 253 - G_fpreclass_perform_fi @ 254 - G_fpreclass_perform_id @ 255 - G_fpreclass_perform_if @ 256 - G_fpreclass_perform_ii @ 257 - G_fpreclass_reset @ 258 - G_fpreclass_reverse_rule_order @ 259 - G_fpreclass_set_domain @ 260 - G_fpreclass_set_neg_infinite_rule @ 261 - G_fpreclass_set_pos_infinite_rule @ 262 - G_fpreclass_set_range @ 263 - G_fread_key_value @ 264 - G_free @ 265 - G_free_cats @ 266 - G_free_cell_stats @ 267 - G_free_colors @ 268 - G_free_histogram @ 269 - G_free_key_value @ 270 - G_free_list @ 271 - G_free_raster_cats @ 272 - G_free_reclass @ 273 - G_free_tokens @ 274 - G_fully_qualified_name @ 275 - G_fwrite_key_value @ 276 - G_geodesic_distance @ 277 - G_geodesic_distance_lon_to_lon @ 278 - G_geodesic_lat_from_lon @ 279 - G_get_3dview @ 280 - G_get_3dview_defaults @ 281 - G_get_ask_return_msg @ 282 - G_get_c_raster_cat @ 283 - G_get_c_raster_color @ 284 - G_get_c_raster_row @ 285 - G_get_c_raster_row_nomask @ 286 - G_get_cat @ 287 - G_get_cats_title @ 288 - G_get_cell_title @ 289 - G_get_cellhd @ 290 - G_get_color @ 291 - G_get_color_range @ 292 - G_get_d_color_range @ 293 - G_get_d_raster_cat @ 294 - G_get_d_raster_color @ 295 - G_get_d_raster_row @ 296 - G_get_d_raster_row_nomask @ 297 - G_get_datum_by_name @ 298 - G_get_datumparams_from_projinfo @ 299 - G_get_default_color @ 300 - G_get_default_window @ 301 - G_get_dig_title @ 302 - G_get_ellipsoid_by_name @ 303 - G_get_ellipsoid_parameters @ 304 - G_get_f_color_rule @ 305 - G_get_f_raster_cat @ 306 - G_get_f_raster_color @ 307 - G_get_f_raster_row @ 308 - G_get_f_raster_row_nomask @ 309 - G_get_fp_range_min_max @ 310 - G_get_gisrc_mode @ 311 - G_get_histogram_cat @ 312 - G_get_histogram_count @ 313 - G_get_histogram_num @ 314 - G_get_ith_c_raster_cat @ 315 - G_get_ith_d_raster_cat @ 316 - G_get_ith_f_raster_cat @ 317 - G_get_ith_raster_cat @ 318 - G_get_map_row @ 319 - G_get_map_row_nomask @ 320 - G_get_next_marked_c_raster_cat @ 321 - G_get_next_marked_d_raster_cat @ 322 - G_get_next_marked_f_raster_cat @ 323 - G_get_next_marked_raster_cat @ 324 - G_get_null_value_color @ 325 - G_get_null_value_row @ 326 - G_get_projinfo @ 327 - G_get_projunits @ 328 - G_get_range_min_max @ 329 - G_get_raster_cat @ 330 - G_get_raster_cats_title @ 331 - G_get_raster_color @ 332 - G_get_raster_map_type @ 333 - G_get_raster_row @ 334 - G_get_raster_row_colors @ 335 - G_get_raster_row_nomask @ 336 - G_get_raster_sample @ 337 - G_get_raster_value_c @ 338 - G_get_raster_value_d @ 339 - G_get_raster_value_f @ 340 - G_get_reclass @ 341 - G_get_set_window @ 342 - G_get_spheroid_by_name @ 343 - G_get_stats_for_null_value @ 344 - G_get_timestamps @ 345 - G_get_window @ 346 - G_getenv @ 347 - G_getenv2 @ 348 - G_getl @ 349 - G_getl2 @ 350 - G_gets @ 351 - G_gettext @ 352 - G_gisbase @ 353 - G_gisdbase @ 354 - G_gishelp @ 355 - G_gisinit @ 356 - G_histogram_eq @ 357 - G_histogram_eq_colors @ 358 - G_home @ 359 - G_important_message @ 360 - G_incr_void_ptr @ 361 - G_index @ 362 - G_info_format @ 363 - G_init_cats @ 364 - G_init_cell_stats @ 365 - G_init_colors @ 366 - G_init_fp_range @ 367 - G_init_histogram @ 368 - G_init_range @ 369 - G_init_raster_cats @ 370 - G_init_timestamp @ 371 - G_insert_c_null_values @ 372 - G_insert_commas @ 373 - G_insert_d_null_values @ 374 - G_insert_f_null_values @ 375 - G_insert_null_values @ 376 - G_interp_bicubic @ 377 - G_interp_bilinear @ 378 - G_interp_cubic @ 379 - G_interp_linear @ 380 - G_intersect_line_segments @ 381 - G_intr_char @ 382 - G_invert_colors @ 383 - G_is_absolute_path @ 384 - G_is_c_null_value @ 385 - G_is_d_null_value @ 386 - G_is_dirsep @ 387 - G_is_f_null_value @ 388 - G_is_gisbase @ 389 - G_is_little_endian @ 390 - G_is_location @ 391 - G_is_mapset @ 392 - G_is_null_value @ 393 - G_is_reclass @ 394 - G_is_reclassed_to @ 395 - G_lat_format @ 396 - G_lat_format_string @ 397 - G_lat_parts @ 398 - G_lat_scan @ 399 - G_legal_filename @ 400 - G_limit_east @ 401 - G_limit_north @ 402 - G_limit_south @ 403 - G_limit_west @ 404 - G_list @ 405 - G_list_element @ 406 - G_llres_format @ 407 - G_llres_format_string @ 408 - G_llres_scan @ 409 - G_load_colors @ 410 - G_load_fp_colors @ 411 - G_location @ 412 - G_location_path @ 413 - G_log_colors @ 414 - G_lon_format @ 415 - G_lon_format_string @ 416 - G_lon_parts @ 417 - G_lon_scan @ 418 - G_lookup_c_raster_colors @ 419 - G_lookup_colors @ 420 - G_lookup_d_raster_colors @ 421 - G_lookup_f_raster_colors @ 422 - G_lookup_key_value_from_file @ 423 - G_lookup_raster_colors @ 424 - G_ls @ 425 - G_ls_format @ 426 - G_lstat @ 427 - G_make_aspect_colors @ 428 - G_make_aspect_fp_colors @ 429 - G_make_bgyr_colors @ 430 - G_make_bgyr_fp_colors @ 431 - G_make_byg_colors @ 432 - G_make_byg_fp_colors @ 433 - G_make_byr_colors @ 434 - G_make_byr_fp_colors @ 435 - G_make_colors @ 436 - G_make_fp_colors @ 437 - G_make_grey_scale_colors @ 438 - G_make_grey_scale_fp_colors @ 439 - G_make_gyr_colors @ 440 - G_make_gyr_fp_colors @ 441 - G_make_histogram_cs @ 442 - G_make_histogram_eq_colors @ 443 - G_make_histogram_log_colors @ 444 - G_make_location @ 445 - G_make_mapset @ 446 - G_make_rainbow_colors @ 447 - G_make_rainbow_fp_colors @ 448 - G_make_ramp_colors @ 449 - G_make_ramp_fp_colors @ 450 - G_make_random_colors @ 451 - G_make_ryg_colors @ 452 - G_make_ryg_fp_colors @ 453 - G_make_wave_colors @ 454 - G_make_wave_fp_colors @ 455 - G_malloc @ 456 - G_mapset @ 457 - G_mark_c_raster_cats @ 458 - G_mark_colors_as_fp @ 459 - G_mark_d_raster_cats @ 460 - G_mark_f_raster_cats @ 461 - G_mark_raster_cats @ 462 - G_mask_info @ 463 - G_maskfd @ 464 - G_meridional_radius_of_curvature @ 465 - G_message @ 466 - G_mkdir @ 467 - G_myname @ 468 - G_newlines_to_spaces @ 469 - G_next_cell_stat @ 470 - G_no_gisinit @ 471 - G_northing_to_row @ 472 - G_num_standard_color_names @ 473 - G_num_standard_colors @ 474 - G_number_of_cats @ 475 - G_number_of_raster_cats @ 476 - G_number_of_tokens @ 477 - G_open_cell_new @ 478 - G_open_cell_new_random @ 479 - G_open_cell_new_uncompressed @ 480 - G_open_cell_old @ 481 - G_open_fp_cell_new @ 482 - G_open_fp_cell_new_uncompressed @ 483 - G_open_new @ 484 - G_open_new_misc @ 485 - G_open_old @ 486 - G_open_old_misc @ 487 - G_open_raster_new @ 488 - G_open_raster_new_uncompressed @ 489 - G_open_update @ 490 - G_open_update_misc @ 491 - G_parse_color_rule @ 492 - G_parse_color_rule_error @ 493 - G_pclose @ 495 - G_percent @ 496 - G_percent2 @ 497 - G_percent_reset @ 498 - G_planimetric_polygon_area @ 499 - G_plot_area @ 500 - G_plot_fx @ 501 - G_plot_icon @ 502 - G_plot_line @ 503 - G_plot_line2 @ 504 - G_plot_point @ 505 - G_plot_polygon @ 506 - G_plot_where_en @ 507 - G_plot_where_xy @ 508 - G_point_in_region @ 509 - G_point_in_window @ 510 - G_pole_in_polygon @ 511 - G_popen @ 512 - G_program_name @ 513 - G_projection @ 514 - G_put_3dview @ 515 - G_put_c_raster_row @ 516 - G_put_cell_title @ 517 - G_put_cellhd @ 518 - G_put_d_raster_row @ 519 - G_put_f_raster_row @ 520 - G_put_map_row @ 521 - G_put_map_row_random @ 522 - G_put_raster_row @ 523 - G_put_reclass @ 524 - G_put_window @ 525 - G_putenv @ 526 - G_quant_add_rule @ 527 - G_quant_clear @ 528 - G_quant_free @ 529 - G_quant_get_cell_value @ 530 - G_quant_get_ith_rule @ 531 - G_quant_get_limits @ 532 - G_quant_get_neg_infinite_rule @ 533 - G_quant_get_pos_infinite_rule @ 534 - G_quant_init @ 535 - G_quant_is_round @ 536 - G_quant_is_truncate @ 537 - G_quant_nof_rules @ 538 - G_quant_perform_d @ 539 - G_quant_perform_f @ 540 - G_quant_reverse_rule_order @ 541 - G_quant_round @ 542 - G_quant_set_neg_infinite_rule @ 543 - G_quant_set_pos_infinite_rule @ 544 - G_quant_truncate @ 545 - G_quantize_fp_map @ 546 - G_quantize_fp_map_range @ 547 - G_radius_of_conformal_tangent_sphere @ 548 - G_raster_cmp @ 549 - G_raster_cpy @ 550 - G_raster_map_is_fp @ 551 - G_raster_map_type @ 552 - G_raster_map_type2 @ 553 - G_raster_size @ 554 - G_read_cats @ 555 - G_read_color_rule @ 556 - G_read_color_rules @ 557 - G_read_colors @ 558 - G_read_fp_range @ 559 - G_read_grid3_timestamp @ 560 - G_read_histogram @ 561 - G_read_history @ 562 - G_read_key_value_file @ 563 - G_read_quant @ 564 - G_read_range @ 565 - G_read_raster_cats @ 566 - G_read_raster_timestamp @ 567 - G_read_raster_units @ 568 - G_read_raster_vdatum @ 569 - G_read_vector_cats @ 570 - G_read_vector_timestamp @ 571 - G_realloc @ 572 - G_recreate_command @ 573 - G_remove @ 574 - G_remove_colors @ 575 - G_remove_commas @ 576 - G_remove_grid3_timestamp @ 577 - G_remove_histogram @ 578 - G_remove_misc @ 579 - G_remove_raster_timestamp @ 580 - G_remove_vector_timestamp @ 581 - G_rename @ 582 - G_reset_mapsets @ 583 - G_rewind_cell_stats @ 584 - G_rewind_raster_cats @ 585 - G_rhumbline_lat_from_lon @ 586 - G_rindex @ 587 - G_rotate_around_point @ 588 - G_rotate_around_point_int @ 589 - G_round_fp_map @ 590 - G_row_repeat_nomask @ 591 - G_row_to_northing @ 592 - G_row_update_fp_range @ 593 - G_row_update_range @ 594 - G_scan_easting @ 595 - G_scan_northing @ 596 - G_scan_resolution @ 597 - G_scan_timestamp @ 598 - G_set_ask_return_msg @ 599 - G_set_c_null_value @ 600 - G_set_c_raster_cat @ 601 - G_set_cat @ 602 - G_set_cats_fmt @ 603 - G_set_cats_title @ 604 - G_set_cell_format @ 605 - G_set_color @ 606 - G_set_color_range @ 607 - G_set_d_color @ 608 - G_set_d_color_range @ 609 - G_set_d_null_value @ 610 - G_set_d_raster_cat @ 611 - G_set_default_color @ 612 - G_set_distance_to_line_tolerance @ 613 - G_set_error_routine @ 614 - G_set_f_null_value @ 615 - G_set_f_raster_cat @ 616 - G_set_fp_type @ 617 - G_set_geodesic_distance_lat1 @ 618 - G_set_geodesic_distance_lat2 @ 619 - G_set_gisrc_mode @ 620 - G_set_histogram @ 621 - G_set_key_value @ 622 - G_set_list_hit_return @ 623 - G_set_null_value @ 624 - G_set_null_value_color @ 625 - G_set_program_name @ 626 - G_set_quant_rules @ 627 - G_set_raster_cat @ 628 - G_set_raster_cats_fmt @ 629 - G_set_raster_cats_title @ 630 - G_set_raster_value_c @ 631 - G_set_raster_value_d @ 632 - G_set_raster_value_f @ 633 - G_set_timestamp @ 634 - G_set_timestamp_range @ 635 - G_set_verbose @ 636 - G_set_window @ 637 - G_setenv @ 638 - G_setenv2 @ 639 - G_setup_fill @ 640 - G_setup_plot @ 641 - G_shift_colors @ 642 - G_shift_d_colors @ 643 - G_short_history @ 644 - G_shortest_way @ 645 - G_sleep @ 646 - G_sleep_on_error @ 647 - G_snprintf @ 648 - G_sort_cats @ 649 - G_sort_histogram @ 650 - G_sort_histogram_by_count @ 651 - G_spawn @ 652 - G_spawn_ex @ 653 - G_squeeze @ 654 - G_standard_color_name @ 655 - G_standard_color_rgb @ 656 - G_stat @ 657 - G_store @ 658 - G_str_replace @ 659 - G_str_to_color @ 660 - G_str_to_lower @ 661 - G_str_to_sql @ 662 - G_str_to_upper @ 663 - G_strcasecmp @ 664 - G_strcat @ 665 - G_strchg @ 666 - G_strcpy @ 667 - G_strdup @ 668 - G_strip @ 669 - G_strmov @ 670 - G_strncpy @ 671 - G_strstr @ 672 - G_suppress_masking @ 673 - G_suppress_warnings @ 674 - G_system @ 675 - G_tempfile @ 676 - G_tokenize @ 677 - G_tolcase @ 678 - G_toucase @ 679 - G_transverse_radius_of_curvature @ 680 - G_trim_decimal @ 681 - G_truncate_fp_map @ 682 - G_unctrl @ 683 - G_unmark_raster_cats @ 684 - G_unopen_cell @ 685 - G_unset_error_routine @ 686 - G_unsetenv @ 687 - G_unsetenv2 @ 688 - G_unsuppress_masking @ 689 - G_update_cell_stats @ 690 - G_update_fp_range @ 691 - G_update_key_value_file @ 692 - G_update_range @ 693 - G_vasprintf @ 695 - G_verbose @ 696 - G_verbose_max @ 697 - G_verbose_message @ 698 - G_verbose_min @ 699 - G_verbose_std @ 700 - G_vspawn_ex @ 701 - G_want_histogram @ 702 - G_warning @ 703 - G_whoami @ 704 - G_window_cols @ 705 - G_window_overlap @ 706 - G_window_percentage_overlap @ 707 - G_window_rows @ 708 - G_write_cats @ 709 - G_write_colors @ 710 - G_write_fp_range @ 711 - G_write_grid3_timestamp @ 712 - G_write_histogram @ 713 - G_write_histogram_cs @ 714 - G_write_history @ 715 - G_write_key_value_file @ 716 - G_write_quant @ 717 - G_write_range @ 718 - G_write_raster_cats @ 719 - G_write_raster_timestamp @ 720 - G_write_raster_units @ 721 - G_write_raster_vdatum @ 722 - G_write_vector_cats @ 723 - G_write_vector_timestamp @ 724 - G_write_zeros @ 725 - G_yes @ 726 - G_zero @ 727 - G_zero_cell_buf @ 728 - G_zero_histogram @ 729 - G_zero_raster_buf @ 730 - G_zeros_r_nulls @ 731 - G_zone @ 737 diff --git a/src/providers/grass/vc/grass_gproj.def b/src/providers/grass/vc/grass_gproj.def deleted file mode 100755 index b16376cdf6f5..000000000000 --- a/src/providers/grass/vc/grass_gproj.def +++ /dev/null @@ -1,29 +0,0 @@ -LIBRARY grass_gproj.dll -EXPORTS -GPJ__get_datum_params -GPJ__get_ellipsoid_params -GPJ_ask_datum_params -GPJ_free_datum -GPJ_free_ellps -GPJ_get_datum_by_name -GPJ_get_datum_params -GPJ_get_datum_transform_by_name -GPJ_get_default_datum_params_by_name -GPJ_get_ellipsoid_by_name -GPJ_get_ellipsoid_params -GPJ_get_equivalent_latlong -GPJ_grass_to_osr -GPJ_grass_to_wkt -GPJ_osr_to_grass -GPJ_set_csv_loc -GPJ_wkt_to_grass -free_datum_list -free_ellps_list -pj_do_proj -pj_do_transform -pj_get_kv -pj_get_string -pj_print_proj_params -read_datum_table -read_ellipsoid_table -set_proj_lib diff --git a/src/providers/grass/vc/grass_linkm.def b/src/providers/grass/vc/grass_linkm.def deleted file mode 100755 index ceff72773bc9..000000000000 --- a/src/providers/grass/vc/grass_linkm.def +++ /dev/null @@ -1,11 +0,0 @@ -LIBRARY grass_linkm.dll -EXPORTS -link__get_next -link__set_next -link_cleanup -link_dispose -link_exit_on_error -link_init -link_new -link_out_of_memory -link_set_chunk_size diff --git a/src/providers/grass/vc/grass_rtree.def b/src/providers/grass/vc/grass_rtree.def deleted file mode 100755 index 88a28d160d41..000000000000 --- a/src/providers/grass/vc/grass_rtree.def +++ /dev/null @@ -1,38 +0,0 @@ -LIBRARY grass_rtree.dll -EXPORTS - BranchBuf - BranchCount - CoverSplit - CoverSplitArea - LEAFCARD - NODECARD - Partitions - RTreeAddBranch - RTreeCombineRect - RTreeContained - RTreeDeleteRect - RTreeDestroyNode - RTreeDisconnectBranch - RTreeFreeNode - RTreeGetLeafMax - RTreeGetNodeMax - RTreeInitNode - RTreeInitRect - RTreeInsertRect - RTreeNewIndex - RTreeNewNode - RTreeNodeCover - RTreeNullRect - RTreeOverlap - RTreePickBranch - RTreePrintNode - RTreePrintRect - RTreeRectSphericalVolume - RTreeRectSurfaceArea - RTreeRectVolume - RTreeSearch - RTreeSetLeafMax - RTreeSetNodeMax - RTreeSplitNode - RTreeTabIn - UnitSphereVolumes diff --git a/src/providers/grass/vc/grass_vect.def b/src/providers/grass/vc/grass_vect.def deleted file mode 100755 index 13dca152fb16..000000000000 --- a/src/providers/grass/vc/grass_vect.def +++ /dev/null @@ -1,311 +0,0 @@ -LIBRARY grass_vect.dll -EXPORTS -Msgout -V1__rewrite_line_nat -V1_close_nat -V1_close_ogr -V1_delete_line_nat -V1_open_new_nat -V1_open_old_nat -V1_open_old_ogr -V1_read_line_nat -V1_read_next_line_nat -V1_read_next_line_ogr -V1_rewind_nat -V1_rewind_ogr -V1_rewrite_line_nat -V1_write_line_nat -V2_close_ogr -V2_delete_line_nat -V2_open_old_ogr -V2_read_line_nat -V2_read_line_ogr -V2_read_next_line_nat -V2_read_next_line_ogr -V2_rewind_nat -V2_rewind_ogr -V2_rewrite_line_nat -V2_write_line_nat -V__map_overlap -Vect__Read_line_nat -Vect__init_head -Vect__intersect_line_with_poly -Vect__new_cats_struct -Vect__new_line_struct -Vect__open_old -Vect__read_head -Vect__write_head -Vect_add_dblink -Vect_append_point -Vect_append_points -Vect_area_alive -Vect_area_perimeter -Vect_array_to_cat_list -Vect_attach_centroids -Vect_attach_isle -Vect_attach_isles -Vect_box_clip -Vect_box_copy -Vect_box_extend -Vect_box_overlap -Vect_break_lines -Vect_break_polygons -Vect_build -Vect_build_line_area -Vect_build_nat -Vect_build_ogr -Vect_build_partial -Vect_build_sidx_from_topo -Vect_build_spatial_index -Vect_cat_del -Vect_cat_get -Vect_cat_in_array -Vect_cat_in_cat_list -Vect_cat_set -Vect_check_dblink -Vect_check_input_output_name -Vect_chtype_bridges -Vect_chtype_dangles -Vect_cidx_dump -Vect_cidx_find_all -Vect_cidx_find_next -Vect_cidx_get_cat_by_index -Vect_cidx_get_field_index -Vect_cidx_get_field_number -Vect_cidx_get_num_cats_by_index -Vect_cidx_get_num_fields -Vect_cidx_get_num_types_by_index -Vect_cidx_get_num_unique_cats_by_index -Vect_cidx_get_type_count -Vect_cidx_get_type_count_by_index -Vect_cidx_open -Vect_cidx_save -Vect_clean_small_angles_at_nodes -Vect_close -Vect_coor_info -Vect_copy -Vect_copy_head_data -Vect_copy_map_lines -Vect_copy_pnts_to_xyz -Vect_copy_table -Vect_copy_table_by_cats -Vect_copy_tables -Vect_copy_xyz_to_pnts -Vect_default_field_info -Vect_delete -Vect_delete_line -Vect_destroy_cat_list -Vect_destroy_cats_struct -Vect_destroy_line_struct -Vect_destroy_list -Vect_field_cat_del -Vect_find_area -Vect_find_island -Vect_find_line -Vect_find_line_list -Vect_find_node -Vect_find_poly_centroid -Vect_get_area_area -Vect_get_area_boundaries -Vect_get_area_box -Vect_get_area_cat -Vect_get_area_cats -Vect_get_area_centroid -Vect_get_area_isle -Vect_get_area_num_isles -Vect_get_area_points -Vect_get_built -Vect_get_centroid_area -Vect_get_column_names -Vect_get_column_names_types -Vect_get_column_types -Vect_get_comment -Vect_get_constraint_box -Vect_get_date -Vect_get_dblink -Vect_get_fatal_error -Vect_get_field -Vect_get_full_name -Vect_get_isle_area -Vect_get_isle_boundaries -Vect_get_isle_box -Vect_get_isle_points -Vect_get_line_areas -Vect_get_line_box -Vect_get_line_cat -Vect_get_line_nodes -Vect_get_map_box -Vect_get_map_date -Vect_get_map_name -Vect_get_mapset -Vect_get_name -Vect_get_node_coor -Vect_get_node_line -Vect_get_node_line_angle -Vect_get_node_n_lines -Vect_get_num_areas -Vect_get_num_dblinks -Vect_get_num_faces -Vect_get_num_islands -Vect_get_num_lines -Vect_get_num_nodes -Vect_get_num_primitives -Vect_get_num_updated_lines -Vect_get_num_updated_nodes -Vect_get_organization -Vect_get_person -Vect_get_point_in_area -Vect_get_point_in_poly -Vect_get_point_in_poly_isl -Vect_get_proj -Vect_get_proj_name -Vect_get_scale -Vect_get_thresh -Vect_get_updated_line -Vect_get_updated_node -Vect_get_zone -Vect_graph_add_edge -Vect_graph_build -Vect_graph_init -Vect_graph_set_node_costs -Vect_graph_shortest_path -Vect_hist_command -Vect_hist_copy -Vect_hist_read -Vect_hist_rewind -Vect_hist_write -Vect_is_3d -Vect_isle_alive -Vect_isle_find_area -Vect_legal_filename -Vect_level -Vect_line_alive -Vect_line_box -Vect_line_buffer -Vect_line_check_intersection -Vect_line_delete_point -Vect_line_distance -Vect_line_geodesic_length -Vect_line_insert_point -Vect_line_intersection -Vect_line_length -Vect_line_parallel -Vect_line_prune -Vect_line_prune_thresh -Vect_line_reverse -Vect_line_segment -Vect_list_append -Vect_list_append_list -Vect_list_delete -Vect_list_delete_list -Vect_map_add_dblink -Vect_map_check_dblink -Vect_map_del_dblink -Vect_maptype_info -Vect_net_build_graph -Vect_net_get_line_cost -Vect_net_get_node_cost -Vect_net_nearest_nodes -Vect_net_shortest_path -Vect_net_shortest_path_coor -Vect_new_cat_list -Vect_new_cats_struct -Vect_new_dblinks_struct -Vect_new_line_struct -Vect_new_list -Vect_new_varray -Vect_node_alive -Vect_open_new -Vect_open_old -Vect_open_old_head -Vect_open_spatial_index -Vect_open_topo -Vect_open_update -Vect_open_update_head -Vect_option_to_types -Vect_overlay -Vect_overlay_and -Vect_overlay_str_to_operator -Vect_point_in_area -Vect_point_in_area_outer_ring -Vect_point_in_box -Vect_point_in_island -Vect_point_in_poly -Vect_point_on_line -Vect_points_distance -Vect_print_header -Vect_read_dblinks -Vect_read_header -Vect_read_line -Vect_read_next_line -Vect_region_box -Vect_remove_bridges -Vect_remove_constraints -Vect_remove_dangles -Vect_remove_duplicates -Vect_remove_small_areas -Vect_rename -Vect_reset_cats -Vect_reset_dblinks -Vect_reset_line -Vect_reset_list -Vect_rewind -Vect_rewrite_line -Vect_save_spatial_index -Vect_save_topo -Vect_segment_intersection -Vect_select_areas_by_box -Vect_select_areas_by_polygon -Vect_select_isles_by_box -Vect_select_lines_by_box -Vect_select_lines_by_polygon -Vect_select_nodes_by_box -Vect_set_category_index_update -Vect_set_comment -Vect_set_constraint_region -Vect_set_constraint_type -Vect_set_date -Vect_set_db_updated -Vect_set_fatal_error -Vect_set_map_date -Vect_set_map_name -Vect_set_open_level -Vect_set_organization -Vect_set_person -Vect_set_release_support -Vect_set_scale -Vect_set_thresh -Vect_set_varray_from_cat_list -Vect_set_varray_from_cat_string -Vect_set_varray_from_db -Vect_set_zone -Vect_snap_lines -Vect_snap_lines_list -Vect_spatial_index_add_item -Vect_spatial_index_del_item -Vect_spatial_index_destroy -Vect_spatial_index_dump -Vect_spatial_index_init -Vect_spatial_index_select -Vect_str_to_cat_list -Vect_subst_var -Vect_tin_get_z -Vect_topo_dump -Vect_val_in_list -Vect_write_dblinks -Vect_write_header -Vect_write_line -add_area_cats_to_cidx -add_item -check_coor -clean_parallel -delete_area_cats_from_cidx -fatal_error -find_cross -parallel_line -point_in_buf -prnmsg -remove_bridges -remove_dangles -segments_x_ray -srch diff --git a/src/providers/grass/vc/rpc.h b/src/providers/grass/vc/rpc.h deleted file mode 100755 index 1d522c0bddf1..000000000000 --- a/src/providers/grass/vc/rpc.h +++ /dev/null @@ -1,119 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)rpc.h 2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ - -/* - * rpc.h, Just includes the billions of rpc header files necessary to - * do remote procedure calling. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ -#ifndef __RPC_HEADER__ -#define __RPC_HEADER__ - -#ifdef WIN32 -#define FD_SETSIZE 128 - -#include -#include -#include /* some typedefs */ -#include - -#define WSAerrno (WSAGetLastError()) -#define gettimeofday(tv,tz) ((tv)->tv_sec = time(0), (tv)->tv_usec = 0) - -#ifdef __cplusplus -extern "C" { -#define DOTS ... -#else -#define DOTS -#endif - -extern int rpc_nt_init(void); -extern int rpc_nt_exit(void); -extern void nt_rpc_report(DOTS); - -#include -extern int xdr_opaque_auth(DOTS); - -#ifdef __cplusplus -}; -#endif - -#else -#include /* some typedefs */ -#include -#endif - -/* external data representation interfaces */ -#include /* generic (de)serializer */ - -/* Client side only authentication */ -#include /* generic authenticator (client side) */ - -/* Client side (mostly) remote procedure call */ -#include /* generic rpc stuff */ - -/* semi-private protocol headers */ -#include /* protocol for rpc messages */ -#ifdef WIN32 -#include /* protocol for unix style cred */ -#else -#include /* protocol for unix style cred */ -#endif -/* - * Uncomment-out the next line if you are building the rpc library with - * DES Authentication (see the README file in the secure_rpc/ directory). - */ -/*#include /* protocol for des style cred */ - -/* Server side only remote procedure callee */ -#include /* service manager and multiplexer */ -#include /* service side authenticator */ - -/* - * COMMENT OUT THE NEXT INCLUDE IF RUNNING ON SUN OS OR ON A VERSION - * OF UNIX BASED ON NFSSRC. These systems will already have the structures - * defined by included in . - */ -/* routines for parsing /etc/rpc */ -#include /* structures and routines to parse /etc/rpc */ - -#endif /* ndef __RPC_HEADER__ */ diff --git a/src/providers/grass/vc/rpc/auth.h b/src/providers/grass/vc/rpc/auth.h deleted file mode 100755 index 64e9c78ca563..000000000000 --- a/src/providers/grass/vc/rpc/auth.h +++ /dev/null @@ -1,212 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)auth.h 2.3 88/08/07 4.0 RPCSRC; from 1.17 88/02/08 SMI */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ - -/* - * auth.h, Authentication interface. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - * - * The data structures are completely opaque to the client. The client - * is required to pass a AUTH * to routines that create rpc - * "sessions". - */ - -#ifndef __AUTH_HEADER__ -#define __AUTH_HEADER__ - -#ifdef __cplusplus -extern "C" { -#define DOTS ... -#else -#define DOTS -#endif - -#define MAX_AUTH_BYTES 400 -#define MAXNETNAMELEN 255 /* maximum length of network user's name */ - -/* - * Status returned from authentication check - */ -enum auth_stat { - AUTH_OK=0, - /* - * failed at remote end - */ - AUTH_BADCRED=1, /* bogus credentials (seal broken) */ - AUTH_REJECTEDCRED=2, /* client should begin new session */ - AUTH_BADVERF=3, /* bogus verifier (seal broken) */ - AUTH_REJECTEDVERF=4, /* verifier expired or was replayed */ - AUTH_TOOWEAK=5, /* rejected due to security reasons */ - /* - * failed locally - */ - AUTH_INVALIDRESP=6, /* bogus response verifier */ - AUTH_FAILED=7 /* some unknown reason */ -}; - -#if (mc68000 || sparc || vax || i386) -typedef u_long u_int32; /* 32-bit unsigned integers */ - -union des_block { - struct { - u_int32 high; - u_int32 low; - } key; - char c[8]; -}; -#else -union des_block { - struct { - u_long high; - u_long low; - } key; - char c[8]; -}; -#endif -typedef union des_block des_block; -extern bool_t xdr_des_block(DOTS); - -/* - * Authentication info. Opaque to client. - */ -struct opaque_auth { - enum_t oa_flavor; /* flavor of auth */ - caddr_t oa_base; /* address of more auth stuff */ - u_int oa_length; /* not to exceed MAX_AUTH_BYTES */ -}; - - -/* - * Auth handle, interface to client side authenticators. - */ -typedef struct { - struct opaque_auth ah_cred; - struct opaque_auth ah_verf; - union des_block ah_key; - struct auth_ops { - void (*ah_nextverf)(DOTS); - int (*ah_marshal)(DOTS); /* nextverf & serialize */ - int (*ah_validate)(DOTS); /* validate varifier */ - int (*ah_refresh)(DOTS); /* refresh credentials */ - void (*ah_destroy)(DOTS); /* destroy this structure */ - } *ah_ops; - caddr_t ah_private; -} AUTH; - - -/* - * Authentication ops. - * The ops and the auth handle provide the interface to the authenticators. - * - * AUTH *auth; - * XDR *xdrs; - * struct opaque_auth verf; - */ -#define AUTH_NEXTVERF(auth) \ - ((*((auth)->ah_ops->ah_nextverf))(auth)) -#define auth_nextverf(auth) \ - ((*((auth)->ah_ops->ah_nextverf))(auth)) - -#define AUTH_MARSHALL(auth, xdrs) \ - ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) -#define auth_marshall(auth, xdrs) \ - ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) - -#define AUTH_VALIDATE(auth, verfp) \ - ((*((auth)->ah_ops->ah_validate))((auth), verfp)) -#define auth_validate(auth, verfp) \ - ((*((auth)->ah_ops->ah_validate))((auth), verfp)) - -#define AUTH_REFRESH(auth) \ - ((*((auth)->ah_ops->ah_refresh))(auth)) -#define auth_refresh(auth) \ - ((*((auth)->ah_ops->ah_refresh))(auth)) - -#define AUTH_DESTROY(auth) \ - ((*((auth)->ah_ops->ah_destroy))(auth)) -#define auth_destroy(auth) \ - ((*((auth)->ah_ops->ah_destroy))(auth)) - -#ifdef WIN32 -#ifdef ONCRPCDLL -extern struct opaque_auth _null_auth; -#else -#ifdef __BORLANDC__ -extern __declspec(dllimport) struct opaque_auth _null_auth; -#else -_declspec(dllimport) struct opaque_auth _null_auth; -#endif -#endif -#else -extern struct opaque_auth _null_auth; -#endif - - -/* - * These are the various implementations of client side authenticators. - */ - -/* - * Unix style authentication - * AUTH *authunix_create(machname, uid, gid, len, aup_gids) - * char *machname; - * int uid; - * int gid; - * int len; - * int *aup_gids; - */ -extern AUTH *authunix_create(DOTS); -extern AUTH *authunix_create_default(DOTS); /* takes no parameters */ -extern AUTH *authnone_create(DOTS); /* takes no parameters */ -extern AUTH *authdes_create(DOTS); - -#define AUTH_NONE 0 /* no authentication */ -#define AUTH_NULL 0 /* backward compatibility */ -#define AUTH_UNIX 1 /* unix style (uid, gids) */ -#define AUTH_SHORT 2 /* short hand unix style */ -#define AUTH_DES 3 /* des style (encrypted timestamps) */ - -#ifdef __cplusplus -}; -#endif - -#endif /* __AUTH_HEADER__ */ - diff --git a/src/providers/grass/vc/rpc/auth_uni.h b/src/providers/grass/vc/rpc/auth_uni.h deleted file mode 100755 index 44441693dd2e..000000000000 --- a/src/providers/grass/vc/rpc/auth_uni.h +++ /dev/null @@ -1,89 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC; from 1.8 88/02/08 SMI */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)auth_unix.h 1.5 86/07/16 SMI */ - -/* - * auth_unix.h, Protocol for UNIX style authentication parameters for RPC - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - -/* - * The system is very weak. The client uses no encryption for it - * credentials and only sends null verifiers. The server sends backs - * null verifiers or optionally a verifier that suggests a new short hand - * for the credentials. - */ - -#ifndef __AUTH_UNIX_HEADER__ -#define __AUTH_UNIX_HEADER__ - -/* The machine name is part of a credential; it may not exceed 255 bytes */ -#define MAX_MACHINE_NAME 255 - -/* gids compose part of a credential; there may not be more than 16 of them */ -#define NGRPS 16 - -/* - * Unix style credentials. - */ -struct authunix_parms { - u_long aup_time; - char *aup_machname; - int aup_uid; - int aup_gid; - u_int aup_len; - int *aup_gids; -}; - -extern bool_t xdr_authunix_parms(); - -/* - * If a response verifier has flavor AUTH_SHORT, - * then the body of the response verifier encapsulates the following structure; - * again it is serialized in the obvious fashion. - */ -struct short_hand_verf { - struct opaque_auth new_cred; -}; - -#endif /* __AUTH_UNIX_HEADER__ */ - diff --git a/src/providers/grass/vc/rpc/auth_unix.h b/src/providers/grass/vc/rpc/auth_unix.h deleted file mode 100755 index 6946aec64993..000000000000 --- a/src/providers/grass/vc/rpc/auth_unix.h +++ /dev/null @@ -1,101 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC; from 1.8 88/02/08 SMI */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)auth_unix.h 1.5 86/07/16 SMI */ - -/* - * auth_unix.h, Protocol for UNIX style authentication parameters for RPC - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - -/* - * The system is very weak. The client uses no encryption for it - * credentials and only sends null verifiers. The server sends backs - * null verifiers or optionally a verifier that suggests a new short hand - * for the credentials. - */ - -#ifndef __AUTH_UNIX_HEADER__ -#define __AUTH_UNIX_HEADER__ - -#ifdef __cplusplus -extern "C" { -#define DOTS ... -#else -#define DOTS -#endif - -/* The machine name is part of a credential; it may not exceed 255 bytes */ -#define MAX_MACHINE_NAME 255 - -/* gids compose part of a credential; there may not be more than 16 of them */ -#define NGRPS 16 - -/* - * Unix style credentials. - */ -struct authunix_parms { - u_long aup_time; - char *aup_machname; - int aup_uid; - int aup_gid; - u_int aup_len; - int *aup_gids; -}; - -extern bool_t xdr_authunix_parms(DOTS); - -/* - * If a response verifier has flavor AUTH_SHORT, - * then the body of the response verifier encapsulates the following structure; - * again it is serialized in the obvious fashion. - */ -struct short_hand_verf { - struct opaque_auth new_cred; -}; - -#ifdef __cplusplus -}; -#endif - - -#endif /* __AUTH_UNIX_HEADER__ */ - diff --git a/src/providers/grass/vc/rpc/bcopy.h b/src/providers/grass/vc/rpc/bcopy.h deleted file mode 100755 index 2b3ed8c2ec13..000000000000 --- a/src/providers/grass/vc/rpc/bcopy.h +++ /dev/null @@ -1,22 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -#ifdef __cplusplus -extern "C" { -#endif - -void bcopy(char *,char*,int); -void bcopy_nf(char *,char *,int); -void bcopy_fn(char *,char *,int); -void bcopy_ff(char *,char *,int); -void bzero(char*,int); -#ifdef __cplusplus -}; -#endif - diff --git a/src/providers/grass/vc/rpc/clnt.h b/src/providers/grass/vc/rpc/clnt.h deleted file mode 100755 index d6b51b80e236..000000000000 --- a/src/providers/grass/vc/rpc/clnt.h +++ /dev/null @@ -1,364 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)clnt.h 2.1 88/07/29 4.0 RPCSRC; from 1.31 88/02/08 SMI*/ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ - -/* - * clnt.h - Client side remote procedure call interface. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - -#ifndef _CLNT_ -#define _CLNT_ - -#ifdef __cplusplus -extern "C" { -#define DOTS ... -#else -#define DOTS -#endif - -/* - * Rpc calls return an enum clnt_stat. This should be looked at more, - * since each implementation is required to live with this (implementation - * independent) list of errors. - */ -enum clnt_stat { - RPC_SUCCESS=0, /* call succeeded */ - /* - * local errors - */ - RPC_CANTENCODEARGS=1, /* can't encode arguments */ - RPC_CANTDECODERES=2, /* can't decode results */ - RPC_CANTSEND=3, /* failure in sending call */ - RPC_CANTRECV=4, /* failure in receiving result */ - RPC_TIMEDOUT=5, /* call timed out */ - /* - * remote errors - */ - RPC_VERSMISMATCH=6, /* rpc versions not compatible */ - RPC_AUTHERROR=7, /* authentication error */ - RPC_PROGUNAVAIL=8, /* program not available */ - RPC_PROGVERSMISMATCH=9, /* program version mismatched */ - RPC_PROCUNAVAIL=10, /* procedure unavailable */ - RPC_CANTDECODEARGS=11, /* decode arguments error */ - RPC_SYSTEMERROR=12, /* generic "other problem" */ - - /* - * callrpc & clnt_create errors - */ - RPC_UNKNOWNHOST=13, /* unknown host name */ - RPC_UNKNOWNPROTO=17, /* unkown protocol */ - - /* - * _ create errors - */ - RPC_PMAPFAILURE=14, /* the pmapper failed in its call */ - RPC_PROGNOTREGISTERED=15, /* remote program is not registered */ - /* - * unspecified error - */ - RPC_FAILED=16 -}; - - -/* - * Error info. - */ -struct rpc_err { - enum clnt_stat re_status; - union { - int RE_errno; /* realated system error */ - enum auth_stat RE_why; /* why the auth error occurred */ - struct { - u_long low; /* lowest verion supported */ - u_long high; /* highest verion supported */ - } RE_vers; - struct { /* maybe meaningful if RPC_FAILED */ - long s1; - long s2; - } RE_lb; /* life boot & debugging only */ - } ru; -#define re_errno ru.RE_errno -#define re_why ru.RE_why -#define re_vers ru.RE_vers -#define re_lb ru.RE_lb -}; - - -/* - * Client rpc handle. - * Created by individual implementations, see e.g. rpc_udp.c. - * Client is responsible for initializing auth, see e.g. auth_none.c. - */ -typedef struct { - AUTH *cl_auth; /* authenticator */ - struct clnt_ops { - enum clnt_stat (*cl_call)(DOTS); /* call remote procedure */ - void (*cl_abort)(DOTS); /* abort a call */ - void (*cl_geterr)(DOTS); /* get specific error code */ - bool_t (*cl_freeres)(DOTS); /* frees results */ - void (*cl_destroy)(DOTS);/* destroy this structure */ - bool_t (*cl_control)(DOTS);/* the ioctl() of rpc */ - } *cl_ops; - caddr_t cl_private; /* private stuff */ -} CLIENT; - - -/* - * client side rpc interface ops - * - * Parameter types are: - * - */ - -/* - * enum clnt_stat - * CLNT_CALL(rh, proc, xargs, argsp, xres, resp, timeout) - * CLIENT *rh; - * u_long proc; - * xdrproc_t xargs; - * caddr_t argsp; - * xdrproc_t xres; - * caddr_t resp; - * struct timeval timeout; - */ -#define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs) \ - ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) -#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \ - ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp, secs)) - -/* - * void - * CLNT_ABORT(rh); - * CLIENT *rh; - */ -#define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) -#define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) - -/* - * struct rpc_err - * CLNT_GETERR(rh); - * CLIENT *rh; - */ -#define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) -#define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) - - -/* - * bool_t - * CLNT_FREERES(rh, xres, resp); - * CLIENT *rh; - * xdrproc_t xres; - * caddr_t resp; - */ -#define CLNT_FREERES(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) -#define clnt_freeres(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) - -/* - * bool_t - * CLNT_CONTROL(cl, request, info) - * CLIENT *cl; - * u_int request; - * char *info; - */ -#define CLNT_CONTROL(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in)) -#define clnt_control(cl,rq,in) ((*(cl)->cl_ops->cl_control)(cl,rq,in)) - -/* - * control operations that apply to both udp and tcp transports - */ -#define CLSET_TIMEOUT 1 /* set timeout (timeval) */ -#define CLGET_TIMEOUT 2 /* get timeout (timeval) */ -#define CLGET_SERVER_ADDR 3 /* get server's address (sockaddr) */ -/* - * udp only control operations - */ -#define CLSET_RETRY_TIMEOUT 4 /* set retry timeout (timeval) */ -#define CLGET_RETRY_TIMEOUT 5 /* get retry timeout (timeval) */ - -/* - * void - * CLNT_DESTROY(rh); - * CLIENT *rh; - */ -#define CLNT_DESTROY(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) -#define clnt_destroy(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) - - -/* - * RPCTEST is a test program which is accessable on every rpc - * transport/port. It is used for testing, performance evaluation, - * and network administration. - */ - -#define RPCTEST_PROGRAM ((u_long)1) -#define RPCTEST_VERSION ((u_long)1) -#define RPCTEST_NULL_PROC ((u_long)2) -#define RPCTEST_NULL_BATCH_PROC ((u_long)3) - -/* - * By convention, procedure 0 takes null arguments and returns them - */ - -#define NULLPROC ((u_long)0) - -/* - * Below are the client handle creation routines for the various - * implementations of client side rpc. They can return NULL if a - * creation failure occurs. - */ - -/* - * Memory based rpc (for speed check and testing) - * CLIENT * - * clntraw_create(prog, vers) - * u_long prog; - * u_long vers; - */ -extern CLIENT *clntraw_create(DOTS); - - -/* - * Generic client creation routine. Supported protocols are "udp" and "tcp" - */ -extern CLIENT * -clnt_create(/*host, prog, vers, prot*/DOTS); /* - char *host; -- hostname - u_long prog; -- program number - u_long vers; -- version number - char *prot; -- protocol -*/ - - - - -/* - * TCP based rpc - * CLIENT * - * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz) - * struct sockaddr_in *raddr; - * u_long prog; - * u_long version; - * register int *sockp; - * u_int sendsz; - * u_int recvsz; - */ -extern CLIENT *clnttcp_create(DOTS); - -/* - * UDP based rpc. - * CLIENT * - * clntudp_create(raddr, program, version, wait, sockp) - * struct sockaddr_in *raddr; - * u_long program; - * u_long version; - * struct timeval wait; - * int *sockp; - * - * Same as above, but you specify max packet sizes. - * CLIENT * - * clntudp_bufcreate(raddr, program, version, wait, sockp, sendsz, recvsz) - * struct sockaddr_in *raddr; - * u_long program; - * u_long version; - * struct timeval wait; - * int *sockp; - * u_int sendsz; - * u_int recvsz; - */ -extern CLIENT *clntudp_create(DOTS); -extern CLIENT *clntudp_bufcreate(DOTS); - -/* - * Print why creation failed - */ -void clnt_pcreateerror(/* char *msg */DOTS); /* stderr */ -char *clnt_spcreateerror(/* char *msg */DOTS); /* string */ - -/* - * Like clnt_perror(), but is more verbose in its output - */ -void clnt_perrno(/* enum clnt_stat num */DOTS); /* stderr */ - -/* - * Print an English error message, given the client error code - */ -void clnt_perror(/* CLIENT *clnt, char *msg */DOTS); /* stderr */ -char *clnt_sperror(/* CLIENT *clnt, char *msg */DOTS); /* string */ - -/* - * If a creation fails, the following allows the user to figure out why. - */ -struct rpc_createerr { - enum clnt_stat cf_stat; - struct rpc_err cf_error; /* useful when cf_stat == RPC_PMAPFAILURE */ -}; - -#ifdef WIN32 -#ifdef ONCRPCDLL -extern struct rpc_createerr rpc_createerr; -#else -#ifdef __BORLANDC__ -extern __declspec(dllimport) struct rpc_createerr rpc_createerr; -#else -_declspec(dllimport) struct rpc_createerr rpc_createerr; -#endif -#endif -#else -extern struct rpc_createerr rpc_createerr; -#endif - - -/* - * Copy error message to buffer. - */ -char *clnt_sperrno(/* enum clnt_stat num */DOTS); /* string */ - - - -#define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */ -#define RPCSMALLMSGSIZE 400 /* a more reasonable packet size */ - -#ifdef __cplusplus -}; -#endif - -#endif /*!_CLNT_*/ diff --git a/src/providers/grass/vc/rpc/index.html b/src/providers/grass/vc/rpc/index.html deleted file mode 100644 index 4c8004cf22d1..000000000000 --- a/src/providers/grass/vc/rpc/index.html +++ /dev/null @@ -1,10 +0,0 @@ -Revision 43388: /trunk/src/extra/xdr/rpc - -

Revision 43388: /trunk/src/extra/xdr/rpc

- -
Powered by Subversion version 1.4.2 (r22196). - \ No newline at end of file diff --git a/src/providers/grass/vc/rpc/netdb.h b/src/providers/grass/vc/rpc/netdb.h deleted file mode 100755 index 44e8006158c6..000000000000 --- a/src/providers/grass/vc/rpc/netdb.h +++ /dev/null @@ -1,51 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)netdb.h 2.1 88/07/29 3.9 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)rpc.h 1.8 87/07/24 SMI */ - -/* Really belongs in */ - -struct rpcent { - char *r_name; /* name of server for this rpc program */ - char **r_aliases; /* alias list */ - int r_number; /* rpc program number */ -}; - -struct rpcent *getrpcbyname(), *getrpcbynumber(), *getrpcent(); diff --git a/src/providers/grass/vc/rpc/rpc_msg.h b/src/providers/grass/vc/rpc/rpc_msg.h deleted file mode 100755 index 4f6dacd67f8a..000000000000 --- a/src/providers/grass/vc/rpc/rpc_msg.h +++ /dev/null @@ -1,215 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)rpc_msg.h 1.7 86/07/16 SMI */ - -/* - * rpc_msg.h - * rpc message definition - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - -#ifndef __RPC_MSG_HEADER__ -#define __RPC_MSG_HEADER__ - -#ifdef __cplusplus -extern "C" { -#define DOTS ... -#else -#define DOTS -#endif - -#define RPC_MSG_VERSION ((u_long) 2) -#define RPC_SERVICE_PORT ((u_short) 2048) - -/* - * Bottom up definition of an rpc message. - * NOTE: call and reply use the same overall stuct but - * different parts of unions within it. - */ - -enum msg_type { - CALL=0, - REPLY=1 -}; - -enum reply_stat { - MSG_ACCEPTED=0, - MSG_DENIED=1 -}; - -enum accept_stat { - SUCCESS=0, - PROG_UNAVAIL=1, - PROG_MISMATCH=2, - PROC_UNAVAIL=3, - GARBAGE_ARGS=4, - SYSTEM_ERR=5 -}; - -enum reject_stat { - RPC_MISMATCH=0, - AUTH_ERROR=1 -}; - -/* - * Reply part of an rpc exchange - */ - -/* - * Reply to an rpc request that was accepted by the server. - * Note: there could be an error even though the request was - * accepted. - */ -struct accepted_reply { - struct opaque_auth ar_verf; - enum accept_stat ar_stat; - union { - struct { - u_long low; - u_long high; - } AR_versions; - struct { - caddr_t where; - xdrproc_t proc; - } AR_results; - /* and many other null cases */ - } ru; -#define ar_results ru.AR_results -#define ar_vers ru.AR_versions -}; - -/* - * Reply to an rpc request that was rejected by the server. - */ -struct rejected_reply { - enum reject_stat rj_stat; - union { - struct { - u_long low; - u_long high; - } RJ_versions; - enum auth_stat RJ_why; /* why authentication did not work */ - } ru; -#define rj_vers ru.RJ_versions -#define rj_why ru.RJ_why -}; - -/* - * Body of a reply to an rpc request. - */ -struct reply_body { - enum reply_stat rp_stat; - union { - struct accepted_reply RP_ar; - struct rejected_reply RP_dr; - } ru; -#define rp_acpt ru.RP_ar -#define rp_rjct ru.RP_dr -}; - -/* - * Body of an rpc request call. - */ -struct call_body { - u_long cb_rpcvers; /* must be equal to two */ - u_long cb_prog; - u_long cb_vers; - u_long cb_proc; - struct opaque_auth cb_cred; - struct opaque_auth cb_verf; /* protocol specific - provided by client */ -}; - -/* - * The rpc message - */ -struct rpc_msg { - u_long rm_xid; - enum msg_type rm_direction; - union { - struct call_body RM_cmb; - struct reply_body RM_rmb; - } ru; -#define rm_call ru.RM_cmb -#define rm_reply ru.RM_rmb -}; -#define acpted_rply ru.RM_rmb.ru.RP_ar -#define rjcted_rply ru.RM_rmb.ru.RP_dr - - -/* - * XDR routine to handle a rpc message. - * xdr_callmsg(xdrs, cmsg) - * XDR *xdrs; - * struct rpc_msg *cmsg; - */ -extern bool_t xdr_callmsg(DOTS); - -/* - * XDR routine to pre-serialize the static part of a rpc message. - * xdr_callhdr(xdrs, cmsg) - * XDR *xdrs; - * struct rpc_msg *cmsg; - */ -extern bool_t xdr_callhdr(DOTS); - -/* - * XDR routine to handle a rpc reply. - * xdr_replymsg(xdrs, rmsg) - * XDR *xdrs; - * struct rpc_msg *rmsg; - */ -extern bool_t xdr_replymsg(DOTS); - -/* - * Fills in the error part of a reply message. - * _seterr_reply(msg, error) - * struct rpc_msg *msg; - * struct rpc_err *error; - */ -extern void _seterr_reply(DOTS); - -#ifdef __cplusplus -}; -#endif - -#endif /* __RPC_MSG_HEADER__ */ - diff --git a/src/providers/grass/vc/rpc/svc.h b/src/providers/grass/vc/rpc/svc.h deleted file mode 100755 index 44618bc3a063..000000000000 --- a/src/providers/grass/vc/rpc/svc.h +++ /dev/null @@ -1,291 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)svc.h 2.2 88/07/29 4.0 RPCSRC; from 1.20 88/02/08 SMI */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ - -/* - * svc.h, Server-side remote procedure call interface. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - -#ifndef __SVC_HEADER__ -#define __SVC_HEADER__ - -/* - * This interface must manage two items concerning remote procedure calling: - * - * 1) An arbitrary number of transport connections upon which rpc requests - * are received. The two most notable transports are TCP and UDP; they are - * created and registered by routines in svc_tcp.c and svc_udp.c, respectively; - * they in turn call xprt_register and xprt_unregister. - * - * 2) An arbitrary number of locally registered services. Services are - * described by the following four data: program number, version number, - * "service dispatch" function, a transport handle, and a boolean that - * indicates whether or not the exported program should be registered with a - * local binder service; if true the program's number and version and the - * port number from the transport handle are registered with the binder. - * These data are registered with the rpc svc system via svc_register. - * - * A service's dispatch function is called whenever an rpc request comes in - * on a transport. The request's program and version numbers must match - * those of the registered service. The dispatch function is passed two - * parameters, struct svc_req * and SVCXPRT *, defined below. - */ - -enum xprt_stat { - XPRT_DIED, - XPRT_MOREREQS, - XPRT_IDLE -}; - -/* - * Server side transport handle - */ -typedef struct { - int xp_sock; - u_short xp_port; /* associated port number */ - struct xp_ops { - bool_t (*xp_recv)(); /* receive incomming requests */ - enum xprt_stat (*xp_stat)(); /* get transport status */ - bool_t (*xp_getargs)(); /* get arguments */ - bool_t (*xp_reply)(); /* send reply */ - bool_t (*xp_freeargs)();/* free mem allocated for args */ - void (*xp_destroy)(); /* destroy this struct */ - } *xp_ops; - int xp_addrlen; /* length of remote address */ - struct sockaddr_in xp_raddr; /* remote address */ - struct opaque_auth xp_verf; /* raw response verifier */ - caddr_t xp_p1; /* private */ - caddr_t xp_p2; /* private */ -} SVCXPRT; - -/* - * Approved way of getting address of caller - */ -#define svc_getcaller(x) (&(x)->xp_raddr) - -/* - * Operations defined on an SVCXPRT handle - * - * SVCXPRT *xprt; - * struct rpc_msg *msg; - * xdrproc_t xargs; - * caddr_t argsp; - */ -#define SVC_RECV(xprt, msg) \ - (*(xprt)->xp_ops->xp_recv)((xprt), (msg)) -#define svc_recv(xprt, msg) \ - (*(xprt)->xp_ops->xp_recv)((xprt), (msg)) - -#define SVC_STAT(xprt) \ - (*(xprt)->xp_ops->xp_stat)(xprt) -#define svc_stat(xprt) \ - (*(xprt)->xp_ops->xp_stat)(xprt) - -#define SVC_GETARGS(xprt, xargs, argsp) \ - (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp)) -#define svc_getargs(xprt, xargs, argsp) \ - (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp)) - -#define SVC_REPLY(xprt, msg) \ - (*(xprt)->xp_ops->xp_reply) ((xprt), (msg)) -#define svc_reply(xprt, msg) \ - (*(xprt)->xp_ops->xp_reply) ((xprt), (msg)) - -#define SVC_FREEARGS(xprt, xargs, argsp) \ - (*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp)) -#define svc_freeargs(xprt, xargs, argsp) \ - (*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp)) - -#define SVC_DESTROY(xprt) \ - (*(xprt)->xp_ops->xp_destroy)(xprt) -#define svc_destroy(xprt) \ - (*(xprt)->xp_ops->xp_destroy)(xprt) - - -/* - * Service request - */ -struct svc_req { - u_long rq_prog; /* service program number */ - u_long rq_vers; /* service protocol version */ - u_long rq_proc; /* the desired procedure */ - struct opaque_auth rq_cred; /* raw creds from the wire */ - caddr_t rq_clntcred; /* read only cooked cred */ - SVCXPRT *rq_xprt; /* associated transport */ -}; - - -/* - * Service registration - * - * svc_register(xprt, prog, vers, dispatch, protocol) - * SVCXPRT *xprt; - * u_long prog; - * u_long vers; - * void (*dispatch)(); - * int protocol; /* like TCP or UDP, zero means do not register - */ -extern bool_t svc_register(); - -/* - * Service un-registration - * - * svc_unregister(prog, vers) - * u_long prog; - * u_long vers; - */ -extern void svc_unregister(); - -/* - * Transport registration. - * - * xprt_register(xprt) - * SVCXPRT *xprt; - */ -extern void xprt_register(); - -/* - * Transport un-register - * - * xprt_unregister(xprt) - * SVCXPRT *xprt; - */ -extern void xprt_unregister(); - - - - -/* - * When the service routine is called, it must first check to see if it - * knows about the procedure; if not, it should call svcerr_noproc - * and return. If so, it should deserialize its arguments via - * SVC_GETARGS (defined above). If the deserialization does not work, - * svcerr_decode should be called followed by a return. Successful - * decoding of the arguments should be followed the execution of the - * procedure's code and a call to svc_sendreply. - * - * Also, if the service refuses to execute the procedure due to too- - * weak authentication parameters, svcerr_weakauth should be called. - * Note: do not confuse access-control failure with weak authentication! - * - * NB: In pure implementations of rpc, the caller always waits for a reply - * msg. This message is sent when svc_sendreply is called. - * Therefore pure service implementations should always call - * svc_sendreply even if the function logically returns void; use - * xdr.h - xdr_void for the xdr routine. HOWEVER, tcp based rpc allows - * for the abuse of pure rpc via batched calling or pipelining. In the - * case of a batched call, svc_sendreply should NOT be called since - * this would send a return message, which is what batching tries to avoid. - * It is the service/protocol writer's responsibility to know which calls are - * batched and which are not. Warning: responding to batch calls may - * deadlock the caller and server processes! - */ - -extern bool_t svc_sendreply(); -extern void svcerr_decode(); -extern void svcerr_weakauth(); -extern void svcerr_noproc(); -extern void svcerr_progvers(); -extern void svcerr_auth(); -extern void svcerr_noprog(); -extern void svcerr_systemerr(); - -/* - * Lowest level dispatching -OR- who owns this process anyway. - * Somebody has to wait for incoming requests and then call the correct - * service routine. The routine svc_run does infinite waiting; i.e., - * svc_run never returns. - * Since another (co-existant) package may wish to selectively wait for - * incoming calls or other events outside of the rpc architecture, the - * routine svc_getreq is provided. It must be passed readfds, the - * "in-place" results of a select system call (see select, section 2). - */ - -/* - * Global keeper of rpc service descriptors in use - * dynamic; must be inspected before each call to select - */ -#ifdef FD_SETSIZE -extern fd_set svc_fdset; -#define svc_fds svc_fdset.fds_bits[0] /* compatibility */ -#else -extern int svc_fds; -#endif /* def FD_SETSIZE */ - -/* - * a small program implemented by the svc_rpc implementation itself; - * also see clnt.h for protocol numbers. - */ -extern void rpctest_service(); - -extern void svc_getreq(); -extern void svc_getreqset(); /* takes fdset instead of int */ -extern void svc_run(); /* never returns */ - -/* - * Socket to use on svcxxx_create call to get default socket - */ -#define RPC_ANYSOCK -1 - -/* - * These are the existing service side transport implementations - */ - -/* - * Memory based rpc for testing and timing. - */ -extern SVCXPRT *svcraw_create(); - -/* - * Udp based rpc. - */ -extern SVCXPRT *svcudp_create(); -extern SVCXPRT *svcudp_bufcreate(); - -/* - * Tcp based rpc. - */ -extern SVCXPRT *svctcp_create(); - - - -#endif /* __SVC_HEADER__ */ diff --git a/src/providers/grass/vc/rpc/svc_auth.h b/src/providers/grass/vc/rpc/svc_auth.h deleted file mode 100755 index 5dadf8f759f9..000000000000 --- a/src/providers/grass/vc/rpc/svc_auth.h +++ /dev/null @@ -1,53 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)svc_auth.h 2.1 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)svc_auth.h 1.6 86/07/16 SMI */ - -/* - * svc_auth.h, Service side of rpc authentication. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - - -/* - * Server side authenticator - */ -extern enum auth_stat _authenticate(); diff --git a/src/providers/grass/vc/rpc/types.h b/src/providers/grass/vc/rpc/types.h deleted file mode 100644 index ab244b8c9ff4..000000000000 --- a/src/providers/grass/vc/rpc/types.h +++ /dev/null @@ -1,104 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)types.h 2.3 88/08/15 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)types.h 1.18 87/07/24 SMI */ - -/* - * Rpc additions to - */ -#ifndef __TYPES_RPC_HEADER__ -#define __TYPES_RPC_HEADER__ - -#define bool_t int -#define enum_t int -#ifndef FALSE -#define FALSE (0) -#endif -#ifndef TRUE -#define TRUE (1) -#endif -#define __dontcare__ -1 -#ifndef NULL -# define NULL 0 -#endif - -#if !defined(WIN32) && !defined(macintosh) && !defined(__CYGWIN__) -extern char *malloc(); -#endif -#if defined(WIN32) && defined(LEA_MALLOC) -#include -extern void *Rm_malloc(size_t n); -extern void Rm_free(void * p); -#define mem_alloc Rm_malloc -#define mem_free(ptr, bsize) Rm_free(ptr) -#else -#define mem_alloc malloc -#define mem_free(ptr, bsize) free(ptr) -#endif - -#ifndef makedev /* ie, we haven't already included it */ -#ifndef macintosh -#include -#endif /* macintosh */ -#endif -#if !defined(WIN32) && !defined(macintosh) -#include -#endif - -#ifndef INADDR_LOOPBACK -#define INADDR_LOOPBACK (u_long)0x7F000001 -#endif -#ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 -#endif - -typedef char *caddr_t; -#ifndef _GNU_H_WINDOWS32_SOCKETS -typedef unsigned int u_int; -typedef unsigned long u_long; -typedef unsigned short u_short; -#endif - -#ifdef _MSC_VER -#include -typedef SSIZE_T ssize_t; -#endif //_MSC_VER - -#endif /* ndef __TYPES_RPC_HEADER__ */ diff --git a/src/providers/grass/vc/rpc/xdr.h b/src/providers/grass/vc/rpc/xdr.h deleted file mode 100644 index 6f02ca085ca4..000000000000 --- a/src/providers/grass/vc/rpc/xdr.h +++ /dev/null @@ -1,281 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)xdr.h 2.2 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* @(#)xdr.h 1.19 87/04/22 SMI */ - -/* - * xdr.h, External Data Representation Serialization Routines. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - */ - -#ifndef __XDR_HEADER__ -#define __XDR_HEADER__ - -/* - * XDR provides a conventional way for converting between C data - * types and an external bit-string representation. Library supplied - * routines provide for the conversion on built-in C data types. These - * routines and utility routines defined here are used to help implement - * a type encode/decode routine for each user-defined type. - * - * Each data type provides a single procedure which takes two arguments: - * - * bool_t - * xdrproc(xdrs, argresp) - * XDR *xdrs; - * *argresp; - * - * xdrs is an instance of a XDR handle, to which or from which the data - * type is to be converted. argresp is a pointer to the structure to be - * converted. The XDR handle contains an operation field which indicates - * which of the operations (ENCODE, DECODE * or FREE) is to be performed. - * - * XDR_DECODE may allocate space if the pointer argresp is null. This - * data can be freed with the XDR_FREE operation. - * - * We write only one procedure per data type to make it easy - * to keep the encode and decode procedures for a data type consistent. - * In many cases the same code performs all operations on a user defined type, - * because all the hard work is done in the component type routines. - * decode as a series of calls on the nested data types. - */ - -/* - * Xdr operations. XDR_ENCODE causes the type to be encoded into the - * stream. XDR_DECODE causes the type to be extracted from the stream. - * XDR_FREE can be used to release the space allocated by an XDR_DECODE - * request. - */ -enum xdr_op { - XDR_ENCODE=0, - XDR_DECODE=1, - XDR_FREE=2 -}; - -/* - * This is the number of bytes per unit of external data. - */ -#define BYTES_PER_XDR_UNIT (4) -#define RNDUP(x) ((((x) + BYTES_PER_XDR_UNIT - 1) / BYTES_PER_XDR_UNIT) \ - * BYTES_PER_XDR_UNIT) - -/* - * A xdrproc_t exists for each data type which is to be encoded or decoded. - * - * The second argument to the xdrproc_t is a pointer to an opaque pointer. - * The opaque pointer generally points to a structure of the data type - * to be decoded. If this pointer is 0, then the type routines should - * allocate dynamic storage of the appropriate size and return it. - * bool_t (*xdrproc_t)(XDR *, caddr_t *); - */ -typedef bool_t (*xdrproc_t)(); - -/* - * The XDR handle. - * Contains operation which is being applied to the stream, - * an operations vector for the paticular implementation (e.g. see xdr_mem.c), - * and two private fields for the use of the particular impelementation. - */ -typedef struct { - enum xdr_op x_op; /* operation; fast additional param */ - struct xdr_ops { - bool_t (*x_getlong)(); /* get a long from underlying stream */ - bool_t (*x_putlong)(); /* put a long to " */ - bool_t (*x_getbytes)();/* get some bytes from " */ - bool_t (*x_putbytes)();/* put some bytes to " */ - u_int (*x_getpostn)();/* returns bytes off from beginning */ - bool_t (*x_setpostn)();/* lets you reposition the stream */ - long * (*x_inline)(); /* buf quick ptr to buffered data */ - void (*x_destroy)(); /* free privates of this xdr_stream */ - } *x_ops; - caddr_t x_public; /* users' data */ - caddr_t x_private; /* pointer to private data */ - caddr_t x_base; /* private used for position info */ - int x_handy; /* extra private word */ -} XDR; - -/* - * Operations defined on a XDR handle - * - * XDR *xdrs; - * long *longp; - * caddr_t addr; - * u_int len; - * u_int pos; - */ -#define XDR_GETLONG(xdrs, longp) \ - (*(xdrs)->x_ops->x_getlong)(xdrs, longp) -#define xdr_getlong(xdrs, longp) \ - (*(xdrs)->x_ops->x_getlong)(xdrs, longp) - -#define XDR_PUTLONG(xdrs, longp) \ - (*(xdrs)->x_ops->x_putlong)(xdrs, longp) -#define xdr_putlong(xdrs, longp) \ - (*(xdrs)->x_ops->x_putlong)(xdrs, longp) - -#define XDR_GETBYTES(xdrs, addr, len) \ - (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len) -#define xdr_getbytes(xdrs, addr, len) \ - (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len) - -#define XDR_PUTBYTES(xdrs, addr, len) \ - (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len) -#define xdr_putbytes(xdrs, addr, len) \ - (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len) - -#define XDR_GETPOS(xdrs) \ - (*(xdrs)->x_ops->x_getpostn)(xdrs) -#define xdr_getpos(xdrs) \ - (*(xdrs)->x_ops->x_getpostn)(xdrs) - -#define XDR_SETPOS(xdrs, pos) \ - (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) -#define xdr_setpos(xdrs, pos) \ - (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) - -#define XDR_INLINE(xdrs, len) \ - (*(xdrs)->x_ops->x_inline)(xdrs, len) -#define xdr_inline(xdrs, len) \ - (*(xdrs)->x_ops->x_inline)(xdrs, len) - -#define XDR_DESTROY(xdrs) \ - if ((xdrs)->x_ops->x_destroy) \ - (*(xdrs)->x_ops->x_destroy)(xdrs) -#define xdr_destroy(xdrs) \ - if ((xdrs)->x_ops->x_destroy) \ - (*(xdrs)->x_ops->x_destroy)(xdrs) - -/* - * Support struct for discriminated unions. - * You create an array of xdrdiscrim structures, terminated with - * a entry with a null procedure pointer. The xdr_union routine gets - * the discriminant value and then searches the array of structures - * for a matching value. If a match is found the associated xdr routine - * is called to handle that part of the union. If there is - * no match, then a default routine may be called. - * If there is no match and no default routine it is an error. - */ -#define NULL_xdrproc_t ((xdrproc_t)0) -struct xdr_discrim { - int value; - xdrproc_t proc; -}; - -/* - * In-line routines for fast encode/decode of primitve data types. - * Caveat emptor: these use single memory cycles to get the - * data from the underlying buffer, and will fail to operate - * properly if the data is not aligned. The standard way to use these - * is to say: - * if ((buf = XDR_INLINE(xdrs, count)) == NULL) - * return (FALSE); - * <<< macro calls >>> - * where ``count'' is the number of bytes of data occupied - * by the primitive data types. - * - * N.B. and frozen for all time: each data type here uses 4 bytes - * of external representation. - */ -#define IXDR_GET_LONG(buf) ((long)ntohl((u_long)*(buf)++)) -#define IXDR_PUT_LONG(buf, v) (*(buf)++ = (long)htonl((u_long)v)) - -#define IXDR_GET_BOOL(buf) ((bool_t)IXDR_GET_LONG(buf)) -#define IXDR_GET_ENUM(buf, t) ((t)IXDR_GET_LONG(buf)) -#define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) -#define IXDR_GET_SHORT(buf) ((short)IXDR_GET_LONG(buf)) -#define IXDR_GET_U_SHORT(buf) ((u_short)IXDR_GET_LONG(buf)) - -#define IXDR_PUT_BOOL(buf, v) IXDR_PUT_LONG((buf), ((long)(v))) -#define IXDR_PUT_ENUM(buf, v) IXDR_PUT_LONG((buf), ((long)(v))) -#define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG((buf), ((long)(v))) -#define IXDR_PUT_SHORT(buf, v) IXDR_PUT_LONG((buf), ((long)(v))) -#define IXDR_PUT_U_SHORT(buf, v) IXDR_PUT_LONG((buf), ((long)(v))) - -/* - * These are the "generic" xdr routines. - */ -extern bool_t xdr_void(); -extern bool_t xdr_int(); -extern bool_t xdr_u_int(); -extern bool_t xdr_long(); -extern bool_t xdr_u_long(); -extern bool_t xdr_short(); -extern bool_t xdr_u_short(); -extern bool_t xdr_bool(); -extern bool_t xdr_enum(); -extern bool_t xdr_array(); -extern bool_t xdr_bytes(); -extern bool_t xdr_opaque(); -extern bool_t xdr_string(); -extern bool_t xdr_union(); -extern bool_t xdr_char(); -extern bool_t xdr_u_char(); -extern bool_t xdr_vector(); -extern bool_t xdr_float(); -extern bool_t xdr_double(); -extern bool_t xdr_reference(); -extern bool_t xdr_pointer(); -extern bool_t xdr_wrapstring(); - -/* - * Common opaque bytes objects used by many rpc protocols; - * declared here due to commonality. - */ -#define MAX_NETOBJ_SZ 1024 -struct netobj { - u_int n_len; - char *n_bytes; -}; -typedef struct netobj netobj; -extern bool_t xdr_netobj(); - -/* - * These are the public routines for the various implementations of - * xdr streams. - */ -extern void xdrmem_create(); /* XDR using memory buffers */ -extern void xdrstdio_create(); /* XDR using stdio library */ -extern void xdrrec_create(); /* XDR pseudo records for tcp */ -extern bool_t xdrrec_endofrecord(); /* make end of xdr record */ -extern bool_t xdrrec_skiprecord(); /* move to beginning of next record */ -extern bool_t xdrrec_eof(); /* true if no more input */ - -#endif /* __XDR_HEADER__ */ diff --git a/src/providers/grass/vc/unistd.h b/src/providers/grass/vc/unistd.h deleted file mode 100755 index c0d2e09eded0..000000000000 --- a/src/providers/grass/vc/unistd.h +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include -#include -#include - -#define getpid() GetCurrentProcessId() -#define chmod(f,m) -#define rmdir _rmdir - -#ifndef S_ISDIR -#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) -#endif diff --git a/src/providers/grass/vc/xdr.c b/src/providers/grass/vc/xdr.c deleted file mode 100644 index 4589eb2b8b45..000000000000 --- a/src/providers/grass/vc/xdr.c +++ /dev/null @@ -1,599 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)xdr.c 2.1 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -#if !defined(lint) && defined(SCCSIDS) -static char sccsid[] = "@(#)xdr.c 1.35 87/08/12"; -#endif - -/* - * xdr.c, Generic XDR routines implementation. - * - * Copyright (C) 1986, Sun Microsystems, Inc. - * - * These are the "generic" xdr routines used to serialize and de-serialize - * most common data items. See xdr.h for more info on the interface to - * xdr. - */ - -#include -#include -/*char *malloc();*/ -#include /* strlen */ - - -#include -#include - -/* R-specific */ -void REprintf(char*, ...); -#define fprintf(a, b) REprintf(b) - - -/* - * constants specific to the xdr "protocol" - */ -#define XDR_FALSE ((long) 0) -#define XDR_TRUE ((long) 1) -#define LASTUNSIGNED ((u_int) 0-1) - -/* - * for unit alignment - */ -static char xdr_zero[BYTES_PER_XDR_UNIT] = { 0, 0, 0, 0 }; - -/* - * Free a data structure using XDR - * Not a filter, but a convenient utility nonetheless - */ -void -xdr_free(proc, objp) - xdrproc_t proc; - char *objp; -{ - XDR x; - - x.x_op = XDR_FREE; - (*proc)(&x, objp); -} - -/* - * XDR nothing - */ -bool_t -xdr_void(/* xdrs, addr */) - /* XDR *xdrs; */ - /* caddr_t addr; */ -{ - - return (TRUE); -} - -/* - * XDR integers - */ -bool_t -xdr_int(xdrs, ip) - XDR *xdrs; - int *ip; -{ - -#ifdef lint - (void) (xdr_short(xdrs, (short *)ip)); - return (xdr_long(xdrs, (long *)ip)); -#else - if (sizeof (int) == sizeof (long)) { - return (xdr_long(xdrs, (long *)ip)); - } else { - return (xdr_short(xdrs, (short *)ip)); - } -#endif -} - -/* - * XDR unsigned integers - */ -bool_t -xdr_u_int(xdrs, up) - XDR *xdrs; - u_int *up; -{ - -#ifdef lint - (void) (xdr_short(xdrs, (short *)up)); - return (xdr_u_long(xdrs, (u_long *)up)); -#else - if (sizeof (u_int) == sizeof (u_long)) { - return (xdr_u_long(xdrs, (u_long *)up)); - } else { - return (xdr_short(xdrs, (short *)up)); - } -#endif -} - -/* - * XDR long integers - * same as xdr_u_long - open coded to save a proc call! - */ -bool_t -xdr_long(xdrs, lp) - register XDR *xdrs; - long *lp; -{ - - if (xdrs->x_op == XDR_ENCODE) - return (XDR_PUTLONG(xdrs, lp)); - - if (xdrs->x_op == XDR_DECODE) - return (XDR_GETLONG(xdrs, lp)); - - if (xdrs->x_op == XDR_FREE) - return (TRUE); - - return (FALSE); -} - -/* - * XDR unsigned long integers - * same as xdr_long - open coded to save a proc call! - */ -bool_t -xdr_u_long(xdrs, ulp) - register XDR *xdrs; - u_long *ulp; -{ - - if (xdrs->x_op == XDR_DECODE) - return (XDR_GETLONG(xdrs, (long *)ulp)); - if (xdrs->x_op == XDR_ENCODE) - return (XDR_PUTLONG(xdrs, (long *)ulp)); - if (xdrs->x_op == XDR_FREE) - return (TRUE); - return (FALSE); -} - -/* - * XDR short integers - */ -bool_t -xdr_short(xdrs, sp) - register XDR *xdrs; - short *sp; -{ - long l; - - switch (xdrs->x_op) { - - case XDR_ENCODE: - l = (long) *sp; - return (XDR_PUTLONG(xdrs, &l)); - - case XDR_DECODE: - if (!XDR_GETLONG(xdrs, &l)) { - return (FALSE); - } - *sp = (short) l; - return (TRUE); - - case XDR_FREE: - return (TRUE); - } - return (FALSE); -} - -/* - * XDR unsigned short integers - */ -bool_t -xdr_u_short(xdrs, usp) - register XDR *xdrs; - u_short *usp; -{ - u_long l; - - switch (xdrs->x_op) { - - case XDR_ENCODE: - l = (u_long) *usp; - return (XDR_PUTLONG(xdrs, &l)); - - case XDR_DECODE: - if (!XDR_GETLONG(xdrs, &l)) { - return (FALSE); - } - *usp = (u_short) l; - return (TRUE); - - case XDR_FREE: - return (TRUE); - } - return (FALSE); -} - - -/* - * XDR a char - */ -bool_t -xdr_char(xdrs, cp) - XDR *xdrs; - char *cp; -{ - int i; - - i = (*cp); - if (!xdr_int(xdrs, &i)) { - return (FALSE); - } - *cp = i; - return (TRUE); -} - -/* - * XDR an unsigned char - */ -bool_t -xdr_u_char(xdrs, cp) - XDR *xdrs; - char *cp; -{ - u_int u; - - u = (*cp); - if (!xdr_u_int(xdrs, &u)) { - return (FALSE); - } - *cp = u; - return (TRUE); -} - -/* - * XDR booleans - */ -bool_t -xdr_bool(xdrs, bp) - register XDR *xdrs; - bool_t *bp; -{ - long lb; - - switch (xdrs->x_op) { - - case XDR_ENCODE: - lb = *bp ? XDR_TRUE : XDR_FALSE; - return (XDR_PUTLONG(xdrs, &lb)); - - case XDR_DECODE: - if (!XDR_GETLONG(xdrs, &lb)) { - return (FALSE); - } - *bp = (lb == XDR_FALSE) ? FALSE : TRUE; - return (TRUE); - - case XDR_FREE: - return (TRUE); - } - return (FALSE); -} - -/* - * XDR enumerations - */ -bool_t -xdr_enum(xdrs, ep) - XDR *xdrs; - enum_t *ep; -{ -#ifndef lint - enum sizecheck { SIZEVAL }; /* used to find the size of an enum */ - - /* - * enums are treated as ints - */ - if (sizeof (enum sizecheck) == sizeof (long)) { - return (xdr_long(xdrs, (long *)ep)); - } else if (sizeof (enum sizecheck) == sizeof (short)) { - return (xdr_short(xdrs, (short *)ep)); - } else { - return (FALSE); - } -#else - (void) (xdr_short(xdrs, (short *)ep)); - return (xdr_long(xdrs, (long *)ep)); -#endif -} - -/* - * XDR opaque data - * Allows the specification of a fixed size sequence of opaque bytes. - * cp points to the opaque object and cnt gives the byte length. - */ -bool_t -xdr_opaque(xdrs, cp, cnt) - register XDR *xdrs; - caddr_t cp; - register u_int cnt; -{ - register u_int rndup; - static int crud[BYTES_PER_XDR_UNIT]; - - /* - * if no data we are done - */ - if (cnt == 0) - return (TRUE); - - /* - * round byte count to full xdr units - */ - rndup = cnt % BYTES_PER_XDR_UNIT; - if (rndup > 0) - rndup = BYTES_PER_XDR_UNIT - rndup; - - if (xdrs->x_op == XDR_DECODE) { - if (!XDR_GETBYTES(xdrs, cp, cnt)) { - return (FALSE); - } - if (rndup == 0) - return (TRUE); - return (XDR_GETBYTES(xdrs, crud, rndup)); - } - - if (xdrs->x_op == XDR_ENCODE) { - if (!XDR_PUTBYTES(xdrs, cp, cnt)) { - return (FALSE); - } - if (rndup == 0) - return (TRUE); - return (XDR_PUTBYTES(xdrs, xdr_zero, rndup)); - } - - if (xdrs->x_op == XDR_FREE) { - return (TRUE); - } - - return (FALSE); -} - -/* - * XDR counted bytes - * *cpp is a pointer to the bytes, *sizep is the count. - * If *cpp is NULL maxsize bytes are allocated - */ -bool_t -xdr_bytes(xdrs, cpp, sizep, maxsize) - register XDR *xdrs; - char **cpp; - register u_int *sizep; - u_int maxsize; -{ - register char *sp = *cpp; /* sp is the actual string pointer */ - register u_int nodesize; - - /* - * first deal with the length since xdr bytes are counted - */ - if (! xdr_u_int(xdrs, sizep)) { - return (FALSE); - } - nodesize = *sizep; - if ((nodesize > maxsize) && (xdrs->x_op != XDR_FREE)) { - return (FALSE); - } - - /* - * now deal with the actual bytes - */ - switch (xdrs->x_op) { - - case XDR_DECODE: - if (nodesize == 0) { - return (TRUE); - } - if (sp == NULL) { - *cpp = sp = (char *)mem_alloc(nodesize); - } - if (sp == NULL) { - (void) fprintf(stderr, "xdr_bytes: out of memory\n"); - return (FALSE); - } - /* fall into ... */ - - case XDR_ENCODE: - return (xdr_opaque(xdrs, sp, nodesize)); - - case XDR_FREE: - if (sp != NULL) { - mem_free(sp, nodesize); - *cpp = NULL; - } - return (TRUE); - } - return (FALSE); -} - -/* - * Implemented here due to commonality of the object. - */ -bool_t -xdr_netobj(xdrs, np) - XDR *xdrs; - struct netobj *np; -{ - - return (xdr_bytes(xdrs, &np->n_bytes, &np->n_len, MAX_NETOBJ_SZ)); -} - -/* - * XDR a descriminated union - * Support routine for discriminated unions. - * You create an array of xdrdiscrim structures, terminated with - * an entry with a null procedure pointer. The routine gets - * the discriminant value and then searches the array of xdrdiscrims - * looking for that value. It calls the procedure given in the xdrdiscrim - * to handle the discriminant. If there is no specific routine a default - * routine may be called. - * If there is no specific or default routine an error is returned. - */ -bool_t -xdr_union(xdrs, dscmp, unp, choices, dfault) - register XDR *xdrs; - enum_t *dscmp; /* enum to decide which arm to work on */ - char *unp; /* the union itself */ - struct xdr_discrim *choices; /* [value, xdr proc] for each arm */ - xdrproc_t dfault; /* default xdr routine */ -{ - register enum_t dscm; - - /* - * we deal with the discriminator; it's an enum - */ - if (! xdr_enum(xdrs, dscmp)) { - return (FALSE); - } - dscm = *dscmp; - - /* - * search choices for a value that matches the discriminator. - * if we find one, execute the xdr routine for that value. - */ - for (; choices->proc != NULL_xdrproc_t; choices++) { - if (choices->value == dscm) - return ((*(choices->proc))(xdrs, unp, LASTUNSIGNED)); - } - - /* - * no match - execute the default xdr routine if there is one - */ - return ((dfault == NULL_xdrproc_t) ? FALSE : - (*dfault)(xdrs, unp, LASTUNSIGNED)); -} - - -/* - * Non-portable xdr primitives. - * Care should be taken when moving these routines to new architectures. - */ - - -/* - * XDR null terminated ASCII strings - * xdr_string deals with "C strings" - arrays of bytes that are - * terminated by a NULL character. The parameter cpp references a - * pointer to storage; If the pointer is null, then the necessary - * storage is allocated. The last parameter is the max allowed length - * of the string as specified by a protocol. - */ -bool_t -xdr_string(xdrs, cpp, maxsize) - register XDR *xdrs; - char **cpp; - u_int maxsize; -{ - register char *sp = *cpp; /* sp is the actual string pointer */ - u_int size; - u_int nodesize; - - /* - * first deal with the length since xdr strings are counted-strings - */ - switch (xdrs->x_op) { - case XDR_FREE: - if (sp == NULL) { - return(TRUE); /* already free */ - } - /* fall through... */ - case XDR_ENCODE: - size = strlen(sp); - break; - case XDR_DECODE: - /* size not used: just keep compilers happy */ - break; - } - if (! xdr_u_int(xdrs, &size)) { - return (FALSE); - } - if (size > maxsize) { - return (FALSE); - } - nodesize = size + 1; - - /* - * now deal with the actual bytes - */ - switch (xdrs->x_op) { - - case XDR_DECODE: - if (nodesize == 0) { - return (TRUE); - } - if (sp == NULL) - *cpp = sp = (char *)mem_alloc(nodesize); - if (sp == NULL) { - (void) fprintf(stderr, "xdr_string: out of memory\n"); - return (FALSE); - } - sp[size] = 0; - /* fall into ... */ - - case XDR_ENCODE: - return (xdr_opaque(xdrs, sp, size)); - - case XDR_FREE: - mem_free(sp, nodesize); - *cpp = NULL; - return (TRUE); - } - return (FALSE); -} - -/* - * Wrapper for xdr_string that can be called directly from - * routines like clnt_call - */ -bool_t -xdr_wrapstring(xdrs, cpp) - XDR *xdrs; - char **cpp; -{ - if (xdr_string(xdrs, cpp, LASTUNSIGNED)) { - return (TRUE); - } - return (FALSE); -} diff --git a/src/providers/grass/vc/xdr_float.c b/src/providers/grass/vc/xdr_float.c deleted file mode 100644 index da612a2bd4e3..000000000000 --- a/src/providers/grass/vc/xdr_float.c +++ /dev/null @@ -1,302 +0,0 @@ -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)xdr_float.c 2.1 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -#if !defined(lint) && defined(SCCSIDS) -static char sccsid[] = "@(#)xdr_float.c 1.12 87/08/11 Copyr 1984 Sun Micro"; -#endif - - -/* - * xdr_float.c, Generic XDR routines impelmentation. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - * - * These are the "floating point" xdr routines used to (de)serialize - * most common data items. See xdr.h for more info on the interface to - * xdr. - */ - -#include - -#include -#include - -/* - * NB: Not portable. - * This routine works on Suns (Sky / 68000's) and Vaxen. - */ - -#ifdef vax - -/* What IEEE single precision floating point looks like on a Vax */ -struct ieee_single { - unsigned int mantissa: 23; - unsigned int exp : 8; - unsigned int sign : 1; -}; - -/* Vax single precision floating point */ -struct vax_single { - unsigned int mantissa1 : 7; - unsigned int exp : 8; - unsigned int sign : 1; - unsigned int mantissa2 : 16; -}; - -#define VAX_SNG_BIAS 0x81 -#define IEEE_SNG_BIAS 0x7f - -static struct sgl_limits { - struct vax_single s; - struct ieee_single ieee; -} sgl_limits[2] = { - {{ 0x7f, 0xff, 0x0, 0xffff }, /* Max Vax */ - { 0x0, 0xff, 0x0 }}, /* Max IEEE */ - {{ 0x0, 0x0, 0x0, 0x0 }, /* Min Vax */ - { 0x0, 0x0, 0x0 }} /* Min IEEE */ -}; -#endif /* vax */ - -bool_t -xdr_float(xdrs, fp) - register XDR *xdrs; - register float *fp; -{ - -#if defined(WIN32) -#ifdef _PPC_ -/*Motorola PowerPC is same endian for NT as Intel so...*/ -#define _X86_ -#endif - -#ifdef _ALPHA_ -/*also DEC ALPHA is same endian for NT as Intel so...*/ -#define _X86_ -#endif - -#ifndef _X86_ -#define _X86_ -#endif -#endif - -#if !defined(mc68000) && !defined(sparc) && !defined(mips) && !defined(mmax) && !defined(_X86_) && !defined(Macintosh) - struct ieee_single is; - struct vax_single vs, *vsp; - struct sgl_limits *lim; - int i; -#endif - switch (xdrs->x_op) { - - case XDR_ENCODE: -#if defined(mc68000) || defined(sparc) || defined(mips) || defined(mmax) || defined(_X86_) || defined(Macintosh) - return (XDR_PUTLONG(xdrs, (long *)fp)); -#else - vs = *((struct vax_single *)fp); - for (i = 0, lim = sgl_limits; - i < sizeof(sgl_limits)/sizeof(struct sgl_limits); - i++, lim++) { - if ((vs.mantissa2 == lim->s.mantissa2) && - (vs.exp == lim->s.exp) && - (vs.mantissa1 == lim->s.mantissa1)) { - is = lim->ieee; - goto shipit; - } - } - is.exp = vs.exp - VAX_SNG_BIAS + IEEE_SNG_BIAS; - is.mantissa = (vs.mantissa1 << 16) | vs.mantissa2; - shipit: - is.sign = vs.sign; - return (XDR_PUTLONG(xdrs, (long *)&is)); -#endif - - case XDR_DECODE: -#if defined(mc68000) || defined(sparc) || defined(mips) || defined(mmax) || defined(_X86_) || defined(Macintosh) - return (XDR_GETLONG(xdrs, (long *)fp)); -#else - vsp = (struct vax_single *)fp; - if (!XDR_GETLONG(xdrs, (long *)&is)) - return (FALSE); - for (i = 0, lim = sgl_limits; - i < sizeof(sgl_limits)/sizeof(struct sgl_limits); - i++, lim++) { - if ((is.exp == lim->ieee.exp) && - (is.mantissa == lim->ieee.mantissa)) { - *vsp = lim->s; - goto doneit; - } - } - vsp->exp = is.exp - IEEE_SNG_BIAS + VAX_SNG_BIAS; - vsp->mantissa2 = is.mantissa; - vsp->mantissa1 = (is.mantissa >> 16); - doneit: - vsp->sign = is.sign; - return (TRUE); -#endif - - case XDR_FREE: - return (TRUE); - } - return (FALSE); -} - -/* - * This routine works on Suns (Sky / 68000's) and Vaxen. - */ - -#ifdef vax -/* What IEEE double precision floating point looks like on a Vax */ -struct ieee_double { - unsigned int mantissa1 : 20; - unsigned int exp : 11; - unsigned int sign : 1; - unsigned int mantissa2 : 32; -}; - -/* Vax double precision floating point */ -struct vax_double { - unsigned int mantissa1 : 7; - unsigned int exp : 8; - unsigned int sign : 1; - unsigned int mantissa2 : 16; - unsigned int mantissa3 : 16; - unsigned int mantissa4 : 16; -}; - -#define VAX_DBL_BIAS 0x81 -#define IEEE_DBL_BIAS 0x3ff -#define MASK(nbits) ((1 << nbits) - 1) - -static struct dbl_limits { - struct vax_double d; - struct ieee_double ieee; -} dbl_limits[2] = { - {{ 0x7f, 0xff, 0x0, 0xffff, 0xffff, 0xffff }, /* Max Vax */ - { 0x0, 0x7ff, 0x0, 0x0 }}, /* Max IEEE */ - {{ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, /* Min Vax */ - { 0x0, 0x0, 0x0, 0x0 }} /* Min IEEE */ -}; - -#endif /* vax */ - - -bool_t -xdr_double(xdrs, dp) - register XDR *xdrs; - double *dp; -{ - register long *lp; -#if !defined(mc68000) && !defined(sparc) && !defined(mips) && !defined(mmax) && !defined(_X86_) && !defined(Macintosh) - struct ieee_double id; - struct vax_double vd; - register struct dbl_limits *lim; - int i; -#endif - - switch (xdrs->x_op) { - - case XDR_ENCODE: -#if defined(mc68000) || defined(sparc) || defined(mips) || defined(mmax) || defined(_X86_) || defined(Macintosh) - lp = (long *)dp; -#else - vd = *((struct vax_double *)dp); - for (i = 0, lim = dbl_limits; - i < sizeof(dbl_limits)/sizeof(struct dbl_limits); - i++, lim++) { - if ((vd.mantissa4 == lim->d.mantissa4) && - (vd.mantissa3 == lim->d.mantissa3) && - (vd.mantissa2 == lim->d.mantissa2) && - (vd.mantissa1 == lim->d.mantissa1) && - (vd.exp == lim->d.exp)) { - id = lim->ieee; - goto shipit; - } - } - id.exp = vd.exp - VAX_DBL_BIAS + IEEE_DBL_BIAS; - id.mantissa1 = (vd.mantissa1 << 13) | (vd.mantissa2 >> 3); - id.mantissa2 = ((vd.mantissa2 & MASK(3)) << 29) | - (vd.mantissa3 << 13) | - ((vd.mantissa4 >> 3) & MASK(13)); - shipit: - id.sign = vd.sign; - lp = (long *)&id; -#endif -#if defined(_X86_) - return (XDR_PUTLONG(xdrs, lp+1) && XDR_PUTLONG(xdrs, lp)); -#else - return (XDR_PUTLONG(xdrs, lp++) && XDR_PUTLONG(xdrs, lp)); -#endif - case XDR_DECODE: -#if defined(mc68000) || defined(sparc) || defined(mips) || defined(mmax) || defined(_X86_) || defined(Macintosh) - lp = (long *)dp; -#if defined(_X86_) - return (XDR_GETLONG(xdrs, lp+1) && XDR_GETLONG(xdrs, lp)); -#else - return (XDR_GETLONG(xdrs, lp++) && XDR_GETLONG(xdrs, lp)); -#endif -#else - lp = (long *)&id; - if (!XDR_GETLONG(xdrs, lp++) || !XDR_GETLONG(xdrs, lp)) - return (FALSE); - for (i = 0, lim = dbl_limits; - i < sizeof(dbl_limits)/sizeof(struct dbl_limits); - i++, lim++) { - if ((id.mantissa2 == lim->ieee.mantissa2) && - (id.mantissa1 == lim->ieee.mantissa1) && - (id.exp == lim->ieee.exp)) { - vd = lim->d; - goto doneit; - } - } - vd.exp = id.exp - IEEE_DBL_BIAS + VAX_DBL_BIAS; - vd.mantissa1 = (id.mantissa1 >> 13); - vd.mantissa2 = ((id.mantissa1 & MASK(13)) << 3) | - (id.mantissa2 >> 29); - vd.mantissa3 = (id.mantissa2 >> 13); - vd.mantissa4 = (id.mantissa2 << 3); - doneit: - vd.sign = id.sign; - *dp = *((double *)&vd); - return (TRUE); -#endif - case XDR_FREE: - return (TRUE); - } - return (FALSE); -} diff --git a/src/providers/grass/vc/xdr_mem.c b/src/providers/grass/vc/xdr_mem.c deleted file mode 100644 index 550e8e52de6a..000000000000 --- a/src/providers/grass/vc/xdr_mem.c +++ /dev/null @@ -1,243 +0,0 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_INTTYPES_H -# include -#endif - -#if !defined(HAVE_UINTPTR_T) && !defined(uintptr_t) - typedef unsigned long uintptr_t; -#endif - -#if SIZEOF_LONG > 4 -#error This XDR implementation assumes 4-byte longs -#endif - -/* Local mod: assumes WIN32 is i386 and little-endian generic is 32-bit */ -#if defined(WIN32) || defined(__CYGWIN__) -static unsigned long int -ntohl(unsigned long int x) -{ /* could write VC++ inline assembler, but not worth it for now */ -#ifdef _MSC_VER - return((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24)); -#else - __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */ - "rorl $16,%0\n\t" /* swap words */ - "xchgb %b0,%h0" /* swap higher bytes */ - :"=q" (x) - : "0" (x)); - return x; -#endif -} -#else /* net is big-endian: little-endian hosts need byte-swap code */ -#ifndef WORDS_BIGENDIAN -/* #ifdef LITTLE_ENDIAN */ -static unsigned long int -htonl (unsigned long int x) -{ - return((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24)); -} -#else -#define ntohl(x) (x) -#endif -#endif -#define htonl ntohl - -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)xdr_mem.c 2.1 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -#if !defined(lint) && defined(SCCSIDS) -static char sccsid[] = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro"; -#endif - -/* - * xdr_mem.h, XDR implementation using memory buffers. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - * - * If you have some data to be interpreted as external data representation - * or to be converted to external data representation in a memory buffer, - * then this is the package for you. - * - */ - -#include /* for memcpy */ -#include -#include - -/* The use of 'long' here would be problematic if it were ever to be - used on a 64-bit system */ - -static bool_t xdrmem_getlong(); -static bool_t xdrmem_putlong(); -static bool_t xdrmem_getbytes(); -static bool_t xdrmem_putbytes(); -static u_int xdrmem_getpos(); -static bool_t xdrmem_setpos(); -static long * xdrmem_inline(); -static void xdrmem_destroy(); - -static struct xdr_ops xdrmem_ops = { - xdrmem_getlong, - xdrmem_putlong, - xdrmem_getbytes, - xdrmem_putbytes, - xdrmem_getpos, - xdrmem_setpos, - xdrmem_inline, - xdrmem_destroy -}; - -/* - * The procedure xdrmem_create initializes a stream descriptor for a - * memory buffer. - */ -void -xdrmem_create(xdrs, addr, size, op) - register XDR *xdrs; - caddr_t addr; - u_int size; - enum xdr_op op; -{ - - xdrs->x_op = op; - xdrs->x_ops = &xdrmem_ops; - xdrs->x_private = xdrs->x_base = addr; - xdrs->x_handy = size; -} - -static void -xdrmem_destroy(/*xdrs*/) - /*XDR *xdrs;*/ -{ -} - -static bool_t -xdrmem_getlong(xdrs, lp) - register XDR *xdrs; - long *lp; -{ - - if ((xdrs->x_handy -= sizeof(long)) < 0) - return (FALSE); - *lp = (long)ntohl((u_long)(*((long *)(xdrs->x_private)))); - xdrs->x_private += sizeof(long); - return (TRUE); -} - -static bool_t -xdrmem_putlong(xdrs, lp) - register XDR *xdrs; - long *lp; -{ - - if ((xdrs->x_handy -= sizeof(long)) < 0) - return (FALSE); - *(long *)xdrs->x_private = (long)htonl((u_long)(*lp)); - xdrs->x_private += sizeof(long); - return (TRUE); -} - -static bool_t -xdrmem_getbytes(xdrs, addr, len) - register XDR *xdrs; - caddr_t addr; - register u_int len; -{ - - if ((xdrs->x_handy -= len) < 0) - return (FALSE); - memcpy(addr, xdrs->x_private, len); - xdrs->x_private += len; - return (TRUE); -} - -static bool_t -xdrmem_putbytes(xdrs, addr, len) - register XDR *xdrs; - caddr_t addr; - register u_int len; -{ - - if ((xdrs->x_handy -= len) < 0) - return (FALSE); - memcpy(xdrs->x_private, addr, len); - xdrs->x_private += len; - return (TRUE); -} - -static u_int -xdrmem_getpos(xdrs) - register XDR *xdrs; -{ - - return ((uintptr_t)xdrs->x_private - (uintptr_t)xdrs->x_base); -} - -static bool_t -xdrmem_setpos(xdrs, pos) - register XDR *xdrs; - u_int pos; -{ - register caddr_t newaddr = xdrs->x_base + pos; - register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy; - - if ((uintptr_t)newaddr > (uintptr_t)lastaddr) - return (FALSE); - xdrs->x_private = newaddr; - xdrs->x_handy = (uintptr_t)lastaddr - (uintptr_t)newaddr; - return (TRUE); -} - -static long * -xdrmem_inline(xdrs, len) - register XDR *xdrs; - int len; -{ - long *buf = 0; - - if (xdrs->x_handy >= len) { - xdrs->x_handy -= len; - buf = (long *) xdrs->x_private; - xdrs->x_private += len; - } - return (buf); -} diff --git a/src/providers/grass/vc/xdr_stdio.c b/src/providers/grass/vc/xdr_stdio.c deleted file mode 100644 index f17f8a13da91..000000000000 --- a/src/providers/grass/vc/xdr_stdio.c +++ /dev/null @@ -1,238 +0,0 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#if SIZEOF_LONG > 4 -#error This XDR implementation assumes 4-byte longs -#endif - -/* Local mod: assumes WIN32 is i386 and little-endian generic is 32-bit */ -#if defined(WIN32) || defined(__CYGWIN__) -static unsigned long int -ntohl(unsigned long int x) -{ /* could write VC++ inline assembler, but not worth it for now */ -#ifdef _MSC_VER - return((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24)); -#else - __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */ - "rorl $16,%0\n\t" /* swap words */ - "xchgb %b0,%h0" /* swap higher bytes */ - :"=q" (x) - : "0" (x)); - return x; -#endif -} -#else /* net is big-endian: little-endian hosts need byte-swap code */ -#ifndef WORDS_BIGENDIAN -/* #ifdef LITTLE_ENDIAN */ -static unsigned long int -htonl (unsigned long int x) -{ - return((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24)); -} -#else -#define ntohl(x) (x) -#endif -#endif -#define htonl ntohl - -/********************************************************************* - * RPC for the Windows NT Operating System - * 1993 by Martin F. Gergeleit - * Users may use, copy or modify Sun RPC for the Windows NT Operating - * System according to the Sun copyright below. - * - * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO - * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE - * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! - *********************************************************************/ - -/* @(#)xdr_stdio.c 2.1 88/07/29 4.0 RPCSRC */ -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -#if !defined(lint) && defined(SCCSIDS) -static char sccsid[] = "@(#)xdr_stdio.c 1.16 87/08/11 Copyr 1984 Sun Micro"; -#endif - -/* - * xdr_stdio.c, XDR implementation on standard i/o file. - * - * Copyright (C) 1984, Sun Microsystems, Inc. - * - * This set of routines implements a XDR on a stdio stream. - * XDR_ENCODE serializes onto the stream, XDR_DECODE de-serializes - * from the stream. - */ - -#include -#include -#include - -static bool_t xdrstdio_getlong(); -static bool_t xdrstdio_putlong(); -static bool_t xdrstdio_getbytes(); -static bool_t xdrstdio_putbytes(); -static u_int xdrstdio_getpos(); -static bool_t xdrstdio_setpos(); -static long * xdrstdio_inline(); -static void xdrstdio_destroy(); - -/* - * Ops vector for stdio type XDR - */ -static struct xdr_ops xdrstdio_ops = { - xdrstdio_getlong, /* deseraialize a long int */ - xdrstdio_putlong, /* seraialize a long int */ - xdrstdio_getbytes, /* deserialize counted bytes */ - xdrstdio_putbytes, /* serialize counted bytes */ - xdrstdio_getpos, /* get offset in the stream */ - xdrstdio_setpos, /* set offset in the stream */ - xdrstdio_inline, /* prime stream for inline macros */ - xdrstdio_destroy /* destroy stream */ -}; - -/* - * Initialize a stdio xdr stream. - * Sets the xdr stream handle xdrs for use on the stream file. - * Operation flag is set to op. - */ -void -xdrstdio_create(xdrs, file, op) - register XDR *xdrs; - FILE *file; - enum xdr_op op; -{ - - xdrs->x_op = op; - xdrs->x_ops = &xdrstdio_ops; - xdrs->x_private = (caddr_t)file; - xdrs->x_handy = 0; - xdrs->x_base = 0; -} - -/* - * Destroy a stdio xdr stream. - * Cleans up the xdr stream handle xdrs previously set up by xdrstdio_create. - */ -static void -xdrstdio_destroy(xdrs) - register XDR *xdrs; -{ - if (xdrs->x_op == XDR_ENCODE) fflush((FILE *)xdrs->x_private); - /* xx should we close the file ?? */ -} - -static bool_t -xdrstdio_getlong(xdrs, lp) - XDR *xdrs; - register long *lp; -{ - - if (fread((caddr_t)lp, sizeof(long), 1, (FILE *)xdrs->x_private) != 1) - return (FALSE); -#ifndef mc68000 - *lp = ntohl(*lp); -#endif - return (TRUE); -} - -static bool_t -xdrstdio_putlong(xdrs, lp) - XDR *xdrs; - long *lp; -{ - -#ifndef mc68000 - long mycopy = htonl(*lp); - lp = &mycopy; -#endif - if (fwrite((caddr_t)lp, sizeof(long), 1, (FILE *)xdrs->x_private) != 1) - return (FALSE); - return (TRUE); -} - -static bool_t -xdrstdio_getbytes(xdrs, addr, len) - XDR *xdrs; - caddr_t addr; - u_int len; -{ - - if ((len != 0) && (fread(addr, (int)len, 1, (FILE *)xdrs->x_private) != 1)) - return (FALSE); - return (TRUE); -} - -static bool_t -xdrstdio_putbytes(xdrs, addr, len) - XDR *xdrs; - caddr_t addr; - u_int len; -{ - - if ((len != 0) && (fwrite(addr, (int)len, 1, (FILE *)xdrs->x_private) != 1)) - return (FALSE); - return (TRUE); -} - -static u_int -xdrstdio_getpos(xdrs) - XDR *xdrs; -{ - - return ((u_int) ftell((FILE *)xdrs->x_private)); -} - -static bool_t -xdrstdio_setpos(xdrs, pos) - XDR *xdrs; - u_int pos; -{ - - return ((fseek((FILE *)xdrs->x_private, (long)pos, 0) < 0) ? - FALSE : TRUE); -} - -static long * -xdrstdio_inline(xdrs, len) - XDR *xdrs; - u_int len; -{ - - /* - * Must do some work to implement this: must insure - * enough data in the underlying stdio buffer, - * that the buffer is aligned so that we can indirect through a - * long *, and stuff this pointer in xdrs->x_buf. Doing - * a fread or fwrite to a scratch buffer would defeat - * most of the gains to be had here and require storage - * management on this buffer, so we don't do this. - */ - return (NULL); -}