lang:crossplatform
差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| lang:crossplatform [2025/09/06 08:23] – 作成 editor | lang:crossplatform [2025/09/07 23:57] (現在) – [mmap] editor | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| プログラムを作成しているときに、Linux や Mac と windows で共通で | プログラムを作成しているときに、Linux や Mac と windows で共通で | ||
| 使用できない関数が存在し、困ることが多々ある。 | 使用できない関数が存在し、困ることが多々ある。 | ||
| - | 自分が使用している範囲内ではあるが、それらの関数の対応をまとめた。 | + | 自分が使用している範囲内ではあるが、それらの関数をまとめた。 |
| + | ---- | ||
| ===== null device ===== | ===== null device ===== | ||
| Linux では "/ | Linux では "/ | ||
| + | 対策は以下の通り。 | ||
| ==== python ==== | ==== python ==== | ||
| - | | + | /dev/null, nul ではなく、os.devnull |
| + | ---- | ||
| + | |||
| + | ===== libuuid ===== | ||
| + | windows で存在しない。C/ | ||
| + | ----- | ||
| + | |||
| + | ===== mmap ===== | ||
| + | windows では別関数になっている。 | ||
| + | |||
| + | ---- | ||
| + | ===== strdup ===== | ||
| + | windows の一部のコンパイラでは存在しない。 | ||
| + | そのため、pybind11 が動かない。 | ||
lang/crossplatform.1757146996.txt.gz · 最終更新: by editor
