APUE 1-9 打印用户ID和组ID
2016-07-07 09:25
381 查看
1 #include "apue.h" 2 3 int main() 4 { 5 printf("uid = %d, gid = %d\n", getuid(), getgid()); 6 exit(0); 7 } ~
相关文章推荐
- APUE 1-8 strerror 和 perror
- APUE 1-7 从标准输入读命令并执行
- APUE 1-6打印进程ID
- POWERBUILDER -- PB通过URL下载局域网或者互联网上的图片或者文件
- APUE 1-5用标准I/O将标准输入复制到标准输出
- APUE 1-4用标准将标准输入复制到标准输出
- 这个贴子的内容值得好好学习--实例详解Django的 select_related 和 prefetch_related 函数对 QuerySet 查询的优化
- codeforces 375D Tree and Queries
- Vue.js——基于$.ajax实现数据的跨域增删查改
- Subarray Sum to the given target value
- LintCode_124 Longest Consecutive Sequence
- How to set a badge value on a UITabBarController item
- Selenium webdriver实现原理
- 进程间通信(IPC)之消息队列
- Guava collections -- FluentIterable
- 数据库异常整理:org.hibernate.QueryException: could not resolve property: “xxx”
- Android5.0(Lollipop) 蓝牙BLE(Bluetooth Low Energy)
- php中的break,continue,return,exit,die等跳出或终止循环笔记
- EasyUI 控件禁用方法
- UITableView,定制cell