mode 可以使 R_OK,W_OK,X_OK(是否可执行),F_OK(文件是否存在)的掩码。 成功返回0,失败返回-1 转载于:https://www.cnblogs.com/lc-cnblong/archive/2013/03/11/2954338.html