关于用 C 语言为 FreeBSD 开发命令行应用程序的权威书籍是什么?

发布于 2024-11-28 19:35:32 字数 262 浏览 2 评论 0原文

我想用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绮烟 2024-12-05 19:35:32

您应该从经典著作开始: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.

只是偏爱你 2024-12-05 19:35:32

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.

微暖i 2024-12-05 19:35:32

我想你可以看看这些:

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文