Git Product home page Git Product logo

palaver's Introduction

palaver

Crates.io MIT / Apache 2.0 licensed Build Status

Docs

Cross-platform polyfills.

This library attempts to provide reliable polyfills for functionality that isn't implemented on all platforms.

palaver = "Platform Abstraction Layer" + pa·lav·er n. prolonged and tedious fuss.

Functionality

ThreadingDescriptionLinuxmacOSWindowsFreeBSDNetBSDiOSAndroid
gettid()Get thread ID
count()Number of threads in current process
FilesDescriptionLinuxmacOSWindowsFreeBSDNetBSDiOSAndroid
seal_fd()Make a file descriptor read-only
dup_fd()Duplicate a file descriptor
copy_fd()Copy a file descriptor to a specific offset
move_fd()Move a file descriptor to a specific offset
move_fds()Move file descriptors to specific offsets
fd_dir()Get a path to the file descriptor directory
fd_path()Get a path to a file descriptor
FdIterIterate all open file descriptors
memfd_create()Create an anonymous file
fexecve()Execute program specified via file descriptor
copy()Copy by looping io::copy
copy_sendfile()Copy using sendfile
copy_splice()Copy using splice
pipe()Create a pipe
SocketDescriptionLinuxmacOSWindowsFreeBSDNetBSDiOSAndroid
socket()Create a socket
accept()Accept a connection on a socket
is_connected()Get whether a pending connection is connected
unreceived()Get number of bytes readable
unsent()Get number of bytes that have yet to be acknowledged
EnvDescriptionLinuxmacOSWindowsFreeBSDNetBSDiOSAndroid
exe()Opens the current running executable
exe_path()Get a path to the current running executable
args()Get command line arguments
vars()Get environment variables
ProcessDescriptionLinuxmacOSWindowsFreeBSDNetBSDiOSAndroid
count()Count the processes visible to the current process
count_threads()Count the threads visible to the current process
fork()Fork a process, using process descriptors where available
ValgrindDescriptionLinuxmacOSWindowsFreeBSDNetBSDiOSAndroid
is()Check if running under Valgrind
start_fd()Get Valgrind's file descriptor range

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

palaver's People

Contributors

alecmocatta avatar mergify[bot] avatar dependabot-preview[bot] avatar valpackett avatar dalance avatar dependabot-support avatar

Watchers

James Cloos 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.