M**********n 发帖数: 432 | 3 #include
#include
#include
#include
#include
#include
#include
#include
int main()
{
int fd;
if((fd = shm_open("/dev/shm/ttt", (O_RDWR|O_CREAT), (S_IRUSR | S_IWUSR
| S_IRGRP | S_IWGRP |
S_IROTH | S_IWOTH ))) <
0)
{
fprintf(stderr, "failed to open file %sn", strerror(errno));
... 阅读全帖 |
|