What is the definitive book on developing command line apps in C for FreeBSD? [closed]
I'd like to do some hobby development of command line applications for UNIX in C. To narrow that down, I'd like to focus on the BSD family, specifically FreeBSD as my development machine is a Mac OS X 10.7 Lion box.
Searches for UNIX development have returned some from Addison Wesley, but I cannot find adequate documentation for FreeBSD. If there is a good general book on developing for either BSD or AT&T UNIX, I would be interested in that. please note I prefer books as I learn best that way.
Thanks,
Scott
You should start with the classic: Kernighan and Pike, The Unix Programming Environment. The first half is a tutorial on using the command-line and composing programs; the second half walks you through the development of a simple arithmetic programming language using C and YACC. This book is the base-line that other Unix programming books will assume.
Stevens "Advanced Programming in the Unix Environment". It covers FreeBSD but it's not FreeBSD specific. It is Unix specific, and covers all the bases you require.
I guess you could take a look at these:
Programming with POSIX Threads
The sockets Networking API
Interprocess Communications
Advanced Programming in the UNIX environment
The first three are very specific and would serve only if you need to focus on that particular subject. The last link is a highly rated book on Amazon that you may be interested in.
All in all, if you already have a grip of threads, IPC, networking, filesystem, all you need is the internet because there is widely available documentation about the POSIX API.
精彩评论