GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - XeCycle/mini-tools: Minimal executables for Linux

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.ninja
build.ninja
 
 
connect-tcp4.c
connect-tcp4.c
 
 
exchange-file.c
exchange-file.c
 
 
minirt.c
minirt.c
 
 
minisys.c
minisys.c
 
 
minisys.h
minisys.h
 
 
pause.c
pause.c
 
 
sockdefs.h
sockdefs.h
 
 

Repository files navigation

Some experiments to create minimal executables for Linux without any libc, nor assembly files. Yes there must be some inline assembly to interact with Linux syscalls, but all program logics are in a high level language; C for now, Rust under consideration.

Such tools may be of interest when

  • used in containers for minimal overhead, or
  • some native code are needed by sysop shell scripts to perform a few syscalls in a specific setting not exposed by standard tools; if the programs are tiny they can be "gzip | base64" encoded and embedded directly in the shell script.

As an example pause.c implements a command similar to the one used by docker://k8s.gcr.io/pause; on my machine this compiles to an executable of size 297 BYTES.

I have not yet decided which license I'd like to release these under, consider these code as "license unclear" for now. For sure I would choose a permissive license if anyone shows interest in them.

About

Minimal executables for Linux

Resources

Readme
Activity

Stars

15 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.