├── .dockerignore ├── .github └── workflows │ ├── ci-latest.yaml │ └── ci.yaml ├── .gitignore ├── .stella-id ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── config.json ├── go.mod ├── go.sum ├── issue-lost-data.md ├── main.go ├── pool └── stella │ ├── .gitignore │ ├── GUIDELINES.md │ ├── README.md │ ├── TODO.md │ ├── conf.sh │ ├── nix │ ├── common │ │ ├── argp.sh │ │ ├── common-algorithm.sh │ │ ├── common-api.sh │ │ ├── common-app.sh │ │ ├── common-binary.sh │ │ ├── common-boot.sh │ │ ├── common-build-env.sh │ │ ├── common-build-link.sh │ │ ├── common-build-toolset.sh │ │ ├── common-build.sh │ │ ├── common-feature.sh │ │ ├── common-log.sh │ │ ├── common-network.sh │ │ ├── common-platform.sh │ │ ├── common.sh │ │ ├── lib-parse-bin.sh │ │ └── lib-sfx.sh │ └── pool │ │ ├── artefact │ │ ├── bash_ini_parser │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README │ │ │ ├── TODO │ │ │ ├── read_ini.sh │ │ │ └── test │ │ │ │ ├── test.sh │ │ │ │ ├── test1.ini │ │ │ │ ├── test1.out.correct │ │ │ │ ├── test1.sh │ │ │ │ ├── test2.ini │ │ │ │ ├── test2.out.correct │ │ │ │ ├── test2.sh │ │ │ │ ├── test3.ini │ │ │ │ ├── test3.out.correct │ │ │ │ ├── test3.sh │ │ │ │ ├── test4.ini │ │ │ │ ├── test4.out.correct │ │ │ │ ├── test4.sh │ │ │ │ ├── test5.ini │ │ │ │ ├── test5.out.correct │ │ │ │ ├── test5.sh │ │ │ │ ├── test6.ini │ │ │ │ ├── test6.out.correct │ │ │ │ ├── test6.sh │ │ │ │ ├── test7.ini │ │ │ │ ├── test7.out.correct │ │ │ │ ├── test7.sh │ │ │ │ ├── test8.ini │ │ │ │ ├── test8.out.correct │ │ │ │ ├── test8.sh │ │ │ │ ├── test9.ini │ │ │ │ ├── test9.out.correct │ │ │ │ └── test9.sh │ │ ├── lddtree │ │ │ ├── README.md │ │ │ └── lddtree.sh │ │ ├── neofetch │ │ │ ├── .github │ │ │ │ ├── ISSUE_TEMPLATE.md │ │ │ │ └── PULL_REQUEST_TEMPLATE.md │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE.md │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── neofetch │ │ │ └── neofetch.1 │ │ ├── pure-getopt │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── getopt.bash │ │ │ ├── test.bash │ │ │ └── travis.bash │ │ ├── screenFetch │ │ │ ├── .github │ │ │ │ └── ISSUE_TEMPLATE.md │ │ │ ├── CHANGELOG │ │ │ ├── COPYING │ │ │ ├── README.mkdn │ │ │ ├── TODO │ │ │ ├── screenfetch-dev │ │ │ ├── screenfetch.1 │ │ │ └── update-manpage.sh │ │ └── update.sh │ │ ├── feature-recipe │ │ ├── exp │ │ │ ├── feature_ambari.sh │ │ │ ├── feature_blackbird.sh │ │ │ ├── feature_cobbler.sh │ │ │ ├── feature_cyrus-sasl.sh │ │ │ ├── feature_eclipse.sh │ │ │ ├── feature_fabric8.sh │ │ │ ├── feature_glances.sh │ │ │ ├── feature_gnuplot.sh │ │ │ ├── feature_gorom.sh │ │ │ ├── feature_hadoop.sh │ │ │ ├── feature_haskell.sh │ │ │ ├── feature_hbase.sh │ │ │ ├── feature_kalibrate-rtl.sh │ │ │ ├── feature_kismet.sh │ │ │ ├── feature_libvirt.sh │ │ │ ├── feature_luabind.sh │ │ │ ├── feature_mesos.sh │ │ │ ├── feature_monkeyserver.sh │ │ │ ├── feature_ntopng.sh │ │ │ ├── feature_oolite.sh │ │ │ ├── feature_openjdk.sh │ │ │ ├── feature_openshift-origin-cli.sh │ │ │ ├── feature_openshift-origin-srv.sh │ │ │ ├── feature_oracle-jdk.sh │ │ │ ├── feature_predictionio.sh │ │ │ ├── feature_qt.sh │ │ │ ├── feature_r.sh │ │ │ ├── feature_rabbitmq.sh │ │ │ ├── feature_sevenzip.sh │ │ │ ├── feature_tensorflow.sh │ │ │ ├── feature_terraform_provider_libvirt.sh │ │ │ └── feature_tmux.sh │ │ ├── feature_adoptopenjdk.sh │ │ ├── feature_ag.sh │ │ ├── feature_allegro.sh │ │ ├── feature_angband-full.sh │ │ ├── feature_angband-sdl.sh │ │ ├── feature_angband.sh │ │ ├── feature_ansible.sh │ │ ├── feature_ant.sh │ │ ├── feature_apr-util.sh │ │ ├── feature_apr.sh │ │ ├── feature_argbash.sh │ │ ├── feature_arkade.sh │ │ ├── feature_augeas.sh │ │ ├── feature_autoconf.sh │ │ ├── feature_automake.sh │ │ ├── feature_autotools.sh │ │ ├── feature_bats-assert.sh │ │ ├── feature_bats-core.sh │ │ ├── feature_bats-file.sh │ │ ├── feature_bats-support.sh │ │ ├── feature_bats.sh │ │ ├── feature_bazel.sh │ │ ├── feature_bc.sh │ │ ├── feature_bindfs.sh │ │ ├── feature_binutils.sh │ │ ├── feature_bison.sh │ │ ├── feature_boost-bcp.sh │ │ ├── feature_boost-build.sh │ │ ├── feature_boost.sh │ │ ├── feature_browsh.sh │ │ ├── feature_bzip2.sh │ │ ├── feature_clang-omp.sh │ │ ├── feature_cmake.sh │ │ ├── feature_cmatrix.sh │ │ ├── feature_cointop.sh │ │ ├── feature_consul-template.sh │ │ ├── feature_consul.sh │ │ ├── feature_container-diff.sh │ │ ├── feature_cpptest.sh │ │ ├── feature_ctop.sh │ │ ├── feature_curl.sh │ │ ├── feature_curseofwar.sh │ │ ├── feature_dash.sh │ │ ├── feature_distcc.sh │ │ ├── feature_dive.sh │ │ ├── feature_docker-compose.sh │ │ ├── feature_docker-machine.sh │ │ ├── feature_docker-swarm.sh │ │ ├── feature_docker.sh │ │ ├── feature_dry.sh │ │ ├── feature_dumb.sh │ │ ├── feature_dump1090.sh │ │ ├── feature_dust.sh │ │ ├── feature_elasticsearch.sh │ │ ├── feature_etcd.sh │ │ ├── feature_expat.sh │ │ ├── feature_fastfetch.sh │ │ ├── feature_fasttext.sh │ │ ├── feature_fftw.sh │ │ ├── feature_figlet.sh │ │ ├── feature_firehol.sh │ │ ├── feature_flac.sh │ │ ├── feature_flex.sh │ │ ├── feature_flink.sh │ │ ├── feature_foma.sh │ │ ├── feature_fontconfig.sh │ │ ├── feature_freeciv.sh │ │ ├── feature_freetype.sh │ │ ├── feature_gcc.sh │ │ ├── feature_gekko.sh │ │ ├── feature_geoip.sh │ │ ├── feature_getopt.sh │ │ ├── feature_gettext.sh │ │ ├── feature_glew.sh │ │ ├── feature_glibc.sh │ │ ├── feature_gmp.sh │ │ ├── feature_gnustep-make.sh │ │ ├── feature_go-build-chain.sh │ │ ├── feature_go-crosscompile-chain.sh │ │ ├── feature_go.sh │ │ ├── feature_goaccess.sh │ │ ├── feature_graphviz.sh │ │ ├── feature_grype.sh │ │ ├── feature_heartbeat.sh │ │ ├── feature_helm.sh │ │ ├── feature_hfst.sh │ │ ├── feature_htop.sh │ │ ├── feature_httping.sh │ │ ├── feature_httrack.sh │ │ ├── feature_icu4c.sh │ │ ├── feature_ioninja.sh │ │ ├── feature_iprange.sh │ │ ├── feature_jansson.sh │ │ ├── feature_jpeg.sh │ │ ├── feature_jq.sh │ │ ├── feature_k0s.sh │ │ ├── feature_kafka-manager.sh │ │ ├── feature_kafka.sh │ │ ├── feature_kibana.sh │ │ ├── feature_kind.sh │ │ ├── feature_krb5.sh │ │ ├── feature_kubectl.sh │ │ ├── feature_lazydocker.sh │ │ ├── feature_lddtree.sh │ │ ├── feature_libevent.sh │ │ ├── feature_libiconv.sh │ │ ├── feature_libidn.sh │ │ ├── feature_liblinear.sh │ │ ├── feature_libogg.sh │ │ ├── feature_libpng.sh │ │ ├── feature_libsquish.sh │ │ ├── feature_libsvm.sh │ │ ├── feature_libtool.sh │ │ ├── feature_libusb.sh │ │ ├── feature_libwebsockets.sh │ │ ├── feature_libwww.sh │ │ ├── feature_libxml2.sh │ │ ├── feature_lightgbm.sh │ │ ├── feature_lnav.sh │ │ ├── feature_logstash.sh │ │ ├── feature_lua.sh │ │ ├── feature_luajit.sh │ │ ├── feature_lynis.sh │ │ ├── feature_lzo.sh │ │ ├── feature_m4.sh │ │ ├── feature_mambaforge.sh │ │ ├── feature_matchbox.sh │ │ ├── feature_maven.sh │ │ ├── feature_mdns-repeater.sh │ │ ├── feature_miniconda.sh │ │ ├── feature_miniconda2.sh │ │ ├── feature_miniconda3.sh │ │ ├── feature_miniforge3.sh │ │ ├── feature_minikube.sh │ │ ├── feature_minio-client.sh │ │ ├── feature_minishift.sh │ │ ├── feature_mode-export.sh │ │ ├── feature_ncurses.sh │ │ ├── feature_ndpi.sh │ │ ├── feature_netcat.sh │ │ ├── feature_nginx.sh │ │ ├── feature_ngrok.sh │ │ ├── feature_nifi.sh │ │ ├── feature_ninja.sh │ │ ├── feature_nmap.sh │ │ ├── feature_nms.sh │ │ ├── feature_nodejs.sh │ │ ├── feature_nsnake.sh │ │ ├── feature_nuctl.sh │ │ ├── feature_oc.sh │ │ ├── feature_ocaml.sh │ │ ├── feature_ohmyzsh.sh │ │ ├── feature_opam.sh │ │ ├── feature_openmpi.sh │ │ ├── feature_openssl.sh │ │ ├── feature_openttd.sh │ │ ├── feature_otto.sh │ │ ├── feature_packer.sh │ │ ├── feature_patchelf.sh │ │ ├── feature_pax-utils.sh │ │ ├── feature_pcre.sh │ │ ├── feature_perl.sh │ │ ├── feature_physfs.sh │ │ ├── feature_pkgconfig.sh │ │ ├── feature_protobuf-pythoncpp.sh │ │ ├── feature_protobuf.sh │ │ ├── feature_pv.sh │ │ ├── feature_pycharm.sh │ │ ├── feature_python.sh │ │ ├── feature_radare2.sh │ │ ├── feature_rclone.sh │ │ ├── feature_readline.sh │ │ ├── feature_redis.sh │ │ ├── feature_reg.sh │ │ ├── feature_restic.sh │ │ ├── feature_rexray.sh │ │ ├── feature_rtl-sdr.sh │ │ ├── feature_ruby-build.sh │ │ ├── feature_ruby-install.sh │ │ ├── feature_sbt.sh │ │ ├── feature_scala.sh │ │ ├── feature_sdl-gfx.sh │ │ ├── feature_sdl-image.sh │ │ ├── feature_sdl-mixer.sh │ │ ├── feature_sdl-ttf.sh │ │ ├── feature_sdl.sh │ │ ├── feature_shc.sh │ │ ├── feature_shell-fun.sh │ │ ├── feature_shell-games.sh │ │ ├── feature_shml.sh │ │ ├── feature_smartmontools.sh │ │ ├── feature_socat.sh │ │ ├── feature_sox.sh │ │ ├── feature_spark.sh │ │ ├── feature_sqlite.sh │ │ ├── feature_svn.sh │ │ ├── feature_swig.sh │ │ ├── feature_terraform.sh │ │ ├── feature_texinfo.sh │ │ ├── feature_tig.sh │ │ ├── feature_tinyproxy.sh │ │ ├── feature_ucl.sh │ │ ├── feature_unixodbc.sh │ │ ├── feature_unnethack.sh │ │ ├── feature_upx.sh │ │ ├── feature_vagrant.sh │ │ ├── feature_vitetris.sh │ │ ├── feature_vorbis.sh │ │ ├── feature_vowpal_wabbit.sh │ │ ├── feature_weboob.sh │ │ ├── feature_wget.sh │ │ ├── feature_wildfly.sh │ │ ├── feature_wrk.sh │ │ ├── feature_xgboost.sh │ │ ├── feature_xidel.sh │ │ ├── feature_xkcdpass.sh │ │ ├── feature_xzutils.sh │ │ ├── feature_yajl.sh │ │ ├── feature_yarn.sh │ │ ├── feature_yq.sh │ │ ├── feature_zeppelin.sh │ │ ├── feature_zeromq.sh │ │ └── feature_zlib.sh │ │ ├── patch │ │ └── openttd │ │ │ ├── patch_osx_music_AudioComponentDescription.diff │ │ │ └── patch_osx_quartz_CMGetSystemProfile_deprecated.diff │ │ ├── stella-bridge.sh │ │ └── template │ │ ├── feature_template-bundle.sh │ │ ├── feature_template-go.sh │ │ ├── feature_template.sh │ │ ├── feature_template_package_python.sh │ │ ├── feature_template_package_python_from_source.sh │ │ ├── sample-app.sh │ │ ├── sample-stella-link.sh │ │ └── sample-stella.properties │ └── stella.sh ├── stella-link.sh ├── vendor ├── github.com │ ├── Microsoft │ │ └── go-winio │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── backup.go │ │ │ ├── ea.go │ │ │ ├── file.go │ │ │ ├── fileinfo.go │ │ │ ├── hvsock.go │ │ │ ├── pipe.go │ │ │ ├── pkg │ │ │ └── guid │ │ │ │ └── guid.go │ │ │ ├── privilege.go │ │ │ ├── reparse.go │ │ │ ├── sd.go │ │ │ ├── syscall.go │ │ │ └── zsyscall_windows.go │ ├── Sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── alt_exit.go │ │ │ ├── appveyor.yml │ │ │ ├── doc.go │ │ │ ├── entry.go │ │ │ ├── exported.go │ │ │ ├── formatter.go │ │ │ ├── hooks.go │ │ │ ├── json_formatter.go │ │ │ ├── logger.go │ │ │ ├── logrus.go │ │ │ ├── terminal_bsd.go │ │ │ ├── terminal_linux.go │ │ │ ├── text_formatter.go │ │ │ └── writer.go │ ├── coreos │ │ └── go-systemd │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ └── activation │ │ │ ├── files.go │ │ │ ├── listeners.go │ │ │ └── packetconns.go │ └── docker │ │ ├── go-connections │ │ ├── LICENSE │ │ └── sockets │ │ │ ├── README.md │ │ │ ├── inmem_socket.go │ │ │ ├── proxy.go │ │ │ ├── sockets.go │ │ │ ├── sockets_unix.go │ │ │ ├── sockets_windows.go │ │ │ ├── tcp_socket.go │ │ │ └── unix_socket.go │ │ └── go-plugins-helpers │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── sdk │ │ ├── encoder.go │ │ ├── handler.go │ │ ├── pool.go │ │ ├── spec_file_generator.go │ │ ├── tcp_listener.go │ │ ├── unix_listener.go │ │ ├── unix_listener_nosystemd.go │ │ ├── unix_listener_systemd.go │ │ ├── unix_listener_unsupported.go │ │ ├── windows_listener.go │ │ ├── windows_listener_unsupported.go │ │ └── windows_pipe_config.go │ │ └── volume │ │ ├── README.md │ │ └── api.go ├── golang.org │ └── x │ │ ├── crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── ssh │ │ │ └── terminal │ │ │ └── terminal.go │ │ ├── sys │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── internal │ │ │ └── unsafeheader │ │ │ │ └── unsafeheader.go │ │ ├── plan9 │ │ │ ├── asm.s │ │ │ ├── asm_plan9_386.s │ │ │ ├── asm_plan9_amd64.s │ │ │ ├── asm_plan9_arm.s │ │ │ ├── const_plan9.go │ │ │ ├── dir_plan9.go │ │ │ ├── env_plan9.go │ │ │ ├── errors_plan9.go │ │ │ ├── mkall.sh │ │ │ ├── mkerrors.sh │ │ │ ├── mksysnum_plan9.sh │ │ │ ├── pwd_go15_plan9.go │ │ │ ├── pwd_plan9.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_plan9.go │ │ │ ├── zsyscall_plan9_386.go │ │ │ ├── zsyscall_plan9_amd64.go │ │ │ ├── zsyscall_plan9_arm.go │ │ │ └── zsysnum_plan9.go │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── affinity_linux.go │ │ │ ├── aliases.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_darwin_386.s │ │ │ ├── asm_darwin_amd64.s │ │ │ ├── asm_darwin_arm.s │ │ │ ├── asm_darwin_arm64.s │ │ │ ├── asm_dragonfly_amd64.s │ │ │ ├── asm_freebsd_386.s │ │ │ ├── asm_freebsd_amd64.s │ │ │ ├── asm_freebsd_arm.s │ │ │ ├── asm_freebsd_arm64.s │ │ │ ├── asm_linux_386.s │ │ │ ├── asm_linux_amd64.s │ │ │ ├── asm_linux_arm.s │ │ │ ├── asm_linux_arm64.s │ │ │ ├── asm_linux_mips64x.s │ │ │ ├── asm_linux_mipsx.s │ │ │ ├── asm_linux_ppc64x.s │ │ │ ├── asm_linux_riscv64.s │ │ │ ├── asm_linux_s390x.s │ │ │ ├── asm_netbsd_386.s │ │ │ ├── asm_netbsd_amd64.s │ │ │ ├── asm_netbsd_arm.s │ │ │ ├── asm_netbsd_arm64.s │ │ │ ├── asm_openbsd_386.s │ │ │ ├── asm_openbsd_amd64.s │ │ │ ├── asm_openbsd_arm.s │ │ │ ├── asm_openbsd_arm64.s │ │ │ ├── asm_openbsd_mips64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── cap_freebsd.go │ │ │ ├── constants.go │ │ │ ├── dev_aix_ppc.go │ │ │ ├── dev_aix_ppc64.go │ │ │ ├── dev_darwin.go │ │ │ ├── dev_dragonfly.go │ │ │ ├── dev_freebsd.go │ │ │ ├── dev_linux.go │ │ │ ├── dev_netbsd.go │ │ │ ├── dev_openbsd.go │ │ │ ├── dirent.go │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── env_unix.go │ │ │ ├── errors_freebsd_386.go │ │ │ ├── errors_freebsd_amd64.go │ │ │ ├── errors_freebsd_arm.go │ │ │ ├── errors_freebsd_arm64.go │ │ │ ├── fcntl.go │ │ │ ├── fcntl_darwin.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── fdset.go │ │ │ ├── gccgo.go │ │ │ ├── gccgo_c.c │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── ioctl.go │ │ │ ├── mkall.sh │ │ │ ├── mkerrors.sh │ │ │ ├── pagesize_unix.go │ │ │ ├── pledge_openbsd.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── sockcmsg_linux.go │ │ │ ├── sockcmsg_unix.go │ │ │ ├── sockcmsg_unix_other.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_aix.go │ │ │ ├── syscall_aix_ppc.go │ │ │ ├── syscall_aix_ppc64.go │ │ │ ├── syscall_bsd.go │ │ │ ├── syscall_darwin.1_12.go │ │ │ ├── syscall_darwin.1_13.go │ │ │ ├── syscall_darwin.go │ │ │ ├── syscall_darwin_386.go │ │ │ ├── syscall_darwin_amd64.go │ │ │ ├── syscall_darwin_arm.go │ │ │ ├── syscall_darwin_arm64.go │ │ │ ├── syscall_darwin_libSystem.go │ │ │ ├── syscall_dragonfly.go │ │ │ ├── syscall_dragonfly_amd64.go │ │ │ ├── syscall_freebsd.go │ │ │ ├── syscall_freebsd_386.go │ │ │ ├── syscall_freebsd_amd64.go │ │ │ ├── syscall_freebsd_arm.go │ │ │ ├── syscall_freebsd_arm64.go │ │ │ ├── syscall_illumos.go │ │ │ ├── syscall_linux.go │ │ │ ├── syscall_linux_386.go │ │ │ ├── syscall_linux_amd64.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── syscall_linux_arm.go │ │ │ ├── syscall_linux_arm64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── syscall_linux_gccgo_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_linux_mips64x.go │ │ │ ├── syscall_linux_mipsx.go │ │ │ ├── syscall_linux_ppc64x.go │ │ │ ├── syscall_linux_riscv64.go │ │ │ ├── syscall_linux_s390x.go │ │ │ ├── syscall_linux_sparc64.go │ │ │ ├── syscall_netbsd.go │ │ │ ├── syscall_netbsd_386.go │ │ │ ├── syscall_netbsd_amd64.go │ │ │ ├── syscall_netbsd_arm.go │ │ │ ├── syscall_netbsd_arm64.go │ │ │ ├── syscall_openbsd.go │ │ │ ├── syscall_openbsd_386.go │ │ │ ├── syscall_openbsd_amd64.go │ │ │ ├── syscall_openbsd_arm.go │ │ │ ├── syscall_openbsd_arm64.go │ │ │ ├── syscall_openbsd_mips64.go │ │ │ ├── syscall_solaris.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_unix.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_unix_gc_ppc64x.go │ │ │ ├── timestruct.go │ │ │ ├── unveil_openbsd.go │ │ │ ├── xattr_bsd.go │ │ │ ├── zerrors_aix_ppc.go │ │ │ ├── zerrors_aix_ppc64.go │ │ │ ├── zerrors_darwin_386.go │ │ │ ├── zerrors_darwin_amd64.go │ │ │ ├── zerrors_darwin_arm.go │ │ │ ├── zerrors_darwin_arm64.go │ │ │ ├── zerrors_dragonfly_amd64.go │ │ │ ├── zerrors_freebsd_386.go │ │ │ ├── zerrors_freebsd_amd64.go │ │ │ ├── zerrors_freebsd_arm.go │ │ │ ├── zerrors_freebsd_arm64.go │ │ │ ├── zerrors_linux.go │ │ │ ├── zerrors_linux_386.go │ │ │ ├── zerrors_linux_amd64.go │ │ │ ├── zerrors_linux_arm.go │ │ │ ├── zerrors_linux_arm64.go │ │ │ ├── zerrors_linux_mips.go │ │ │ ├── zerrors_linux_mips64.go │ │ │ ├── zerrors_linux_mips64le.go │ │ │ ├── zerrors_linux_mipsle.go │ │ │ ├── zerrors_linux_ppc64.go │ │ │ ├── zerrors_linux_ppc64le.go │ │ │ ├── zerrors_linux_riscv64.go │ │ │ ├── zerrors_linux_s390x.go │ │ │ ├── zerrors_linux_sparc64.go │ │ │ ├── zerrors_netbsd_386.go │ │ │ ├── zerrors_netbsd_amd64.go │ │ │ ├── zerrors_netbsd_arm.go │ │ │ ├── zerrors_netbsd_arm64.go │ │ │ ├── zerrors_openbsd_386.go │ │ │ ├── zerrors_openbsd_amd64.go │ │ │ ├── zerrors_openbsd_arm.go │ │ │ ├── zerrors_openbsd_arm64.go │ │ │ ├── zerrors_openbsd_mips64.go │ │ │ ├── zerrors_solaris_amd64.go │ │ │ ├── zptrace_armnn_linux.go │ │ │ ├── zptrace_linux_arm64.go │ │ │ ├── zptrace_mipsnn_linux.go │ │ │ ├── zptrace_mipsnnle_linux.go │ │ │ ├── zptrace_x86_linux.go │ │ │ ├── zsyscall_aix_ppc.go │ │ │ ├── zsyscall_aix_ppc64.go │ │ │ ├── zsyscall_aix_ppc64_gc.go │ │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ │ ├── zsyscall_darwin_386.1_13.go │ │ │ ├── zsyscall_darwin_386.1_13.s │ │ │ ├── zsyscall_darwin_386.go │ │ │ ├── zsyscall_darwin_386.s │ │ │ ├── zsyscall_darwin_amd64.1_13.go │ │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ │ ├── zsyscall_darwin_amd64.go │ │ │ ├── zsyscall_darwin_amd64.s │ │ │ ├── zsyscall_darwin_arm.1_13.go │ │ │ ├── zsyscall_darwin_arm.1_13.s │ │ │ ├── zsyscall_darwin_arm.go │ │ │ ├── zsyscall_darwin_arm.s │ │ │ ├── zsyscall_darwin_arm64.1_13.go │ │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ │ ├── zsyscall_darwin_arm64.go │ │ │ ├── zsyscall_darwin_arm64.s │ │ │ ├── zsyscall_dragonfly_amd64.go │ │ │ ├── zsyscall_freebsd_386.go │ │ │ ├── zsyscall_freebsd_amd64.go │ │ │ ├── zsyscall_freebsd_arm.go │ │ │ ├── zsyscall_freebsd_arm64.go │ │ │ ├── zsyscall_illumos_amd64.go │ │ │ ├── zsyscall_linux.go │ │ │ ├── zsyscall_linux_386.go │ │ │ ├── zsyscall_linux_amd64.go │ │ │ ├── zsyscall_linux_arm.go │ │ │ ├── zsyscall_linux_arm64.go │ │ │ ├── zsyscall_linux_mips.go │ │ │ ├── zsyscall_linux_mips64.go │ │ │ ├── zsyscall_linux_mips64le.go │ │ │ ├── zsyscall_linux_mipsle.go │ │ │ ├── zsyscall_linux_ppc64.go │ │ │ ├── zsyscall_linux_ppc64le.go │ │ │ ├── zsyscall_linux_riscv64.go │ │ │ ├── zsyscall_linux_s390x.go │ │ │ ├── zsyscall_linux_sparc64.go │ │ │ ├── zsyscall_netbsd_386.go │ │ │ ├── zsyscall_netbsd_amd64.go │ │ │ ├── zsyscall_netbsd_arm.go │ │ │ ├── zsyscall_netbsd_arm64.go │ │ │ ├── zsyscall_openbsd_386.go │ │ │ ├── zsyscall_openbsd_amd64.go │ │ │ ├── zsyscall_openbsd_arm.go │ │ │ ├── zsyscall_openbsd_arm64.go │ │ │ ├── zsyscall_openbsd_mips64.go │ │ │ ├── zsyscall_solaris_amd64.go │ │ │ ├── zsysctl_openbsd_386.go │ │ │ ├── zsysctl_openbsd_amd64.go │ │ │ ├── zsysctl_openbsd_arm.go │ │ │ ├── zsysctl_openbsd_arm64.go │ │ │ ├── zsysctl_openbsd_mips64.go │ │ │ ├── zsysnum_darwin_386.go │ │ │ ├── zsysnum_darwin_amd64.go │ │ │ ├── zsysnum_darwin_arm.go │ │ │ ├── zsysnum_darwin_arm64.go │ │ │ ├── zsysnum_dragonfly_amd64.go │ │ │ ├── zsysnum_freebsd_386.go │ │ │ ├── zsysnum_freebsd_amd64.go │ │ │ ├── zsysnum_freebsd_arm.go │ │ │ ├── zsysnum_freebsd_arm64.go │ │ │ ├── zsysnum_linux_386.go │ │ │ ├── zsysnum_linux_amd64.go │ │ │ ├── zsysnum_linux_arm.go │ │ │ ├── zsysnum_linux_arm64.go │ │ │ ├── zsysnum_linux_mips.go │ │ │ ├── zsysnum_linux_mips64.go │ │ │ ├── zsysnum_linux_mips64le.go │ │ │ ├── zsysnum_linux_mipsle.go │ │ │ ├── zsysnum_linux_ppc64.go │ │ │ ├── zsysnum_linux_ppc64le.go │ │ │ ├── zsysnum_linux_riscv64.go │ │ │ ├── zsysnum_linux_s390x.go │ │ │ ├── zsysnum_linux_sparc64.go │ │ │ ├── zsysnum_netbsd_386.go │ │ │ ├── zsysnum_netbsd_amd64.go │ │ │ ├── zsysnum_netbsd_arm.go │ │ │ ├── zsysnum_netbsd_arm64.go │ │ │ ├── zsysnum_openbsd_386.go │ │ │ ├── zsysnum_openbsd_amd64.go │ │ │ ├── zsysnum_openbsd_arm.go │ │ │ ├── zsysnum_openbsd_arm64.go │ │ │ ├── zsysnum_openbsd_mips64.go │ │ │ ├── ztypes_aix_ppc.go │ │ │ ├── ztypes_aix_ppc64.go │ │ │ ├── ztypes_darwin_386.go │ │ │ ├── ztypes_darwin_amd64.go │ │ │ ├── ztypes_darwin_arm.go │ │ │ ├── ztypes_darwin_arm64.go │ │ │ ├── ztypes_dragonfly_amd64.go │ │ │ ├── ztypes_freebsd_386.go │ │ │ ├── ztypes_freebsd_amd64.go │ │ │ ├── ztypes_freebsd_arm.go │ │ │ ├── ztypes_freebsd_arm64.go │ │ │ ├── ztypes_linux.go │ │ │ ├── ztypes_linux_386.go │ │ │ ├── ztypes_linux_amd64.go │ │ │ ├── ztypes_linux_arm.go │ │ │ ├── ztypes_linux_arm64.go │ │ │ ├── ztypes_linux_mips.go │ │ │ ├── ztypes_linux_mips64.go │ │ │ ├── ztypes_linux_mips64le.go │ │ │ ├── ztypes_linux_mipsle.go │ │ │ ├── ztypes_linux_ppc64.go │ │ │ ├── ztypes_linux_ppc64le.go │ │ │ ├── ztypes_linux_riscv64.go │ │ │ ├── ztypes_linux_s390x.go │ │ │ ├── ztypes_linux_sparc64.go │ │ │ ├── ztypes_netbsd_386.go │ │ │ ├── ztypes_netbsd_amd64.go │ │ │ ├── ztypes_netbsd_arm.go │ │ │ ├── ztypes_netbsd_arm64.go │ │ │ ├── ztypes_openbsd_386.go │ │ │ ├── ztypes_openbsd_amd64.go │ │ │ ├── ztypes_openbsd_arm.go │ │ │ ├── ztypes_openbsd_arm64.go │ │ │ ├── ztypes_openbsd_mips64.go │ │ │ └── ztypes_solaris_amd64.go │ │ └── windows │ │ │ ├── aliases.go │ │ │ ├── dll_windows.go │ │ │ ├── empty.s │ │ │ ├── env_windows.go │ │ │ ├── eventlog.go │ │ │ ├── exec_windows.go │ │ │ ├── memory_windows.go │ │ │ ├── mkerrors.bash │ │ │ ├── mkknownfolderids.bash │ │ │ ├── mksyscall.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── security_windows.go │ │ │ ├── service.go │ │ │ ├── setupapierrors_windows.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_windows.go │ │ │ ├── types_windows.go │ │ │ ├── types_windows_386.go │ │ │ ├── types_windows_amd64.go │ │ │ ├── types_windows_arm.go │ │ │ ├── zerrors_windows.go │ │ │ ├── zknownfolderids_windows.go │ │ │ └── zsyscall_windows.go │ │ └── term │ │ ├── AUTHORS │ │ ├── CONTRIBUTING.md │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── README.md │ │ ├── term.go │ │ ├── term_plan9.go │ │ ├── term_solaris.go │ │ ├── term_unix.go │ │ ├── term_unix_aix.go │ │ ├── term_unix_bsd.go │ │ ├── term_unix_linux.go │ │ ├── term_unix_zos.go │ │ ├── term_unsupported.go │ │ ├── term_windows.go │ │ └── terminal.go └── modules.txt └── version └── version.go /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | .gitignore 3 | .github 4 | .gitattributes 5 | READMETEMPLATE.md 6 | README.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | docker-volume-sshfs 2 | plugin/ 3 | plugin-copy/ 4 | .idea 5 | workspace/ 6 | cache/ -------------------------------------------------------------------------------- /.stella-id: -------------------------------------------------------------------------------- 1 | export STELLA_ROOT=$_STELLA_LINK_CURRENT_FILE_DIR/pool/stella 2 | STELLA_DEP_FLAVOUR=VENDOR 3 | STELLA_DEP_VERSION=0.0.4-350-g5d876ca 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 4 | 2015-2017 Christian Lecherbauer 5 | 2019-2024 Sylvain Boucault 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "bindFS plugin for Docker", 3 | "documentation": "https://docs.docker.com/engine/extend/plugins/", 4 | "entrypoint": [ 5 | "/dumb-init", 6 | "/docker-volume-bindfs" 7 | ], 8 | "env": [ 9 | { 10 | "name": "DEBUG", 11 | "settable": [ 12 | "value" 13 | ], 14 | "value": "0" 15 | } 16 | ], 17 | "interface": { 18 | "socket": "bindfs.sock", 19 | "types": [ 20 | "docker.volumedriver/1.0" 21 | ] 22 | }, 23 | "linux": { 24 | "capabilities": [ 25 | "CAP_SYS_ADMIN" 26 | ], 27 | "devices": [ 28 | { 29 | "path": "/dev/fuse" 30 | } 31 | ] 32 | }, 33 | "mounts": [ 34 | { 35 | "destination": "/mnt/state", 36 | "options": [ 37 | "rbind" 38 | ], 39 | "name": "state", 40 | "source": "/var/lib/docker/plugins/", 41 | "settable": [ 42 | "source" 43 | ], 44 | "type": "bind" 45 | }, 46 | { 47 | "destination": "/mnt/host", 48 | "options": [ 49 | "rbind" 50 | ], 51 | "name": "host-root", 52 | "source": "/", 53 | "settable": [ 54 | "source" 55 | ], 56 | "type": "bind" 57 | } 58 | ], 59 | "propagatedmount": "/mnt/volumes" 60 | } 61 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/StudioEtrange/docker-volume-bindfs 2 | 3 | go 1.21 4 | 5 | require github.com/Sirupsen/logrus v1.0.2-0.20170728074214-181d419aa9e2 6 | 7 | require ( 8 | github.com/Microsoft/go-winio v0.4.16-0.20201123211815-f314918fc79c // indirect 9 | github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect 10 | github.com/docker/go-connections v0.4.1-0.20200911173324-09f47925228a // indirect 11 | github.com/docker/go-plugins-helpers v0.0.0-20211224144127-6eecb7beb651 12 | golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392 // indirect 13 | golang.org/x/sys v0.0.0-20201126233918-771906719818 // indirect 14 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect 15 | ) 16 | -------------------------------------------------------------------------------- /issue-lost-data.md: -------------------------------------------------------------------------------- 1 | # Loss data issue ! 2 | 3 | * in some scenario, the mounted folder is completely removed 4 | 5 | ## Related issues 6 | 7 | * https://github.com/vieux/docker-volume-sshfs/issues/81 8 | * https://github.com/fentas/docker-volume-davfs/issues/6 9 | 10 | * idea from : https://github.com/fentas/docker-volume-davfs/issues/6#issuecomment-1406673459 11 | * two volumes on same mountoint, one used, and mountpoint actively readed/write => when delete second volume => loss data ? 12 | * idea from : https://github.com/vieux/docker-volume-sshfs/issues/81#issuecomment-1063640681 13 | * os.RemoveAll is too long ? 14 | 15 | * inspiration for fixing issue : https://github.com/ucphhpc/docker-volume-sshfs -------------------------------------------------------------------------------- /pool/stella/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | VERSION 3 | workspace/ 4 | cache/ 5 | .stella-env 6 | .stella-ftp-credentials 7 | .bash_history 8 | .vagrant/ 9 | -------------------------------------------------------------------------------- /pool/stella/nix/common/common-log.sh: -------------------------------------------------------------------------------- 1 | #!sh 2 | if [ ! "$_STELLA_COMMON_LOG_INCLUDED_" = "1" ]; then 3 | _STELLA_COMMON_LOG_INCLUDED_=1 4 | 5 | 6 | # __log_init() { 7 | # STELLA_LOG_STATE= 8 | # STELLA_LOG_LEVEL= 9 | # } 10 | 11 | __set_log_state() { 12 | local _state="$1" 13 | STELLA_LOG_STATE="$_state" 14 | } 15 | 16 | # TODO : use level 17 | __set_log_level() { 18 | local _level="$1" 19 | STELLA_LOG_LEVEL="$_level" 20 | } 21 | 22 | __log() { 23 | local _level="$1" 24 | local _msg="$2" 25 | 26 | [ "$STELLA_LOG_STATE" = "ON" ] && echo "$_msg" 27 | 28 | } 29 | 30 | fi 31 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | 3 | compiler: 4 | - gcc 5 | 6 | before_install: 7 | 8 | script: cd test && ./test.sh 9 | 10 | ## whitelist 11 | branches: 12 | only: 13 | - master 14 | - next 15 | 16 | notifications: 17 | email: 18 | - sweet_f_a@gmx.de 19 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/TODO: -------------------------------------------------------------------------------- 1 | 2 | 3 | - Tabs/newlines to be preserved 4 | 5 | - [] notation for arrays (like PHP's parse_ini_file()) 6 | 7 | 8 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test.sh: -------------------------------------------------------------------------------- 1 | 2 | DIR=$(dirname $0) 3 | cd $DIR 4 | 5 | TESTS=$(ls test*.sh | grep -v test.sh | sed 's/\.sh$//') 6 | 7 | for test in $TESTS 8 | do 9 | 10 | bash $test.sh &> $test.out 11 | # bash $test.sh >$test.out 2>$test.err 12 | 13 | # Fail and bail out if test didn't pass 14 | PASSED=$(diff $test.out $test.out.correct 2>&1) 15 | if [ ! -z "$PASSED" ] 16 | then 17 | echo "Test $test failed. Output is in $DIR/$test.out" 18 | exit 1 19 | else 20 | rm -rf $test.out 21 | fi 22 | 23 | done 24 | 25 | 26 | echo "All tests passed" 27 | 28 | 29 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test1.ini: -------------------------------------------------------------------------------- 1 | 2 | ; Comment beginning with ';' 3 | # Comment beginning with '#' 4 | 5 | ; var1 - simple var 6 | var1=VAR 1 7 | 8 | ; var2 - space before '='; leading space that should be stripped 9 | var2 = VAR 2 10 | 11 | ; var3 - with leading and trailing space that should be stripped 12 | var3 = VAR 3 13 | 14 | ; var4 - value in double quotes 15 | var4="VAR 4" 16 | 17 | ; var5 - value in double quotes; value's leading and trailing whitespace should 18 | ; be preserved; leading and trailing whitespace before/after double quotes should 19 | ; not become part of the value 20 | var5 = " VAR 5 " 21 | 22 | ; var6 - value in double quotes; value's leading and trailing whitespace should 23 | ; be preserved; leading and trailing whitespace before/after double quotes should 24 | ; not become part of the value 25 | var6 = ' VAR 6 ' 26 | 27 | ; var7 - value contains a single double quote 28 | var7 = VAR " 7 29 | 30 | ; var8 - value contains a single single quote 31 | var8 = VAR ' 8 32 | 33 | ; var9 - leading whitespace before variable name 34 | var9=VAR 9 35 | 36 | ; var10 - leading whitespace before variable name 37 | var10 = VAR 10 38 | 39 | ; var11 - no newline at the end of file 40 | var11 = VAR 11 -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test1.out.correct: -------------------------------------------------------------------------------- 1 | var1:VAR 1 2 | var2:VAR 2 3 | var3:VAR 3 4 | var4:VAR 4 5 | var5: VAR 5 6 | var6: VAR 6 7 | var7:VAR " 7 8 | var8:VAR ' 8 9 | var9:VAR 9 10 | var10:VAR 10 11 | var11:VAR 11 12 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test1.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Test 1 4 | # 5 | # Basic variable values; leading/trailing whitespace; comments 6 | 7 | . ../read_ini.sh 8 | read_ini test1.ini 9 | 10 | #echo "a:LOCALVAR=$LOCALVAR" 11 | echo "var1:$INI__var1" 12 | echo "var2:$INI__var2" 13 | echo "var3:$INI__var3" 14 | echo "var4:$INI__var4" 15 | echo "var5:$INI__var5" 16 | echo "var6:$INI__var6" 17 | echo "var7:$INI__var7" 18 | echo "var8:$INI__var8" 19 | echo "var9:$INI__var9" 20 | echo "var10:$INI__var10" 21 | echo "var11:$INI__var11" 22 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test2.ini: -------------------------------------------------------------------------------- 1 | 2 | 3 | var1=VAR1 4 | 5 | ; Invalid line - should throw an error and stop processing 6 | INVALID LINE 7 | var2=VAR2 8 | 9 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test2.out.correct: -------------------------------------------------------------------------------- 1 | Error: Invalid line: 2 | 6: INVALID LINE 3 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test2.sh: -------------------------------------------------------------------------------- 1 | 2 | # Test 2 3 | # 4 | # Invalid line 5 | 6 | . ../read_ini.sh 7 | read_ini test2.ini 8 | 9 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test3.ini: -------------------------------------------------------------------------------- 1 | 2 | ; Testing sections 3 | 4 | var1=VAR 1 5 | var2= "VAR 2 " 6 | 7 | [section1] 8 | var1="section 1 VAR 1" 9 | var2= "section 1 VAR 2" 10 | var3 = "section 1 VAR 3 " 11 | 12 | [section2] 13 | var1 = section 2 VAR 1 14 | var2=" section 2 VAR 2" 15 | var3=section 2 VAR 3 16 | var4=section 2 VAR 4 17 | var5=section 2 VAR 5 18 | 19 | [section3] 20 | var1="section 3 VAR 1" 21 | var2= "section 3 VAR 2" 22 | 23 | 24 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test3.out.correct: -------------------------------------------------------------------------------- 1 | var1:VAR 1 2 | var2:VAR 2 3 | setion1_var1:section 1 VAR 1 4 | setion1_var2:section 1 VAR 2 5 | setion1_var3:section 1 VAR 3 6 | setion2_var1:section 2 VAR 1 7 | setion2_var2: section 2 VAR 2 8 | setion2_var3:section 2 VAR 3 9 | setion2_var4:section 2 VAR 4 10 | setion2_var5:section 2 VAR 5 11 | setion3_var1:section 3 VAR 1 12 | setion3_var2:section 3 VAR 2 13 | number sections:3 14 | all sections:section1 section2 section3 15 | all variables:INI__var1 INI__var2 INI__section1__var1 INI__section1__var2 INI__section1__var3 INI__section2__var1 INI__section2__var2 INI__section2__var3 INI__section2__var4 INI__section2__var5 INI__section3__var1 INI__section3__var2 16 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test3.sh: -------------------------------------------------------------------------------- 1 | 2 | # Test 3 3 | # 4 | # Sections 5 | 6 | . ../read_ini.sh 7 | read_ini test3.ini 8 | 9 | echo "var1:$INI__var1" 10 | echo "var2:$INI__var2" 11 | 12 | echo "setion1_var1:$INI__section1__var1" 13 | echo "setion1_var2:$INI__section1__var2" 14 | echo "setion1_var3:$INI__section1__var3" 15 | 16 | echo "setion2_var1:$INI__section2__var1" 17 | echo "setion2_var2:$INI__section2__var2" 18 | echo "setion2_var3:$INI__section2__var3" 19 | echo "setion2_var4:$INI__section2__var4" 20 | echo "setion2_var5:$INI__section2__var5" 21 | 22 | echo "setion3_var1:$INI__section3__var1" 23 | echo "setion3_var2:$INI__section3__var2" 24 | 25 | echo "number sections:$INI__NUMSECTIONS" 26 | echo "all sections:$INI__ALL_SECTIONS" 27 | echo "all variables:$INI__ALL_VARS" 28 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test4.ini: -------------------------------------------------------------------------------- 1 | 2 | ; Testing dots in variable names (these get converted to underscores in 3 | ; output variable names) 4 | 5 | var.1 = "VAR 1" 6 | var.two="VAR 2" 7 | var.3.two_dots="VAR 3" 8 | 9 | 10 | [section1] 11 | var.1="section 1 VAR 1" 12 | var.two="section 1 VAR 2" 13 | 14 | 15 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test4.out.correct: -------------------------------------------------------------------------------- 1 | var_1:VAR 1 2 | var_two:VAR 2 3 | var_3_two_dots:VAR 3 4 | section 1 var_1:section 1 VAR 1 5 | section 1 var_two:section 1 VAR 2 6 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test4.sh: -------------------------------------------------------------------------------- 1 | 2 | # Test 4 3 | # 4 | # Dots in variable names (converted to underscores in output var names) 5 | 6 | . ../read_ini.sh 7 | read_ini test4.ini 8 | 9 | echo "var_1:$INI__var_1" 10 | echo "var_two:$INI__var_two" 11 | echo "var_3_two_dots:$INI__var_3_two_dots" 12 | 13 | echo "section 1 var_1:$INI__section1__var_1" 14 | echo "section 1 var_two:$INI__section1__var_two" 15 | 16 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test5.ini: -------------------------------------------------------------------------------- 1 | 2 | ; Testing prevention of in-value code execution via eval 3 | var1 = blah blah `ls` blah 4 | var2 = blah blah $(ls) blah 5 | 6 | ; these code injections worked on 0.3 7 | var3 = blah blah \\`ls\\` blah 8 | var4 = blah blah \\$(ls) blah 9 | 10 | ; these code injections could work with read -r 11 | var5 = blah blah \`ls\` blah 12 | var6 = blah blah \$(ls) blah 13 | 14 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test5.out.correct: -------------------------------------------------------------------------------- 1 | var1:blah blah `ls` blah 2 | var2:blah blah $(ls) blah 3 | var3:blah blah \\`ls\\` blah 4 | var4:blah blah \\$(ls) blah 5 | var5:blah blah \`ls\` blah 6 | var6:blah blah \$(ls) blah 7 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test5.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Test 5 4 | # 5 | # Prevention of in-value code execution via backticks or $() notation. 6 | # This must be done because the value is run through an eval statement. 7 | 8 | . ../read_ini.sh 9 | read_ini test5.ini 10 | 11 | echo "var1:$INI__var1" 12 | echo "var2:$INI__var2" 13 | echo "var3:$INI__var3" 14 | echo "var4:$INI__var4" 15 | echo "var5:$INI__var5" 16 | echo "var6:$INI__var6" 17 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test6.ini: -------------------------------------------------------------------------------- 1 | 2 | 3 | ; Testing processing of special boolean constants: unquoted 4 | ; strings 'yes', 'true' and 'on' are interpreted as 1; 5 | ; unquoted strings 'no', 'false' and 'off' as 0. 6 | 7 | yes1 = yes 8 | yes2 = "yes" 9 | yes3 = Yes 10 | true1=true 11 | true2= true 12 | true3 = "tRuE" 13 | on1 = on 14 | on2 = oN 15 | on3 = "ON" 16 | 17 | no1 = no 18 | no2 = "no" 19 | no3=No 20 | false1 = false 21 | false2 = faLSe 22 | false3 = "FALSE" 23 | off1 = off 24 | off2 = Off 25 | off3 = "off" 26 | 27 | 28 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test6.out.correct: -------------------------------------------------------------------------------- 1 | yes1:1 2 | yes2:yes 3 | yes3:1 4 | true1:1 5 | true2:1 6 | true3:tRuE 7 | on1:1 8 | on2:1 9 | on3:ON 10 | no1:0 11 | no2:no 12 | no3:0 13 | false1:0 14 | false2:0 15 | false3:FALSE 16 | off1:0 17 | off2:0 18 | off3:off 19 | yes1:1 20 | true2:1 21 | on3:ON 22 | no3:0 23 | false2:0 24 | off1:0 25 | yes1:yes 26 | true2:true 27 | on3:ON 28 | no3:No 29 | false2:faLSe 30 | off1:off 31 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test6.sh: -------------------------------------------------------------------------------- 1 | 2 | # Testing booleans processing 3 | 4 | # First: with default booleans processing (on) 5 | . ../read_ini.sh 6 | read_ini test6.ini 7 | 8 | echo "yes1:$INI__yes1" 9 | echo "yes2:$INI__yes2" 10 | echo "yes3:$INI__yes3" 11 | echo "true1:$INI__true1" 12 | echo "true2:$INI__true2" 13 | echo "true3:$INI__true3" 14 | echo "on1:$INI__on1" 15 | echo "on2:$INI__on2" 16 | echo "on3:$INI__on3" 17 | 18 | echo "no1:$INI__no1" 19 | echo "no2:$INI__no2" 20 | echo "no3:$INI__no3" 21 | echo "false1:$INI__false1" 22 | echo "false2:$INI__false2" 23 | echo "false3:$INI__false3" 24 | echo "off1:$INI__off1" 25 | echo "off2:$INI__off2" 26 | echo "off3:$INI__off3" 27 | 28 | 29 | # Second: with booleans processing explicitly turned on via "--booleans 1" 30 | . ../read_ini.sh 31 | read_ini --booleans 1 test6.ini 32 | 33 | echo "yes1:$INI__yes1" 34 | echo "true2:$INI__true2" 35 | echo "on3:$INI__on3" 36 | 37 | echo "no3:$INI__no3" 38 | echo "false2:$INI__false2" 39 | echo "off1:$INI__off1" 40 | 41 | 42 | # Third: with booleans processing explicity switched off via "--booleans 0" 43 | . ../read_ini.sh 44 | read_ini test6.ini --booleans 0 45 | 46 | echo "yes1:$INI__yes1" 47 | echo "true2:$INI__true2" 48 | echo "on3:$INI__on3" 49 | 50 | echo "no3:$INI__no3" 51 | echo "false2:$INI__false2" 52 | echo "off1:$INI__off1" 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test7.ini: -------------------------------------------------------------------------------- 1 | 2 | ; Simple definitions for testing --prefix option 3 | 4 | var1=VAR 1 5 | 6 | [section1] 7 | var1 = "section 1 VAR 1" 8 | 9 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test7.out.correct: -------------------------------------------------------------------------------- 1 | # 1 2 | var1:VAR 1 3 | section1 var1:section 1 VAR 1 4 | # 2 5 | read_ini: invalid prefix 'PR:EFIX,' 6 | # 3 7 | read_ini: invalid prefix '1PREFIX' 8 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test7.sh: -------------------------------------------------------------------------------- 1 | 2 | # Test 7 3 | # 4 | # Option: [--prefix | -p] PREFIX 5 | 6 | # First: valid value for prefix 7 | echo "# 1" 8 | . ../read_ini.sh 9 | read_ini test7.ini --prefix PREFIX1 10 | 11 | echo "var1:$PREFIX1__var1" 12 | echo "section1 var1:$PREFIX1__section1__var1" 13 | 14 | # Second: invalid value for prefix (contains illegal chars) 15 | echo "# 2" 16 | . ../read_ini.sh 17 | read_ini -p PR:EFIX, test7.ini && 18 | { 19 | echo "var1:$PREFIX1__var1" 20 | echo "section1 var1:$PREFIX1__section1__var1" 21 | } 22 | 23 | # Third: invalid value for prefix (begins with a number) 24 | echo "# 3" 25 | . ../read_ini.sh 26 | read_ini --prefix 1PREFIX test7.ini && 27 | { 28 | echo "var1:$PREFIX1__var1" 29 | echo "section1 var1:$PREFIX1__section1__var1" 30 | } 31 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test8.ini: -------------------------------------------------------------------------------- 1 | 2 | ; this code injection via section worked on 0.3 3 | [x=blah; ls ;] 4 | var1 = blah 5 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test8.out.correct: -------------------------------------------------------------------------------- 1 | Error: Invalid line: 2 | 3: [x=blah; ls ;] 3 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test8.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Test 8 4 | # 5 | # Prevention of in-value code execution via invalid section 6 | 7 | . ../read_ini.sh 8 | read_ini test8.ini 9 | 10 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test9.ini: -------------------------------------------------------------------------------- 1 | 2 | ; Testing quoted quotes (didnt't worked in 0.3) 3 | 4 | ; code injection 5 | var1="" ls "." 6 | var2='' ls '.' 7 | 8 | ; or just an error: unexpected EOF while looking for matching `"' 9 | var3=""" 10 | var4=''' 11 | var5=" 12 | var6=' 13 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test9.out.correct: -------------------------------------------------------------------------------- 1 | var1:" ls ". 2 | var2:' ls '. 3 | var3:" 4 | var4:' 5 | var5:" 6 | var6:' 7 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/bash_ini_parser/test/test9.sh: -------------------------------------------------------------------------------- 1 | 2 | # Test 9 3 | # 4 | # further stuff which didn't worked in 0.3 5 | 6 | . ../read_ini.sh 7 | if ! read_ini test9.ini ;then exit 1; fi 8 | 9 | 10 | echo "var1:$INI__var1" 11 | echo "var2:$INI__var2" 12 | echo "var3:$INI__var3" 13 | echo "var4:$INI__var4" 14 | echo "var5:$INI__var5" 15 | echo "var6:$INI__var6" 16 | 17 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/lddtree/README.md: -------------------------------------------------------------------------------- 1 | lddtree 2 | ======= 3 | 4 | Fork from https://github.com/ncopa/lddtree which is fork of pax-utils' lddtree.sh 5 | 6 | This is a shell version of pax-utils' lddtree. This tool is useful for 7 | resolving elf dependencies. 8 | 9 | 10 | lddtree.sh depends on scanelf from pax-utils package or readelf from 11 | binutils package. 12 | 13 | ``` 14 | Usage: lddtree.sh [options] ELFFILE... 15 | 16 | Options: 17 | 18 | -a Show all duplicated dependencies 19 | -x Run with debugging 20 | -b Force use of specific backend tools (scanelf or readelf) 21 | -R Use this ROOT filesystem tree 22 | --no-auto-root Do not automatically prefix input ELFs with ROOT 23 | --no-recursive Do not recursivly parse dependencies 24 | --no-header Do not show header (binary and interpreter info) 25 | -l Display a list of linked libraries in a flat format 26 | -m Display a map of resolved linked libraries 27 | -h Show this help output 28 | -V Show version information 29 | ``` 30 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/neofetch/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | If you're suggesting a new feature then just a description will suffice. 4 | 5 | - [ ] Does this issue still occur in the master branch? (**Required if issue**) 6 | 7 | 8 | #### Neofetch version 9 | 10 | ## Screenshot 11 | 12 | ## Config file 13 | 14 | ## Verbose log 15 | 16 | 1. Run `neofetch -vv 2> neofetchlog` 17 | 2. Upload the contents of `neofetchlog` to pastebin, gist or equivalent. 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/neofetch/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | Only fill in the fields below if relevant. 4 | 5 | 6 | ## Features 7 | 8 | ## Issues 9 | 10 | ## TODO 11 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/neofetch/.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | sudo: required 3 | 4 | os: 5 | - linux 6 | - osx 7 | 8 | before_install: 9 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi 10 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi 11 | 12 | script: 13 | - time ./neofetch --travis -v 14 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck -e SC2244 -e SC2243 neofetch; fi 15 | # Check for lines longer than 100 chars. 16 | - if grep '.\{102\}' neofetch; then (exit 1); else (exit 0); fi 17 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/neofetch/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-2021 Dylan Araps 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/neofetch/Makefile: -------------------------------------------------------------------------------- 1 | PREFIX = /usr 2 | MANDIR = $(PREFIX)/share/man 3 | 4 | all: 5 | @echo Run \'make install\' to install Neofetch. 6 | 7 | install: 8 | @mkdir -p $(DESTDIR)$(PREFIX)/bin 9 | @mkdir -p $(DESTDIR)$(MANDIR)/man1 10 | @cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch 11 | @cp -p neofetch.1 $(DESTDIR)$(MANDIR)/man1 12 | @chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch 13 | 14 | uninstall: 15 | @rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch 16 | @rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1* 17 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/pure-getopt/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | dist: precise 3 | language: bash 4 | env: 5 | - BASHES="bash2.05b bash3.0.16 bash3.2.48 bash4.2.45" 6 | before_install: 7 | - wget https://launchpad.net/~agriffis/+archive/ubuntu/bashes/+files/bash2.05b_2.05b-2_amd64.deb 8 | - wget https://launchpad.net/~agriffis/+archive/ubuntu/bashes/+files/bash3.0.16_3.0.16-2_amd64.deb 9 | - wget https://launchpad.net/~agriffis/+archive/ubuntu/bashes/+files/bash3.2.48_3.2.48-2_amd64.deb 10 | - wget https://launchpad.net/~agriffis/+archive/ubuntu/bashes/+files/bash4.2.45_4.2.45-2_amd64.deb 11 | - sudo dpkg -i bash*deb 12 | script: bash travis.bash 13 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/pure-getopt/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/pure-getopt/travis.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | status=0 4 | 5 | for b in $BASHES; do 6 | echo 7 | echo ================== 8 | echo $b 9 | echo ================== 10 | $b test.bash || status=$? 11 | done 12 | 13 | exit $status 14 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/screenFetch/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 4 | 5 | **I'm submitting a ...** (check one with "x") 6 | ``` 7 | [ ] bug report 8 | [ ] new distro request 9 | ``` 10 | 11 | **Bug report** 12 | ``` 13 | => search Github for a similar issue or PR before submitting 14 | => download the latest revision from Github and check if the bug is still present 15 | -> https://github.com/KittyKatt/screenFetch/raw/master/screenfetch-dev 16 | => Show us the output of: screenfetch -v 17 | ``` 18 | 19 | **New distro request** 20 | ``` 21 | Distro name: 22 | Homepage: 23 | Distro logo: 24 | Package manager: 25 | 26 | Show us the output of 27 | => lsb_release -sirc 28 | => cat /etc/os-release 29 | => ls -1 /etc/*-release 30 | ``` 31 | 32 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/screenFetch/TODO: -------------------------------------------------------------------------------- 1 | **##** *#* TO DO LIST *#* **##** 2 | 3 | This small list will be the central place where I will list ideas and 4 | things I want to happen with screenFetch. 5 | 6 | Obvious Things: 7 | 8 | 1) Add any and all suggested WMs. 9 | 2) More distros! Suggest them and I'll add them. Or I'll add them as I find them. 10 | 11 | Other Things: 12 | 13 | 1) Better GTK3 detection. Fix for gsettings stuff. 14 | 2) Better -c. Support setting of all available colors in an ascii logo. 15 | 3) Centralized color setting. c{1,2,3,etc} and lablecolors all set in one place. 16 | 4) Better disk detection. Fix problems with it. 17 | 5) Cleanup detectuptime, detectcpu, * 18 | 6) Custom logos file. Source logos file with -C flag is present. -A will act normally 19 | if -C is present as well. 20 | 21 | That's about it for now. If you can help with any of these, please 22 | please PLEASE let me know by emailing me at kittykatt@kittykatt.us or by 23 | stopping by SilverIRC on your favorite IRC client. The network can be 24 | accessed by pointing your IRC client to kittykatt.silverirc.com. #me0wz 25 | is my home channel. If you don't have an IRC client, head on over to 26 | http://www.silverirc.com/index.php?page=chat and that'll join 27 | you to #randomz, where I can be reached as well. 28 | 29 | Thank you for any help. 30 | 31 | ~KittyKatt (Brett Bohnenkamper) 32 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/artefact/screenFetch/update-manpage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LANG=C 4 | LANGUAGE=C 5 | LC_ALL=C 6 | 7 | man=screenfetch.1 8 | script=screenfetch-dev 9 | 10 | version=$(grep 'scriptVersion=' $script | cut -d'"' -f2) 11 | date=$(date +"%B %Y") 12 | 13 | mv $man $man.old 14 | 15 | echo ".TH SCREENFETCH \"1\" \"$date\" \"$version\" \"User Commands\"" > $man 16 | grep -v -e '^.TH ' $man.old >> $man 17 | 18 | for s in supported_distros supported_other supported_dms supported_wms ; do 19 | sed -i "/@${s}_start@/,/@${s}_end@/{/@${s}_start@/!{/@${s}_end@/!d}}" $man 20 | list="$(sed -e :a -e '/\\$/N; s/\\\n//; ta' $script | grep "${s}=" | cut -d'"' -f2)" 21 | sed -i "s:@${s}_start@:@${s}_start@\n${list}:" $man 22 | done 23 | 24 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/exp/feature_cobbler.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_cobbler_INCLUDED_" = "1" ]; then 2 | _cobbler_INCLUDED_=1 3 | 4 | feature_cobbler() { 5 | FEAT_NAME=cobbler 6 | FEAT_LIST_SCHEMA="2_6_11:source" 7 | FEAT_DEFAULT_ARCH= 8 | FEAT_DEFAULT_FLAVOUR="source" 9 | } 10 | 11 | feature_cobbler_2_6_11() { 12 | FEAT_VERSION=2_6_11 13 | FEAT_SOURCE_DEPENDENCIES= 14 | FEAT_BINARY_DEPENDENCIES= 15 | 16 | FEAT_SOURCE_URL=https://github.com/cobbler/cobbler/archive/v2.6.11.tar.gz 17 | FEAT_SOURCE_URL_FILENAME=cobbler-v2.6.11.tar.gz 18 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 19 | 20 | FEAT_BINARY_URL= 21 | FEAT_BINARY_URL_FILENAME= 22 | FEAT_BINARY_URL_PROTOCOL= 23 | 24 | FEAT_SOURCE_CALLBACK= 25 | FEAT_BINARY_CALLBACK= 26 | FEAT_ENV_CALLBACK= 27 | 28 | 29 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/client/bin/cobbler 30 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/client/bin 31 | 32 | } 33 | 34 | 35 | 36 | feature_cobbler_install_source() { 37 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP FORCE_NAME $FEAT_SOURCE_URL_FILENAME" 38 | } 39 | 40 | 41 | fi 42 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/exp/feature_fabric8.sh: -------------------------------------------------------------------------------- 1 | # https://fabric8.io/ 2 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/exp/feature_luabind.sh: -------------------------------------------------------------------------------- 1 | #TODO https://github.com/rpavlik/luabind 2 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/exp/feature_openjdk.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_openjdk_INCLUDED_" = "1" ]; then 2 | _openjdk_INCLUDED_=1 3 | 4 | 5 | # Recipe for Open Java Development Kit (=JDK) 6 | 7 | # CHANGE in Java/Oracle Licence model: 8 | # * It is impossible to automate oraclejdk download now 9 | # * Now there is OpenJDK and OracleJDK 10 | # * There is a lot of OpenJDK distributor including Oracle (so OpenJDK crom Oracle is not the same than OracleJDK) 11 | 12 | # List of OpenJDK distributor : https://dzone.com/articles/java-and-the-jdks-which-one-to-use 13 | 14 | OPENJDK_PROVIDER_LIST="adoptopenjdk" 15 | DEFAULT_OPENJDK_PROVIDER="adoptopenjdk" 16 | OPENJDK_PROVIDER="adoptopenjdk" 17 | 18 | 19 | feature_openjdk() { 20 | #__feature_catalog_info "$OPENJDK_PROVIDER" 21 | #feature_$OPENJDK_PROVIDER 22 | #for s in $FEAT_LIST_SCHEMA; do 23 | # __translate_schema "openjdk#${s}" "__temp_name" "__temp_ver" 24 | # eval "feature_openjdk_${__temp_ver}() { feature_${OPENJDK_PROVIDER}_${__temp_ver}; }" 25 | #echo "feature_openjdk_${__temp_ver}() { feature_${OPENJDK_PROVIDER}_${__temp_ver}; }" 26 | #done 27 | #FEAT_NAME=openjdk 28 | return 29 | } 30 | 31 | 32 | fi 33 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/exp/feature_openshift-origin-srv.sh: -------------------------------------------------------------------------------- 1 | # https://github.com/openshift/origin/releases 2 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/exp/feature_tmux.sh: -------------------------------------------------------------------------------- 1 | 2 | # https://gist.github.com/pistol/5069697 3 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_ant.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_ANT_INCLUDED_" = "1" ]; then 2 | _ANT_INCLUDED_=1 3 | 4 | 5 | 6 | feature_ant() { 7 | FEAT_NAME=ant 8 | FEAT_LIST_SCHEMA="1_9_16:binary" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="binary" 11 | } 12 | 13 | feature_ant_env() { 14 | ANT_HOME=$FEAT_INSTALL_ROOT 15 | export ANT_HOME=$FEAT_INSTALL_ROOT 16 | } 17 | 18 | 19 | 20 | feature_ant_1_9_16() { 21 | FEAT_VERSION=1_9_16 22 | 23 | FEAT_SOURCE_DEPENDENCIES= 24 | FEAT_BINARY_DEPENDENCIES= 25 | 26 | FEAT_SOURCE_URL= 27 | FEAT_SOURCE_URL_FILENAME= 28 | FEAT_SOURCE_URL_PROTOCOL= 29 | 30 | FEAT_BINARY_URL="https://downloads.apache.org/ant/binaries/apache-ant-1.9.16-bin.tar.gz" 31 | FEAT_BINARY_URL_FILENAME="apache-ant-1.9.16-bin.tar.gz" 32 | FEAT_BINARY_URL_PROTOCOL="HTTP_ZIP" 33 | 34 | FEAT_SOURCE_CALLBACK= 35 | FEAT_BINARY_CALLBACK= 36 | FEAT_ENV_CALLBACK=feature_ant_env 37 | 38 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT/bin/ant" 39 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT/bin" 40 | 41 | } 42 | 43 | 44 | 45 | feature_ant_install_binary() { 46 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP" 47 | 48 | } 49 | 50 | 51 | 52 | 53 | fi 54 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_apr.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_apr_INCLUDED_" = "1" ]; then 2 | _apr_INCLUDED_=1 3 | 4 | 5 | feature_apr() { 6 | FEAT_NAME=apr 7 | 8 | FEAT_LIST_SCHEMA="1_5_2:source" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | 12 | 13 | } 14 | 15 | feature_apr_1_5_2() { 16 | FEAT_VERSION=1_5_2 17 | 18 | 19 | FEAT_SOURCE_DEPENDENCIES= 20 | FEAT_BINARY_DEPENDENCIES= 21 | 22 | FEAT_SOURCE_URL=http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz 23 | FEAT_SOURCE_URL_FILENAME=apr-1.5.2.tar.gz 24 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 25 | 26 | FEAT_BINARY_URL= 27 | FEAT_BINARY_URL_FILENAME= 28 | FEAT_BINARY_URL_PROTOCOL= 29 | 30 | FEAT_SOURCE_CALLBACK= 31 | FEAT_BINARY_CALLBACK= 32 | FEAT_ENV_CALLBACK= 33 | 34 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/lib/libapr-1.a 35 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 36 | 37 | } 38 | 39 | 40 | 41 | feature_apr_install_source() { 42 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 43 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 44 | 45 | __set_toolset "STANDARD" 46 | 47 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 48 | 49 | 50 | AUTO_INSTALL_CONF_FLAG_PREFIX= 51 | AUTO_INSTALL_CONF_FLAG_POSTFIX= 52 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 53 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 54 | 55 | 56 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" 57 | 58 | 59 | } 60 | 61 | 62 | fi 63 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_argbash.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_argbash_INCLUDED_" = "1" ]; then 2 | _argbash_INCLUDED_=1 3 | 4 | # https://github.com/matejak/argbash 5 | 6 | feature_argbash() { 7 | FEAT_NAME=argbash 8 | FEAT_LIST_SCHEMA="2_8_1:binary" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="binary" 11 | 12 | FEAT_DESC="Bash argument parsing code generator" 13 | FEAT_LINK="https://argbash.io/" 14 | } 15 | 16 | 17 | 18 | 19 | feature_argbash_2_8_1() { 20 | 21 | FEAT_VERSION=2_8_1 22 | 23 | FEAT_BINARY_URL="https://github.com/matejak/argbash/archive/2.8.1.tar.gz" 24 | FEAT_BINARY_URL_FILENAME="argbash-2.8.1.tar.gz" 25 | FEAT_BINARY_URL_PROTOCOL="HTTP_ZIP" 26 | 27 | 28 | FEAT_INSTALL_TEST=$FEAT_INSTALL_ROOT/bin/argbash 29 | FEAT_SEARCH_PATH=$FEAT_INSTALL_ROOT/bin 30 | 31 | } 32 | 33 | 34 | 35 | feature_argbash_install_binary() { 36 | 37 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "DEST_ERASE STRIP FORCE_NAME $FEAT_BINARY_URL_FILENAME" 38 | 39 | } 40 | 41 | 42 | 43 | 44 | 45 | fi 46 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_bats-file.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_batsfile_INCLUDED_" = "1" ]; then 2 | _batsfile_INCLUDED_=1 3 | 4 | 5 | 6 | feature_bats-file() { 7 | FEAT_NAME="bats-file" 8 | FEAT_LIST_SCHEMA="0_3_0:source" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | 12 | FEAT_DESC="bats-file is a helper library providing common filesystem related assertions and helpers for bats" 13 | FEAT_LINK="https://github.com/bats-core/bats-file" 14 | } 15 | 16 | 17 | feature_bats-file_0_3_0() { 18 | FEAT_VERSION="0_3_0" 19 | 20 | FEAT_SOURCE_URL="https://github.com/bats-core/bats-file/archive/refs/tags/v0.3.0.tar.gz" 21 | FEAT_SOURCE_URL_FILENAME="bats-file-${FEAT_VERSION}.tar.gz" 22 | FEAT_SOURCE_URL_PROTOCOL="HTTP_ZIP" 23 | 24 | FEAT_ENV_CALLBACK="feature_bats-file_setenv" 25 | 26 | FEAT_INSTALL_TEST="${FEAT_INSTALL_ROOT}/load.bash" 27 | FEAT_SEARCH_PATH= 28 | 29 | } 30 | 31 | 32 | feature_bats-file_install_source() { 33 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 34 | 35 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$INSTALL_DIR" "DEST_ERASE STRIP FORCE_NAME $FEAT_SOURCE_URL_FILENAME" 36 | 37 | 38 | } 39 | 40 | 41 | feature_bats-file_setenv() { 42 | # https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries 43 | export BATS_LIB_PATH="${BATS_LIB_PATH}:${FEAT_INSTALL_ROOT}/.." 44 | } 45 | 46 | 47 | 48 | 49 | fi 50 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_bats-support.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_batssupport_INCLUDED_" = "1" ]; then 2 | _batssupport_INCLUDED_=1 3 | 4 | 5 | 6 | feature_bats-support() { 7 | FEAT_NAME="bats-support" 8 | FEAT_LIST_SCHEMA="0_3_0:source" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | 12 | FEAT_DESC="bats-support is a helper library providing common functions for bats" 13 | FEAT_LINK="https://github.com/bats-core/bats-support https://bats-support.readthedocs.io/" 14 | } 15 | 16 | 17 | feature_bats-support_0_3_0() { 18 | FEAT_VERSION="0_3_0" 19 | 20 | FEAT_SOURCE_URL="https://github.com/bats-core/bats-support/archive/refs/tags/v0.3.0.tar.gz" 21 | FEAT_SOURCE_URL_FILENAME="bats-support-${FEAT_VERSION}.tar.gz" 22 | FEAT_SOURCE_URL_PROTOCOL="HTTP_ZIP" 23 | 24 | FEAT_ENV_CALLBACK="feature_bats-support_setenv" 25 | 26 | FEAT_INSTALL_TEST="${FEAT_INSTALL_ROOT}/load.bash" 27 | FEAT_SEARCH_PATH= 28 | 29 | } 30 | 31 | 32 | feature_bats-support_install_source() { 33 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 34 | 35 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$INSTALL_DIR" "DEST_ERASE STRIP FORCE_NAME $FEAT_SOURCE_URL_FILENAME" 36 | 37 | 38 | } 39 | 40 | 41 | feature_bats-support_setenv() { 42 | # https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries 43 | export BATS_LIB_PATH="${BATS_LIB_PATH}:${FEAT_INSTALL_ROOT}/.." 44 | } 45 | 46 | 47 | 48 | 49 | fi 50 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_bc.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_bc_INCLUDED_" = "1" ]; then 2 | _bc_INCLUDED_=1 3 | 4 | 5 | # http://www.gnu.org/software/bc/bc.html 6 | feature_bc() { 7 | FEAT_NAME=bc 8 | 9 | FEAT_LIST_SCHEMA="1_06_95:source" 10 | FEAT_DEFAULT_ARCH= 11 | FEAT_DEFAULT_FLAVOUR="source" 12 | 13 | 14 | } 15 | 16 | feature_bc_1_06_95() { 17 | FEAT_VERSION=1_06_95 18 | 19 | 20 | FEAT_SOURCE_DEPENDENCIES= 21 | FEAT_BINARY_DEPENDENCIES= 22 | 23 | FEAT_SOURCE_URL=http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2 24 | FEAT_SOURCE_URL_FILENAME=bc-1.06.95.tar.bz2 25 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 26 | 27 | FEAT_BINARY_URL= 28 | FEAT_BINARY_URL_FILENAME= 29 | FEAT_BINARY_URL_PROTOCOL= 30 | 31 | FEAT_SOURCE_CALLBACK= 32 | FEAT_BINARY_CALLBACK= 33 | FEAT_ENV_CALLBACK= 34 | 35 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/bc 36 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 37 | 38 | } 39 | 40 | 41 | 42 | feature_bc_install_source() { 43 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 44 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 45 | 46 | __set_toolset "STANDARD" 47 | 48 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 49 | 50 | 51 | AUTO_INSTALL_CONF_FLAG_PREFIX= 52 | AUTO_INSTALL_CONF_FLAG_POSTFIX= 53 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 54 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 55 | 56 | 57 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" 58 | 59 | 60 | } 61 | 62 | 63 | fi 64 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_dive.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_dive_INCLUDED_" = "1" ]; then 2 | _dive_INCLUDED_=1 3 | 4 | 5 | feature_dive() { 6 | FEAT_NAME="dive" 7 | FEAT_LIST_SCHEMA="0_11_0@x64:binary" 8 | FEAT_DEFAULT_ARCH="x64" 9 | FEAT_DEFAULT_FLAVOUR="binary" 10 | 11 | FEAT_DESC="A tool for exploring each layer in a docker image" 12 | FEAT_LINK="https://github.com/wagoodman/dive" 13 | } 14 | 15 | 16 | feature_dive_0_11_0() { 17 | FEAT_VERSION="0_11_0" 18 | 19 | if [ "${STELLA_CURRENT_PLATFORM}" = "linux" ]; then 20 | FEAT_BINARY_URL_x64="https://github.com/wagoodman/dive/releases/download/v0.11.0/dive_0.11.0_linux_amd64.tar.gz" 21 | FEAT_BINARY_URL_FILENAME_x64="dive_0.11.0_linux_amd64.tar.gz" 22 | FEAT_BINARY_URL_PROTOCOL_x64="HTTP_ZIP" 23 | 24 | fi 25 | if [ "${STELLA_CURRENT_PLATFORM}" = "darwin" ]; then 26 | FEAT_BINARY_URL_x64="https://github.com/wagoodman/dive/releases/download/v0.11.0/dive_0.11.0_darwin_amd64.tar.gz" 27 | FEAT_BINARY_URL_FILENAME_x64="dive_0.11.0_darwin_amd64.tar.gz" 28 | FEAT_BINARY_URL_PROTOCOL_x64="HTTP_ZIP" 29 | fi 30 | 31 | FEAT_INSTALL_TEST="${FEAT_INSTALL_ROOT}/dive" 32 | FEAT_SEARCH_PATH="${FEAT_INSTALL_ROOT}" 33 | 34 | } 35 | 36 | 37 | feature_dive_install_binary() { 38 | 39 | __get_resource "${FEAT_NAME}" "${FEAT_BINARY_URL}" "${FEAT_BINARY_URL_PROTOCOL}" "${FEAT_INSTALL_ROOT}" "DEST_ERASE FORCE_NAME $FEAT_BINARY_URL_FILENAME" 40 | 41 | } 42 | 43 | 44 | fi 45 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_fftw.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_fftw_INCLUDED_" = "1" ]; then 2 | _fftw_INCLUDED_=1 3 | 4 | 5 | feature_fftw() { 6 | FEAT_NAME=fftw 7 | FEAT_LIST_SCHEMA="3_3_6:source" 8 | FEAT_DEFAULT_ARCH= 9 | FEAT_DEFAULT_FLAVOUR="source" 10 | } 11 | 12 | 13 | feature_fftw_3_3_6() { 14 | FEAT_VERSION=3_3_6 15 | FEAT_SOURCE_DEPENDENCIES= 16 | FEAT_BINARY_DEPENDENCIES= 17 | 18 | FEAT_SOURCE_URL=http://www.fftw.org/fftw-3.3.6-pl1.tar.gz 19 | FEAT_SOURCE_URL_FILENAME=fftw-3.3.6-pl1.tar.gz 20 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 21 | 22 | FEAT_BINARY_URL= 23 | FEAT_BINARY_URL_FILENAME= 24 | FEAT_BINARY_URL_PROTOCOL= 25 | 26 | FEAT_SOURCE_CALLBACK= 27 | FEAT_BINARY_CALLBACK= 28 | FEAT_ENV_CALLBACK= 29 | 30 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/lib/libfftw3.a 31 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 32 | 33 | } 34 | 35 | 36 | feature_fftw_install_source() { 37 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 38 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 39 | 40 | 41 | __set_toolset "STANDARD" 42 | 43 | 44 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 45 | 46 | 47 | AUTO_INSTALL_CONF_FLAG_PREFIX= 48 | AUTO_INSTALL_CONF_FLAG_POSTFIX="--enable-shared" 49 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 50 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 51 | 52 | __feature_callback 53 | 54 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" 55 | 56 | } 57 | 58 | 59 | 60 | fi 61 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_foma.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_FOMA_INCLUDED_" = "1" ]; then 2 | _FOMA_INCLUDED_=1 3 | 4 | 5 | 6 | feature_foma() { 7 | FEAT_NAME=foma 8 | FEAT_LIST_SCHEMA="0_9_18:binary" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="binary" 11 | } 12 | 13 | feature_foma_0_9_18() { 14 | FEAT_VERSION=0_9_18 15 | 16 | FEAT_SOURCE_DEPENDENCIES= 17 | FEAT_BINARY_DEPENDENCIES= 18 | 19 | FEAT_SOURCE_URL= 20 | FEAT_SOURCE_URL_FILENAME= 21 | FEAT_SOURCE_URL_PROTOCOL= 22 | 23 | if [ "$STELLA_CURRENT_PLATFORM" = "darwin" ]; then 24 | FEAT_BINARY_URL=https://bitbucket.org/mhulden/foma/downloads/foma-0.9.18_OSX.tar.gz 25 | FEAT_BINARY_URL_FILENAME=foma-0.9.18_OSX.tar.gz 26 | fi 27 | 28 | if [ "$STELLA_CURRENT_PLATFORM" = "linux" ]; then 29 | FEAT_BINARY_URL=https://bitbucket.org/mhulden/foma/downloads/foma-0.9.18_linux64.tar.gz 30 | FEAT_BINARY_URL_FILENAME=foma-0.9.18_linux64.tar.gz 31 | fi 32 | FEAT_BINARY_URL_PROTOCOL=HTTP_ZIP 33 | 34 | FEAT_SOURCE_CALLBACK= 35 | FEAT_BINARY_CALLBACK= 36 | FEAT_ENV_CALLBACK= 37 | 38 | 39 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/foma 40 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT" 41 | 42 | } 43 | 44 | feature_foma_install_binary() { 45 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "DEST_ERASE STRIP" 46 | 47 | } 48 | 49 | 50 | fi 51 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_gmp.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_gmp_INCLUDED_" = "1" ]; then 2 | _gmp_INCLUDED_=1 3 | 4 | # darwin : https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gmp.rb 5 | 6 | 7 | feature_gmp() { 8 | FEAT_NAME=gmp 9 | FEAT_LIST_SCHEMA="6_0_0a:source" 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | } 12 | 13 | feature_gmp_6_0_0a() { 14 | FEAT_VERSION=6_0_0a 15 | 16 | FEAT_SOURCE_URL=http://ftpmirror.gnu.org/gmp/gmp-6.0.0a.tar.bz2 17 | FEAT_SOURCE_URL_FILENAME=ggmp-6.0.0a.tar.bz2 18 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 19 | 20 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/lib/libgmp.a 21 | } 22 | 23 | 24 | 25 | feature_gmp_install_source() { 26 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 27 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 28 | 29 | __set_toolset "STANDARD" 30 | 31 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "STRIP" 32 | 33 | # https://gmplib.org/manual/Build-Options.html 34 | # C++ Support 35 | AUTO_INSTALL_CONF_FLAG_POSTFIX="--enable-cxx" 36 | if [ "$STELLA_CURRENT_PLATFORM" = "darwin" ]; then 37 | [ "$STELLA_BUILD_ARCH" = "x64" ] && AUTO_INSTALL_CONF_FLAG_POSTFIX="$AUTO_INSTALL_CONF_FLAG_POSTFIX --disable-assembly" 38 | fi 39 | 40 | __feature_callback 41 | 42 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" "POST_BUILD_STEP install check" 43 | 44 | } 45 | 46 | 47 | 48 | fi 49 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_helm.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_helm_INCLUDED_" = "1" ]; then 2 | _helm_INCLUDED_=1 3 | 4 | 5 | feature_helm() { 6 | FEAT_NAME="helm" 7 | FEAT_LIST_SCHEMA="3_13_3@x64:binary" 8 | FEAT_DEFAULT_ARCH="x64" 9 | FEAT_DEFAULT_FLAVOUR="binary" 10 | 11 | FEAT_DESC="The Kubernetes Package Manager. Helm is a tool for managing Charts. Charts are packages of pre-configured Kubernetes resources." 12 | FEAT_LINK="https://github.com/helm/helm https://helm.sh/" 13 | } 14 | 15 | 16 | 17 | 18 | feature_helm_3_13_3() { 19 | FEAT_VERSION="3_13_3" 20 | 21 | if [ "${STELLA_CURRENT_PLATFORM}" = "linux" ]; then 22 | FEAT_BINARY_URL_x64="https://get.helm.sh/helm-v3.13.3-linux-amd64.tar.gz" 23 | FEAT_BINARY_URL_FILENAME_x64="helm-v3.13.3-linux-amd64.tar.gz" 24 | FEAT_BINARY_URL_PROTOCOL_x64="HTTP_ZIP" 25 | 26 | fi 27 | if [ "${STELLA_CURRENT_PLATFORM}" = "darwin" ]; then 28 | FEAT_BINARY_URL_x64="https://get.helm.sh/helm-v3.13.3-darwin-amd64.tar.gz" 29 | FEAT_BINARY_URL_FILENAME_x64="helm-v3.13.3-darwin-amd64.tar.gz" 30 | FEAT_BINARY_URL_PROTOCOL_x64="HTTP_ZIP" 31 | fi 32 | 33 | FEAT_INSTALL_TEST="${FEAT_INSTALL_ROOT}/helm" 34 | FEAT_SEARCH_PATH="${FEAT_INSTALL_ROOT}" 35 | 36 | } 37 | 38 | 39 | feature_helm_install_binary() { 40 | 41 | __get_resource "${FEAT_NAME}" "${FEAT_BINARY_URL}" "${FEAT_BINARY_URL_PROTOCOL}" "${FEAT_INSTALL_ROOT}" "DEST_ERASE STRIP FORCE_NAME $FEAT_BINARY_URL_FILENAME" 42 | 43 | } 44 | 45 | 46 | fi 47 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_ioninja.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_ioninja_INCLUDED_" = "1" ]; then 2 | _ioninja_INCLUDED_=1 3 | 4 | 5 | 6 | feature_ioninja() { 7 | FEAT_NAME=ioninja 8 | FEAT_LIST_SCHEMA="3_6_5:binary" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="binary" 11 | } 12 | 13 | 14 | 15 | feature_ioninja_3_6_5() { 16 | FEAT_VERSION=3_6_5 17 | 18 | FEAT_SOURCE_DEPENDENCIES= 19 | FEAT_BINARY_DEPENDENCIES= 20 | 21 | FEAT_SOURCE_URL= 22 | FEAT_SOURCE_URL_FILENAME= 23 | FEAT_SOURCE_URL_PROTOCOL= 24 | 25 | if [ "$STELLA_CURRENT_PLATFORM" = "darwin" ]; then 26 | FEAT_BINARY_URL=http://tibbo.com/downloads/archive/ioninja/ioninja-3.6.5/ioninja-mac-3.6.5.tar.xz 27 | FEAT_BINARY_URL_FILENAME=ioninja-mac-3.6.5.tar.xz 28 | fi 29 | 30 | if [ "$STELLA_CURRENT_PLATFORM" = "linux" ]; then 31 | FEAT_BINARY_URL=http://tibbo.com/downloads/archive/ioninja/ioninja-3.6.5/ioninja-linux-3.6.5-amd64.tar.xz 32 | FEAT_BINARY_URL_FILENAME=ioninja-linux-3.6.5-amd64.tar.xz 33 | fi 34 | FEAT_BINARY_URL_PROTOCOL=HTTP_ZIP 35 | 36 | FEAT_SOURCE_CALLBACK= 37 | FEAT_BINARY_CALLBACK= 38 | FEAT_ENV_CALLBACK= 39 | 40 | 41 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/ioninja 42 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT" 43 | 44 | } 45 | 46 | feature_ioninja_install_binary() { 47 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "DEST_ERASE" 48 | } 49 | 50 | 51 | fi 52 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_lnav.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_lnav_INCLUDED_" = "1" ]; then 2 | _lnav_INCLUDED_=1 3 | 4 | 5 | 6 | feature_lnav() { 7 | 8 | FEAT_NAME=lnav 9 | FEAT_LIST_SCHEMA="0_8_5:binary" 10 | FEAT_DEFAULT_ARCH= 11 | FEAT_DEFAULT_FLAVOUR="binary" 12 | 13 | FEAT_DESC="An advanced log file viewer for the small-scale" 14 | FEAT_LINK="http://lnav.org/" 15 | } 16 | 17 | feature_lnav_0_8_5() { 18 | FEAT_VERSION=0_8_5 19 | 20 | FEAT_SOURCE_DEPENDENCIES= 21 | FEAT_BINARY_DEPENDENCIES= 22 | 23 | FEAT_BINARY_URL="https://github.com/tstack/lnav/releases/download/v0.8.5/lnav-0.8.5-linux-64bit.zip" 24 | FEAT_BINARY_URL_FILENAME="lnav-0.8.5-linux-64bit.zip" 25 | FEAT_BINARY_URL_PROTOCOL="HTTP_ZIP" 26 | 27 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/lnav 28 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT" 29 | 30 | } 31 | 32 | 33 | feature_lnav_install_binary() { 34 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP" 35 | 36 | 37 | 38 | } 39 | 40 | 41 | 42 | 43 | fi 44 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_logstash.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_logstash_INCLUDED_" = "1" ]; then 2 | _logstash_INCLUDED_=1 3 | 4 | 5 | 6 | feature_logstash() { 7 | FEAT_NAME=logstash 8 | FEAT_LIST_SCHEMA="5_2_0:binary" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="binary" 11 | } 12 | 13 | 14 | feature_logstash_env() { 15 | LOGSTASH_HOME=$FEAT_INSTALL_ROOT 16 | export LOGSTASH_HOME=$FEAT_INSTALL_ROOT 17 | } 18 | 19 | 20 | feature_logstash_5_2_0() { 21 | FEAT_VERSION=5_2_0 22 | 23 | FEAT_SOURCE_DEPENDENCIES= 24 | FEAT_BINARY_DEPENDENCIES= 25 | 26 | FEAT_SOURCE_URL= 27 | FEAT_SOURCE_URL_FILENAME= 28 | FEAT_SOURCE_URL_PROTOCOL= 29 | 30 | FEAT_BINARY_URL=https://artifacts.elastic.co/downloads/logstash/logstash-5.2.0.tar.gz 31 | FEAT_BINARY_URL_FILENAME=logstash-5.2.0.tar.gz 32 | FEAT_BINARY_URL_PROTOCOL=HTTP_ZIP 33 | 34 | FEAT_SOURCE_CALLBACK= 35 | FEAT_BINARY_CALLBACK= 36 | FEAT_ENV_CALLBACK=feature_logstash_env 37 | 38 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/logstash 39 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 40 | 41 | } 42 | 43 | 44 | 45 | feature_logstash_install_binary() { 46 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP" 47 | 48 | 49 | } 50 | 51 | 52 | fi 53 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_luajit.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_luajit_INCLUDED_" = "1" ]; then 2 | _luajit_INCLUDED_=1 3 | 4 | # NOTE : Do not need lua 5 | 6 | feature_luajit() { 7 | FEAT_NAME=luajit 8 | FEAT_LIST_SCHEMA="2_0_4:source" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | } 12 | 13 | feature_luajit_2_0_4() { 14 | FEAT_VERSION=2_0_4 15 | 16 | 17 | FEAT_SOURCE_DEPENDENCIES= 18 | FEAT_BINARY_DEPENDENCIES= 19 | 20 | FEAT_SOURCE_URL=http://luajit.org/download/LuaJIT-2.0.4.tar.gz 21 | FEAT_SOURCE_URL_FILENAME=LuaJIT-2.0.4.tar.gz 22 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 23 | 24 | FEAT_BINARY_URL= 25 | FEAT_BINARY_URL_FILENAME= 26 | FEAT_BINARY_URL_PROTOCOL= 27 | 28 | FEAT_SOURCE_CALLBACK= 29 | FEAT_BINARY_CALLBACK= 30 | FEAT_ENV_CALLBACK= 31 | 32 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/luajit 33 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 34 | 35 | } 36 | 37 | 38 | 39 | feature_luajit_install_source() { 40 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 41 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 42 | 43 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 44 | 45 | __set_toolset "STANDARD" 46 | 47 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" "NO_CONFIG" 48 | 49 | } 50 | 51 | 52 | fi 53 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_miniconda.sh: -------------------------------------------------------------------------------- 1 | 2 | # TODO : DEPRECATED USE miniconda2 or miniconda3 recipe 3 | 4 | 5 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_mode-export.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_EXPORTMODE_INCLUDED_" = "1" ]; then 2 | _EXPORTMODE_INCLUDED_=1 3 | 4 | feature_mode-export() { 5 | FEAT_NAME="mode-export" 6 | FEAT_LIST_SCHEMA="1" 7 | FEAT_DEFAULT_ARCH= 8 | 9 | FEAT_BUNDLE=MERGE_LIST 10 | } 11 | 12 | feature_mode-export_1() { 13 | FEAT_VERSION=1 14 | 15 | FEAT_SOURCE_DEPENDENCIES= 16 | FEAT_BINARY_DEPENDENCIES= 17 | 18 | 19 | FEAT_BUNDLE_ITEM="$FEAT_MODE_EXPORT_SCHEMA" 20 | 21 | FEAT_ENV_CALLBACK= 22 | FEAT_BUNDLE_CALLBACK= 23 | 24 | FEAT_INSTALL_TEST= 25 | FEAT_SEARCH_PATH= 26 | 27 | } 28 | 29 | 30 | 31 | fi 32 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_netcat.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_NETCAT_INCLUDED_" = "1" ]; then 2 | _NETCAT_INCLUDED_=1 3 | 4 | 5 | 6 | feature_netcat() { 7 | FEAT_NAME=netcat 8 | FEAT_LIST_SCHEMA="0_7_1:source" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | } 12 | 13 | feature_netcat_0_7_1() { 14 | FEAT_VERSION=0_7_1 15 | 16 | FEAT_SOURCE_DEPENDENCIES= 17 | FEAT_BINARY_DEPENDENCIES= 18 | 19 | FEAT_SOURCE_URL=http://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz 20 | FEAT_SOURCE_URL_FILENAME=netcat-0.7.1.tar.gz 21 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 22 | 23 | FEAT_BINARY_URL= 24 | FEAT_BINARY_URL_FILENAME= 25 | FEAT_BINARY_URL_PROTOCOL= 26 | 27 | FEAT_SOURCE_CALLBACK= 28 | FEAT_BINARY_CALLBACK= 29 | FEAT_ENV_CALLBACK= 30 | 31 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/netcat 32 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 33 | } 34 | 35 | 36 | 37 | feature_netcat_install_source() { 38 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 39 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 40 | 41 | 42 | __set_toolset "STANDARD" 43 | 44 | 45 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 46 | 47 | AUTO_INSTALL_CONF_FLAG_PREFIX= 48 | AUTO_INSTALL_CONF_FLAG_POSTFIX= 49 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 50 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 51 | 52 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" 53 | 54 | } 55 | 56 | 57 | fi 58 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_nifi.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_nifi_INCLUDED_" = "1" ]; then 2 | _nifi_INCLUDED_=1 3 | 4 | 5 | 6 | 7 | feature_nifi() { 8 | 9 | FEAT_NAME=nifi 10 | FEAT_LIST_SCHEMA="0_3_0:binary" 11 | FEAT_DEFAULT_ARCH= 12 | FEAT_DEFAULT_FLAVOUR="binary" 13 | } 14 | 15 | feature_nifi_0_3_0() { 16 | FEAT_VERSION=0_3_0 17 | 18 | FEAT_SOURCE_DEPENDENCIES= 19 | FEAT_BINARY_DEPENDENCIES= 20 | 21 | FEAT_SOURCE_URL= 22 | FEAT_SOURCE_URL_FILENAME= 23 | FEAT_SOURCE_CALLBACK= 24 | 25 | FEAT_BINARY_URL="http://www.apache.org/dist/nifi/0.3.0/nifi-0.3.0-bin.tar.gz" 26 | FEAT_BINARY_URL_FILENAME=nifi-0.3.0-bin.zip 27 | FEAT_BINARY_URL_PROTOCOL=HTTP_ZIP 28 | 29 | FEAT_SOURCE_CALLBACK= 30 | FEAT_BINARY_CALLBACK= 31 | FEAT_ENV_CALLBACK= 32 | 33 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/nifi.sh 34 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 35 | 36 | } 37 | 38 | 39 | 40 | # ----------------------------------------- 41 | feature_nifi_install_binary() { 42 | 43 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP" 44 | 45 | } 46 | 47 | 48 | 49 | 50 | fi 51 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_nms.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_nms_INCLUDED_" = "1" ]; then 2 | _nms_INCLUDED_=1 3 | 4 | 5 | feature_nms() { 6 | FEAT_NAME=nms 7 | FEAT_LIST_SCHEMA="0_3_3:source" 8 | FEAT_DEFAULT_ARCH= 9 | FEAT_DEFAULT_FLAVOUR="source" 10 | 11 | FEAT_DESC="A command line tool that recreates the famous data decryption effect seen in the 1992 movie Sneakers." 12 | FEAT_LINK="https://github.com/bartobri/no-more-secrets" 13 | } 14 | 15 | feature_nms_0_3_3() { 16 | FEAT_VERSION=0_3_3 17 | 18 | FEAT_SOURCE_URL="https://github.com/bartobri/no-more-secrets/archive/v0.3.3.tar.gz" 19 | FEAT_SOURCE_URL_FILENAME=nms-v0.3.3.tar.gz 20 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 21 | 22 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/nms 23 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 24 | } 25 | 26 | 27 | 28 | feature_nms_install_source() { 29 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 30 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 31 | 32 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP FORCE_NAME $FEAT_SOURCE_URL_FILENAME" 33 | 34 | __set_toolset "STANDARD" 35 | 36 | 37 | AUTO_INSTALL_CONF_FLAG_PREFIX= 38 | AUTO_INSTALL_CONF_FLAG_POSTFIX= 39 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 40 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 41 | 42 | 43 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" "NO_CONFIG POST_BUILD_STEP sneakers install" 44 | 45 | 46 | } 47 | 48 | 49 | fi 50 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_scala.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_SCALA_INCLUDED_" = "1" ]; then 2 | _SCALA_INCLUDED_=1 3 | 4 | 5 | 6 | feature_scala() { 7 | FEAT_NAME=scala 8 | FEAT_LIST_SCHEMA="2_11_6:binary" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="binary" 11 | } 12 | 13 | feature_scala_env() { 14 | SCALA_HOME=$FEAT_INSTALL_ROOT 15 | export SCALA_HOME=$FEAT_INSTALL_ROOT 16 | } 17 | 18 | 19 | feature_scala_2_11_6() { 20 | FEAT_VERSION=2_11_6 21 | # need JVM 22 | FEAT_SOURCE_DEPENDENCIES= 23 | FEAT_BINARY_DEPENDENCIES= 24 | 25 | FEAT_SOURCE_URL= 26 | FEAT_SOURCE_URL_FILENAME= 27 | FEAT_SOURCE_URL_PROTOCOL= 28 | 29 | FEAT_BINARY_URL=http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.tgz 30 | FEAT_BINARY_URL_FILENAME=scala-2.11.6.tgz 31 | FEAT_BINARY_URL_PROTOCOL=HTTP_ZIP 32 | 33 | FEAT_SOURCE_CALLBACK= 34 | FEAT_BINARY_CALLBACK= 35 | FEAT_ENV_CALLBACK=feature_scala_env 36 | 37 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/scala 38 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 39 | 40 | } 41 | 42 | 43 | 44 | feature_scala_install_binary() { 45 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "DEST_ERASE STRIP" 46 | 47 | } 48 | 49 | 50 | fi 51 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_shell-fun.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_shellfun_INCLUDED_" = "1" ]; then 2 | _shellfun_INCLUDED_=1 3 | 4 | 5 | feature_shell-fun() { 6 | FEAT_NAME="shell-fun" 7 | FEAT_LIST_SCHEMA="1_0" 8 | FEAT_DEFAULT_ARCH= 9 | 10 | FEAT_BUNDLE=LIST 11 | } 12 | 13 | feature_shell-fun_1_0() { 14 | FEAT_VERSION=1_0 15 | 16 | FEAT_SOURCE_DEPENDENCIES= 17 | FEAT_BINARY_DEPENDENCIES= 18 | 19 | FEAT_BUNDLE_ITEM="figlet cmatrix nms" 20 | 21 | FEAT_ENV_CALLBACK= 22 | FEAT_BUNDLE_CALLBACK=feature_shell-fun_print 23 | 24 | FEAT_INSTALL_TEST= 25 | FEAT_SEARCH_PATH= 26 | } 27 | 28 | 29 | feature_shell-fun_print() { 30 | 31 | figlet " ** Fun Shell **" 32 | echo " -- a collection of amazing shell tools." 33 | echo " figlet" 34 | #echo " lolcat" 35 | #echo " fortune" 36 | #echo " cowsay" 37 | echo " cmatrix" 38 | echo " nms && sneakers" 39 | 40 | } 41 | 42 | 43 | fi 44 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_shell-games.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_shellgames_INCLUDED_" = "1" ]; then 2 | _shellgames_INCLUDED_=1 3 | 4 | # https://www.tecmint.com/best-linux-terminal-console-games/ 5 | # https://www.fossmint.com/linux-terminal-console-games/ 6 | # https://linoxide.com/linux-how-to/linux-command-line-games/ 7 | 8 | feature_shell-games() { 9 | FEAT_NAME="shell-games" 10 | FEAT_LIST_SCHEMA="1_0" 11 | FEAT_DEFAULT_ARCH= 12 | 13 | FEAT_BUNDLE=LIST 14 | } 15 | 16 | feature_shell-games_1_0() { 17 | FEAT_VERSION=1_0 18 | 19 | FEAT_SOURCE_DEPENDENCIES= 20 | FEAT_BINARY_DEPENDENCIES= 21 | 22 | FEAT_BUNDLE_ITEM="unnethack" 23 | 24 | FEAT_ENV_CALLBACK= 25 | FEAT_BUNDLE_CALLBACK=feature_shell-games_print 26 | 27 | FEAT_INSTALL_TEST= 28 | FEAT_SEARCH_PATH= 29 | } 30 | 31 | 32 | feature_shell-games_print() { 33 | 34 | figlet " ** Games in Shell **" 35 | echo " -- a collection of amazing shell games." 36 | echo " figlet" 37 | 38 | 39 | } 40 | 41 | 42 | fi 43 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_shml.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_shml_INCLUDED_" = "1" ]; then 2 | _shml_INCLUDED_=1 3 | 4 | 5 | 6 | feature_shml() { 7 | FEAT_NAME=shml 8 | FEAT_LIST_SCHEMA="1_0_4:source" 9 | FEAT_DEFAULT_ARCH= 10 | FEAT_DEFAULT_FLAVOUR="source" 11 | } 12 | 13 | 14 | feature_shml_1_0_4() { 15 | FEAT_VERSION=1_0_4 16 | FEAT_SOURCE_DEPENDENCIES= 17 | FEAT_BINARY_DEPENDENCIES= 18 | 19 | FEAT_SOURCE_URL=https://github.com/odb/shml/archive/1.0.4.tar.gz 20 | FEAT_SOURCE_URL_FILENAME=shml-1.0.4.tar.gz 21 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 22 | 23 | FEAT_BINARY_URL= 24 | FEAT_BINARY_URL_FILENAME= 25 | FEAT_BINARY_URL_PROTOCOL= 26 | 27 | FEAT_SOURCE_CALLBACK= 28 | FEAT_BINARY_CALLBACK= 29 | FEAT_ENV_CALLBACK= 30 | 31 | 32 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/shml.sh 33 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT" 34 | 35 | } 36 | 37 | 38 | 39 | feature_shml_install_source() { 40 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP DEST_ERASE FORCE_NAME $FEAT_SOURCE_URL_FILENAME" 41 | chmod +x $FEAT_INSTALL_ROOT/shml.sh 42 | } 43 | 44 | 45 | fi 46 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_ucl.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_UCL_INCLUDED_" = "1" ]; then 2 | _UCL_INCLUDED_=1 3 | 4 | # OK 5 | 6 | 7 | feature_ucl() { 8 | FEAT_NAME=ucl 9 | FEAT_LIST_SCHEMA="1_03:source" 10 | FEAT_DEFAULT_ARCH= 11 | FEAT_DEFAULT_FLAVOUR="source" 12 | } 13 | 14 | feature_ucl_1_03() { 15 | FEAT_VERSION=1_03 16 | 17 | FEAT_SOURCE_DEPENDENCIES= 18 | FEAT_BINARY_DEPENDENCIES= 19 | 20 | FEAT_SOURCE_URL=http://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz 21 | FEAT_SOURCE_URL_FILENAME=ucl-1.03.tar.gz 22 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 23 | 24 | FEAT_BINARY_URL= 25 | FEAT_BINARY_URL_FILENAME= 26 | FEAT_BINARY_URL_PROTOCOL= 27 | 28 | FEAT_SOURCE_CALLBACK= 29 | FEAT_BINARY_CALLBACK= 30 | FEAT_ENV_CALLBACK= 31 | 32 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/lib/libucl.a 33 | FEAT_SEARCH_PATH= 34 | 35 | } 36 | 37 | feature_ucl_install_source() { 38 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 39 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 40 | 41 | 42 | __set_toolset "STANDARD" 43 | 44 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 45 | 46 | 47 | AUTO_INSTALL_CONF_FLAG_PREFIX= 48 | AUTO_INSTALL_CONF_FLAG_POSTFIX="--enable-shared --disable-dependency-tracking" 49 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 50 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 51 | 52 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" 53 | 54 | } 55 | 56 | 57 | 58 | fi 59 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_vitetris.sh: -------------------------------------------------------------------------------- 1 | # shellcheck shell=bash 2 | # shellcheck disable=SC2034 3 | if [ ! "$_vitetris_INCLUDED_" = "1" ]; then 4 | _vitetris_INCLUDED_=1 5 | 6 | 7 | feature_vitetris() { 8 | FEAT_NAME=vitetris 9 | FEAT_LIST_SCHEMA="0_58_0:source" 10 | FEAT_DEFAULT_ARCH= 11 | FEAT_DEFAULT_FLAVOUR="source" 12 | 13 | FEAT_DESC="Classic multiplayer tetris for the terminal " 14 | FEAT_LINK="http://victornils.net/tetris/" 15 | } 16 | 17 | 18 | feature_vitetris_0_58_0() { 19 | FEAT_VERSION="0_58_0" 20 | 21 | FEAT_SOURCE_URL="https://github.com/vicgeralds/vitetris/archive/v0.58.0.tar.gz" 22 | FEAT_SOURCE_URL_FILENAME="vitetris-v0.58.0.tar.gz" 23 | FEAT_SOURCE_URL_PROTOCOL="HTTP_ZIP" 24 | 25 | FEAT_TEST="tetris" 26 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT/bin/tetris" 27 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT/bin" 28 | 29 | } 30 | 31 | 32 | feature_vitetris_install_source() { 33 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 34 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 35 | 36 | __set_toolset "STANDARD" 37 | 38 | 39 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP FORCE_NAME $FEAT_SOURCE_URL_FILENAME" 40 | 41 | # NOTE : change "install -oroot -groot" options to "install" 42 | AUTO_INSTALL_BUILD_FLAG_POSTFIX="INSTALL=install" 43 | 44 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" "NO_OUT_OF_TREE_BUILD" 45 | 46 | } 47 | 48 | 49 | 50 | fi 51 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_xkcdpass.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_xkcdpass_INCLUDED_" = "1" ]; then 2 | _xkcdpass_INCLUDED_=1 3 | 4 | 5 | # https://pypi.org/project/xkcdpass/ 6 | # https://github.com/redacted/XKCD-password-generator 7 | 8 | feature_xkcdpass() { 9 | FEAT_NAME=xkcdpass 10 | 11 | FEAT_LIST_SCHEMA="1_17_2:binary" 12 | FEAT_DEFAULT_ARCH= 13 | FEAT_DEFAULT_FLAVOUR="binary" 14 | 15 | FEAT_ENV_CALLBACK=feature_xkcdpass_env 16 | 17 | FEAT_DESC="Generate secure multiword passwords/passphrases, inspired by XKCD" 18 | FEAT_LINK="https://github.com/redacted/XKCD-password-generator" 19 | 20 | } 21 | 22 | feature_xkcdpass_env() { 23 | PYTHONPATH="$(PYTHONUSERBASE="${FEAT_INSTALL_ROOT}" __python_get_site_packages_user_path):${PYTHONPATH}" 24 | export PYTHONPATH="${PYTHONPATH}" 25 | } 26 | 27 | 28 | feature_xkcdpass_1_17_2() { 29 | FEAT_VERSION=1_17_2 30 | 31 | FEAT_BINARY_DEPENDENCIES="miniconda3" 32 | 33 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/xkcdpass 34 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 35 | 36 | } 37 | 38 | 39 | 40 | feature_xkcdpass_install_binary() { 41 | INSTALL_DIR="${FEAT_INSTALL_ROOT}" 42 | 43 | PYTHONUSERBASE="${FEAT_INSTALL_ROOT}" pip install --no-warn-script-location --ignore-installed --upgrade --user "${FEAT_NAME}"=="$(echo ${FEAT_VERSION} |tr '_' '.')" 44 | 45 | } 46 | 47 | 48 | 49 | fi 50 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_xzutils.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_xzutils_INCLUDED_" = "1" ]; then 2 | _xzutils_INCLUDED_=1 3 | 4 | 5 | feature_xzutils() { 6 | FEAT_NAME=xzutils 7 | FEAT_LIST_SCHEMA="5_2_1:source" 8 | FEAT_DEFAULT_ARCH= 9 | FEAT_DEFAULT_FLAVOUR="source" 10 | } 11 | 12 | feature_xzutils_5_2_1() { 13 | FEAT_VERSION=5_2_1 14 | 15 | 16 | FEAT_SOURCE_DEPENDENCIES= 17 | FEAT_BINARY_DEPENDENCIES= 18 | 19 | FEAT_SOURCE_URL=http://tukaani.org/xz/xz-5.2.1.tar.gz 20 | FEAT_SOURCE_URL_FILENAME=xz-5.2.1.tar.gz 21 | FEAT_SOURCE_URL_PROTOCOL=HTTP_ZIP 22 | 23 | FEAT_BINARY_URL= 24 | FEAT_BINARY_URL_FILENAME= 25 | FEAT_BINARY_URL_PROTOCOL= 26 | 27 | FEAT_SOURCE_CALLBACK= 28 | FEAT_BINARY_CALLBACK= 29 | FEAT_ENV_CALLBACK= 30 | 31 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/lib/liblzma.a 32 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 33 | 34 | } 35 | 36 | 37 | 38 | feature_xzutils_install_source() { 39 | INSTALL_DIR="$FEAT_INSTALL_ROOT" 40 | SRC_DIR="$STELLA_APP_FEATURE_ROOT/$FEAT_NAME-$FEAT_VERSION-src" 41 | 42 | __set_toolset "STANDARD" 43 | 44 | 45 | __get_resource "$FEAT_NAME" "$FEAT_SOURCE_URL" "$FEAT_SOURCE_URL_PROTOCOL" "$SRC_DIR" "DEST_ERASE STRIP" 46 | 47 | 48 | 49 | AUTO_INSTALL_CONF_FLAG_PREFIX= 50 | AUTO_INSTALL_CONF_FLAG_POSTFIX="--disable-dependency-tracking" 51 | AUTO_INSTALL_BUILD_FLAG_PREFIX= 52 | AUTO_INSTALL_BUILD_FLAG_POSTFIX= 53 | 54 | __auto_build "$FEAT_NAME" "$SRC_DIR" "$INSTALL_DIR" 55 | 56 | 57 | } 58 | 59 | 60 | fi 61 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_yarn.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_yarn_INCLUDED_" = "1" ]; then 2 | _yarn_INCLUDED_=1 3 | 4 | 5 | feature_yarn() { 6 | FEAT_NAME=yarn 7 | FEAT_LIST_SCHEMA="1_16_0:binary 1_22_10:binary" 8 | FEAT_DEFAULT_ARCH= 9 | FEAT_DEFAULT_FLAVOUR="binary" 10 | 11 | FEAT_DESC="Fast, reliable, and secure dependency management." 12 | FEAT_LINK="https://yarnpkg.com" 13 | } 14 | 15 | feature_yarn_1_22_10() { 16 | 17 | FEAT_VERSION=1_22_10 18 | 19 | 20 | FEAT_BINARY_URL="https://github.com/yarnpkg/yarn/releases/download/v1.22.10/yarn-v1.22.10.tar.gz" 21 | FEAT_BINARY_URL_FILENAME="yarn-v1.22.10.tar.gz" 22 | FEAT_BINARY_URL_PROTOCOL="HTTP_ZIP" 23 | 24 | FEAT_INSTALL_TEST=$FEAT_INSTALL_ROOT/bin/yarn 25 | FEAT_SEARCH_PATH=$FEAT_INSTALL_ROOT/bin 26 | 27 | } 28 | 29 | 30 | feature_yarn_1_16_0() { 31 | 32 | FEAT_VERSION=1_16_0 33 | 34 | 35 | FEAT_BINARY_URL="https://github.com/yarnpkg/yarn/releases/download/v1.16.0/yarn-v1.16.0.tar.gz" 36 | FEAT_BINARY_URL_FILENAME="yarn-v1.16.0.tar.gz" 37 | FEAT_BINARY_URL_PROTOCOL="HTTP_ZIP" 38 | 39 | FEAT_INSTALL_TEST=$FEAT_INSTALL_ROOT/bin/yarn 40 | FEAT_SEARCH_PATH=$FEAT_INSTALL_ROOT/bin 41 | 42 | } 43 | 44 | 45 | 46 | feature_yarn_install_binary() { 47 | 48 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "DEST_ERASE STRIP" 49 | 50 | 51 | } 52 | 53 | 54 | fi 55 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/feature-recipe/feature_zeppelin.sh: -------------------------------------------------------------------------------- 1 | if [ ! "$_zeppelin_INCLUDED_" = "1" ]; then 2 | _zeppelin_INCLUDED_=1 3 | 4 | 5 | feature_zeppelin() { 6 | FEAT_NAME=zeppelin 7 | FEAT_LIST_SCHEMA="0_6_1:binary" 8 | FEAT_DEFAULT_ARCH= 9 | FEAT_DEFAULT_FLAVOUR="binary" 10 | } 11 | 12 | 13 | 14 | 15 | feature_zeppelin_0_6_1() { 16 | FEAT_VERSION=0_6_1 17 | FEAT_SOURCE_DEPENDENCIES= 18 | FEAT_BINARY_DEPENDENCIES= 19 | 20 | FEAT_SOURCE_URL= 21 | FEAT_SOURCE_URL_FILENAME= 22 | FEAT_SOURCE_URL_PROTOCOL= 23 | 24 | FEAT_BINARY_URL=https://archive.apache.org/dist/zeppelin/zeppelin-0.6.1/zeppelin-0.6.1-bin-all.tgz 25 | FEAT_BINARY_URL_FILENAME=zeppelin-0.6.1-bin-all.tgz 26 | FEAT_BINARY_URL_PROTOCOL=HTTP_ZIP 27 | 28 | FEAT_SOURCE_CALLBACK= 29 | FEAT_BINARY_CALLBACK= 30 | FEAT_ENV_CALLBACK= 31 | 32 | 33 | FEAT_INSTALL_TEST="$FEAT_INSTALL_ROOT"/bin/zeppelin.sh 34 | FEAT_SEARCH_PATH="$FEAT_INSTALL_ROOT"/bin 35 | 36 | } 37 | 38 | feature_zeppelin_install_binary() { 39 | __get_resource "$FEAT_NAME" "$FEAT_BINARY_URL" "$FEAT_BINARY_URL_PROTOCOL" "$FEAT_INSTALL_ROOT" "STRIP" 40 | 41 | } 42 | 43 | 44 | fi 45 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/patch/openttd/patch_osx_music_AudioComponentDescription.diff: -------------------------------------------------------------------------------- 1 | --- src/music/cocoa_m.cpp.ori 2015-12-12 00:57:36.000000000 +0100 2 | +++ src/music/cocoa_m.cpp 2015-12-12 00:58:23.000000000 +0100 3 | @@ -68,7 +68,7 @@ 4 | * risk compilation errors. The header AudioComponent.h 5 | * was introduced in 10.6 so use it to decide which 6 | * type definition to use. */ 7 | -#ifdef __AUDIOCOMPONENT_H__ 8 | +#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6) 9 | AudioComponentDescription desc; 10 | #else 11 | ComponentDescription desc; 12 | -------------------------------------------------------------------------------- /pool/stella/nix/pool/patch/openttd/patch_osx_quartz_CMGetSystemProfile_deprecated.diff: -------------------------------------------------------------------------------- 1 | --- src/video/cocoa/wnd_quartz.mm.orig 2015-12-10 01:11:29.000000000 +0100 2 | +++ src/video/cocoa/wnd_quartz.mm 2015-12-10 01:16:43.000000000 +0100 3 | @@ -110,6 +110,7 @@ 4 | static CGColorSpaceRef colorSpace = NULL; 5 | 6 | if (colorSpace == NULL) { 7 | +#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6) 8 | CMProfileRef sysProfile; 9 | 10 | if (CMGetSystemProfile(&sysProfile) == noErr) { 11 | @@ -118,7 +119,12 @@ 12 | } else { 13 | colorSpace = CGColorSpaceCreateDeviceRGB(); 14 | } 15 | +#else 16 | + colorSpace = ::CGDisplayCopyColorSpace(::CGMainDisplayID()); 17 | 18 | + if (!colorSpace) 19 | + colorSpace = CGColorSpaceCreateDeviceRGB(); 20 | +#endif 21 | if (colorSpace == NULL) error("Could not get system colour space. You might need to recalibrate your monitor."); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Microsoft 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/README.md: -------------------------------------------------------------------------------- 1 | # go-winio 2 | 3 | This repository contains utilities for efficiently performing Win32 IO operations in 4 | Go. Currently, this is focused on accessing named pipes and other file handles, and 5 | for using named pipes as a net transport. 6 | 7 | This code relies on IO completion ports to avoid blocking IO on system threads, allowing Go 8 | to reuse the thread to schedule another goroutine. This limits support to Windows Vista and 9 | newer operating systems. This is similar to the implementation of network sockets in Go's net 10 | package. 11 | 12 | Please see the LICENSE file for licensing information. 13 | 14 | This project has adopted the [Microsoft Open Source Code of 15 | Conduct](https://opensource.microsoft.com/codeofconduct/). For more information 16 | see the [Code of Conduct 17 | FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact 18 | [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional 19 | questions or comments. 20 | 21 | Thanks to natefinch for the inspiration for this library. See https://github.com/natefinch/npipe 22 | for another named pipe implementation. 23 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | package winio 2 | 3 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go file.go pipe.go sd.go fileinfo.go privilege.go backup.go hvsock.go 4 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6.x 4 | - 1.7.x 5 | - 1.8.x 6 | - tip 7 | env: 8 | - GOMAXPROCS=4 GORACE=halt_on_error=1 9 | install: 10 | - go get github.com/stretchr/testify/assert 11 | - go get gopkg.in/gemnasium/logrus-airbrake-hook.v2 12 | - go get golang.org/x/sys/unix 13 | - go get golang.org/x/sys/windows 14 | script: 15 | - go test -race -v ./... 16 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Simon Eskildsen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/hooks.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | // A hook to be fired when logging on the logging levels returned from 4 | // `Levels()` on your implementation of the interface. Note that this is not 5 | // fired in a goroutine or a channel with workers, you should handle such 6 | // functionality yourself if your call is non-blocking and you don't wish for 7 | // the logging calls for levels returned from `Levels()` to block. 8 | type Hook interface { 9 | Levels() []Level 10 | Fire(*Entry) error 11 | } 12 | 13 | // Internal type for storing the hooks on a logger instance. 14 | type LevelHooks map[Level][]Hook 15 | 16 | // Add a hook to an instance of logger. This is called with 17 | // `log.Hooks.Add(new(MyHook))` where `MyHook` implements the `Hook` interface. 18 | func (hooks LevelHooks) Add(hook Hook) { 19 | for _, level := range hook.Levels() { 20 | hooks[level] = append(hooks[level], hook) 21 | } 22 | } 23 | 24 | // Fire all the hooks for the passed level. Used by `entry.log` to fire 25 | // appropriate hooks for a log entry. 26 | func (hooks LevelHooks) Fire(level Level, entry *Entry) error { 27 | for _, hook := range hooks[level] { 28 | if err := hook.Fire(entry); err != nil { 29 | return err 30 | } 31 | } 32 | 33 | return nil 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | type Termios unix.Termios 11 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build !appengine 7 | 8 | package logrus 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TCGETS 13 | 14 | type Termios unix.Termios 15 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/go-systemd/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2018 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StudioEtrange/docker-volume-bindfs/ecf37632cf0c882668489ba647ffe19eee41aacd/vendor/github.com/docker/go-connections/sockets/README.md -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/proxy.go: -------------------------------------------------------------------------------- 1 | package sockets 2 | 3 | import ( 4 | "net" 5 | "os" 6 | "strings" 7 | ) 8 | 9 | // GetProxyEnv allows access to the uppercase and the lowercase forms of 10 | // proxy-related variables. See the Go specification for details on these 11 | // variables. https://golang.org/pkg/net/http/ 12 | func GetProxyEnv(key string) string { 13 | proxyValue := os.Getenv(strings.ToUpper(key)) 14 | if proxyValue == "" { 15 | return os.Getenv(strings.ToLower(key)) 16 | } 17 | return proxyValue 18 | } 19 | 20 | // DialerFromEnvironment was previously used to configure a net.Dialer to route 21 | // connections through a SOCKS proxy. 22 | // DEPRECATED: SOCKS proxies are now supported by configuring only 23 | // http.Transport.Proxy, and no longer require changing http.Transport.Dial. 24 | // Therefore, only sockets.ConfigureTransport() needs to be called, and any 25 | // sockets.DialerFromEnvironment() calls can be dropped. 26 | func DialerFromEnvironment(direct *net.Dialer) (*net.Dialer, error) { 27 | return direct, nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/sockets.go: -------------------------------------------------------------------------------- 1 | // Package sockets provides helper functions to create and configure Unix or TCP sockets. 2 | package sockets 3 | 4 | import ( 5 | "errors" 6 | "net/http" 7 | "time" 8 | ) 9 | 10 | const defaultTimeout = 10 * time.Second 11 | 12 | // ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system. 13 | var ErrProtocolNotAvailable = errors.New("protocol not available") 14 | 15 | // ConfigureTransport configures the specified Transport according to the 16 | // specified proto and addr. 17 | // If the proto is unix (using a unix socket to communicate) or npipe the 18 | // compression is disabled. 19 | func ConfigureTransport(tr *http.Transport, proto, addr string) error { 20 | switch proto { 21 | case "unix": 22 | return configureUnixTransport(tr, proto, addr) 23 | case "npipe": 24 | return configureNpipeTransport(tr, proto, addr) 25 | default: 26 | tr.Proxy = http.ProxyFromEnvironment 27 | } 28 | return nil 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/sockets_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package sockets 4 | 5 | import ( 6 | "context" 7 | "fmt" 8 | "net" 9 | "net/http" 10 | "syscall" 11 | "time" 12 | ) 13 | 14 | const maxUnixSocketPathSize = len(syscall.RawSockaddrUnix{}.Path) 15 | 16 | func configureUnixTransport(tr *http.Transport, proto, addr string) error { 17 | if len(addr) > maxUnixSocketPathSize { 18 | return fmt.Errorf("Unix socket path %q is too long", addr) 19 | } 20 | // No need for compression in local communications. 21 | tr.DisableCompression = true 22 | dialer := &net.Dialer{ 23 | Timeout: defaultTimeout, 24 | } 25 | tr.DialContext = func(ctx context.Context, _, _ string) (net.Conn, error) { 26 | return dialer.DialContext(ctx, proto, addr) 27 | } 28 | return nil 29 | } 30 | 31 | func configureNpipeTransport(tr *http.Transport, proto, addr string) error { 32 | return ErrProtocolNotAvailable 33 | } 34 | 35 | // DialPipe connects to a Windows named pipe. 36 | // This is not supported on other OSes. 37 | func DialPipe(_ string, _ time.Duration) (net.Conn, error) { 38 | return nil, syscall.EAFNOSUPPORT 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/sockets_windows.go: -------------------------------------------------------------------------------- 1 | package sockets 2 | 3 | import ( 4 | "context" 5 | "net" 6 | "net/http" 7 | "time" 8 | 9 | "github.com/Microsoft/go-winio" 10 | ) 11 | 12 | func configureUnixTransport(tr *http.Transport, proto, addr string) error { 13 | return ErrProtocolNotAvailable 14 | } 15 | 16 | func configureNpipeTransport(tr *http.Transport, proto, addr string) error { 17 | // No need for compression in local communications. 18 | tr.DisableCompression = true 19 | tr.DialContext = func(ctx context.Context, _, _ string) (net.Conn, error) { 20 | return winio.DialPipeContext(ctx, addr) 21 | } 22 | return nil 23 | } 24 | 25 | // DialPipe connects to a Windows named pipe. 26 | func DialPipe(addr string, timeout time.Duration) (net.Conn, error) { 27 | return winio.DialPipe(addr, &timeout) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/tcp_socket.go: -------------------------------------------------------------------------------- 1 | // Package sockets provides helper functions to create and configure Unix or TCP sockets. 2 | package sockets 3 | 4 | import ( 5 | "crypto/tls" 6 | "net" 7 | ) 8 | 9 | // NewTCPSocket creates a TCP socket listener with the specified address and 10 | // the specified tls configuration. If TLSConfig is set, will encapsulate the 11 | // TCP listener inside a TLS one. 12 | func NewTCPSocket(addr string, tlsConfig *tls.Config) (net.Listener, error) { 13 | l, err := net.Listen("tcp", addr) 14 | if err != nil { 15 | return nil, err 16 | } 17 | if tlsConfig != nil { 18 | tlsConfig.NextProtos = []string{"http/1.1"} 19 | l = tls.NewListener(l, tlsConfig) 20 | } 21 | return l, nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/NOTICE: -------------------------------------------------------------------------------- 1 | Docker 2 | Copyright 2012-2015 Docker, Inc. 3 | 4 | This product includes software developed at Docker, Inc. (https://www.docker.com). 5 | 6 | This product contains software (https://github.com/kr/pty) developed 7 | by Keith Rarick, licensed under the MIT License. 8 | 9 | The following is courtesy of our legal counsel: 10 | 11 | 12 | Use and transfer of Docker may be subject to certain restrictions by the 13 | United States and other governments. 14 | It is your responsibility to ensure that your use and/or transfer does not 15 | violate applicable laws. 16 | 17 | For more information, please see https://www.bis.doc.gov 18 | 19 | See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/encoder.go: -------------------------------------------------------------------------------- 1 | package sdk 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "io" 7 | "net/http" 8 | ) 9 | 10 | // DefaultContentTypeV1_1 is the default content type accepted and sent by the plugins. 11 | const DefaultContentTypeV1_1 = "application/vnd.docker.plugins.v1.1+json" 12 | 13 | // DecodeRequest decodes an http request into a given structure. 14 | func DecodeRequest(w http.ResponseWriter, r *http.Request, req interface{}) (err error) { 15 | if err = json.NewDecoder(r.Body).Decode(req); err != nil { 16 | http.Error(w, err.Error(), http.StatusBadRequest) 17 | } 18 | return 19 | } 20 | 21 | // EncodeResponse encodes the given structure into an http response. 22 | func EncodeResponse(w http.ResponseWriter, res interface{}, err bool) { 23 | w.Header().Set("Content-Type", DefaultContentTypeV1_1) 24 | if err { 25 | w.WriteHeader(http.StatusInternalServerError) 26 | } 27 | json.NewEncoder(w).Encode(res) 28 | } 29 | 30 | // StreamResponse streams a response object to the client 31 | func StreamResponse(w http.ResponseWriter, data io.ReadCloser) { 32 | w.Header().Set("Content-Type", DefaultContentTypeV1_1) 33 | if _, err := copyBuf(w, data); err != nil { 34 | fmt.Printf("ERROR in stream: %v\n", err) 35 | } 36 | data.Close() 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/pool.go: -------------------------------------------------------------------------------- 1 | package sdk 2 | 3 | import ( 4 | "io" 5 | "sync" 6 | ) 7 | 8 | const buffer32K = 32 * 1024 9 | 10 | var buffer32KPool = &sync.Pool{New: func() interface{} { return make([]byte, buffer32K) }} 11 | 12 | // copyBuf uses a shared buffer pool with io.CopyBuffer 13 | func copyBuf(w io.Writer, r io.Reader) (int64, error) { 14 | buf := buffer32KPool.Get().([]byte) 15 | written, err := io.CopyBuffer(w, r, buf) 16 | buffer32KPool.Put(buf) 17 | return written, err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/tcp_listener.go: -------------------------------------------------------------------------------- 1 | package sdk 2 | 3 | import ( 4 | "crypto/tls" 5 | "net" 6 | "runtime" 7 | 8 | "github.com/docker/go-connections/sockets" 9 | ) 10 | 11 | func newTCPListener(address, pluginName, daemonDir string, tlsConfig *tls.Config) (net.Listener, string, error) { 12 | listener, err := sockets.NewTCPSocket(address, tlsConfig) 13 | if err != nil { 14 | return nil, "", err 15 | } 16 | 17 | addr := listener.Addr().String() 18 | 19 | var specDir string 20 | if runtime.GOOS == "windows" { 21 | specDir, err = createPluginSpecDirWindows(pluginName, addr, daemonDir) 22 | } else { 23 | specDir, err = createPluginSpecDirUnix(pluginName, addr) 24 | } 25 | if err != nil { 26 | return nil, "", err 27 | } 28 | 29 | specFile, err := writeSpecFile(pluginName, addr, specDir, protoTCP) 30 | if err != nil { 31 | return nil, "", err 32 | } 33 | return listener, specFile, nil 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/unix_listener.go: -------------------------------------------------------------------------------- 1 | // +build linux freebsd 2 | 3 | package sdk 4 | 5 | import ( 6 | "net" 7 | "os" 8 | "path/filepath" 9 | 10 | "github.com/docker/go-connections/sockets" 11 | ) 12 | 13 | const pluginSockDir = "/run/docker/plugins" 14 | 15 | func newUnixListener(pluginName string, gid int) (net.Listener, string, error) { 16 | path, err := fullSocketAddress(pluginName) 17 | if err != nil { 18 | return nil, "", err 19 | } 20 | listener, err := sockets.NewUnixSocket(path, gid) 21 | if err != nil { 22 | return nil, "", err 23 | } 24 | return listener, path, nil 25 | } 26 | 27 | func fullSocketAddress(address string) (string, error) { 28 | if err := os.MkdirAll(pluginSockDir, 0755); err != nil { 29 | return "", err 30 | } 31 | if filepath.IsAbs(address) { 32 | return address, nil 33 | } 34 | return filepath.Join(pluginSockDir, address+".sock"), nil 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/unix_listener_nosystemd.go: -------------------------------------------------------------------------------- 1 | // +build linux freebsd 2 | // +build nosystemd 3 | 4 | package sdk 5 | 6 | import "net" 7 | 8 | func setupSocketActivation() (net.Listener, error) { 9 | return nil, nil 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/unix_listener_systemd.go: -------------------------------------------------------------------------------- 1 | // +build linux freebsd 2 | // +build !nosystemd 3 | 4 | package sdk 5 | 6 | import ( 7 | "fmt" 8 | "net" 9 | "os" 10 | 11 | "github.com/coreos/go-systemd/activation" 12 | ) 13 | 14 | // isRunningSystemd checks whether the host was booted with systemd as its init 15 | // system. This functions similarly to systemd's `sd_booted(3)`: internally, it 16 | // checks whether /run/systemd/system/ exists and is a directory. 17 | // http://www.freedesktop.org/software/systemd/man/sd_booted.html 18 | // 19 | // Copied from github.com/coreos/go-systemd/util.IsRunningSystemd 20 | func isRunningSystemd() bool { 21 | fi, err := os.Lstat("/run/systemd/system") 22 | if err != nil { 23 | return false 24 | } 25 | return fi.IsDir() 26 | } 27 | 28 | func setupSocketActivation() (net.Listener, error) { 29 | if !isRunningSystemd() { 30 | return nil, nil 31 | } 32 | listenFds := activation.Files(false) 33 | if len(listenFds) > 1 { 34 | return nil, fmt.Errorf("expected only one socket from systemd, got %d", len(listenFds)) 35 | } 36 | var listener net.Listener 37 | if len(listenFds) == 1 { 38 | l, err := net.FileListener(listenFds[0]) 39 | if err != nil { 40 | return nil, err 41 | } 42 | listener = l 43 | } 44 | return listener, nil 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/unix_listener_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd 2 | 3 | package sdk 4 | 5 | import ( 6 | "errors" 7 | "net" 8 | ) 9 | 10 | var ( 11 | errOnlySupportedOnLinuxAndFreeBSD = errors.New("unix socket creation is only supported on Linux and FreeBSD") 12 | ) 13 | 14 | func newUnixListener(pluginName string, gid int) (net.Listener, string, error) { 15 | return nil, "", errOnlySupportedOnLinuxAndFreeBSD 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/windows_listener_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package sdk 4 | 5 | import ( 6 | "errors" 7 | "net" 8 | ) 9 | 10 | var ( 11 | errOnlySupportedOnWindows = errors.New("named pipe creation is only supported on Windows") 12 | ) 13 | 14 | func newWindowsListener(address, pluginName, daemonRoot string, pipeConfig *WindowsPipeConfig) (net.Listener, string, error) { 15 | return nil, "", errOnlySupportedOnWindows 16 | } 17 | 18 | func windowsCreateDirectoryWithACL(name string) error { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/sdk/windows_pipe_config.go: -------------------------------------------------------------------------------- 1 | package sdk 2 | 3 | // WindowsPipeConfig is a helper structure for configuring named pipe parameters on Windows. 4 | type WindowsPipeConfig struct { 5 | // SecurityDescriptor contains a Windows security descriptor in SDDL format. 6 | SecurityDescriptor string 7 | 8 | // InBufferSize in bytes. 9 | InBufferSize int32 10 | 11 | // OutBufferSize in bytes. 12 | OutBufferSize int32 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-plugins-helpers/volume/README.md: -------------------------------------------------------------------------------- 1 | # Docker volume extension api. 2 | 3 | Go handler to create external volume extensions for Docker. 4 | 5 | ## Usage 6 | 7 | This library is designed to be integrated in your program. 8 | 9 | 1. Implement the `volume.Driver` interface. 10 | 2. Initialize a `volume.Handler` with your implementation. 11 | 3. Call either `ServeTCP` or `ServeUnix` from the `volume.Handler`. 12 | 13 | ### Example using TCP sockets: 14 | 15 | ```go 16 | d := MyVolumeDriver{} 17 | h := volume.NewHandler(d) 18 | h.ServeTCP("test_volume", ":8080") 19 | ``` 20 | 21 | ### Example using Unix sockets: 22 | 23 | ```go 24 | d := MyVolumeDriver{} 25 | h := volume.NewHandler(d) 26 | u, _ := user.Lookup("root") 27 | gid, _ := strconv.Atoi(u.Gid) 28 | h.ServeUnix("test_volume", gid) 29 | ``` 30 | 31 | ## Full example plugins 32 | 33 | - https://github.com/calavera/docker-volume-glusterfs 34 | - https://github.com/calavera/docker-volume-keywhiz 35 | - https://github.com/quobyte/docker-volume 36 | - https://github.com/NimbleStorage/Nemo 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package unsafeheader contains header declarations for the Go runtime's 6 | // slice and string implementations. 7 | // 8 | // This package allows x/sys to use types equivalent to 9 | // reflect.SliceHeader and reflect.StringHeader without introducing 10 | // a dependency on the (relatively heavy) "reflect" package. 11 | package unsafeheader 12 | 13 | import ( 14 | "unsafe" 15 | ) 16 | 17 | // Slice is the runtime representation of a slice. 18 | // It cannot be used safely or portably and its representation may change in a later release. 19 | type Slice struct { 20 | Data unsafe.Pointer 21 | Len int 22 | Cap int 23 | } 24 | 25 | // String is the runtime representation of a string. 26 | // It cannot be used safely or portably and its representation may change in a later release. 27 | type String struct { 28 | Data unsafe.Pointer 29 | Len int 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm_plan9_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | // 8 | // System call support for 386, Plan 9 9 | // 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-32 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-44 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 21 | JMP syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 24 | JMP syscall·RawSyscall6(SB) 25 | 26 | TEXT ·seek(SB),NOSPLIT,$0-36 27 | JMP syscall·seek(SB) 28 | 29 | TEXT ·exit(SB),NOSPLIT,$4-4 30 | JMP syscall·exit(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm_plan9_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | // 8 | // System call support for amd64, Plan 9 9 | // 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-64 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 21 | JMP syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 24 | JMP syscall·RawSyscall6(SB) 25 | 26 | TEXT ·seek(SB),NOSPLIT,$0-56 27 | JMP syscall·seek(SB) 28 | 29 | TEXT ·exit(SB),NOSPLIT,$8-8 30 | JMP syscall·exit(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm_plan9_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | // System call support for plan9 on arm 8 | 9 | // Just jump to package syscall's implementation for all these functions. 10 | // The runtime may know about them. 11 | 12 | TEXT ·Syscall(SB),NOSPLIT,$0-32 13 | JMP syscall·Syscall(SB) 14 | 15 | TEXT ·Syscall6(SB),NOSPLIT,$0-44 16 | JMP syscall·Syscall6(SB) 17 | 18 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 19 | JMP syscall·RawSyscall(SB) 20 | 21 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 22 | JMP syscall·RawSyscall6(SB) 23 | 24 | TEXT ·seek(SB),NOSPLIT,$0-36 25 | JMP syscall·exit(SB) 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/const_plan9.go: -------------------------------------------------------------------------------- 1 | package plan9 2 | 3 | // Plan 9 Constants 4 | 5 | // Open modes 6 | const ( 7 | O_RDONLY = 0 8 | O_WRONLY = 1 9 | O_RDWR = 2 10 | O_TRUNC = 16 11 | O_CLOEXEC = 32 12 | O_EXCL = 0x1000 13 | ) 14 | 15 | // Rfork flags 16 | const ( 17 | RFNAMEG = 1 << 0 18 | RFENVG = 1 << 1 19 | RFFDG = 1 << 2 20 | RFNOTEG = 1 << 3 21 | RFPROC = 1 << 4 22 | RFMEM = 1 << 5 23 | RFNOWAIT = 1 << 6 24 | RFCNAMEG = 1 << 10 25 | RFCENVG = 1 << 11 26 | RFCFDG = 1 << 12 27 | RFREND = 1 << 13 28 | RFNOMNT = 1 << 14 29 | ) 30 | 31 | // Qid.Type bits 32 | const ( 33 | QTDIR = 0x80 34 | QTAPPEND = 0x40 35 | QTEXCL = 0x20 36 | QTMOUNT = 0x10 37 | QTAUTH = 0x08 38 | QTTMP = 0x04 39 | QTFILE = 0x00 40 | ) 41 | 42 | // Dir.Mode bits 43 | const ( 44 | DMDIR = 0x80000000 45 | DMAPPEND = 0x40000000 46 | DMEXCL = 0x20000000 47 | DMMOUNT = 0x10000000 48 | DMAUTH = 0x08000000 49 | DMTMP = 0x04000000 50 | DMREAD = 0x4 51 | DMWRITE = 0x2 52 | DMEXEC = 0x1 53 | ) 54 | 55 | const ( 56 | STATMAX = 65535 57 | ERRMAX = 128 58 | STATFIXLEN = 49 59 | ) 60 | 61 | // Mount and bind flags 62 | const ( 63 | MREPL = 0x0000 64 | MBEFORE = 0x0001 65 | MAFTER = 0x0002 66 | MORDER = 0x0003 67 | MCREATE = 0x0004 68 | MCACHE = 0x0010 69 | MMASK = 0x0017 70 | ) 71 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/env_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Plan 9 environment variables. 6 | 7 | package plan9 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/zsysnum_plan9.go: -------------------------------------------------------------------------------- 1 | // mksysnum_plan9.sh /opt/plan9/sys/src/libc/9syscall/sys.h 2 | // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 3 | 4 | package plan9 5 | 6 | const ( 7 | SYS_SYSR1 = 0 8 | SYS_BIND = 2 9 | SYS_CHDIR = 3 10 | SYS_CLOSE = 4 11 | SYS_DUP = 5 12 | SYS_ALARM = 6 13 | SYS_EXEC = 7 14 | SYS_EXITS = 8 15 | SYS_FAUTH = 10 16 | SYS_SEGBRK = 12 17 | SYS_OPEN = 14 18 | SYS_OSEEK = 16 19 | SYS_SLEEP = 17 20 | SYS_RFORK = 19 21 | SYS_PIPE = 21 22 | SYS_CREATE = 22 23 | SYS_FD2PATH = 23 24 | SYS_BRK_ = 24 25 | SYS_REMOVE = 25 26 | SYS_NOTIFY = 28 27 | SYS_NOTED = 29 28 | SYS_SEGATTACH = 30 29 | SYS_SEGDETACH = 31 30 | SYS_SEGFREE = 32 31 | SYS_SEGFLUSH = 33 32 | SYS_RENDEZVOUS = 34 33 | SYS_UNMOUNT = 35 34 | SYS_SEMACQUIRE = 37 35 | SYS_SEMRELEASE = 38 36 | SYS_SEEK = 39 37 | SYS_FVERSION = 40 38 | SYS_ERRSTR = 41 39 | SYS_STAT = 42 40 | SYS_FSTAT = 43 41 | SYS_WSTAT = 44 42 | SYS_FWSTAT = 45 43 | SYS_MOUNT = 46 44 | SYS_AWAIT = 47 45 | SYS_PREAD = 50 46 | SYS_PWRITE = 51 47 | SYS_TSEMACQUIRE = 52 48 | SYS_NSEC = 53 49 | ) 50 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | // +build arm,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for ARM, Darwin 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-28 18 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | // +build arm64,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for AMD64, Darwin 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, DragonFly 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM64, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for AMD64, Linux 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 23 | CALL runtime·entersyscall(SB) 24 | MOVQ a1+8(FP), DI 25 | MOVQ a2+16(FP), SI 26 | MOVQ a3+24(FP), DX 27 | MOVQ $0, R10 28 | MOVQ $0, R8 29 | MOVQ $0, R9 30 | MOVQ trap+0(FP), AX // syscall entry 31 | SYSCALL 32 | MOVQ AX, r1+32(FP) 33 | MOVQ DX, r2+40(FP) 34 | CALL runtime·exitsyscall(SB) 35 | RET 36 | 37 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 38 | JMP syscall·RawSyscall(SB) 39 | 40 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 41 | JMP syscall·RawSyscall6(SB) 42 | 43 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 44 | MOVQ a1+8(FP), DI 45 | MOVQ a2+16(FP), SI 46 | MOVQ a3+24(FP), DX 47 | MOVQ $0, R10 48 | MOVQ $0, R8 49 | MOVQ $0, R9 50 | MOVQ trap+0(FP), AX // syscall entry 51 | SYSCALL 52 | MOVQ AX, r1+32(FP) 53 | MOVQ DX, r2+40(FP) 54 | RET 55 | 56 | TEXT ·gettimeofday(SB),NOSPLIT,$0-16 57 | JMP syscall·gettimeofday(SB) 58 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for arm, Linux 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 23 | BL runtime·entersyscall(SB) 24 | MOVW trap+0(FP), R7 25 | MOVW a1+4(FP), R0 26 | MOVW a2+8(FP), R1 27 | MOVW a3+12(FP), R2 28 | MOVW $0, R3 29 | MOVW $0, R4 30 | MOVW $0, R5 31 | SWI $0 32 | MOVW R0, r1+16(FP) 33 | MOVW $0, R0 34 | MOVW R0, r2+20(FP) 35 | BL runtime·exitsyscall(SB) 36 | RET 37 | 38 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 39 | B syscall·RawSyscall(SB) 40 | 41 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 42 | B syscall·RawSyscall6(SB) 43 | 44 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 45 | MOVW trap+0(FP), R7 // syscall entry 46 | MOVW a1+4(FP), R0 47 | MOVW a2+8(FP), R1 48 | MOVW a3+12(FP), R2 49 | SWI $0 50 | MOVW R0, r1+16(FP) 51 | MOVW $0, R0 52 | MOVW R0, r2+20(FP) 53 | RET 54 | 55 | TEXT ·seek(SB),NOSPLIT,$0-28 56 | B syscall·seek(SB) 57 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build arm64 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 21 | BL runtime·entersyscall(SB) 22 | MOVD a1+8(FP), R0 23 | MOVD a2+16(FP), R1 24 | MOVD a3+24(FP), R2 25 | MOVD $0, R3 26 | MOVD $0, R4 27 | MOVD $0, R5 28 | MOVD trap+0(FP), R8 // syscall entry 29 | SVC 30 | MOVD R0, r1+32(FP) // r1 31 | MOVD R1, r2+40(FP) // r2 32 | BL runtime·exitsyscall(SB) 33 | RET 34 | 35 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 36 | B syscall·RawSyscall(SB) 37 | 38 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 39 | B syscall·RawSyscall6(SB) 40 | 41 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 42 | MOVD a1+8(FP), R0 43 | MOVD a2+16(FP), R1 44 | MOVD a3+24(FP), R2 45 | MOVD $0, R3 46 | MOVD $0, R4 47 | MOVD $0, R5 48 | MOVD trap+0(FP), R8 // syscall entry 49 | SVC 50 | MOVD R0, r1+32(FP) 51 | MOVD R1, r2+40(FP) 52 | RET 53 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_mips64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips64 mips64le 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for mips64, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 25 | JAL runtime·entersyscall(SB) 26 | MOVV a1+8(FP), R4 27 | MOVV a2+16(FP), R5 28 | MOVV a3+24(FP), R6 29 | MOVV R0, R7 30 | MOVV R0, R8 31 | MOVV R0, R9 32 | MOVV trap+0(FP), R2 // syscall entry 33 | SYSCALL 34 | MOVV R2, r1+32(FP) 35 | MOVV R3, r2+40(FP) 36 | JAL runtime·exitsyscall(SB) 37 | RET 38 | 39 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 40 | JMP syscall·RawSyscall(SB) 41 | 42 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 43 | JMP syscall·RawSyscall6(SB) 44 | 45 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 46 | MOVV a1+8(FP), R4 47 | MOVV a2+16(FP), R5 48 | MOVV a3+24(FP), R6 49 | MOVV R0, R7 50 | MOVV R0, R8 51 | MOVV R0, R9 52 | MOVV trap+0(FP), R2 // syscall entry 53 | SYSCALL 54 | MOVV R2, r1+32(FP) 55 | MOVV R3, r2+40(FP) 56 | RET 57 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_mipsx.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips mipsle 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for mips, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-28 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 25 | JMP syscall·Syscall9(SB) 26 | 27 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 28 | JAL runtime·entersyscall(SB) 29 | MOVW a1+4(FP), R4 30 | MOVW a2+8(FP), R5 31 | MOVW a3+12(FP), R6 32 | MOVW R0, R7 33 | MOVW trap+0(FP), R2 // syscall entry 34 | SYSCALL 35 | MOVW R2, r1+16(FP) // r1 36 | MOVW R3, r2+20(FP) // r2 37 | JAL runtime·exitsyscall(SB) 38 | RET 39 | 40 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 41 | JMP syscall·RawSyscall(SB) 42 | 43 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 44 | JMP syscall·RawSyscall6(SB) 45 | 46 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 47 | MOVW a1+4(FP), R4 48 | MOVW a2+8(FP), R5 49 | MOVW a3+12(FP), R6 50 | MOVW trap+0(FP), R2 // syscall entry 51 | SYSCALL 52 | MOVW R2, r1+16(FP) 53 | MOVW R3, r2+20(FP) 54 | RET 55 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build ppc64 ppc64le 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for ppc64, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 19 | BL runtime·entersyscall(SB) 20 | MOVD a1+8(FP), R3 21 | MOVD a2+16(FP), R4 22 | MOVD a3+24(FP), R5 23 | MOVD R0, R6 24 | MOVD R0, R7 25 | MOVD R0, R8 26 | MOVD trap+0(FP), R9 // syscall entry 27 | SYSCALL R9 28 | MOVD R3, r1+32(FP) 29 | MOVD R4, r2+40(FP) 30 | BL runtime·exitsyscall(SB) 31 | RET 32 | 33 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 34 | MOVD a1+8(FP), R3 35 | MOVD a2+16(FP), R4 36 | MOVD a3+24(FP), R5 37 | MOVD R0, R6 38 | MOVD R0, R7 39 | MOVD R0, R8 40 | MOVD trap+0(FP), R9 // syscall entry 41 | SYSCALL R9 42 | MOVD R3, r1+32(FP) 43 | MOVD R4, r2+40(FP) 44 | RET 45 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_riscv64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build riscv64,gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for linux/riscv64. 11 | // 12 | // Where available, just jump to package syscall's implementation of 13 | // these functions. 14 | 15 | TEXT ·Syscall(SB),NOSPLIT,$0-56 16 | JMP syscall·Syscall(SB) 17 | 18 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 19 | JMP syscall·Syscall6(SB) 20 | 21 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 22 | CALL runtime·entersyscall(SB) 23 | MOV a1+8(FP), A0 24 | MOV a2+16(FP), A1 25 | MOV a3+24(FP), A2 26 | MOV trap+0(FP), A7 // syscall entry 27 | ECALL 28 | MOV A0, r1+32(FP) // r1 29 | MOV A1, r2+40(FP) // r2 30 | CALL runtime·exitsyscall(SB) 31 | RET 32 | 33 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 34 | JMP syscall·RawSyscall(SB) 35 | 36 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 37 | JMP syscall·RawSyscall6(SB) 38 | 39 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 40 | MOV a1+8(FP), A0 41 | MOV a2+16(FP), A1 42 | MOV a3+24(FP), A2 43 | MOV trap+0(FP), A7 // syscall entry 44 | ECALL 45 | MOV A0, r1+32(FP) 46 | MOV A1, r2+40(FP) 47 | RET 48 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_s390x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build s390x 6 | // +build linux 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for s390x, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 25 | BL runtime·entersyscall(SB) 26 | MOVD a1+8(FP), R2 27 | MOVD a2+16(FP), R3 28 | MOVD a3+24(FP), R4 29 | MOVD $0, R5 30 | MOVD $0, R6 31 | MOVD $0, R7 32 | MOVD trap+0(FP), R1 // syscall entry 33 | SYSCALL 34 | MOVD R2, r1+32(FP) 35 | MOVD R3, r2+40(FP) 36 | BL runtime·exitsyscall(SB) 37 | RET 38 | 39 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 40 | BR syscall·RawSyscall(SB) 41 | 42 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 43 | BR syscall·RawSyscall6(SB) 44 | 45 | TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 46 | MOVD a1+8(FP), R2 47 | MOVD a2+16(FP), R3 48 | MOVD a3+24(FP), R4 49 | MOVD $0, R5 50 | MOVD $0, R6 51 | MOVD $0, R7 52 | MOVD trap+0(FP), R1 // syscall entry 53 | SYSCALL 54 | MOVD R2, r1+32(FP) 55 | MOVD R3, r2+40(FP) 56 | RET 57 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM64, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for arm64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for mips64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix 6 | // +build ppc 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev >> 16) & 0xffff) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32(dev & 0xffff) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | return uint64(((major) << 16) | (minor)) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix 6 | // +build ppc64 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev & 0x3fffffff00000000) >> 32) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32((dev & 0x00000000ffffffff) >> 0) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | var DEVNO64 uint64 27 | DEVNO64 = 0x8000000000000000 28 | return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Darwin's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a Darwin device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev >> 24) & 0xff) 13 | } 14 | 15 | // Minor returns the minor component of a Darwin device number. 16 | func Minor(dev uint64) uint32 { 17 | return uint32(dev & 0xffffff) 18 | } 19 | 20 | // Mkdev returns a Darwin device number generated from the given major and minor 21 | // components. 22 | func Mkdev(major, minor uint32) uint64 { 23 | return (uint64(major) << 24) | uint64(minor) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Dragonfly's sys/types.h header. 7 | // 8 | // The information below is extracted and adapted from sys/types.h: 9 | // 10 | // Minor gives a cookie instead of an index since in order to avoid changing the 11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for 12 | // devices that don't use them. 13 | 14 | package unix 15 | 16 | // Major returns the major component of a DragonFlyBSD device number. 17 | func Major(dev uint64) uint32 { 18 | return uint32((dev >> 8) & 0xff) 19 | } 20 | 21 | // Minor returns the minor component of a DragonFlyBSD device number. 22 | func Minor(dev uint64) uint32 { 23 | return uint32(dev & 0xffff00ff) 24 | } 25 | 26 | // Mkdev returns a DragonFlyBSD device number generated from the given major and 27 | // minor components. 28 | func Mkdev(major, minor uint32) uint64 { 29 | return (uint64(major) << 8) | uint64(minor) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_freebsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in FreeBSD's sys/types.h header. 7 | // 8 | // The information below is extracted and adapted from sys/types.h: 9 | // 10 | // Minor gives a cookie instead of an index since in order to avoid changing the 11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for 12 | // devices that don't use them. 13 | 14 | package unix 15 | 16 | // Major returns the major component of a FreeBSD device number. 17 | func Major(dev uint64) uint32 { 18 | return uint32((dev >> 8) & 0xff) 19 | } 20 | 21 | // Minor returns the minor component of a FreeBSD device number. 22 | func Minor(dev uint64) uint32 { 23 | return uint32(dev & 0xffff00ff) 24 | } 25 | 26 | // Mkdev returns a FreeBSD device number generated from the given major and 27 | // minor components. 28 | func Mkdev(major, minor uint32) uint64 { 29 | return (uint64(major) << 8) | uint64(minor) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_netbsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in NetBSD's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a NetBSD device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev & 0x000fff00) >> 8) 13 | } 14 | 15 | // Minor returns the minor component of a NetBSD device number. 16 | func Minor(dev uint64) uint32 { 17 | minor := uint32((dev & 0x000000ff) >> 0) 18 | minor |= uint32((dev & 0xfff00000) >> 12) 19 | return minor 20 | } 21 | 22 | // Mkdev returns a NetBSD device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | dev := (uint64(major) << 8) & 0x000fff00 26 | dev |= (uint64(minor) << 12) & 0xfff00000 27 | dev |= (uint64(minor) << 0) & 0x000000ff 28 | return dev 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_openbsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in OpenBSD's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of an OpenBSD device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev & 0x0000ff00) >> 8) 13 | } 14 | 15 | // Minor returns the minor component of an OpenBSD device number. 16 | func Minor(dev uint64) uint32 { 17 | minor := uint32((dev & 0x000000ff) >> 0) 18 | minor |= uint32((dev & 0xffff0000) >> 8) 19 | return minor 20 | } 21 | 22 | // Mkdev returns an OpenBSD device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | dev := (uint64(major) << 8) & 0x0000ff00 26 | dev |= (uint64(minor) << 8) & 0xffff0000 27 | dev |= (uint64(minor) << 0) & 0x000000ff 28 | return dev 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux 12 | // systems by fcntl_linux_32bit.go to be SYS_FCNTL64. 13 | var fcntl64Syscall uintptr = SYS_FCNTL 14 | 15 | func fcntl(fd int, cmd, arg int) (int, error) { 16 | valptr, _, errno := Syscall(fcntl64Syscall, uintptr(fd), uintptr(cmd), uintptr(arg)) 17 | var err error 18 | if errno != 0 { 19 | err = errno 20 | } 21 | return int(valptr), err 22 | } 23 | 24 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 25 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 26 | return fcntl(int(fd), cmd, arg) 27 | } 28 | 29 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 30 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 31 | _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) 32 | if errno == 0 { 33 | return nil 34 | } 35 | return errno 36 | } 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | 20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. 21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { 22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,386 linux,arm linux,mips linux,mipsle 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fdset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | // Set adds fd to the set fds. 10 | func (fds *FdSet) Set(fd int) { 11 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) 12 | } 13 | 14 | // Clear removes fd from the set fds. 15 | func (fds *FdSet) Clear(fd int) { 16 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) 17 | } 18 | 19 | // IsSet returns whether fd is in the set fds. 20 | func (fds *FdSet) IsSet(fd int) bool { 21 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 22 | } 23 | 24 | // Zero clears the set fds. 25 | func (fds *FdSet) Zero() { 26 | for i := range fds.Bits { 27 | fds.Bits[i] = 0 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // ReadDirent reads directory entries from fd and writes them into buf. 12 | func ReadDirent(fd int, buf []byte) (n int, err error) { 13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 15 | // actual system call is getdirentries64, 64 is a good guess. 16 | // TODO(rsc): Can we use a single global basep for all calls? 17 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 18 | return Getdirentries(fd, buf, base) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Socket control messages 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // UnixCredentials encodes credentials into a socket control message 12 | // for sending to another process. This can be used for 13 | // authentication. 14 | func UnixCredentials(ucred *Ucred) []byte { 15 | b := make([]byte, CmsgSpace(SizeofUcred)) 16 | h := (*Cmsghdr)(unsafe.Pointer(&b[0])) 17 | h.Level = SOL_SOCKET 18 | h.Type = SCM_CREDENTIALS 19 | h.SetLen(CmsgLen(SizeofUcred)) 20 | *(*Ucred)(h.data(0)) = *ucred 21 | return b 22 | } 23 | 24 | // ParseUnixCredentials decodes a socket control message that contains 25 | // credentials in a Ucred structure. To receive such a message, the 26 | // SO_PASSCRED option must be enabled on the socket. 27 | func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) { 28 | if m.Header.Level != SOL_SOCKET { 29 | return nil, EINVAL 30 | } 31 | if m.Header.Type != SCM_CREDENTIALS { 32 | return nil, EINVAL 33 | } 34 | ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0])) 35 | return &ucred, nil 36 | } 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | ) 12 | 13 | // Round the length of a raw sockaddr up to align it properly. 14 | func cmsgAlignOf(salen int) int { 15 | salign := SizeofPtr 16 | 17 | // dragonfly needs to check ABI version at runtime, see cmsgAlignOf in 18 | // sockcmsg_dragonfly.go 19 | switch runtime.GOOS { 20 | case "aix": 21 | // There is no alignment on AIX. 22 | salign = 1 23 | case "darwin", "ios", "illumos", "solaris": 24 | // NOTE: It seems like 64-bit Darwin, Illumos and Solaris 25 | // kernels still require 32-bit aligned access to network 26 | // subsystem. 27 | if SizeofPtr == 8 { 28 | salign = 4 29 | } 30 | case "netbsd", "openbsd": 31 | // NetBSD and OpenBSD armv7 require 64-bit alignment. 32 | if runtime.GOARCH == "arm" { 33 | salign = 8 34 | } 35 | // NetBSD aarch64 requires 128-bit alignment. 36 | if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" { 37 | salign = 16 38 | } 39 | } 40 | 41 | return (salen + salign - 1) & ^(salign - 1) 42 | } 43 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,go1.12,!go1.13 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const _SYS_GETDIRENTRIES64 = 344 14 | 15 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 16 | // To implement this using libSystem we'd need syscall_syscallPtr for 17 | // fdopendir. However, syscallPtr was only added in Go 1.13, so we fall 18 | // back to raw syscalls for this func on Go 1.12. 19 | var p unsafe.Pointer 20 | if len(buf) > 0 { 21 | p = unsafe.Pointer(&buf[0]) 22 | } else { 23 | p = unsafe.Pointer(&_zero) 24 | } 25 | r0, _, e1 := Syscall6(_SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) 26 | n = int(r0) 27 | if e1 != 0 { 28 | return n, errnoErr(e1) 29 | } 30 | return n, nil 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gc,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,gc,linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gccgo,386 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | 22 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) { 23 | fd, _, err := Syscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0) 24 | return int(fd), err 25 | } 26 | 27 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) { 28 | fd, _, err := RawSyscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0) 29 | return int(fd), err 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gccgo,arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build 386,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm64,netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build 386,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = uint32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | 39 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions 40 | // of openbsd/386 the syscall is called sysctl instead of __sysctl. 41 | const SYS___SYSCTL = SYS_SYSCTL 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = uint32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | 39 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions 40 | // of openbsd/amd64 the syscall is called sysctl instead of __sysctl. 41 | const SYS___SYSCTL = SYS_SYSCTL 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = uint32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | 39 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions 40 | // of openbsd/arm the syscall is called sysctl instead of __sysctl. 41 | const SYS___SYSCTL = SYS_SYSCTL 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm64,openbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = int16(mode) 20 | k.Flags = uint16(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = uint32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | 39 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions 40 | // of openbsd/amd64 the syscall is called sysctl instead of __sysctl. 41 | const SYS___SYSCTL = SYS_SYSCTL 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | func setTimespec(sec, nsec int64) Timespec { 8 | return Timespec{Sec: sec, Nsec: nsec} 9 | } 10 | 11 | func setTimeval(sec, usec int64) Timeval { 12 | return Timeval{Sec: sec, Usec: usec} 13 | } 14 | 15 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 16 | k.Ident = uint64(fd) 17 | k.Filter = int16(mode) 18 | k.Flags = uint16(flags) 19 | } 20 | 21 | func (iov *Iovec) SetLen(length int) { 22 | iov.Len = uint64(length) 23 | } 24 | 25 | func (msghdr *Msghdr) SetControllen(length int) { 26 | msghdr.Controllen = uint32(length) 27 | } 28 | 29 | func (cmsg *Cmsghdr) SetLen(length int) { 30 | cmsg.Len = uint32(length) 31 | } 32 | 33 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions 34 | // of OpenBSD the syscall is called sysctl instead of __sysctl. 35 | const SYS___SYSCTL = SYS_SYSCTL 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build gc,!ppc64le,!ppc64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build ppc64le ppc64 7 | // +build gc 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 14 | return syscall.Syscall(trap, a1, a2, a3) 15 | } 16 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 17 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) 18 | } 19 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 20 | return syscall.RawSyscall(trap, a1, a2, a3) 21 | } 22 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 23 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/unveil_openbsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import ( 8 | "syscall" 9 | "unsafe" 10 | ) 11 | 12 | // Unveil implements the unveil syscall. 13 | // For more information see unveil(2). 14 | // Note that the special case of blocking further 15 | // unveil calls is handled by UnveilBlock. 16 | func Unveil(path string, flags string) error { 17 | pathPtr, err := syscall.BytePtrFromString(path) 18 | if err != nil { 19 | return err 20 | } 21 | flagsPtr, err := syscall.BytePtrFromString(flags) 22 | if err != nil { 23 | return err 24 | } 25 | _, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(unsafe.Pointer(pathPtr)), uintptr(unsafe.Pointer(flagsPtr)), 0) 26 | if e != 0 { 27 | return e 28 | } 29 | return nil 30 | } 31 | 32 | // UnveilBlock blocks future unveil calls. 33 | // For more information see unveil(2). 34 | func UnveilBlock() error { 35 | // Both pointers must be nil. 36 | var pathUnsafe, flagsUnsafe unsafe.Pointer 37 | _, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(pathUnsafe), uintptr(flagsUnsafe), 0) 38 | if e != 0 { 39 | return e 40 | } 41 | return nil 42 | } 43 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT. 2 | 3 | // +build linux 4 | // +build arm arm64 5 | 6 | package unix 7 | 8 | import "unsafe" 9 | 10 | // PtraceRegsArm is the registers used by arm binaries. 11 | type PtraceRegsArm struct { 12 | Uregs [18]uint32 13 | } 14 | 15 | // PtraceGetRegsArm fetches the registers used by arm binaries. 16 | func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error { 17 | return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 18 | } 19 | 20 | // PtraceSetRegsArm sets the registers used by arm binaries. 21 | func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error { 22 | return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 23 | } 24 | 25 | // PtraceRegsArm64 is the registers used by arm64 binaries. 26 | type PtraceRegsArm64 struct { 27 | Regs [31]uint64 28 | Sp uint64 29 | Pc uint64 30 | Pstate uint64 31 | } 32 | 33 | // PtraceGetRegsArm64 fetches the registers used by arm64 binaries. 34 | func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error { 35 | return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 36 | } 37 | 38 | // PtraceSetRegsArm64 sets the registers used by arm64 binaries. 39 | func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error { 40 | return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 41 | } 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go: -------------------------------------------------------------------------------- 1 | // go run mksyscall.go -l32 -tags darwin,386,go1.13 syscall_darwin.1_13.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | // +build darwin,386,go1.13 5 | 6 | package unix 7 | 8 | import ( 9 | "syscall" 10 | "unsafe" 11 | ) 12 | 13 | var _ syscall.Errno 14 | 15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 16 | 17 | func closedir(dir uintptr) (err error) { 18 | _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) 19 | if e1 != 0 { 20 | err = errnoErr(e1) 21 | } 22 | return 23 | } 24 | 25 | func libc_closedir_trampoline() 26 | 27 | //go:linkname libc_closedir libc_closedir 28 | //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" 29 | 30 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 31 | 32 | func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { 33 | r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) 34 | res = Errno(r0) 35 | return 36 | } 37 | 38 | func libc_readdir_r_trampoline() 39 | 40 | //go:linkname libc_readdir_r libc_readdir_r 41 | //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go 386 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go: -------------------------------------------------------------------------------- 1 | // go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | // +build darwin,amd64,go1.13 5 | 6 | package unix 7 | 8 | import ( 9 | "syscall" 10 | "unsafe" 11 | ) 12 | 13 | var _ syscall.Errno 14 | 15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 16 | 17 | func closedir(dir uintptr) (err error) { 18 | _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) 19 | if e1 != 0 { 20 | err = errnoErr(e1) 21 | } 22 | return 23 | } 24 | 25 | func libc_closedir_trampoline() 26 | 27 | //go:linkname libc_closedir libc_closedir 28 | //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" 29 | 30 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 31 | 32 | func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { 33 | r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) 34 | res = Errno(r0) 35 | return 36 | } 37 | 38 | func libc_readdir_r_trampoline() 39 | 40 | //go:linkname libc_readdir_r libc_readdir_r 41 | //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go: -------------------------------------------------------------------------------- 1 | // go run mksyscall.go -l32 -tags darwin,arm,go1.13 syscall_darwin.1_13.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | // +build darwin,arm,go1.13 5 | 6 | package unix 7 | 8 | import ( 9 | "syscall" 10 | "unsafe" 11 | ) 12 | 13 | var _ syscall.Errno 14 | 15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 16 | 17 | func closedir(dir uintptr) (err error) { 18 | _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) 19 | if e1 != 0 { 20 | err = errnoErr(e1) 21 | } 22 | return 23 | } 24 | 25 | func libc_closedir_trampoline() 26 | 27 | //go:linkname libc_closedir libc_closedir 28 | //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" 29 | 30 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 31 | 32 | func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { 33 | r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) 34 | res = Errno(r0) 35 | return 36 | } 37 | 38 | func libc_readdir_r_trampoline() 39 | 40 | //go:linkname libc_readdir_r libc_readdir_r 41 | //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go: -------------------------------------------------------------------------------- 1 | // go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | // +build darwin,arm64,go1.13 5 | 6 | package unix 7 | 8 | import ( 9 | "syscall" 10 | "unsafe" 11 | ) 12 | 13 | var _ syscall.Errno 14 | 15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 16 | 17 | func closedir(dir uintptr) (err error) { 18 | _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0) 19 | if e1 != 0 { 20 | err = errnoErr(e1) 21 | } 22 | return 23 | } 24 | 25 | func libc_closedir_trampoline() 26 | 27 | //go:linkname libc_closedir libc_closedir 28 | //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" 29 | 30 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 31 | 32 | func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { 33 | r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) 34 | res = Errno(r0) 35 | return 36 | } 37 | 38 | func libc_readdir_r_trampoline() 39 | 40 | //go:linkname libc_readdir_r libc_readdir_r 41 | //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.12 6 | 7 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 8 | // and earlier (see https://golang.org/issue/23311). 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/eventlog.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | const ( 10 | EVENTLOG_SUCCESS = 0 11 | EVENTLOG_ERROR_TYPE = 1 12 | EVENTLOG_WARNING_TYPE = 2 13 | EVENTLOG_INFORMATION_TYPE = 4 14 | EVENTLOG_AUDIT_SUCCESS = 8 15 | EVENTLOG_AUDIT_FAILURE = 16 16 | ) 17 | 18 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 19 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 20 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/memory_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | const ( 8 | MEM_COMMIT = 0x00001000 9 | MEM_RESERVE = 0x00002000 10 | MEM_DECOMMIT = 0x00004000 11 | MEM_RELEASE = 0x00008000 12 | MEM_RESET = 0x00080000 13 | MEM_TOP_DOWN = 0x00100000 14 | MEM_WRITE_WATCH = 0x00200000 15 | MEM_PHYSICAL = 0x00400000 16 | MEM_RESET_UNDO = 0x01000000 17 | MEM_LARGE_PAGES = 0x20000000 18 | 19 | PAGE_NOACCESS = 0x00000001 20 | PAGE_READONLY = 0x00000002 21 | PAGE_READWRITE = 0x00000004 22 | PAGE_WRITECOPY = 0x00000008 23 | PAGE_EXECUTE = 0x00000010 24 | PAGE_EXECUTE_READ = 0x00000020 25 | PAGE_EXECUTE_READWRITE = 0x00000040 26 | PAGE_EXECUTE_WRITECOPY = 0x00000080 27 | PAGE_GUARD = 0x00000100 28 | PAGE_NOCACHE = 0x00000200 29 | PAGE_WRITECOMBINE = 0x00000400 30 | PAGE_TARGETS_INVALID = 0x40000000 31 | PAGE_TARGETS_NO_UPDATE = 0x40000000 32 | 33 | QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002 34 | QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001 35 | QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008 36 | QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004 37 | ) 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | _ uint32 // pad to 8 byte boundary 35 | } 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | _ uint32 // pad to 8 byte boundary 35 | } 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Go 2 | 3 | Go is an open source project. 4 | 5 | It is the work of hundreds of contributors. We appreciate your help! 6 | 7 | ## Filing issues 8 | 9 | When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions: 10 | 11 | 1. What version of Go are you using (`go version`)? 12 | 2. What operating system and processor architecture are you using? 13 | 3. What did you do? 14 | 4. What did you expect to see? 15 | 5. What did you see instead? 16 | 17 | General questions should go to the [golang-nuts mailing list](https://groups.google.com/group/golang-nuts) instead of the issue tracker. 18 | The gophers there will answer or ask you to file an issue if you've tripped over a bug. 19 | 20 | ## Contributing code 21 | 22 | Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html) 23 | before sending patches. 24 | 25 | Unless otherwise noted, the Go source files are distributed under 26 | the BSD-style license found in the LICENSE file. 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/README.md: -------------------------------------------------------------------------------- 1 | # Go terminal/console support 2 | 3 | This repository provides Go terminal and console support packages. 4 | 5 | ## Download/Install 6 | 7 | The easiest way to install is to run `go get -u golang.org/x/term`. You can 8 | also manually git clone the repository to `$GOPATH/src/golang.org/x/term`. 9 | 10 | ## Report Issues / Send Patches 11 | 12 | This repository uses Gerrit for code changes. To learn how to submit changes to 13 | this repository, see https://golang.org/doc/contribute.html. 14 | 15 | The main issue tracker for the term repository is located at 16 | https://github.com/golang/go/issues. Prefix your issue with "x/term:" in the 17 | subject line, so it is easy to find. 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import ( 8 | "fmt" 9 | "runtime" 10 | 11 | "golang.org/x/sys/plan9" 12 | ) 13 | 14 | type state struct{} 15 | 16 | func isTerminal(fd int) bool { 17 | path, err := plan9.Fd2path(fd) 18 | if err != nil { 19 | return false 20 | } 21 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 22 | } 23 | 24 | func makeRaw(fd int) (*State, error) { 25 | return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 26 | } 27 | 28 | func getState(fd int) (*State, error) { 29 | return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 30 | } 31 | 32 | func restore(fd int, state *State) error { 33 | return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 34 | } 35 | 36 | func getSize(fd int) (width, height int, err error) { 37 | return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 38 | } 39 | 40 | func readPassword(fd int) ([]byte, error) { 41 | return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 42 | } 43 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9 6 | 7 | package term 8 | 9 | import ( 10 | "fmt" 11 | "runtime" 12 | ) 13 | 14 | type state struct{} 15 | 16 | func isTerminal(fd int) bool { 17 | return false 18 | } 19 | 20 | func makeRaw(fd int) (*State, error) { 21 | return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 22 | } 23 | 24 | func getState(fd int) (*State, error) { 25 | return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 26 | } 27 | 28 | func restore(fd int, state *State) error { 29 | return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 30 | } 31 | 32 | func getSize(fd int) (width, height int, err error) { 33 | return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 34 | } 35 | 36 | func readPassword(fd int) ([]byte, error) { 37 | return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/modules.txt: -------------------------------------------------------------------------------- 1 | # github.com/Microsoft/go-winio v0.4.16-0.20201123211815-f314918fc79c 2 | ## explicit; go 1.12 3 | github.com/Microsoft/go-winio 4 | github.com/Microsoft/go-winio/pkg/guid 5 | # github.com/Sirupsen/logrus v1.0.2-0.20170728074214-181d419aa9e2 6 | ## explicit 7 | github.com/Sirupsen/logrus 8 | # github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf 9 | ## explicit 10 | github.com/coreos/go-systemd/activation 11 | # github.com/docker/go-connections v0.4.1-0.20200911173324-09f47925228a 12 | ## explicit; go 1.13 13 | github.com/docker/go-connections/sockets 14 | # github.com/docker/go-plugins-helpers v0.0.0-20211224144127-6eecb7beb651 15 | ## explicit 16 | github.com/docker/go-plugins-helpers/sdk 17 | github.com/docker/go-plugins-helpers/volume 18 | # golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392 19 | ## explicit; go 1.11 20 | golang.org/x/crypto/ssh/terminal 21 | # golang.org/x/sys v0.0.0-20201126233918-771906719818 22 | ## explicit; go 1.12 23 | golang.org/x/sys/internal/unsafeheader 24 | golang.org/x/sys/plan9 25 | golang.org/x/sys/unix 26 | golang.org/x/sys/windows 27 | # golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 28 | ## explicit; go 1.11 29 | golang.org/x/term 30 | -------------------------------------------------------------------------------- /version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // Version numbers set during build. 4 | var ( 5 | Version = "" 6 | ) 7 | --------------------------------------------------------------------------------