Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1482251
  • 博文数量: 108
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 997
  • 用 户 组: 普通用户
  • 注册时间: 2013-06-29 09:58
个人简介

兴趣是坚持一件事永不衰竭的动力

文章分类

全部博文(108)

文章存档

2021年(1)

2020年(10)

2019年(19)

2018年(9)

2016年(23)

2015年(43)

2013年(3)

我的朋友

分类: LINUX

2015-04-29 18:10:00

linux 系调用手册哪家强?原来梦里寻她千百度,默然回首,竞在man处
运行下面的命令,会有新发现,也助于记忆在何处寻找她
   ls /usr/share/man/man2
如何使用呢?
   man 2 systemscall_name
如:man 2 open

输出:
OPEN(2)                    Linux Programmer's Manual                   OPEN(2)


NAME
       open, creat - open and possibly create a file or device


SYNOPSIS
       #include
       #include
       #include


       int open(const char *pathname, int flags);
       int open(const char *pathname, int flags, mode_t mode);


       int creat(const char *pathname, mode_t mode);


DESCRIPTION
       Given a pathname for a file, open() returns a file descriptor, a small,
       nonnegative integer  for  use  in  subsequent  system  calls  (read(2),
       write(2), lseek(2), fcntl(2), etc.).  The file descriptor returned by a
       successful call will be the lowest-numbered file  descriptor  not  cur‐
       rently open for the process.


       By  default,  the  new  file descriptor is set to remain open across an
 Manual page open(2) line 1 (press h for help or q to quit)
清晰明了,特此分享,与君享用







阅读(1706) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~