关于用 C 语言为 FreeBSD 开发命令行应用程序的权威书籍是什么?
我想用 C 语言对 UNIX 命令行应用程序进行一些业余爱好开发。为了缩小范围,我想重点关注 BSD 系列,特别是 FreeBSD,因为我的开发机器是 Mac OS X 10.7 Lion box。
Addison Wesley 对 UNIX 开发的搜索返回了一些内容,但我找不到足够的 FreeBSD 文档。如果有一本关于 BSD 或 AT&T UNIX 开发的优秀综合书籍,我会对此感兴趣。请注意,我更喜欢书籍,因为这样我学得最好。
谢谢,
斯科特
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您应该从经典著作开始:Kernighan 和 Pike,《Unix 编程环境》。上半部分是使用命令行和编写程序的教程;后半部分将引导您完成使用 C 和 YACC 开发简单算术编程语言的过程。本书是其他 Unix 编程书籍的基础。
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 “Unix 环境中的高级编程”。它涵盖了 FreeBSD,但并非特定于 FreeBSD。它是 Unix 特定的,涵盖了您需要的所有基础。
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.
我想你可以看看这些:
Programming with POSIX 线程
套接字网络 API
进程间通信
UNIX 环境中的高级编程
前三个非常具体,只有当您需要专注于该特定主题时才适用。
最后一个链接是亚马逊上一本评价很高的书,您可能会感兴趣。
总而言之,如果您已经掌握了线程、IPC、网络、文件系统,那么您所需要的就是互联网,因为有关于这些的广泛可用的文档。 POSIX API。
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.