4 ms·
>I mmaped a `/dev/uio` from Python this morning. You might want to go and have a look at the implementation of 'mmap' in CPython. Here's a clue: it's in the n
by memefrog 3y ago
>I mmaped a `/dev/uio` from Python this morning.
You might want to go and have a look at the implementation of 'mmap' in CPython. Here's a clue: it's in the name 'CPython'.
- kaba0 3y agoAs it is for an OS written in C, sure it does have some helper C wrappers. It is still “syscall”s at the end of the day, and many programming languages can output assembly just fine.
- packetlost 3y agoThere's nothing special about C that makes it possible to use mmap. Just because CPython happens to be implemented in C doesn't mean anything in this context. I could do the same thing in Go or Hare, neither of which have any C in them and be able to do the same thing.