mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 02:09:19 +08:00
b359e82cea
Tom Fitzsimmons <fitzsim@redhat.com> * configure.in: Add iconvdata support for x86 linux. * configure: Regenerated. * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic library, iconv, and linuxthreads support. * libc/sys/linux/configure.in: Ditto. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/configure: Ditto. * iconvdata/EUC-JP.irreversible: New file. * iconvdata/Makefile.am: Ditto. * iconvdata/Makefile.in: Ditto. * iconvdata/SJIS.irreversible: Ditto. * iconvdata/aclocal.m4: Ditto. * iconvdata/configure: Ditto. * iconvdata/configure.in: Ditto. * iconvdata/dummy.c: Ditto. * iconvdata/euc-jp.c: Ditto. * iconvdata/gconv-modules: Ditto. * iconvdata/jis0201.c: Ditto. * iconvdata/jis0201.h: Ditto. * iconvdata/jis0208.c: Ditto. * iconvdata/jis0208.h: Ditto. * iconvdata/jis0212.c: Ditto. * iconvdata/jis0212.h: Ditto. * iconvdata/sjis.c: Ditto. * libc/include/errno.h: Protect definition of error_t. * libc/sys/linux/gethostid.c: New file. * libc/sys/linux/sethostid.c: Ditto. * libc/sys/linux/dl/Makefile.am: Ditto. * libc/sys/linux/dl/Makefile.in: Ditto. * libc/sys/linux/dl/abi-tag.h: Ditto. * libc/sys/linux/dl/atomicity.h: Ditto. * libc/sys/linux/dl/dl-addr.c: Ditto. * libc/sys/linux/dl/dl-cache.c: Ditto. * libc/sys/linux/dl/dl-cache.h: Ditto. * libc/sys/linux/dl/dl-close.c: Ditto. * libc/sys/linux/dl/dl-debug.c: Ditto. * libc/sys/linux/dl/dl-deps.c: Ditto. * libc/sys/linux/dl/dl-dst.h: Ditto. * libc/sys/linux/dl/dl-error.c: Ditto. * libc/sys/linux/dl/dl-fini.c: Ditto. * libc/sys/linux/dl/dl-init.c: Ditto. * libc/sys/linux/dl/dl-iteratephdr.c: Ditto. * libc/sys/linux/dl/dl-libc.c: Ditto. * libc/sys/linux/dl/dl-librecon.h: Ditto. * libc/sys/linux/dl/dl-load.c: Ditto. * libc/sys/linux/dl/dl-lookup.c: Ditto. * libc/sys/linux/dl/dl-lookupcfg.h: Ditto. * libc/sys/linux/dl/dl-minimal.c: Ditto. * libc/sys/linux/dl/dl-misc.c: Ditto. * libc/sys/linux/dl/dl-object.c: Ditto. * libc/sys/linux/dl/dl-open.c: Ditto. * libc/sys/linux/dl/dl-osinfo.h: Ditto. * libc/sys/linux/dl/dl-profile.c: Ditto. * libc/sys/linux/dl/dl-profstub.c: Ditto. * libc/sys/linux/dl/dl-reloc.c: Ditto. * libc/sys/linux/dl/dl-runtime.c: Ditto. * libc/sys/linux/dl/dl-support.c: Ditto. * libc/sys/linux/dl/dl-sym.c: Ditto. * libc/sys/linux/dl/dl-version.c: Ditto. * libc/sys/linux/dl/dlfcn.h: Ditto. * libc/sys/linux/dl/do-lookup.h: Ditto. * libc/sys/linux/dl/do-rel.h: Ditto. * libc/sys/linux/dl/dynamic-link.h: Ditto. * libc/sys/linux/dl/kernel-features.h: Ditto. * libc/sys/linux/dl/ldsodefs.h: Ditto. * libc/sys/linux/dl/libintl.h: Ditto. * libc/sys/linux/dl/trusted-dirs.h: Ditto. * libc/sys/linux/dl/unsecvars.h: Ditto. * libc/sys/linux/iconv/Makefile.am: Ditto. * libc/sys/linux/iconv/Makefile.in: Ditto. * libc/sys/linux/iconv/categories.def: Ditto. * libc/sys/linux/iconv/dummy-repertoire.c: Ditto. * libc/sys/linux/iconv/gconv.c: Ditto. * libc/sys/linux/iconv/gconv_builtin.c: Ditto. * libc/sys/linux/iconv/gconv_builtin.h: Ditto. * libc/sys/linux/iconv/gconv_cache.c: Ditto. * libc/sys/linux/iconv/gconv_charset.h: Ditto. * libc/sys/linux/iconv/gconv_close.c: Ditto. * libc/sys/linux/iconv/gconv_conf.c: Ditto. * libc/sys/linux/iconv/gconv_db.c: Ditto. * libc/sys/linux/iconv/gconv_dl.c: Ditto. * libc/sys/linux/iconv/gconv_int.h: Ditto. * libc/sys/linux/iconv/gconv_open.c: Ditto. * libc/sys/linux/iconv/gconv_simple.c: Ditto. * libc/sys/linux/iconv/gconv_trans.c: Ditto. * libc/sys/linux/iconv/hash-string.h: Ditto. * libc/sys/linux/iconv/iconv.c: Ditto. * libc/sys/linux/iconv/iconv.h: Ditto. * libc/sys/linux/iconv/iconv_charmap.c: Ditto. * libc/sys/linux/iconv/iconv_close.c: Ditto. * libc/sys/linux/iconv/iconv_open.c: Ditto. * libc/sys/linux/iconv/iconvconfig.c: Ditto. * libc/sys/linux/iconv/iconvconfig.h: Ditto. * libc/sys/linux/iconv/loadinfo.h: Ditto. * libc/sys/linux/iconv/localeinfo.h: Ditto. * libc/sys/linux/iconv/loop.c: Ditto. * libc/sys/linux/iconv/skeleton.c: Ditto. * libc/sys/linux/iconv/strtab.c: Ditto. * libc/sys/linux/include/dl-hash.h: Ditto. * libc/sys/linux/include/dlfcn.h: Ditto. * libc/sys/linux/include/fnmatch.h: Ditto. * libc/sys/linux/include/gconv.h: Ditto. * libc/sys/linux/include/glob.h: Ditto. * libc/sys/linux/include/hesiod.h: Ditto. * libc/sys/linux/include/ifaddrs.h: Ditto. * libc/sys/linux/include/libc_private.h: Ditto. * libc/sys/linux/include/link.h: Ditto. * libc/sys/linux/include/namespace.h: Ditto. * libc/sys/linux/include/netconfig.h: Ditto. * libc/sys/linux/include/netdb.h: Ditto. * libc/sys/linux/include/nsswitch.h: Ditto. * libc/sys/linux/include/regex.h: Ditto. * libc/sys/linux/include/resolv.h: Ditto. * libc/sys/linux/include/rune.h: Ditto. * libc/sys/linux/include/runetype.h: Ditto. * libc/sys/linux/include/semaphore.h: Ditto. * libc/sys/linux/include/setlocale.h: Ditto. * libc/sys/linux/include/un-namespace.h: Ditto. * libc/sys/linux/include/wordexp.h: Ditto. * libc/sys/linux/include/arpa/ftp.h: Ditto. * libc/sys/linux/include/arpa/inet.h: Ditto. * libc/sys/linux/include/arpa/nameser.h: Ditto. * libc/sys/linux/include/arpa/nameser_compat.h: Ditto. * libc/sys/linux/include/arpa/telnet.h: Ditto. * libc/sys/linux/include/arpa/tftp.h: Ditto. * libc/sys/linux/include/net/bpf.h: Ditto. * libc/sys/linux/include/net/bpf_compat.h: Ditto. * libc/sys/linux/include/net/bpfdesc.h: Ditto. * libc/sys/linux/include/net/bridge.h: Ditto. * libc/sys/linux/include/net/ethernet.h: Ditto. * libc/sys/linux/include/net/fddi.h: Ditto. * libc/sys/linux/include/net/if.h: Ditto. * libc/sys/linux/include/net/if_arc.h: Ditto. * libc/sys/linux/include/net/if_arp.h: Ditto. * libc/sys/linux/include/net/if_atm.h: Ditto. * libc/sys/linux/include/net/if_dl.h: Ditto. * libc/sys/linux/include/net/if_gif.h: Ditto. * libc/sys/linux/include/net/if_ieee80211.h: Ditto. * libc/sys/linux/include/net/if_llc.h: Ditto. * libc/sys/linux/include/net/if_media.h: Ditto. * libc/sys/linux/include/net/if_mib.h: Ditto. * libc/sys/linux/include/net/if_ppp.h: Ditto. * libc/sys/linux/include/net/if_pppvar.h: Ditto. * libc/sys/linux/include/net/if_slvar.h: Ditto. * libc/sys/linux/include/net/if_sppp.h: Ditto. * libc/sys/linux/include/net/if_stf.h: Ditto. * libc/sys/linux/include/net/if_tap.h: Ditto. * libc/sys/linux/include/net/if_tapvar.h: Ditto. * libc/sys/linux/include/net/if_tun.h: Ditto. * libc/sys/linux/include/net/if_tunvar.h: Ditto. * libc/sys/linux/include/net/if_types.h: Ditto. * libc/sys/linux/include/net/if_var.h: Ditto. * libc/sys/linux/include/net/if_vlan_var.h: Ditto. * libc/sys/linux/include/net/intrq.h: Ditto. * libc/sys/linux/include/net/iso88025.h: Ditto. * libc/sys/linux/include/net/net_osdep.h: Ditto. * libc/sys/linux/include/net/netisr.h: Ditto. * libc/sys/linux/include/net/pfil.h: Ditto. * libc/sys/linux/include/net/pfkeyv2.h: Ditto. * libc/sys/linux/include/net/ppp_comp.h: Ditto. * libc/sys/linux/include/net/ppp_defs.h: Ditto. * libc/sys/linux/include/net/radix.h: Ditto. * libc/sys/linux/include/net/raw_cb.h: Ditto. * libc/sys/linux/include/net/route.h: Ditto. * libc/sys/linux/include/net/slcompress.h: Ditto. * libc/sys/linux/include/net/slip.h: Ditto. * libc/sys/linux/include/net/zlib.h: Ditto. * libc/sys/linux/include/netinet/icmp6.h: Ditto. * libc/sys/linux/include/netinet/icmp_var.h: Ditto. * libc/sys/linux/include/netinet/if_atm.h: Ditto. * libc/sys/linux/include/netinet/if_ether.h: Ditto. * libc/sys/linux/include/netinet/igmp.h: Ditto. * libc/sys/linux/include/netinet/igmp_var.h: Ditto. * libc/sys/linux/include/netinet/in.h: Ditto. * libc/sys/linux/include/netinet/in_gif.h: Ditto. * libc/sys/linux/include/netinet/in_pcb.h: Ditto. * libc/sys/linux/include/netinet/in_systm.h: Ditto. * libc/sys/linux/include/netinet/in_var.h: Ditto. * libc/sys/linux/include/netinet/ip.h: Ditto. * libc/sys/linux/include/netinet/ip6.h: Ditto. * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto. * libc/sys/linux/include/netinet/ip_ecn.h: Ditto. * libc/sys/linux/include/netinet/ip_encap.h: Ditto. * libc/sys/linux/include/netinet/ip_flow.h: Ditto. * libc/sys/linux/include/netinet/ip_fw.h: Ditto. * libc/sys/linux/include/netinet/ip_icmp.h: Ditto. * libc/sys/linux/include/netinet/ip_mroute.h: Ditto. * libc/sys/linux/include/netinet/ip_var.h: Ditto. * libc/sys/linux/include/netinet/ipprotosw.h: Ditto. * libc/sys/linux/include/netinet/tcp.h: Ditto. * libc/sys/linux/include/netinet/tcp_debug.h: Ditto. * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto. * libc/sys/linux/include/netinet/tcp_seq.h: Ditto. * libc/sys/linux/include/netinet/tcp_timer.h: Ditto. * libc/sys/linux/include/netinet/tcp_var.h: Ditto. * libc/sys/linux/include/netinet/tcpip.h: Ditto. * libc/sys/linux/include/netinet/udp.h: Ditto. * libc/sys/linux/include/netinet/udp_var.h: Ditto. * libc/sys/linux/include/netinet6/ah.h: Ditto. * libc/sys/linux/include/netinet6/ah6.h: Ditto. * libc/sys/linux/include/netinet6/esp.h: Ditto. * libc/sys/linux/include/netinet6/esp6.h: Ditto. * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto. * libc/sys/linux/include/netinet6/icmp6.h: Ditto. * libc/sys/linux/include/netinet6/in6.h: Ditto. * libc/sys/linux/include/netinet6/in6_gif.h: Ditto. * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto. * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto. * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto. * libc/sys/linux/include/netinet6/in6_var.h: Ditto. * libc/sys/linux/include/netinet6/ip6.h: Ditto. * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto. * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto. * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto. * libc/sys/linux/include/netinet6/ip6_var.h: Ditto. * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto. * libc/sys/linux/include/netinet6/ipcomp.h: Ditto. * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto. * libc/sys/linux/include/netinet6/ipsec.h: Ditto. * libc/sys/linux/include/netinet6/ipsec6.h: Ditto. * libc/sys/linux/include/netinet6/mld6_var.h: Ditto. * libc/sys/linux/include/netinet6/nd6.h: Ditto. * libc/sys/linux/include/netinet6/pim6.h: Ditto. * libc/sys/linux/include/netinet6/pim6_var.h: Ditto. * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto. * libc/sys/linux/include/netinet6/scope6_var.h: Ditto. * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto. * libc/sys/linux/include/netinet6/udp6_var.h: Ditto. * libc/sys/linux/include/netns/idp.h: Ditto. * libc/sys/linux/include/netns/idp_var.h: Ditto. * libc/sys/linux/include/netns/ns.h: Ditto. * libc/sys/linux/include/netns/ns_error.h: Ditto. * libc/sys/linux/include/netns/ns_if.h: Ditto. * libc/sys/linux/include/netns/ns_pcb.h: Ditto. * libc/sys/linux/include/netns/sp.h: Ditto. * libc/sys/linux/include/netns/spidp.h: Ditto. * libc/sys/linux/include/netns/spp_debug.h: Ditto. * libc/sys/linux/include/netns/spp_timer.h: Ditto. * libc/sys/linux/include/netns/spp_var.h: Ditto. * libc/sys/linux/include/rpc/Makefile: Ditto. * libc/sys/linux/include/rpc/auth.h: Ditto. * libc/sys/linux/include/rpc/auth_des.h: Ditto. * libc/sys/linux/include/rpc/auth_kerb.h: Ditto. * libc/sys/linux/include/rpc/auth_unix.h: Ditto. * libc/sys/linux/include/rpc/clnt.h: Ditto. * libc/sys/linux/include/rpc/clnt_soc.h: Ditto. * libc/sys/linux/include/rpc/clnt_stat.h: Ditto. * libc/sys/linux/include/rpc/des.h: Ditto. * libc/sys/linux/include/rpc/des_crypt.h: Ditto. * libc/sys/linux/include/rpc/nettype.h: Ditto. * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto. * libc/sys/linux/include/rpc/pmap_prot.h: Ditto. * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto. * libc/sys/linux/include/rpc/raw.h: Ditto. * libc/sys/linux/include/rpc/rpc.h: Ditto. * libc/sys/linux/include/rpc/rpc_com.h: Ditto. * libc/sys/linux/include/rpc/rpc_msg.h: Ditto. * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto. * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto. * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto. * libc/sys/linux/include/rpc/rpcent.h: Ditto. * libc/sys/linux/include/rpc/svc.h: Ditto. * libc/sys/linux/include/rpc/svc_auth.h: Ditto. * libc/sys/linux/include/rpc/svc_dg.h: Ditto. * libc/sys/linux/include/rpc/svc_soc.h: Ditto. * libc/sys/linux/include/rpc/types.h: Ditto. * libc/sys/linux/include/rpc/xdr.h: Ditto. * libc/sys/linux/intl/Makefile.am: Ditto. * libc/sys/linux/intl/Makefile.in: Ditto. * libc/sys/linux/intl/bindtextdom.c: Ditto. * libc/sys/linux/intl/catgets.c: Ditto. * libc/sys/linux/intl/catgetsinfo.h: Ditto. * libc/sys/linux/intl/config.h: Ditto. * libc/sys/linux/intl/dcgettext.c: Ditto. * libc/sys/linux/intl/dcigettext.c: Ditto. * libc/sys/linux/intl/dcngettext.c: Ditto. * libc/sys/linux/intl/dgettext.c: Ditto. * libc/sys/linux/intl/dngettext.c: Ditto. * libc/sys/linux/intl/explodename.c: Ditto. * libc/sys/linux/intl/finddomain.c: Ditto. * libc/sys/linux/intl/gettext.c: Ditto. * libc/sys/linux/intl/gettext.h: Ditto. * libc/sys/linux/intl/gettextP.h: Ditto. * libc/sys/linux/intl/hash-string.h: Ditto. * libc/sys/linux/intl/l10nflist.c: Ditto. * libc/sys/linux/intl/loadinfo.h: Ditto. * libc/sys/linux/intl/loadmsgcat.c: Ditto. * libc/sys/linux/intl/locale.alias: Ditto. * libc/sys/linux/intl/localealias.c: Ditto. * libc/sys/linux/intl/ngettext.c: Ditto. * libc/sys/linux/intl/open_catalog.c: Ditto. * libc/sys/linux/intl/plural.c: Ditto. * libc/sys/linux/intl/plural.y: Ditto. * libc/sys/linux/intl/stpcpy.c: Ditto. * libc/sys/linux/intl/textdomain.c: Ditto. * libc/sys/linux/linuxthreads/LICENSE: Ditto. * libc/sys/linux/linuxthreads/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/Makefile.in: Ditto. * libc/sys/linux/linuxthreads/aclocal.m4: Ditto. * libc/sys/linux/linuxthreads/attr.c: Ditto. * libc/sys/linux/linuxthreads/barrier.c: Ditto. * libc/sys/linux/linuxthreads/bp-sym.h: Ditto. * libc/sys/linux/linuxthreads/cancel.c: Ditto. * libc/sys/linux/linuxthreads/condvar.c: Ditto. * libc/sys/linux/linuxthreads/config.h: Ditto. * libc/sys/linux/linuxthreads/configure: Ditto. * libc/sys/linux/linuxthreads/configure.in: Ditto. * libc/sys/linux/linuxthreads/defs.awk: Ditto. * libc/sys/linux/linuxthreads/ecmutex.c: Ditto. * libc/sys/linux/linuxthreads/events.c: Ditto. * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto. * libc/sys/linux/linuxthreads/getreent.c: Ditto. * libc/sys/linux/linuxthreads/internals.h: Ditto. * libc/sys/linux/linuxthreads/join.c: Ditto. * libc/sys/linux/linuxthreads/joinrace.c: Ditto. * libc/sys/linux/linuxthreads/kernel-features.h: Ditto. * libc/sys/linux/linuxthreads/libc-internal.h: Ditto. * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto. * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto. * libc/sys/linux/linuxthreads/lockfile.c: Ditto. * libc/sys/linux/linuxthreads/manager.c: Ditto. * libc/sys/linux/linuxthreads/mq_notify.c: Ditto. * libc/sys/linux/linuxthreads/mutex.c: Ditto. * libc/sys/linux/linuxthreads/no-tsd.c: Ditto. * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto. * libc/sys/linux/linuxthreads/posix-timer.h: Ditto. * libc/sys/linux/linuxthreads/prio.c: Ditto. * libc/sys/linux/linuxthreads/proc_service.h: Ditto. * libc/sys/linux/linuxthreads/pt-machine.c: Ditto. * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto. * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto. * libc/sys/linux/linuxthreads/ptfork.c: Ditto. * libc/sys/linux/linuxthreads/pthread.c: Ditto. * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto. * libc/sys/linux/linuxthreads/queue.h: Ditto. * libc/sys/linux/linuxthreads/reent.c: Ditto. * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto. * libc/sys/linux/linuxthreads/restart.h: Ditto. * libc/sys/linux/linuxthreads/rwlock.c: Ditto. * libc/sys/linux/linuxthreads/semaphore.c: Ditto. * libc/sys/linux/linuxthreads/semaphore.h: Ditto. * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto. * libc/sys/linux/linuxthreads/signals.c: Ditto. * libc/sys/linux/linuxthreads/specific.c: Ditto. * libc/sys/linux/linuxthreads/spinlock.c: Ditto. * libc/sys/linux/linuxthreads/spinlock.h: Ditto. * libc/sys/linux/linuxthreads/sysctl.c: Ditto. * libc/sys/linux/linuxthreads/td_init.c: Ditto. * libc/sys/linux/linuxthreads/td_log.c: Ditto. * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto. * libc/sys/linux/linuxthreads/testrtsig.h: Ditto. * libc/sys/linux/linuxthreads/thread_db.h: Ditto. * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto. * libc/sys/linux/linuxthreads/timer_create.c: Ditto. * libc/sys/linux/linuxthreads/timer_delete.c: Ditto. * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto. * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto. * libc/sys/linux/linuxthreads/timer_routines.c: Ditto. * libc/sys/linux/linuxthreads/timer_settime.c: Ditto. * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto. * libc/sys/linux/linuxthreads/tst-context.c: Ditto. * libc/sys/linux/linuxthreads/tststack.c: Ditto. * libc/sys/linux/linuxthreads/unload.c: Ditto. * libc/sys/linux/linuxthreads/weaks.c: Ditto. * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto. * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto. * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto. * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto. * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto. * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto. * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto. * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto. * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto. * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto. * libc/sys/linux/linuxthreads/machine/configure: Ditto. * libc/sys/linux/linuxthreads/machine/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto. * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto. * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto. * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto. * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto. * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto. * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto. * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto. * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto. * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto. * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto. * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto. * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto. * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto. * libc/sys/linux/machine/i386/dl-machine.h: Ditto. * libc/sys/linux/net/Makefile.am: Ditto. * libc/sys/linux/net/Makefile.in: Ditto. * libc/sys/linux/net/addr2ascii.3: Ditto. * libc/sys/linux/net/addr2ascii.c: Ditto. * libc/sys/linux/net/ascii2addr.c: Ditto. * libc/sys/linux/net/base64.c: Ditto. * libc/sys/linux/net/bindresvport.c: Ditto. * libc/sys/linux/net/byteorder.3: Ditto. * libc/sys/linux/net/ether_addr.c: Ditto. * libc/sys/linux/net/ethers.3: Ditto. * libc/sys/linux/net/getaddrinfo.3: Ditto. * libc/sys/linux/net/getaddrinfo.c: Ditto. * libc/sys/linux/net/gethostbydns.c: Ditto. * libc/sys/linux/net/gethostbyht.c: Ditto. * libc/sys/linux/net/gethostbyname.3: Ditto. * libc/sys/linux/net/gethostbynis.c: Ditto. * libc/sys/linux/net/gethostnamadr.c: Ditto. * libc/sys/linux/net/getifaddrs.3: Ditto. * libc/sys/linux/net/getifaddrs.c: Ditto. * libc/sys/linux/net/getipnodebyname.3: Ditto. * libc/sys/linux/net/getnameinfo.3: Ditto. * libc/sys/linux/net/getnameinfo.c: Ditto. * libc/sys/linux/net/getnetbydns.c: Ditto. * libc/sys/linux/net/getnetbyht.c: Ditto. * libc/sys/linux/net/getnetbynis.c: Ditto. * libc/sys/linux/net/getnetent.3: Ditto. * libc/sys/linux/net/getnetnamadr.c: Ditto. * libc/sys/linux/net/getproto.c: Ditto. * libc/sys/linux/net/getprotoent.3: Ditto. * libc/sys/linux/net/getprotoent.c: Ditto. * libc/sys/linux/net/getprotoname.c: Ditto. * libc/sys/linux/net/getservbyname.c: Ditto. * libc/sys/linux/net/getservbyport.c: Ditto. * libc/sys/linux/net/getservent.3: Ditto. * libc/sys/linux/net/getservent.c: Ditto. * libc/sys/linux/net/herror.c: Ditto. * libc/sys/linux/net/hesiod.3: Ditto. * libc/sys/linux/net/hesiod.c: Ditto. * libc/sys/linux/net/if_indextoname.3: Ditto. * libc/sys/linux/net/ifname.c: Ditto. * libc/sys/linux/net/inet.3: Ditto. * libc/sys/linux/net/inet6_option_s: Ditto.pace.3 * libc/sys/linux/net/inet6_rthdr_space.3: Ditto. * libc/sys/linux/net/inet_addr.c: Ditto. * libc/sys/linux/net/inet_lnaof.c: Ditto. * libc/sys/linux/net/inet_makeaddr.c: Ditto. * libc/sys/linux/net/inet_net.3: Ditto. * libc/sys/linux/net/inet_net_ntop.c: Ditto. * libc/sys/linux/net/inet_net_pton.c: Ditto. * libc/sys/linux/net/inet_neta.c: Ditto. * libc/sys/linux/net/inet_netof.c: Ditto. * libc/sys/linux/net/inet_network.c: Ditto. * libc/sys/linux/net/inet_ntoa.c: Ditto. * libc/sys/linux/net/inet_ntop.c: Ditto. * libc/sys/linux/net/inet_pton.c: Ditto. * libc/sys/linux/net/innetgr-stub.c: Ditto. * libc/sys/linux/net/ip6opt.c: Ditto. * libc/sys/linux/net/iso_addr.3: Ditto. * libc/sys/linux/net/iso_addr.c: Ditto. * libc/sys/linux/net/issetugid-stub.c: Ditto. * libc/sys/linux/net/linkaddr.3: Ditto. * libc/sys/linux/net/linkaddr.c: Ditto. * libc/sys/linux/net/map_v4v6.c: Ditto. * libc/sys/linux/net/name6.c: Ditto. * libc/sys/linux/net/namespace.h: Ditto. * libc/sys/linux/net/ns.3: Ditto. * libc/sys/linux/net/ns_addr.c: Ditto. * libc/sys/linux/net/ns_name.c: Ditto. * libc/sys/linux/net/ns_netint.c: Ditto. * libc/sys/linux/net/ns_ntoa.c: Ditto. * libc/sys/linux/net/ns_parse.c: Ditto. * libc/sys/linux/net/ns_print.c: Ditto. * libc/sys/linux/net/ns_ttl.c: Ditto. * libc/sys/linux/net/nsap_addr.c: Ditto. * libc/sys/linux/net/nsdispatch.3: Ditto. * libc/sys/linux/net/nsdispatch.c: Ditto. * libc/sys/linux/net/nslexer.c: Ditto. * libc/sys/linux/net/nslexer.l: Ditto. * libc/sys/linux/net/nsparser.c: Ditto. * libc/sys/linux/net/nsparser.h: Ditto. * libc/sys/linux/net/nsparser.y: Ditto. * libc/sys/linux/net/rcmd.3: Ditto. * libc/sys/linux/net/rcmd.c: Ditto. * libc/sys/linux/net/rcmdsh.3: Ditto. * libc/sys/linux/net/rcmdsh.c: Ditto. * libc/sys/linux/net/recv.c: Ditto. * libc/sys/linux/net/res_comp.c: Ditto. * libc/sys/linux/net/res_config.h: Ditto. * libc/sys/linux/net/res_data.c: Ditto. * libc/sys/linux/net/res_debug.c: Ditto. * libc/sys/linux/net/res_init.c: Ditto. * libc/sys/linux/net/res_mkquery.c: Ditto. * libc/sys/linux/net/res_mkupdate.c: Ditto. * libc/sys/linux/net/res_query.c: Ditto. * libc/sys/linux/net/res_send.c: Ditto. * libc/sys/linux/net/res_update.c: Ditto. * libc/sys/linux/net/resolver.3: Ditto. * libc/sys/linux/net/rthdr.c: Ditto. * libc/sys/linux/net/send.c: Ditto. * libc/sys/linux/net/un-namespace.h: Ditto. * libc/sys/linux/net/vars.c: Ditto. * libc/sys/linux/stdlib/COPYRIGHT: Ditto. * libc/sys/linux/stdlib/Makefile.am: Ditto. * libc/sys/linux/stdlib/Makefile.in: Ditto. * libc/sys/linux/stdlib/cclass.h: Ditto. * libc/sys/linux/stdlib/cname.h: Ditto. * libc/sys/linux/stdlib/collate.c: Ditto. * libc/sys/linux/stdlib/collate.h: Ditto. * libc/sys/linux/stdlib/collcmp.c: Ditto. * libc/sys/linux/stdlib/engine.c: Ditto. * libc/sys/linux/stdlib/fnmatch.3: Ditto. * libc/sys/linux/stdlib/fnmatch.c: Ditto. * libc/sys/linux/stdlib/glob.3: Ditto. * libc/sys/linux/stdlib/glob.c: Ditto. * libc/sys/linux/stdlib/reallocf.c: Ditto. * libc/sys/linux/stdlib/regcomp.c: Ditto. * libc/sys/linux/stdlib/regerror.c: Ditto. * libc/sys/linux/stdlib/regex.3: Ditto. * libc/sys/linux/stdlib/regex2.h: Ditto. * libc/sys/linux/stdlib/regexec.c: Ditto. * libc/sys/linux/stdlib/regfree.c: Ditto. * libc/sys/linux/stdlib/utils.h: Ditto. * libc/sys/linux/stdlib/wordexp.c: Ditto. * libc/sys/linux/stdlib/wordfree.c: Ditto. * libc/sys/linux/sys/dlfcn.h: Ditto. * libc/sys/linux/sys/elfclass.h: Ditto. * libc/sys/linux/sys/event.h: Ditto. * libc/sys/linux/sys/ioccom.h: Ditto. * libc/sys/linux/sys/libc-tsd.h: Ditto. * libc/sys/linux/sys/link.h: Ditto. * libc/sys/linux/sys/lock.h: Ditto. * libc/sys/linux/sys/param.h: Ditto. * libc/sys/linux/sys/socket.h: Ditto. * libc/sys/linux/sys/sockio.h: Ditto.
661 lines
19 KiB
C
661 lines
19 KiB
C
/*
|
|
* Please do not edit this file.
|
|
* It was generated using rpcgen.
|
|
*/
|
|
|
|
#ifndef _RPCB_PROT_H_RPCGEN
|
|
#define _RPCB_PROT_H_RPCGEN
|
|
|
|
#include <rpc/rpc.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $
|
|
*
|
|
* 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
|
|
*/
|
|
/*
|
|
* Copyright (c) 1988 by Sun Microsystems, Inc.
|
|
*/
|
|
/* from rpcb_prot.x */
|
|
|
|
/* #pragma ident "@(#)rpcb_prot.x 1.5 94/04/29 SMI" */
|
|
|
|
#ifndef _KERNEL
|
|
|
|
|
|
/*
|
|
* The following procedures are supported by the protocol in version 3:
|
|
*
|
|
* RPCBPROC_NULL() returns ()
|
|
* takes nothing, returns nothing
|
|
*
|
|
* RPCBPROC_SET(rpcb) returns (bool_t)
|
|
* TRUE is success, FALSE is failure. Registers the tuple
|
|
* [prog, vers, address, owner, netid].
|
|
* Finds out owner and netid information on its own.
|
|
*
|
|
* RPCBPROC_UNSET(rpcb) returns (bool_t)
|
|
* TRUE is success, FALSE is failure. Un-registers tuple
|
|
* [prog, vers, netid]. addresses is ignored.
|
|
* If netid is NULL, unregister all.
|
|
*
|
|
* RPCBPROC_GETADDR(rpcb) returns (string).
|
|
* 0 is failure. Otherwise returns the universal address where the
|
|
* triple [prog, vers, netid] is registered. Ignore address and owner.
|
|
*
|
|
* RPCBPROC_DUMP() RETURNS (rpcblist_ptr)
|
|
* used to dump the entire rpcbind maps
|
|
*
|
|
* RPCBPROC_CALLIT(rpcb_rmtcallargs)
|
|
* RETURNS (rpcb_rmtcallres);
|
|
* Calls the procedure on the remote machine. If it is not registered,
|
|
* this procedure is quiet; i.e. it does not return error information!!!
|
|
* This routine only passes null authentication parameters.
|
|
* It has no interface to xdr routines for RPCBPROC_CALLIT.
|
|
*
|
|
* RPCBPROC_GETTIME() returns (int).
|
|
* Gets the remote machines time
|
|
*
|
|
* RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf)
|
|
* Returns the netbuf address from universal address.
|
|
*
|
|
* RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string)
|
|
* Returns the universal address from netbuf address.
|
|
*
|
|
* END OF RPCBIND VERSION 3 PROCEDURES
|
|
*/
|
|
/*
|
|
* Except for RPCBPROC_CALLIT, the procedures above are carried over to
|
|
* rpcbind version 4. Those below are added or modified for version 4.
|
|
* NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER
|
|
* AS RPCBPROC_CALLIT.
|
|
*
|
|
* RPCBPROC_BCAST(rpcb_rmtcallargs)
|
|
* RETURNS (rpcb_rmtcallres);
|
|
* Calls the procedure on the remote machine. If it is not registered,
|
|
* this procedure IS quiet; i.e. it DOES NOT return error information!!!
|
|
* This routine should be used for broadcasting and nothing else.
|
|
*
|
|
* RPCBPROC_GETVERSADDR(rpcb) returns (string).
|
|
* 0 is failure. Otherwise returns the universal address where the
|
|
* triple [prog, vers, netid] is registered. Ignore address and owner.
|
|
* Same as RPCBPROC_GETADDR except that if the given version number
|
|
* is not available, the address is not returned.
|
|
*
|
|
* RPCBPROC_INDIRECT(rpcb_rmtcallargs)
|
|
* RETURNS (rpcb_rmtcallres);
|
|
* Calls the procedure on the remote machine. If it is not registered,
|
|
* this procedure is NOT quiet; i.e. it DOES return error information!!!
|
|
* as any normal application would expect.
|
|
*
|
|
* RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr).
|
|
* Same as RPCBPROC_GETADDR except that it returns a list of all the
|
|
* addresses registered for the combination (prog, vers) (for all
|
|
* transports).
|
|
*
|
|
* RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers)
|
|
* Returns the statistics about the kind of requests received by rpcbind.
|
|
*/
|
|
|
|
/*
|
|
* A mapping of (program, version, network ID) to address
|
|
*/
|
|
|
|
struct rpcb {
|
|
rpcprog_t r_prog;
|
|
rpcvers_t r_vers;
|
|
char *r_netid;
|
|
char *r_addr;
|
|
char *r_owner;
|
|
};
|
|
typedef struct rpcb rpcb;
|
|
|
|
typedef rpcb RPCB;
|
|
|
|
|
|
/*
|
|
* A list of mappings
|
|
*
|
|
* Below are two definitions for the rpcblist structure. This is done because
|
|
* xdr_rpcblist() is specified to take a struct rpcblist **, rather than a
|
|
* struct rpcblist * that rpcgen would produce. One version of the rpcblist
|
|
* structure (actually called rp__list) is used with rpcgen, and the other is
|
|
* defined only in the header file for compatibility with the specified
|
|
* interface.
|
|
*/
|
|
|
|
struct rp__list {
|
|
rpcb rpcb_map;
|
|
struct rp__list *rpcb_next;
|
|
};
|
|
typedef struct rp__list rp__list;
|
|
|
|
typedef rp__list *rpcblist_ptr;
|
|
|
|
typedef struct rp__list rpcblist;
|
|
typedef struct rp__list RPCBLIST;
|
|
|
|
#ifndef __cplusplus
|
|
struct rpcblist {
|
|
RPCB rpcb_map;
|
|
struct rpcblist *rpcb_next;
|
|
};
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
extern bool_t xdr_rpcblist(XDR *, rpcblist**);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
/*
|
|
* Arguments of remote calls
|
|
*/
|
|
|
|
struct rpcb_rmtcallargs {
|
|
rpcprog_t prog;
|
|
rpcvers_t vers;
|
|
rpcproc_t proc;
|
|
struct {
|
|
u_int args_len;
|
|
char *args_val;
|
|
} args;
|
|
};
|
|
typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
|
|
|
|
/*
|
|
* Client-side only representation of rpcb_rmtcallargs structure.
|
|
*
|
|
* The routine that XDRs the rpcb_rmtcallargs structure must deal with the
|
|
* opaque arguments in the "args" structure. xdr_rpcb_rmtcallargs() needs to
|
|
* be passed the XDR routine that knows the args' structure. This routine
|
|
* doesn't need to go over-the-wire (and it wouldn't make sense anyway) since
|
|
* the application being called already knows the args structure. So we use a
|
|
* different "XDR" structure on the client side, r_rpcb_rmtcallargs, which
|
|
* includes the args' XDR routine.
|
|
*/
|
|
struct r_rpcb_rmtcallargs {
|
|
rpcprog_t prog;
|
|
rpcvers_t vers;
|
|
rpcproc_t proc;
|
|
struct {
|
|
u_int args_len;
|
|
char *args_val;
|
|
} args;
|
|
xdrproc_t xdr_args; /* encodes args */
|
|
};
|
|
|
|
|
|
/*
|
|
* Results of the remote call
|
|
*/
|
|
|
|
struct rpcb_rmtcallres {
|
|
char *addr;
|
|
struct {
|
|
u_int results_len;
|
|
char *results_val;
|
|
} results;
|
|
};
|
|
typedef struct rpcb_rmtcallres rpcb_rmtcallres;
|
|
|
|
/*
|
|
* Client-side only representation of rpcb_rmtcallres structure.
|
|
*/
|
|
struct r_rpcb_rmtcallres {
|
|
char *addr;
|
|
struct {
|
|
u_int32_t results_len;
|
|
char *results_val;
|
|
} results;
|
|
xdrproc_t xdr_res; /* decodes results */
|
|
};
|
|
|
|
/*
|
|
* rpcb_entry contains a merged address of a service on a particular
|
|
* transport, plus associated netconfig information. A list of rpcb_entrys
|
|
* is returned by RPCBPROC_GETADDRLIST. See netconfig.h for values used
|
|
* in r_nc_* fields.
|
|
*/
|
|
|
|
struct rpcb_entry {
|
|
char *r_maddr;
|
|
char *r_nc_netid;
|
|
u_int r_nc_semantics;
|
|
char *r_nc_protofmly;
|
|
char *r_nc_proto;
|
|
};
|
|
typedef struct rpcb_entry rpcb_entry;
|
|
|
|
/*
|
|
* A list of addresses supported by a service.
|
|
*/
|
|
|
|
struct rpcb_entry_list {
|
|
rpcb_entry rpcb_entry_map;
|
|
struct rpcb_entry_list *rpcb_entry_next;
|
|
};
|
|
typedef struct rpcb_entry_list rpcb_entry_list;
|
|
|
|
typedef rpcb_entry_list *rpcb_entry_list_ptr;
|
|
|
|
/*
|
|
* rpcbind statistics
|
|
*/
|
|
|
|
#define rpcb_highproc_2 RPCBPROC_CALLIT
|
|
#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
|
|
#define rpcb_highproc_4 RPCBPROC_GETSTAT
|
|
#define RPCBSTAT_HIGHPROC 13
|
|
#define RPCBVERS_STAT 3
|
|
#define RPCBVERS_4_STAT 2
|
|
#define RPCBVERS_3_STAT 1
|
|
#define RPCBVERS_2_STAT 0
|
|
|
|
/* Link list of all the stats about getport and getaddr */
|
|
|
|
struct rpcbs_addrlist {
|
|
rpcprog_t prog;
|
|
rpcvers_t vers;
|
|
int success;
|
|
int failure;
|
|
char *netid;
|
|
struct rpcbs_addrlist *next;
|
|
};
|
|
typedef struct rpcbs_addrlist rpcbs_addrlist;
|
|
|
|
/* Link list of all the stats about rmtcall */
|
|
|
|
struct rpcbs_rmtcalllist {
|
|
rpcprog_t prog;
|
|
rpcvers_t vers;
|
|
rpcproc_t proc;
|
|
int success;
|
|
int failure;
|
|
int indirect;
|
|
char *netid;
|
|
struct rpcbs_rmtcalllist *next;
|
|
};
|
|
typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
|
|
|
|
typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
|
|
|
|
typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
|
|
|
|
typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
|
|
|
|
struct rpcb_stat {
|
|
rpcbs_proc info;
|
|
int setinfo;
|
|
int unsetinfo;
|
|
rpcbs_addrlist_ptr addrinfo;
|
|
rpcbs_rmtcalllist_ptr rmtinfo;
|
|
};
|
|
typedef struct rpcb_stat rpcb_stat;
|
|
|
|
/*
|
|
* One rpcb_stat structure is returned for each version of rpcbind
|
|
* being monitored.
|
|
*/
|
|
|
|
typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
|
|
|
|
/*
|
|
* We don't define netbuf in RPCL, since it would contain structure member
|
|
* names that would conflict with the definition of struct netbuf in
|
|
* <tiuser.h>. Instead we merely declare the XDR routine xdr_netbuf() here,
|
|
* and implement it ourselves in rpc/rpcb_prot.c.
|
|
*/
|
|
#ifdef __cplusplus
|
|
extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
|
|
|
|
#else /* __STDC__ */
|
|
extern bool_t xdr_netbuf(XDR *, struct netbuf *);
|
|
|
|
#endif
|
|
|
|
#define RPCBVERS_3 RPCBVERS
|
|
#define RPCBVERS_4 RPCBVERS4
|
|
|
|
#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
|
|
|
|
#else /* ndef _KERNEL */
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* A mapping of (program, version, network ID) to address
|
|
*/
|
|
struct rpcb {
|
|
rpcprog_t r_prog; /* program number */
|
|
rpcvers_t r_vers; /* version number */
|
|
char *r_netid; /* network id */
|
|
char *r_addr; /* universal address */
|
|
char *r_owner; /* owner of the mapping */
|
|
};
|
|
typedef struct rpcb RPCB;
|
|
|
|
/*
|
|
* A list of mappings
|
|
*/
|
|
struct rpcblist {
|
|
RPCB rpcb_map;
|
|
struct rpcblist *rpcb_next;
|
|
};
|
|
typedef struct rpcblist RPCBLIST;
|
|
typedef struct rpcblist *rpcblist_ptr;
|
|
|
|
/*
|
|
* Remote calls arguments
|
|
*/
|
|
struct rpcb_rmtcallargs {
|
|
rpcprog_t prog; /* program number */
|
|
rpcvers_t vers; /* version number */
|
|
rpcproc_t proc; /* procedure number */
|
|
u_int32_t arglen; /* arg len */
|
|
caddr_t args_ptr; /* argument */
|
|
xdrproc_t xdr_args; /* XDR routine for argument */
|
|
};
|
|
typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
|
|
|
|
/*
|
|
* Remote calls results
|
|
*/
|
|
struct rpcb_rmtcallres {
|
|
char *addr_ptr; /* remote universal address */
|
|
u_int32_t resultslen; /* results length */
|
|
caddr_t results_ptr; /* results */
|
|
xdrproc_t xdr_results; /* XDR routine for result */
|
|
};
|
|
typedef struct rpcb_rmtcallres rpcb_rmtcallres;
|
|
|
|
struct rpcb_entry {
|
|
char *r_maddr;
|
|
char *r_nc_netid;
|
|
unsigned int r_nc_semantics;
|
|
char *r_nc_protofmly;
|
|
char *r_nc_proto;
|
|
};
|
|
typedef struct rpcb_entry rpcb_entry;
|
|
|
|
/*
|
|
* A list of addresses supported by a service.
|
|
*/
|
|
|
|
struct rpcb_entry_list {
|
|
rpcb_entry rpcb_entry_map;
|
|
struct rpcb_entry_list *rpcb_entry_next;
|
|
};
|
|
typedef struct rpcb_entry_list rpcb_entry_list;
|
|
|
|
typedef rpcb_entry_list *rpcb_entry_list_ptr;
|
|
|
|
/*
|
|
* rpcbind statistics
|
|
*/
|
|
|
|
#define rpcb_highproc_2 RPCBPROC_CALLIT
|
|
#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
|
|
#define rpcb_highproc_4 RPCBPROC_GETSTAT
|
|
#define RPCBSTAT_HIGHPROC 13
|
|
#define RPCBVERS_STAT 3
|
|
#define RPCBVERS_4_STAT 2
|
|
#define RPCBVERS_3_STAT 1
|
|
#define RPCBVERS_2_STAT 0
|
|
|
|
/* Link list of all the stats about getport and getaddr */
|
|
|
|
struct rpcbs_addrlist {
|
|
rpcprog_t prog;
|
|
rpcvers_t vers;
|
|
int success;
|
|
int failure;
|
|
char *netid;
|
|
struct rpcbs_addrlist *next;
|
|
};
|
|
typedef struct rpcbs_addrlist rpcbs_addrlist;
|
|
|
|
/* Link list of all the stats about rmtcall */
|
|
|
|
struct rpcbs_rmtcalllist {
|
|
rpcprog_t prog;
|
|
rpcvers_t vers;
|
|
rpcproc_t proc;
|
|
int success;
|
|
int failure;
|
|
int indirect;
|
|
char *netid;
|
|
struct rpcbs_rmtcalllist *next;
|
|
};
|
|
typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
|
|
|
|
typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
|
|
|
|
typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
|
|
|
|
typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
|
|
|
|
struct rpcb_stat {
|
|
rpcbs_proc info;
|
|
int setinfo;
|
|
int unsetinfo;
|
|
rpcbs_addrlist_ptr addrinfo;
|
|
rpcbs_rmtcalllist_ptr rmtinfo;
|
|
};
|
|
typedef struct rpcb_stat rpcb_stat;
|
|
|
|
/*
|
|
* One rpcb_stat structure is returned for each version of rpcbind
|
|
* being monitored.
|
|
*/
|
|
|
|
typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ndef _KERNEL */
|
|
|
|
#define RPCBPROG 100000
|
|
#define RPCBVERS 3
|
|
|
|
#if defined(__STDC__) || defined(__cplusplus)
|
|
#define RPCBPROC_SET 1
|
|
extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
|
|
extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
|
|
#define RPCBPROC_UNSET 2
|
|
extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
|
|
extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
|
|
#define RPCBPROC_GETADDR 3
|
|
extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
|
|
extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
|
|
#define RPCBPROC_DUMP 4
|
|
extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
|
|
extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
|
|
#define RPCBPROC_CALLIT 5
|
|
extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
|
|
extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
|
|
#define RPCBPROC_GETTIME 6
|
|
extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
|
|
extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
|
|
#define RPCBPROC_UADDR2TADDR 7
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
|
|
#define RPCBPROC_TADDR2UADDR 8
|
|
extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
|
|
extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
|
|
extern int rpcbprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
|
|
|
|
#else /* K&R C */
|
|
#define RPCBPROC_SET 1
|
|
extern bool_t * rpcbproc_set_3();
|
|
extern bool_t * rpcbproc_set_3_svc();
|
|
#define RPCBPROC_UNSET 2
|
|
extern bool_t * rpcbproc_unset_3();
|
|
extern bool_t * rpcbproc_unset_3_svc();
|
|
#define RPCBPROC_GETADDR 3
|
|
extern char ** rpcbproc_getaddr_3();
|
|
extern char ** rpcbproc_getaddr_3_svc();
|
|
#define RPCBPROC_DUMP 4
|
|
extern rpcblist_ptr * rpcbproc_dump_3();
|
|
extern rpcblist_ptr * rpcbproc_dump_3_svc();
|
|
#define RPCBPROC_CALLIT 5
|
|
extern rpcb_rmtcallres * rpcbproc_callit_3();
|
|
extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
|
|
#define RPCBPROC_GETTIME 6
|
|
extern u_int * rpcbproc_gettime_3();
|
|
extern u_int * rpcbproc_gettime_3_svc();
|
|
#define RPCBPROC_UADDR2TADDR 7
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_3();
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
|
|
#define RPCBPROC_TADDR2UADDR 8
|
|
extern char ** rpcbproc_taddr2uaddr_3();
|
|
extern char ** rpcbproc_taddr2uaddr_3_svc();
|
|
extern int rpcbprog_3_freeresult ();
|
|
#endif /* K&R C */
|
|
#define RPCBVERS4 4
|
|
|
|
#if defined(__STDC__) || defined(__cplusplus)
|
|
extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
|
|
extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
|
|
extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
|
|
extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
|
|
extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
|
|
extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
|
|
extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
|
|
extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
|
|
#define RPCBPROC_BCAST RPCBPROC_CALLIT
|
|
extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
|
|
extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
|
|
extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
|
|
extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
|
|
extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
|
|
extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
|
|
#define RPCBPROC_GETVERSADDR 9
|
|
extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
|
|
extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
|
|
#define RPCBPROC_INDIRECT 10
|
|
extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
|
|
extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
|
|
#define RPCBPROC_GETADDRLIST 11
|
|
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
|
|
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
|
|
#define RPCBPROC_GETSTAT 12
|
|
extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
|
|
extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
|
|
extern int rpcbprog_4_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
|
|
|
|
#else /* K&R C */
|
|
extern bool_t * rpcbproc_set_4();
|
|
extern bool_t * rpcbproc_set_4_svc();
|
|
extern bool_t * rpcbproc_unset_4();
|
|
extern bool_t * rpcbproc_unset_4_svc();
|
|
extern char ** rpcbproc_getaddr_4();
|
|
extern char ** rpcbproc_getaddr_4_svc();
|
|
extern rpcblist_ptr * rpcbproc_dump_4();
|
|
extern rpcblist_ptr * rpcbproc_dump_4_svc();
|
|
#define RPCBPROC_BCAST RPCBPROC_CALLIT
|
|
extern rpcb_rmtcallres * rpcbproc_bcast_4();
|
|
extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
|
|
extern u_int * rpcbproc_gettime_4();
|
|
extern u_int * rpcbproc_gettime_4_svc();
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_4();
|
|
extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
|
|
extern char ** rpcbproc_taddr2uaddr_4();
|
|
extern char ** rpcbproc_taddr2uaddr_4_svc();
|
|
#define RPCBPROC_GETVERSADDR 9
|
|
extern char ** rpcbproc_getversaddr_4();
|
|
extern char ** rpcbproc_getversaddr_4_svc();
|
|
#define RPCBPROC_INDIRECT 10
|
|
extern rpcb_rmtcallres * rpcbproc_indirect_4();
|
|
extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
|
|
#define RPCBPROC_GETADDRLIST 11
|
|
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
|
|
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
|
|
#define RPCBPROC_GETSTAT 12
|
|
extern rpcb_stat * rpcbproc_getstat_4();
|
|
extern rpcb_stat * rpcbproc_getstat_4_svc();
|
|
extern int rpcbprog_4_freeresult ();
|
|
#endif /* K&R C */
|
|
|
|
/* the xdr functions */
|
|
|
|
#if defined(__STDC__) || defined(__cplusplus)
|
|
extern bool_t xdr_rpcb (XDR *, rpcb*);
|
|
extern bool_t xdr_rp__list (XDR *, rp__list*);
|
|
extern bool_t xdr_rpcblist_ptr (XDR *, rpcblist_ptr*);
|
|
extern bool_t xdr_rpcb_rmtcallargs (XDR *, rpcb_rmtcallargs*);
|
|
extern bool_t xdr_rpcb_rmtcallres (XDR *, rpcb_rmtcallres*);
|
|
extern bool_t xdr_rpcb_entry (XDR *, rpcb_entry*);
|
|
extern bool_t xdr_rpcb_entry_list (XDR *, rpcb_entry_list*);
|
|
extern bool_t xdr_rpcb_entry_list_ptr (XDR *, rpcb_entry_list_ptr*);
|
|
extern bool_t xdr_rpcbs_addrlist (XDR *, rpcbs_addrlist*);
|
|
extern bool_t xdr_rpcbs_rmtcalllist (XDR *, rpcbs_rmtcalllist*);
|
|
extern bool_t xdr_rpcbs_proc (XDR *, rpcbs_proc);
|
|
extern bool_t xdr_rpcbs_addrlist_ptr (XDR *, rpcbs_addrlist_ptr*);
|
|
extern bool_t xdr_rpcbs_rmtcalllist_ptr (XDR *, rpcbs_rmtcalllist_ptr*);
|
|
extern bool_t xdr_rpcb_stat (XDR *, rpcb_stat*);
|
|
extern bool_t xdr_rpcb_stat_byvers (XDR *, rpcb_stat_byvers);
|
|
|
|
#else /* K&R C */
|
|
extern bool_t xdr_rpcb ();
|
|
extern bool_t xdr_rp__list ();
|
|
extern bool_t xdr_rpcblist_ptr ();
|
|
extern bool_t xdr_rpcb_rmtcallargs ();
|
|
extern bool_t xdr_rpcb_rmtcallres ();
|
|
extern bool_t xdr_rpcb_entry ();
|
|
extern bool_t xdr_rpcb_entry_list ();
|
|
extern bool_t xdr_rpcb_entry_list_ptr ();
|
|
extern bool_t xdr_rpcbs_addrlist ();
|
|
extern bool_t xdr_rpcbs_rmtcalllist ();
|
|
extern bool_t xdr_rpcbs_proc ();
|
|
extern bool_t xdr_rpcbs_addrlist_ptr ();
|
|
extern bool_t xdr_rpcbs_rmtcalllist_ptr ();
|
|
extern bool_t xdr_rpcb_stat ();
|
|
extern bool_t xdr_rpcb_stat_byvers ();
|
|
|
|
#endif /* K&R C */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !_RPCB_PROT_H_RPCGEN */
|