您的位置:首页 > 其它

exec系列函数

2013-09-26 09:02 211 查看
int execl (const char *path,
const char *arg,
...);
int execlp (const char *file,
const char *arg,
...);
Running a New Process | 131
int execle (const char *path,
const char *arg,
...,
char * const envp[]);
int execv (const char *path, char *const argv[]);
int execvp (const char *file, char *const argv[]);
int execve (const char *filename,
char *const argv[],
char *const envp[]);

The mnemonics are simple. The l and v delineate whether the arguments are provided
via a list or an array (vector). The p denotes that the user’s full path is searched for the
given file. Commands using the p variants can specify just a filename, so long as it is
located in the user’s path. Finally, the e notes that a new environment is also supplied
for the new process. Curiously, although there is no technical reason for the omission,
the exec family contains no member that both searches the path and takes a new environment.
This is probably because the p variants were implemented for use by shells,
and shell-executed processes generally inherit their environments from the shell.

阅读(558) | 评论(0) | 转发(0) |

0
上一篇:2008 Linux开发者研讨会专题 ppt 下载地址

下一篇:编译linux内核的方法

相关热门文章

Linux 下 Libxml2简单编程...

国庆特惠AGILENT86100B光波仪A...

USB设备驱动程序-USB Gadget D...

国庆特惠CSA8200 CSA8200 CSA...

UIApplication

linux 常见服务端口

【ROOTFS搭建】busybox的httpd...

什么是shell

linux socket的bug??

linux的线程是否受到了保护?...

关于enqueue 的dump 文件帮看...

tar --newer 05/12/2013 这个...

请教nginx代理tomcat作为子目...

LDAP安装 bus error是什么问...

select语句不修改sql,如何优...

给主人留下些什么吧!~~

评论热议
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: