Advertisement

关于C语言操作进程

阅读量:

关于C语言进程操作

Linux标准库 <unistd.h>

符号常量

复制代码
    NULL		// Null pointer
    SEEK_CUR	// Set file offset to current plus offset.
    SEEK_END	// Set file offset to EOF plus offset.
    SEEK_SET	// Set file offset to offset.
    
    
      
      
      
      
    

unistd.h是POSIX标准中用于定义类UNIX系统符号常量的头文件,其中涵盖了大量UNIX系统服务的函数原型,如read函数、write函数以及getpid函数等。

在UNIX系统中,unistd.h的功能与Windows系统中的windows.h头文件具有相似性。

复制代码
    #ifdef WIN32
    #include <windows.h>
    #else
    #include <unistd.h>
    #endif
    
    
      
      
      
      
      
    

函数原型

复制代码
    ssize_t     

全部评论 (0)

还没有任何评论哟~