Giter Club home page Giter Club logo

fff's Introduction

fff - fork() for fun

my shitty toy implementation of POSIX-like fork() emulation on native Windows for fun and learning

mostly taken from cygwin code

Why

to explore the possibilities...? idk

Build

tested under MSYS2 MINGW64 environemnt, require mingw-w64-x86_64-gcc and make

$ make
$ ./test.exe
before fork
in parent
in child
$

Supported architectures

  • x86
  • x86_64
  • arm32
  • arm64

TODOs / Known Issues / Limitations

  • this is Non-Copy-On-Write (inspired by Cygwin and PW32), if you are looking for a CoW implementation maybe check midipix

  • currently doesn't support working with a real CRT (like msvcrt and ucrt), because they are not fork-aware

  • no support for dynamic linking, TLS and stuffs yet

  • currently support for heap and mmaped memory are not implemented

  • might have unknown impact on win32 objects

  • currently only implemented for console subsystem

  • currently only known to work within simple programs like this demo

  • LLD is not supported due to it lack of linker script support on PE/COFF

Debugging

no log print for win32 api failures or so yet, but you can debug with API monitor and or by attaching GDB or x64dbg

License

LGPLv3+

Acknowledgement

See also

fff's People

Contributors

ookiineko avatar

Stargazers

Radek Bartoň avatar

Watchers

Radek Bartoň 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.