Git Product home page Git Product logo

cloudabi-utils's Introduction

Nuxi CloudABI utilities

This package contains a number of libraries and utilities that can be used to easily start CloudABI programs.

The libcloudabi library provides a native port of the program_exec() function. This is the function that can normally be used by CloudABI programs to start new executables, similar to the POSIX fexecve() function.

Whereas fexecve() uses simple string command line arguments, program_exec() uses a YAML-like tree structure, called argdata. What is special about argdata, is that file descriptors are a native primitive data type; they can be attached as leaves to the tree directly. This makes the way of inheriting file descriptors during process execution a lot more structured. It replaces concepts like close-on-exec flags entirely.

To ensure that this implementation of program_exec() conforms to CloudABI's safety requirements (i.e., that it is safe to run untrusted programs, and that file descriptors that are not referenced by the argdata structure are not leaked into new processes), program_exec() depends on a small proxy executable called cloudabi-reexec. This package ships with prebuilt copies that were built by the CloudABI Ports Collection.

Finally, this package provides the cloudabi-run utility, which is built on top of libcloudabi. This utility reads a YAML file from stdin, converts it to an argdata, and uses that to start a CloudABI executable. It provides some special tags to automatically open files and network connections. cloudabi-run also includes an emulator that can be used to run CloudABI executables on operating systems for which no native support is provided. Please refer to cloudabi-run's manual page for more details and examples.

More details about CloudABI can be found on Nuxi's company webpage.

cloudabi-utils's People

Contributors

edschouten avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.