You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ptrcnull 1b32f5da9f feat: Initial commit 4 months ago
.gitignore feat: Initial commit 4 months ago
LICENSE feat: Initial commit 4 months ago
Makefile feat: Initial commit 4 months ago
README.md feat: Initial commit 4 months ago
fdcreate.1 feat: Initial commit 4 months ago
fdcreate.c feat: Initial commit 4 months ago

README.md

fdcreate

create an anonymous file, then execute a program

usage

fdcreate name prog...

description

fdcreate creates an anonymous file (memfd) with memfd_create(3) and exports the resulting file descriptor as name, then exec(3)s into prog with its arguments.

examples

fdcreate tmate
importas -ui tmate_fd tmate
foreground {
  pipeline {
    curl -L https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
  }
  fdmove -c 1 $tmate_fd  
  tar xOJf - tmate-2.4.0-static-linux-amd64/tmate
}
/proc/self/fd/$tmate_fd