且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

26、linux 几个C函数,nanosleep,lstat,unlink

更新时间:2022-01-18 11:45:38

1、C语言的nanosleep1

pause execution for a specified time

int nanosleep(const struct timespec *req, struct timespec *rem);

2、lstat - get file status

int fstat(int filedes, struct stat *buf);

3、unlink2

delete a name and possibly the file it refers to

int unlink(const char *pathname);

参考

1http://linux.die.net/man/2/nanosleep

2http://linux.die.net/man/2/unlink