
리눅스 시스템 호출에 대한 프로세스 독립적 인터페이스
rsyscall의 개념과 동기에 대한 자세한 내용은 [[file:docs/conceptual.org][개념 소개]]를 읽어보세요.
rsyscall Python API는 최신 Python 3 기능(async/await 및 타입 어노테이션)을 사용합니다. 해당 기능을 처음 접한다면 먼저 [[file:docs/background.org][배경 튜토리얼]]을 훑어보세요.
하지만 시도해보고 싶다면 Nix를 사용할 수 있습니다: #+begin_src bash git clone https://github.com/catern/rsyscall cd rsyscall/python nix-shell python #+end_src
또는 가상 환경에서 직접 빌드할 수 있습니다: #+begin_src bash git clone https://github.com/catern/rsyscall cd rsyscall python3 -m venv venv . venv/bin/activate pip install -U pip
cd c autoreconf -fvi ./configure --prefix=$PWD/../venv make install cd .. export LD_LIBRARY_PATH=$PWD/venv/lib export PKG_CONFIG_PATH=$PWD/venv/lib/pkgconfig
pip install -e python/ python #+end_src
In [2]: import rsyscall
In [3]: t = await rsyscall.local_process.fork()
In [4]: await t.stdout.write(await t.ptr("Hello world!\n")) Hello world! #+end_example