linux - 如何在 Linux 上的 Common Lisp 中对文件进行内存映射?
问题描述
如何通过cffi
自定义库在 Common Lisp 中实现内存映射?
void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
在C语言中有。
解决方案
已经有How do I memory map tmpfs files in sbcl? ,但现在有一个可移植的库:只是(ql:quickload "mmap")
.
存储库在这里。
推荐阅读
- c# - 如何为加密 webapi 响应创建自定义中间件?
- .net - .net core IOC 容器是新的植入物吗?
- c# - 实体框架为数据库中的 varbinary 类型返回不同的值
- chart.js - 在加载数据和图表之前覆盖加载指示器
- python - if else 块上的 SQLAlchemy 混合属性
- c# - 开头的表达式调用给出了 AmbiguousMatch 异常
- real-time - 当实时系统违反其硬时间目标时会发生什么?
- c# - 无法将这种格式“1/29/2020 12:00:00 AM”的字符串解析为有效的 DateTime
- dns - 子域的附加 MX 记录
- java - First Auth Mifare Plus 卡