_open_osfhandle函数

标签: , , ,

_open_osfhandle函数的作用跟_get_osfhandle函数相反,_open_osfhandle从文件句柄(file handle)获取文件描述符(file descriptor)。

int _open_osfhandle (
    intptr_t osfhandle,
    int flags 
);

参数

osfhandle 文件句柄

flags 允许的操作,可以是_O_APPEND、_O_RDONLY、_O_TEXT的组合。

赞赏

微信赞赏支付宝赞赏

随机文章:

  1. NDS上的GB模拟器Lameboy
  2. 用VBS实现PHP的crc32函数
  3. 用JavaScript实现PHP的basename函数
  4. C/C++ void main()
  5. OpenWrt配置he.net的6in4隧道访问IPv6

留下回复