قصه: Linux Programming Interface
در این قصه
- فهرست کتاب Linux Programming Interface
- فصل ۴ - Uinversal I/O Model
- فصل ۵ - File I/O: Further Details
- فصل ۸ - Users and Groups
- فصل ۱۰ - Time
- فصل ۲۰ -Signals: Fundamental Concepts
- فصل ۲۴ − Process Creation
- فصل ۲۵− Process Termination
- فصل ۲۶ − Monitoring Child Processes
- تمرینهای کتاب Linux Programming Interface (همین پست)
Exercises
ch08 - Users and Groups
- When we execute the following code, we find out that it displays the same number twice, event though the two users have different IDs in the password file. Why is this? Answer
printf("%ld %ld\n", (long) (getpwnam("avr")->pw_uid),
(long) (getpwnam("tsr")->pw_uid);
- Implement
getpwnam()usingsetpwent(),getpwent(), andendpwent(). Answer
نوشته شده در:
1405-03-09
(1 هفته 2 روز 8 ساعت پیش)
من محسن هستم؛ برنامهنویس تفننی!
برای ارتباط با من یا در همین سایت کامنت بگذارید و یا به dokaj.ir(at)gmail.com ایمیل بزنید.
پست قبلی:
فهرست کتاب Linux Programming Interface
پست بعدی:
فصل ۲۵− Process Termination
در مورد این مطلب یادداشتی بنویسید.