PERFORCE change 103273 for review
John Birrell
jb at FreeBSD.org
Sat Aug 5 19:39:32 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103273
Change 103273 by jb at jb_freebsd2 on 2006/08/05 19:39:07
IFC
Affected files ...
.. //depot/projects/dtrace/doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml#20 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/developers-handbook/introduction/chapter.sgml#3 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/developers-handbook/tools/chapter.sgml#3 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/fdp-primer/sgml-primer/chapter.sgml#3 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/handbook/book.sgml#3 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/handbook/linuxemu/chapter.sgml#2 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/handbook/multimedia/chapter.sgml#4 integrate
.. //depot/projects/dtrace/doc/zh_TW.Big5/books/handbook/ports/chapter.sgml#6 integrate
.. //depot/projects/dtrace/src/sbin/dump/optr.c#3 integrate
.. //depot/projects/dtrace/src/sbin/ipfw/ipfw2.c#6 integrate
.. //depot/projects/dtrace/src/sys/dev/ata/ata-chipset.c#6 integrate
.. //depot/projects/dtrace/src/sys/dev/ata/ata-pci.h#5 integrate
.. //depot/projects/dtrace/src/sys/dev/ath/if_ath.c#9 integrate
.. //depot/projects/dtrace/src/sys/dev/ath/if_athioctl.h#3 integrate
.. //depot/projects/dtrace/src/sys/dev/isp/isp.c#7 integrate
.. //depot/projects/dtrace/src/sys/dev/wi/if_wavelan_ieee.h#3 integrate
.. //depot/projects/dtrace/src/sys/dev/wi/if_wi.c#5 integrate
.. //depot/projects/dtrace/src/sys/dev/wi/if_wireg.h#3 integrate
.. //depot/projects/dtrace/src/sys/kern/Makefile#4 integrate
.. //depot/projects/dtrace/src/sys/netatalk/ddp_usrreq.c#4 integrate
.. //depot/projects/dtrace/src/sys/vm/swap_pager.c#6 integrate
.. //depot/projects/dtrace/src/tools/tools/ath/athstats/athstats.c#3 integrate
.. //depot/projects/dtrace/src/tools/tools/net80211/Makefile#3 integrate
.. //depot/projects/dtrace/src/tools/tools/net80211/README#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/stumbler/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/stumbler/stumbler.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/Makefile.inc#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/README#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/ap/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/ap/ap.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/assoc/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/assoc/assoc.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/expand/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/expand/expand.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/libw00t/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/libw00t/w00t.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/libw00t/w00t.h#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/prga/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/prga/prga.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/redir/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/redir/buddy.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/w00t/redir/redir.c#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/wlaninject/Makefile#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/wlaninject/README#1 branch
.. //depot/projects/dtrace/src/tools/tools/net80211/wlaninject/wlaninject.c#1 branch
.. //depot/projects/dtrace/src/usr.sbin/kldxref/kldxref.c#5 integrate
.. //depot/projects/dtrace/www/en/gnome/docs/faq214.sgml#3 integrate
.. //depot/projects/dtrace/www/en/projects/acpi/index.sgml#3 integrate
Differences ...
==== //depot/projects/dtrace/doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml#20 (text+ko) ====
@@ -1,4 +1,4 @@
-<!-- $FreeBSD: doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml,v 1.597 2006/08/03 20:32:43 bsam Exp $ -->
+<!-- $FreeBSD: doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml,v 1.598 2006/08/05 14:11:46 jkoshy Exp $ -->
<!--
NOTE TO COMMITTERS: Contributors lists are sorted in alphabetical
order by first name.
@@ -5207,6 +5207,11 @@
</listitem>
<listitem>
+ <para>Li-Wen Hsu
+ <email>lwhsu at lwhsu.org</email></para>
+ </listitem>
+
+ <listitem>
<para>Liam Foy
<email>liamfoy at sepulcrum.org</email></para>
</listitem>
==== //depot/projects/dtrace/doc/zh_TW.Big5/books/developers-handbook/introduction/chapter.sgml#3 (text+ko) ====
@@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
- $FreeBSD: doc/zh_TW.Big5/books/developers-handbook/introduction/chapter.sgml,v 1.2 2006/07/26 03:55:46 vanilla Exp $
+ $FreeBSD: doc/zh_TW.Big5/books/developers-handbook/introduction/chapter.sgml,v 1.3 2006/08/05 04:48:56 vanilla Exp $
Original revision: 1.18
-->
@@ -73,11 +73,9 @@
<sect1 id="introduction-layout">
<title><filename class="directory">/usr/src</filename> ªº¬[ºc</title>
- <para>
- §¹¾ãªº FreeBSD ì©l½X³£¦b¤½¶}ªº CVS repository ¤¤¡C
+ <para>§¹¾ãªº FreeBSD ì©l½X³£¦b¤½¶}ªº CVS repository ¤¤¡C
³q±` FreeBSD ì©l½X³£·|¸Ë¦b <filename class="directory">/usr/src</filename>¡A
- ¦Ó¥B¥]§t¤U¦C¤l¥Ø¿ý¡G
- </para>
+ ¦Ó¥B¥]§t¤U¦C¤l¥Ø¿ý¡G</para>
<para>
<informaltable frame="none" pgwide="1">
==== //depot/projects/dtrace/doc/zh_TW.Big5/books/developers-handbook/tools/chapter.sgml#3 (text+ko) ====
@@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
- $FreeBSD: doc/zh_TW.Big5/books/developers-handbook/tools/chapter.sgml,v 1.2 2006/07/26 03:56:43 vanilla Exp $
+ $FreeBSD: doc/zh_TW.Big5/books/developers-handbook/tools/chapter.sgml,v 1.3 2006/08/05 04:48:56 vanilla Exp $
Original revision: 1.46
-->
@@ -23,94 +23,77 @@
<title>µ{¦¡¶}µo¤u¨ã</title>
<sect1 id="tools-synopsis"><title>·§±Ô</title>
- <para>
- ¥»³¹±N¤¶²Ð¦p¦ó¨Ï¥Î¤@¨Ç FreeBSD ©Ò´£¨Ñªºµ{¦¡¶}µo¤u¨ã(programing tools)¡A
+ <para>¥»³¹±N¤¶²Ð¦p¦ó¨Ï¥Î¤@¨Ç FreeBSD ©Ò´£¨Ñªºµ{¦¡¶}µo¤u¨ã(programing tools)¡A
¥»³¹©Ò¤¶²Ðªº¤u¨ãµ{¦¡¦b¨ä¥Lª©¥»ªº &unix; ¤W¤]¥i¨Ï¥Î¡A
¦b¦¹ <emphasis>¨Ã¤£·|</emphasis> ¹Á¸Õ´yz¼gµ{¦¡®Éªº¨CÓ²Ó¸`¡A
¥»³¹¤j³¡¤À½g´T³£¬O°²³]§A¥H«e¨S¦³©Î¥u¦³¤Ö¼Æªº¼gµ{¦¡¸gÅç¡A
- ¤£¹L¡AÁÙ¬O§Æ±æ¤j¦h¼Æªºµ{¦¡¶}µo¤Hû³£¯à±q¤¤«·s±o¨ì¤@¨Ç±Òµo¡C
- </para>
+ ¤£¹L¡AÁÙ¬O§Æ±æ¤j¦h¼Æªºµ{¦¡¶}µo¤Hû³£¯à±q¤¤«·s±o¨ì¤@¨Ç±Òµo¡C</para>
</sect1>
<sect1 id="tools-intro"><title>²¤¶</title>
- <para>
- FreeBSD ´£¨Ñ¤@Ó«D±`´Îªº¶}µoÀô¹Ò¡A
+ <para>FreeBSD ´£¨Ñ¤@Ó«D±`´Îªº¶}µoÀô¹Ò¡A
¤ñ¦p»¡¹³¬O C¡BC++¡BFortran ©M assembler(²Õ¦X»y¨¥)ªº½s;¹(compiler),
¦b FreeBSD ¤¤³£¤w¸g¥]§t¦b°ò¥»ªº¨t²Î¤¤¤F
§ó§O´£ Perl ©M¨ä¥L¼Ð·Ç &unix; ¤u¨ã¡A¹³¬O<command>sed</command> ¥H¤Î <command>awk</command>¡A
¦pªG§AÁÙ¬Oı±o¤£°÷¡AFreeBSD¦b Ports collection ¤¤ÁÙ´£¨Ñ¨ä¥Lªº½s;¹©Mª½Ä¶¾¹(interpreter),
FreeBSD ¬Û®e³\¦h¼Ð·Ç¡A¹³¬O <acronym>&posix;</acronym> ©M <acronym>ANSI</acronym> C¡A
·íµMÁÙ¦³¥¦©ÒÄ~©Óªº BSD ¶Ç²Î¡C
- ©Ò¥H¦b FreeBSD ¤W¼gªºµ{¦¡¤£»Ý×§ï©Î³»¦hµy·L×§ï¡A´N¥i¥H¦b³\¦h¥¥x¤W½sĶ¡B°õ¦æ¡C
- </para>
+ ©Ò¥H¦b FreeBSD ¤W¼gªºµ{¦¡¤£»Ý×§ï©Î³»¦hµy·L×§ï¡A´N¥i¥H¦b³\¦h¥¥x¤W½sĶ¡B°õ¦æ¡C</para>
- <para>
- µL½×¦p¦ó¡A´Nºâ§A±q¨Ó¨S¦b &unix; ¥¥x¤W¼g¹Lµ{¦¡¡A¤]¥i¥H¹ý©³·P¨ü¨ìFreeBSD ¥O¤HµLªk§Ü©Úªº°g¤HÅ]¤O¡C
+ <para>µL½×¦p¦ó¡A´Nºâ§A±q¨Ó¨S¦b &unix; ¥¥x¤W¼g¹Lµ{¦¡¡A¤]¥i¥H¹ý©³·P¨ü¨ìFreeBSD ¥O¤HµLªk§Ü©Úªº°g¤HÅ]¤O¡C
¥»³¹ªº¥Ø¼Ð´N¬O¨ó§U§A§Ö³t¤W¤â¡A¦Ó¼È®É¤£»Ý²`¤J¤Ó¦h¶i¶¥¥DÃD¡A
- ¨Ã¥BÁ¿¸Ñ¤@¨Ç°ò¦·§©À¡A¥HÅý§A¥i¥HÁA¸Ñ§Ú̦bÁ¿¨Ç¤°»ò¡C
- </para>
+ ¨Ã¥BÁ¿¸Ñ¤@¨Ç°ò¦·§©À¡A¥HÅý§A¥i¥HÁA¸Ñ§Ú̦bÁ¿¨Ç¤°»ò¡C</para>
- <para>
- ¥»³¹¤º®e¨Ã¤£n¨D§A±o¦³µ{¦¡¶}µo¸gÅç¡A©ÎªÌ§A¥u¦³¤@ÂIÂIªº¸gÅç¦Ó¤w¡C
+ <para>¥»³¹¤º®e¨Ã¤£n¨D§A±o¦³µ{¦¡¶}µo¸gÅç¡A©ÎªÌ§A¥u¦³¤@ÂIÂIªº¸gÅç¦Ó¤w¡C
¤£¹L¡A§Ṵ́²³]§A¤w¸g·| &unix; ¨t²Îªº°ò¥»¾Þ§@¡A
- ¦Ó¥B§ó«nªº¬O¡A½Ð«O«ù¼Ö©ó¾Ç²ßªº¤ßºA¡I
- </para>
+ ¦Ó¥B§ó«nªº¬O¡A½Ð«O«ù¼Ö©ó¾Ç²ßªº¤ßºA¡I</para>
</sect1>
<sect1 id="tools-programming">
<title>Programming ·§©À</title>
- <para>
- ²³æªº»¡¡Aµ{¦¡¥u¬O¤@°ï«ü¥Oªº¶°¦XÅé¡F¦Ó³o¨Ç«ü¥O¬O¥Î¨Ó§i¶D¹q¸£À³¸Ón§@¨º¨Ç¨Æ±¡¡C
+ <para>²³æªº»¡¡Aµ{¦¡¥u¬O¤@°ï«ü¥Oªº¶°¦XÅé¡F¦Ó³o¨Ç«ü¥O¬O¥Î¨Ó§i¶D¹q¸£À³¸Ón§@¨º¨Ç¨Æ±¡¡C
¦³®ÉÔ¡A«ü¥Oªº°õ¦æ¨ú¨M©ó«e¤@Ó«ü¥Oªºµ²ªG¦Ó©w¡C
¥»³¹±N·|§i¶D§A¦³ 2 Ó¥Dnªº¤èªk¡AÅý§A¥i¥H¹ï¹q¸£¤U¹F³o¨Ç«ü¥Ü(instruction) ©Î <quote>©R¥O(commands)</quote>¡C
²Ä¤@Ó¤èªk´N¬O <firstterm>ª½Ä¶¾¹(interpreter)</firstterm>¡A
¦Ó²Ä¤GÓ¤èªk¬O <firstterm>½s;¹(compiler)</firstterm>¡C
¥Ñ©ó¹ï©ó¹q¸£¦Ó¨¥¡A¤HÃþ»y¨¥ªº»y·N¹L©ó¼Ò½k¦Ó¤ÓÃø²z¸Ñ¡A
- ¦]¦¹©R¥O(commands)´N±`·|¥H¤@ºØ(©Î¦hºØ)µ{¦¡»y¨¥¼g¦¨¡A¥Î¨Ó«ü¥Ü¹q¸£©Òn°õ¦æªº¯S©w°Ê§@¬°¦ó¡C
- </para>
+ ¦]¦¹©R¥O(commands)´N±`·|¥H¤@ºØ(©Î¦hºØ)µ{¦¡»y¨¥¼g¦¨¡A¥Î¨Ó«ü¥Ü¹q¸£©Òn°õ¦æªº¯S©w°Ê§@¬°¦ó¡C</para>
<sect2>
<title>ª½Ä¶¾¹</title>
- <para>
- ¨Ï¥Îª½Ä¶¾¹®É¡A©Ò¨Ï¥Îªºµ{¦¡»y¨¥´N¹³Åܦ¨¤@Ó·|©M§A¤¬°ÊªºÀô¹Ò¡C
+ <para>¨Ï¥Îª½Ä¶¾¹®É¡A©Ò¨Ï¥Îªºµ{¦¡»y¨¥´N¹³Åܦ¨¤@Ó·|©M§A¤¬°ÊªºÀô¹Ò¡C
·í¦b©R¥O´£¥Ü¦C¤W¥´¤W©R¥O®É¡Aª½Ä¶¾¹·|§Y®É°õ¦æ¸Ó©R¥O¡C
¦b¤ñ¸û½ÆÂøªºµ{¦¡¤¤¡A¥i¥H§â©Ò¦³·Q¤U¹Fªº©R¥O²Î²Î¿é¤J¨ì¬YÀɮ׸̱¥h¡A
µM«á©I¥sª½Ä¶¾¹¥hŪ¨ú¸ÓÀɮסA¨Ã¥B°õ¦æ§A¼g¦b³oÓÀɮפ¤ªº«ü¥O¡C
¦pªG©Ò¤Uªº«ü¥O¦³¿ù»~²£¥Í¡A¤j¦h¼Æªºª½Ä¶¾¹·|¶i¤J°»¿ù¼Ò¦¡(debugger)¡A
- ¨Ã¥BÅã¥Ü¬ÛÃö¿ù»~°T®§¡A¥H«K¹ïµ{¦¡°£¿ù¡C
- </para>
+ ¨Ã¥BÅã¥Ü¬ÛÃö¿ù»~°T®§¡A¥H«K¹ïµ{¦¡°£¿ù¡C</para>
- <para>
- ³oºØ¤è¦¡¦n³B¦b©ó¡G¥i¥H¥ß¨è¬Ý¨ì«ü¥Oªº°õ¦æµ²ªG¡A¥H¤Î¿ù»~¤]¥i¨³³t×¥¿¡C
- ¬Û¹ïªº¡A³Ì¤jªºÃa³B«K¬O·í§A·Q§â§A¼gªºµ{¦¡¤À¨Éµ¹¨ä¥L¤H®É¡A³o¨Ç¤H¥²¶·n¦³¸ò§A¤@¼Ëªºª½Ä¶¾¹¡C
- ¦Ó¥B§O§Ñ¤F¡A¥L̤]n·|¨Ï¥Îª½Ä¶¾¹ª½Ä¶µ{¦¡¤~¦æ¡C
- ·íµM¨Ï¥ÎªÌ¤]¤£§Æ±æ¤£¤p¤ß«ö¿ùÁä¡A´N¶i¤J°»¿ù¼Ò¦¡¦Ó¤£ª¾©Ò±¹¡C
- ´N°õ¦æ®Ä²v¦Ó¨¥¡Aª½Ä¶¾¹·|¨Ï¥Î¨ì«Ü¦hªº°O¾ÐÅé¡A
- ¦Ó¥B³oÃþª½Ä¶¦¡µ{¦¡¡A³q±`¨Ã¤£·|¤ñ½s;¹©Ò½sĶªºµ{¦¡ªº§ó¦³®Ä²v¡C
- </para>
+ <para>³oºØ¤è¦¡¦n³B¦b©ó¡G¥i¥H¥ß¨è¬Ý¨ì«ü¥Oªº°õ¦æµ²ªG¡A¥H¤Î¿ù»~¤]¥i¨³³t×¥¿¡C
+ ¬Û¹ïªº¡A³Ì¤jªºÃa³B«K¬O·í§A·Q§â§A¼gªºµ{¦¡¤À¨Éµ¹¨ä¥L¤H®É¡A³o¨Ç¤H¥²¶·n¦³¸ò§A¤@¼Ëªºª½Ä¶¾¹¡C
+ ¦Ó¥B§O§Ñ¤F¡A¥L̤]n·|¨Ï¥Îª½Ä¶¾¹ª½Ä¶µ{¦¡¤~¦æ¡C
+ ·íµM¨Ï¥ÎªÌ¤]¤£§Æ±æ¤£¤p¤ß«ö¿ùÁä¡A´N¶i¤J°»¿ù¼Ò¦¡¦Ó¤£ª¾©Ò±¹¡C
+ ´N°õ¦æ®Ä²v¦Ó¨¥¡Aª½Ä¶¾¹·|¨Ï¥Î¨ì«Ü¦hªº°O¾ÐÅé¡A
+ ¦Ó¥B³oÃþª½Ä¶¦¡µ{¦¡¡A³q±`¨Ã¤£·|¤ñ½s;¹©Ò½sĶªºµ{¦¡ªº§ó¦³®Ä²v¡C</para>
- <para>
- µ§ªÌÓ¤H»{¬°¡A¦pªG§A¤§«e¨S¦³¾Ç¹L¥ô¦óµ{¦¡»y¨¥¡A³Ì¦n¥ý¾Ç¾Ç²ßª½Ä¶¦¡»y¨¥(interpreted languages)¡A
- ¹³¬O Lisp¡ASmalltalk¡APerl ©M Basic ³£¬O¡A&unix; ªº shell ¹³¬O <command>sh</command> ©M <command>csh</command>
- ¥¦Ì¥»¨´N¬Oª½Ä¶¾¹¡A¨Æ¹ê¤W¡A«Ü¦h¤H³£¦b¥¦Ì¦Û¤v¾÷¾¹¤W¼¶¼g¦U¦¡ªº shell <quote>script</quote>¡A
- ¨Ó¶¶§Q§¹¦¨¦U¶µ <quote>housekeeping(ºûÅ@)</quote> ¥ô°È¡C
- &unix; ¨Ï¥Îõ¾Ç¤§¤@´N¬O´£¨Ñ¤j¶qªº¤p¤u¨ã¡A
- ¨Ã¨Ï¥Î shell script ¨Ó²Õ¦X¹B¥Î³o¨Ç¤p¤u¨ã¡A¥H«K¤u§@§ó¦³®Ä²v¡C
+ <para>µ§ªÌÓ¤H»{¬°¡A¦pªG§A¤§«e¨S¦³¾Ç¹L¥ô¦óµ{¦¡»y¨¥¡A³Ì¦n¥ý¾Ç¾Ç²ßª½Ä¶¦¡»y¨¥(interpreted languages)¡A
+ ¹³¬O Lisp¡ASmalltalk¡APerl ©M Basic ³£¬O¡A&unix; ªº shell ¹³¬O <command>sh</command> ©M <command>csh</command>
+ ¥¦Ì¥»¨´N¬Oª½Ä¶¾¹¡A¨Æ¹ê¤W¡A«Ü¦h¤H³£¦b¥¦Ì¦Û¤v¾÷¾¹¤W¼¶¼g¦U¦¡ªº shell <quote>script</quote>¡A
+ ¨Ó¶¶§Q§¹¦¨¦U¶µ <quote>housekeeping(ºûÅ@)</quote> ¥ô°È¡C
+ &unix; ªº¨Ï¥Îõ¾Ç¤§¤@´N¬O´£¨Ñ¤j¶qªº¤p¤u¨ã¡A
+ ¨Ã¨Ï¥Î shell script ¨Ó²Õ¦X¹B¥Î³o¨Ç¤p¤u¨ã¡A¥H«K¤u§@§ó¦³®Ä²v¡C</para>
</sect2>
<sect2>
<title>FreeBSD ´£¨Ñªºª½Ä¶¾¹</title>
- <para>
- ¤U±³oÃ䦳¥÷ &os; Ports Collection ©Ò´£¨Ñªºª½Ä¶¾¹²M³æ¡AÁÙ¦³°Q½×¤@¨Ç¤ñ¸û¨üÅwªïªºª½Ä¶¦¡»y¨¥</para>
+ <para>¤U±³oÃ䦳¥÷ &os; Ports Collection ©Ò´£¨Ñªºª½Ä¶¾¹²M³æ¡AÁÙ¦³°Q½×¤@¨Ç¤ñ¸û¨üÅwªïªºª½Ä¶¦¡»y¨¥</para>
- <para>
- ¦Ü©ó¦p¦ó¨Ï¥Î Ports Collection ¦w¸Ëªº»¡©ú¡A¥i°Ñ¾\ FreeBSD Handbook ¤¤ªº
+ <para>¦Ü©ó¦p¦ó¨Ï¥Î Ports Collection ¦w¸Ëªº»¡©ú¡A¥i°Ñ¾\ FreeBSD Handbook ¤¤ªº
<ulink url="&url.books.handbook;/ports-using.html">Ports³¹¸`</ulink>¡C
<variablelist>
<varlistentry>
@@ -146,8 +129,7 @@
¡A¦¹¥~ CMUCL(¥]§t¤@Ó¤w¸g³Ì¨Î¤Æªº½s;¹)¡A
¥H¤Î¨ä¥L²¤Æª©ªº LISP ª½Ä¶¾¹(¤ñ¦p¥H C »y¨¥¼gªº SLisp¡A¥u¥Î´X¦Ê¦æµ{¦¡½X´N¹ê§@¤j¦h¼Æ Common Lisp ªº¥\¯à)
«h¬O¤À§O¦¬¿ý¦b <filename role="package">lang/cmucl</filename> ¥H¤Î
- <filename role="package">lang/slisp</filename>¡C
- </para>
+ <filename role="package">lang/slisp</filename>¡C</para>
</listitem>
</varlistentry>
@@ -169,8 +151,7 @@
<listitem>
<para>Scheme ¬O LISP ªº¥t¤@¤À¤ä¡AScheme ªº¯SÂI´N¬O¤ñ Common LISP ÁÙn²¼ä¦³¤O¡C
¥Ñ©ó Scheme ²³æ¡A©Ò¥H«Ü¦h¤j¾Ç®³¨Ó·í§@²Ä¤@°óµ{¦¡»y¨¥±Ð¾Ç±Ð§÷¡C
- ¦Ó¥B¹ï©ó¬ã¨s¤Hû¨Ó»¡¤]¥i¥H§Ö³tªº¶}µo¥L̩һÝnªºµ{¦¡¡C
- </para>
+ ¦Ó¥B¹ï©ó¬ã¨s¤Hû¨Ó»¡¤]¥i¥H§Ö³tªº¶}µo¥L̩һÝnªºµ{¦¡¡C</para>
<para>Scheme ¦¬¿ý¦b <filename role="package">lang/elk</filename>¡A
Elk Scheme ª½Ä¶¾¹(¥Ñ³Â¬Ù²z¤u¾Ç°|©Òµo®iªº Scheme ª½Ä¶¾¹)¦¬¿ý¦b
@@ -208,8 +189,7 @@
<para>Python ¬Oª«¥ó¾É¦Vªºª½Ä¶¦¡»y¨¥¡A
Python ªº¾ÖÅ@ªÌÁ`¬O«ÅºÙ Python ¬O³Ì¦n¤Jªùªºµ{¦¡»y¨¥¡C
ÁöµM Python ¥i¥H«Ü²³æªº¶}©l¡A¦ý¬O¤£¥Nªí¥¦´N·|¿éµ¹¨ä¥Lª½Ä¶¦¡»y¨¥(¹³¬O Perl ©M Tcl)¡A
- ¨Æ¹êÃÒ©ú Python ¤]¥i¥H®³¨Ó¶}µo¤j«¬¡B½ÆÂøªºÀ³¥Îµ{¦¡¡C
- </para>
+ ¨Æ¹êÃÒ©ú Python ¤]¥i¥H®³¨Ó¶}µo¤j«¬¡B½ÆÂøªºÀ³¥Îµ{¦¡¡C</para>
<para>&os; Ports Collection ¦¬¿ý¦b <filename role="package">lang/python</filename>¡C</para>
</listitem>
@@ -245,9 +225,9 @@
<title>½s;¹</title>
<para>½s;¹©Mª½Ä¶¾¹¨âªÌ¬Û¤ñªº¸Ü¡A¦³¨Ç¤£¦P¡Aº¥ý´N¬O¥²¶·¥ý§âµ{¦¡½X²Î²Î¼g¤J¨ìÀɮ׸̱¡A
- µM«á¥²¶·°õ¦æ½s;¹¨Ó¸ÕµÛ½s͵{¦¡¡A¦pªG½s;¹¤£±µ¨ü©Ò¼gªºµ{¦¡¡A¨º´N¥²¶·¤@ª½×§ïµ{¦¡¡A
- ª½¨ì½s;¹±µ¨ü¥B§â§Aªºµ{¦¡½sͦ¨°õ¦æÀÉ¡C
- ¦¹¥~¡A¤]¥i¥H¦b´£¥Ü©R¥O¦C¡A©Î¦b°£¿ù¾¹¤¤°õ¦æ§A½sͦnªºµ{¦¡¬Ý¬Ý¥¦¬O§_¥i¥H¹B§@¡C
+ µM«á¥²¶·°õ¦æ½s;¹¨Ó¸ÕµÛ½s͵{¦¡¡A¦pªG½s;¹¤£±µ¨ü©Ò¼gªºµ{¦¡¡A¨º´N¥²¶·¤@ª½×§ïµ{¦¡¡A
+ ª½¨ì½s;¹±µ¨ü¥B§â§Aªºµ{¦¡½sͦ¨°õ¦æÀÉ¡C
+ ¦¹¥~¡A¤]¥i¥H¦b´£¥Ü©R¥O¦C¡A©Î¦b°£¿ù¾¹¤¤°õ¦æ§A½sͦnªºµ{¦¡¬Ý¬Ý¥¦¬O§_¥i¥H¹B§@¡C
<footnote>
<para>¦pªG¦b´£¥Ü©R¥O¦C¤U°õ¦æ¡A¨º»ò¦³¥i¯à·|²£¥Í core dump¡C</para>
</footnote></para>
@@ -260,8 +240,7 @@
¦Ó½s;¹»Pª½Ä¶¾¹³Ì¤jªº®t§O¦b©ó¡G·í§A·Q§â§A¼g¦nªºµ{¦¡®³¨ì¥t¥~¤@¥x¾÷¾¹¤W¶]®É¡A
§A¥un±N½s;¹½sĶ¥X¨Óªº¥i°õ¦æÀÉ¡A®³¨ì·s¾÷¾¹¤W«K¥i¥H°õ¦æ¡A
¦Óª½Ä¶¾¹«h¥²¶·n¨D·s¾÷¾¹¤W¡A¥²¶·n¦³¸ò¥t¤@¥x¾÷¾¹¤W¬Û¦Pªºª½Ä¶¾¹¡A
- ¤~¯à²ÕͰõ¦æ§Aªºµ{¦¡¡I
- </para>
+ ¤~¯à²ÕͰõ¦æ§Aªºµ{¦¡¡I</para>
<para>½sͦ¡ªºµ{¦¡»y¨¥¥]§t Pascal¡BC ©M C++¡A
C ©M C++ ¤£¬O¤@Ó¿Ë©M¤O¤Q¨¬ªº»y¨¥¡A¦ý¬O«Ü¾A¦X¨ã¦³¸gÅ窺 Programmer¡C
@@ -271,8 +250,10 @@
<filename role="package">lang/gpc</filename> ©M <filename role="package">lang/fpc</filename> ¤¤§ä¨ì¡C</para>
<para>¦pªG§A¥Î¤£¦Pªºµ{¦¡¨Ó¼g½sͦ¡µ{¦¡¡A¨º»ò¤£Â_¦a½s¿è-½sĶ-°õ¦æ-°£¿ùªº³oÓ´`ÀôªÖ©w·|«Ü·Ð¤H¡A
- ¬°¤F§ó²¤Æ¡B¤è«Kµ{¦¡¶}µo¬yµ{¡A«Ü¦h°Ó·~½s;¹¼t°Ó¶}©lµo®i©Ò¿×ªº <acronym>IDE</acronym>(Integrated Development Environments) ¶}µoÀô¹Ò¡A
- FreeBSD ¹w³]¨Ã¨S¦³§â IDE ¾ã¦X¶i base system ¤¤¡A¦ý¬O§A¥i³z¹L <filename role="package">devel/kdevelop</filename> ¦w¸Ë kdevelop
+ ¬°¤F§ó²¤Æ¡B¤è«Kµ{¦¡¶}µo¬yµ{¡A«Ü¦h°Ó·~½s;¹¼t°Ó¶}©lµo®i©Ò¿×ªº <acronym>IDE</acronym>
+ (Integrated Development Environments) ¶}µoÀô¹Ò¡A
+ FreeBSD ¹w³]¨Ã¨S¦³§â IDE ¾ã¦X¶i base system ¤¤¡A
+ ¦ý¬O§A¥i³z¹L <filename role="package">devel/kdevelop</filename> ¦w¸Ë kdevelop
©Î¨Ï¥Î <application>Emacs</application> ¨ÓÅéÅç IDE ¶}µoÀô¹Ò¡C
¦b«á±ªº <xref linkend="emacs"> ±MÃD±N¤¶²Ð¡A¦p¦ó¥H <application>Emacs</application> ¨Ó§@¬° IDE ¶}µoÀô¹Ò¡C</para>
</sect2>
@@ -338,7 +319,7 @@
<para>©¯¹Bªº¬O¡A§A¥i¥H¤£¥Î²z·|¥H¤W²Ó¸`¡A½s;¹³£·|¦Û°Ê§¹¦¨¡C
¦]¬° <command>cc</command> ¥u¬O¬OÓ«eºÝµ{¦¡(front end)¡A¥¦·|¨Ì·Ó¥¿½Tªº°Ñ¼Æ¨Ó©I¥s¬ÛÃöµ{¦¡À°§A³B²z¡C
- ¥u»Ý¥´¡G
+ ¥u»Ý¥´¡G</para>
<screen>&prompt.user; <userinput>cc foobar.c</userinput></screen>
<para>¤Wz«ü¥O·|§â <filename>foobar.c</filename> ¶}©l½sĶ¡A¨Ã§¹¦¨¤Wz°Ê§@¡C
@@ -362,7 +343,7 @@
<listitem>
<para><option>-o</option> ½sĶ«áªº°õ¦æÀÉÀɦW¡A¦pªG¨S¦³¨Ï¥Î³o¿ï¶µªº¸Ü¡A
- ½sͦnªºµ{¦¡¹w³]ÀɦW±N·|¬O <filename>a.out</filename>
+ ½sͦnªºµ{¦¡¹w³]ÀɦW±N·|¬O <filename>a.out</filename>
<footnote>
<para>¦Ü©ó <option>-o</option> ªºì¦]¡A«h¬O¤@¹Î¾ú¥v°gÃú¤F¡C</para>
@@ -398,8 +379,7 @@
<term><option>-g</option></term>
<listitem>
- <para>
- <option>-g</option> ±N·|§â¤@¨Çµ¹ gdb ¥Îªº°£¿ù°T®§¥]¶i¥h°õ¦æÀɸ̱¡A©Ò¿×ªº°£¿ù°T®§¨Ò¦p¡G
+ <para><option>-g</option> ±N·|§â¤@¨Çµ¹ gdb ¥Îªº°£¿ù°T®§¥]¶i¥h°õ¦æÀɸ̱¡A©Ò¿×ªº°£¿ù°T®§¨Ò¦p¡G
µ{¦¡¦b²Ä´X¦æ¥X¿ù¡B¨ºÓµ{¦¡²Ä´X¦æ°µ¤°»ò¨ç¦¡©I¥sµ¥µ¥¡C°£¿ù¸ê°T<emphasis>«D±`</emphasis>¦n¥Î¡C
¦ý¯ÊÂI´N¬O¡G¹ï©óµ{¦¡¨Ó»¡¡AÃB¥~ªº°£¿ù°T®§·|Åý½sĶ¥X¨Óªºµ{¦¡¤ñ¸ûªÎ¨Ç¡C
<option>-g</option> ªº¾A¥Î®É¾÷¦b©ó¡G·íµ{¦¡ÁÙ¦b¶}µo®É¨Ï¥Î´N¦n¡A
@@ -426,13 +406,12 @@
<listitem>
<para><option>-O</option> ·|²£¥Í³Ì¨Î¤Æªº°õ¦æÀÉ¡A
- ½s;¹·|¨Ï¥Î¤@¨Ç§Þ¥©¡A¨ÓÅýµ{¦¡¥i¥H¶]ªº¤ñ¥¼¸g³Ì¨Î¤Æªºµ{¦¡ÁÙ§Ö¡A
- §A¥i¥H¦b¤j¼g O «á±¥[¤W¼Æ¦r¨Ó«ü©ú§A·Qnªº³Ì¨Î¤Æ¼h¯Å¡C
- ¦ý¬O³Ì¨Î¤ÆÁÙ¬O·|¦³¤@¨Ç¿ù»~¡AÁ|¨Ò¨Ó»¡¦b·í¦b FreeBSD 2.10 release ¤¤¨Ï¥Î <command>cc</command>
- ¨Ã¥B«ü©w <option>-O2</option> ®É¡A¦b¬Y¨Ç±¡§Î¤U·|²£¥Í¿ù»~ªº°õ¦æÀÉ¡C</para>
+ ½s;¹·|¨Ï¥Î¤@¨Ç§Þ¥©¡A¨ÓÅýµ{¦¡¥i¥H¶]ªº¤ñ¥¼¸g³Ì¨Î¤Æªºµ{¦¡ÁÙ§Ö¡A
+ ¥i¥H¦b¤j¼g O «á±¥[¤W¼Æ¦r¨Ó«ü©ú·Qnªº³Ì¨Î¤Æ¼h¯Å¡C
+ ¦ý¬O³Ì¨Î¤ÆÁÙ¬O·|¦³¤@¨Ç¿ù»~¡AÁ|¨Ò¨Ó»¡¦b FreeBSD 2.10 release ¤¤¥Î <command>cc</command>
+ ¥B«ü©w <option>-O2</option> ®É¡A¦b¬Y¨Ç±¡§Î¤U·|²£¥Í¿ù»~ªº°õ¦æÀÉ¡C</para>
- <para>¥u¦³·ínÄÀ¥Xµo¦æª©¥»¡B©ÎªÌ¥[³tµ{¦¡®É¡A¤~»Ýn¨Ï¥Î³Ì¨Î¤Æ¿ï¶µ¡C
- </para>
+ <para>¥u¦³·ínÄÀ¥Xµo¦æª©¥»¡B©ÎªÌ¥[³tµ{¦¡®É¡A¤~»Ýn¨Ï¥Î³Ì¨Î¤Æ¿ï¶µ¡C</para>
<informalexample>
<screen>&prompt.user; <userinput>cc -O -o foobar foobar.c</userinput>
@@ -444,11 +423,9 @@
</varlistentry>
</variablelist>
- <para>
- ¥H¤U¤TӰѼƱN·|±j¢ <command>cc</command> ½T»{µ{¦¡½X¬O§_²Å¦X¤@¨Ç°ê»Ú¼Ð·Çªº³W½d¡A
+ <para>¥H¤U¤TӰѼƱN·|±j¢ <command>cc</command> ½T»{µ{¦¡½X¬O§_²Å¦X¤@¨Ç°ê»Ú¼Ð·Çªº³W½d¡A
¤]´N¬O³q±`»¡ªº <acronym>ANSI</acronym> ¼Ð·Ç¡A
- ¦Ó <acronym>ANSI</acronym> ÄY®æ¨ÓÁ¿ÄÝ <acronym>ISO</acronym> ¼Ð·Ç¡C
- </para>
+ ¦Ó <acronym>ANSI</acronym> ÄY®æ¨ÓÁ¿ÄÝ <acronym>ISO</acronym> ¼Ð·Ç¡C</para>
<variablelist>
<varlistentry>
@@ -501,15 +478,14 @@
<para>§i¶D gcc ¦b³sµ²(linking)µ{¦¡®É§A»Ýn¥Î¨ìªº¨ç¦¡®w¦WºÙ¡C</para>
<para>³Ì±`¨£ªº±¡ªp´N¬O¡A·í§A¦bµ{¦¡¤¤¨Ï¥Î¤F C ¼Æ¾Ç¨ç¦¡®w¡A
- ¸ò¨ä¥L§@·~¥¥x¤£¤@¼Ëªº¬O¡A³o¨Ç¼Æ¾Ç¨ç¦¡³£¤£¦b¼Ð·Ç¨ç¦¡®w(library)¤¤¡A
+ ¸ò¨ä¥L§@·~¥¥x¤£¤@¼Ëªº¬O¡A³o¨ç¥Ü¾Ç¨ç¦¡³£¤£¦b¼Ð·Ç¨ç¦¡®w(library)¤¤¡A
¦]¦¹½s;¹¨Ã¤£ª¾¹D³o¨ç¦¡®w¦WºÙ¡A§A¥²¶·§i¶D½s;¹n¥[¤W¥¦¤~¦æ¡C</para>
- <para>³o³W«h«Ü²³æ¡A¦pªG¦³Ó¨ç¦¡®w¥s°µ <filename>lib<replaceable>something</replaceable>/a</filename>¡A
+ <para>³W«h«Ü²³æ¡A¦pªG¦³Ó¨ç¦¡®w¥s°µ <filename>lib<replaceable>something</replaceable>.a</filename>¡A
´N¥²¶·¦b½sͮɥ[¤W°Ñ¼Æ <option>-l<replaceable>something</replaceable></option> ¤~¦æ¡C
Á|¨Ò¨Ó»¡¡A¼Æ¾Ç¨ç¦¡®w¥s°µ <filename>libm.a</filename>¡A
©Ò¥H§A¥²¶·µ¹ <command>cc</command> ªº°Ñ¼Æ´N¬O <option>-lm</option>¡C
- ¤@¯ë±¡ªp¤U¡A³q±`·|§â³o°Ñ¼Æ¥²¶·©ñ¦b«ü¥Oªº³Ì«á¡C
- </para>
+ ¤@¯ë±¡ªp¤U¡A³q±`·|§â³o°Ñ¼Æ¥²¶·©ñ¦b«ü¥Oªº³Ì«á¡C</para>
<informalexample>
<screen>&prompt.user; <userinput>cc -o foobar foobar.c -lm</userinput>
@@ -522,42 +498,34 @@
<option>-lstdc++</option>¡C
¦pªG§Aªº FreeBSD ¬O 2.2(§t)¥H«áª©¥»¡A
§A¥i¥H¥Î«ü¥O <command>c++</command> ¨Ó¨ú¥N <command>cc</command>¡C
- ¦b FreeBSD ¤W <command>c++</command> ¤]¥i¥H¥Î <command>g++</command> ¨ú¥N¡C
- </para>
+ ¦b FreeBSD ¤W <command>c++</command> ¤]¥i¥H¥Î <command>g++</command> ¨ú¥N¡C</para>
<informalexample>
- <screen>&prompt.user; <userinput>cc -o foobar foobar.cc -lg++</userinput> <lineannotation>For FreeBSD 2.1.6 and earlier</lineannotation>
-&prompt.user; <userinput>cc -o foobar foobar.cc -lstdc++</userinput> <lineannotation>For FreeBSD 2.2 and later</lineannotation>
+ <screen>&prompt.user; <userinput>cc -o foobar foobar.cc -lg++</userinput> <lineannotation>¾A¥Î FreeBSD 2.1.6 ©Î§ó¦´Áªºª©¥»</lineannotation>
+&prompt.user; <userinput>cc -o foobar foobar.cc -lstdc++</userinput> <lineannotation>¾A¥Î FreeBSD 2.2 ¤Î¤§«áªºª©¥»</lineannotation>
&prompt.user; <userinput>c++ -o foobar foobar.cc</userinput>
</screen>
</informalexample>
- <para>Each of these will both produce an executable
- <filename>foobar</filename> from the C++ source file
- <filename>foobar.cc</filename>. Note that, on &unix;
- systems, C++ source files traditionally end in
- <filename>.C</filename>, <filename>.cxx</filename> or
- <filename>.cc</filename>, rather than the
- &ms-dos; style
- <filename>.cpp</filename> (which was already used for
- something else). <command>gcc</command> used to rely on
- this to work out what kind of compiler to use on the
- source file; however, this restriction no longer applies,
- so you may now call your C++ files
- <filename>.cpp</filename> with impunity!</para>
+ <para>¤Wz«ü¥O³£·|±qì©lÀÉ <filename>foobar.cc</filename> ½sͲ£¥Í¦W¬° <filename>fooboar</filename> ªº°õ¦æÀÉ¡C
+ ³oÃän´£¿ôªº¬O¦b &unix; ¨t²Î¤¤ C++ µ{¦¡¶Ç²Î³£¥H <filename>.C</filename>¡B
+ <filename>.cxx</filename> ©ÎªÌ¬O <filename>.cc</filename> §@¬°°ÆÀɦW¡A
+ ¦Ó«D &ms-dos; ¨ººØ¥H <filename>.cpp</filename> §@¬°°ÆÀɦWªº©R¦W¤è¦¡(¤£¹L¤]¶V¨Ó¶V´¶¹M¤F)¡C
+ <command>gcc</command> ·|¨Ì°ÆÀɦW¨Ó¨M©w¥Îþ¤@ºØ½s;¹½sĶ¡A
+ µM¦Ó¡A²{¦b¤w¸g¤£¦A¨î°ÆÀɦW¤F¡A
+ ©Ò¥H¥i¥H¦Û¥Ñªº¨Ï¥Î <filename>.cpp</filename> §@¬° C++ µ{¦¡½Xªº°ÆÀɦW¡I</para>
</listitem>
</varlistentry>
</variablelist>
<sect2>
- <title>Common <command>cc</command> Queries and Problems</title>
+ <title>±`¨£ªº <command>cc</command> °ÝÃD</title>
<qandaset>
<qandaentry>
<question>
- <para>I am trying to write a program which uses the
- <function>sin()</function> function and I get an error
- like this. What does it mean?</para>
+ <para>§Ú¥Î <function>sin()</function> ¨ç¥Ü¼¶¼g§Úªºµ{¦¡¡A
+ ¦ý¬O¦³Ó¿ù»~°T®§(¦p¤U)¡A³o¥NªíµÛ¡H</para>
<informalexample>
<screen>/var/tmp/cc0143941.o: Undefined symbol `_sin' referenced from text segment
@@ -566,10 +534,8 @@
</question>
<answer>
- <para>When using mathematical functions like
- <function>sin()</function>, you have to tell
- <command>cc</command> to link in the math library, like
- so:</para>
+ <para>·í¨Ï¥Î <function>sin()</function> ³oÃþªº¼Æ¾Ç¨ç¥Ü®É¡A
+ §A¥²¶·§i¶D cc n©M¼Æ¾Ç¨ç¦¡®w§@³sµ²(linking)¡A´N¹³³o¼Ë¡G</para>
<informalexample>
<screen>&prompt.user; <userinput>cc -o foobar foobar.c -lm</userinput>
@@ -580,9 +546,7 @@
<qandaentry>
<question>
- <para>All right, I wrote this simple program to practice
- using <option>-lm</option>. All it does is raise 2.1 to
- the power of 6.</para>
+ <para>¦n§a¡A§Ú¸ÕµÛ¼g¨Ç²³æªºµ{¦¡¡A¨Ó½m²ß¨Ï¥Î -lm ¿ï¶µ(¸Óµ{¦¡·|¹Bºâ 2.1 ªº 6 ¦¸¤è)</para>
<informalexample>
<programlisting>#include <stdio.h>
@@ -597,15 +561,14 @@
</programlisting>
</informalexample>
- <para>and I compiled it as:</para>
+ <para>µM«á¶i¦æ½sĶ¡G</para>
<informalexample>
<screen>&prompt.user; <userinput>cc temp.c -lm</userinput>
</screen>
</informalexample>
- <para>like you said I should, but I get this when I run
- it:</para>
+ <para>½sĶ«á°õ¦æµ{¦¡¡A±o¨ì¤U±³oµ²ªG¡G</para>
<informalexample>
<screen>&prompt.user; <userinput>./a.out</userinput>
@@ -613,30 +576,24 @@
</screen>
</informalexample>
- <para>This is <emphasis>not</emphasis> the right answer!
- What is going on?</para>
+ <para>«Ü©úÅ㪺¡Aµ{¦¡µ²ªG<emphasis>¤£¬O</emphasis>¥¿½Tµª®×¡A¨ì©³¬OþÃä¥X¿ù¡H</para>
</question>
<answer>
- <para>When the compiler sees you call a function, it
- checks if it has already seen a prototype for it. If it
- has not, it assumes the function returns an
- <type>int</type>, which is definitely not what you want
- here.</para>
+ <para>·í½s;¹µo²{§A©I¥s¤@Ó¨ç¥Ü®É¡A¥¦·|½T»{¸Ó¨ç¥Üªº¦^¶ÇÈÃþ«¬(prototype)¡A
+ ¦pªG¨S¦³¯S§O«ü©ú¡A«h¹w³]ªº¦^¶ÇÈÃþ«¬¬° <type>int(¾ã¼Æ)</type>¡C
+ «Ü©úÅ㪺¡A§Aªºµ{¦¡©Ò»Ýnªº¨Ã¤£¬O¦^¶ÇÈÃþ§O¬° <type>int</type>¡C</para>
</answer>
</qandaentry>
<qandaentry>
<question>
- <para>So how do I fix this?</para>
+ <para>¨º¦p¦ó¤~¥i¥H×¥¿è©Ò»¡ªº°ÝÃD¡H</para>
</question>
<answer>
- <para>The prototypes for the mathematical functions are in
- <filename>math.h</filename>. If you include this file,
- the compiler will be able to find the prototype and it
- will stop doing strange things to your
- calculation!</para>
+ <para>¼Æ¾Ç¨ç¥Üªº¦^¶ÇÈÃþ«¬(prototype)·|©w¸q¦b <filename>math.h</filename>¡A
+ ¦pªG§A¦³ include ³oÀÉ¡A½s;¹´N·|ª¾¹D¸Ó¨ç¥Üªº¦^¶ÇÈÃþ«¬¡A¦p¦¹¤@¨Ó¸Ó¹Bºâ´N·|±o¨ì¥¿½Tªºµ²ªG¡I</para>
<informalexample>
<programlisting>#include <math.h>
@@ -647,8 +604,7 @@
</programlisting>
</informalexample>
- <para>After recompiling it as you did before, run
- it:</para>
+ <para>¥[¤F¤Wz¤º®e¤§«á¡A¦A«·s½sĶ¡A³Ì«á°õ¦æ¡G</para>
<informalexample>
<screen>&prompt.user; <userinput>./a.out</userinput>
@@ -656,27 +612,21 @@
</screen>
</informalexample>
- <para>If you are using any of the mathematical functions,
- <emphasis>always</emphasis> include
- <filename>math.h</filename> and remember to link in the
- math library.</para>
+ <para>¦pªG¦³¥Î¨ì¼Æ¾Ç¨ç¦¡¡A<emphasis>½Ð½T©w</emphasis>n¦³ include <filename>math.h</filename> ³oÀÉ¡A
+ ¦Ó¥B°O±on©M¼Æ¾Ç¨ç¦¡®w§@³sµ²¡C</para>
</answer>
</qandaentry>
<qandaentry>
<question>
- <para>I compiled a file called
- <filename>foobar.c</filename> and I cannot find an
- executable called <filename>foobar</filename>. Where has
- it gone?</para>
+ <para>¤w¸g½sͦn <filename>foobar.c</filename>¡A
+ ¦ý¬O½sĶ«á§ä¤£¨ì <filename>foobar</filename> °õ¦æÀÉ¡C ¸Ó¥hþÃä§ä©O¡H</para>
</question>
<answer>
- <para>Remember, <command>cc</command> will call the
- executable <filename>a.out</filename> unless you tell it
- differently. Use the
- <option>-o <replaceable>filename</replaceable></option>
- option:</para>
+ <para>°O±o¡A°£«D¦³«ü©w½s͵²ªGªº°õ¦æÀÉÀɦW¡A§_«h¹w³]ªº°õ¦æÀÉÀɦW¬O a.out¡C
+ ¥Î <option>-o <replaceable>filename</replaceable></option> °Ñ¼Æ¡A
+ ´N¥i¥H¹F¨ì©Ò·Qnªºµ²ªG¡A¤ñ¦p¡G</para>
<informalexample>
<screen>&prompt.user; <userinput>cc -o foobar foobar.c</userinput>
@@ -687,108 +637,88 @@
<qandaentry>
<question>
- <para>OK, I have an executable called
- <filename>foobar</filename>, I can see it when I run
- <command>ls</command>, but when I type in
- <command>foobar</command> at the command prompt it tells
- me there is no such file. Why can it not find
- it?</para>
+ <para>¦n¡A¦³Ó½sͦnªºµ{¦¡¥s°µ <filename>foobar</filename>¡A
+ ¥Î <command>ls</command> «ü¥O®É¥i¥H¬Ý¨ì¡A
+ ¦ý°õ¦æ®É¡A°T®§«o»¡«o¨S¦³³oÀɮסC¬°¤°»ò¡H</para>
</question>
<answer>
- <para>Unlike &ms-dos;, &unix; does not
- look in the current directory when it is trying to find
- out which executable you want it to run, unless you tell
- it to. Either type <command>./foobar</command>, which
- means <quote>run the file called
- <filename>foobar</filename> in the current
- directory</quote>, or change your <envar>PATH</envar>
- environment
- variable so that it looks something like</para>
+ <para>»P &ms-dos; ¤£¦Pªº¬O¡A°£«D¦³«ü©w°õ¦æÀɪº¸ô®|¡A
+ §_«h &unix; ¨t²Î¨Ã¤£·|¦b¥Ø«eªº¥Ø¿ý¤U´M§ä§A·Q°õ¦æªºÀɮסC
+ ¦b«ü¥O¦C¤U¥´ <command>./foobar</command> ¥Nªí
+ <quote>°õ¦æ¦b³oӥؿý©³¤U¦W¬° <filename>foobar</filename> ªºµ{¦¡</quote>¡A
+ ©ÎªÌ¤]¥i¥H§ó§ï <envar>PATH</envar> Àô¹ÒÅܼƳ]©w¦p¤U¡A¥H¹F¦¨Ãþ¦ü®ÄªG¡G</para>
<informalexample>
<screen>bin:/usr/bin:/usr/local/bin:.
</screen>
</informalexample>
- <para>The dot at the end means <quote>look in the current
- directory if it is not in any of the
- others</quote>.</para>
+ <para>¤W¤@¦æ³Ì«áªº "." ¥Nªí<quote>¦pªG¦b«e±¼gªº¨ä¥L¥Ø¿ý§ä¤£¨ì¡A´N§ä¥Ø«eªº¥Ø¿ý</quote>¡C</para>
</answer>
</qandaentry>
<qandaentry>
<question>
- <para>I called my executable <filename>test</filename>,
- but nothing happens when I run it. What is going
- on?</para>
+ <para>¸ÕµÛ°õ¦æ <filename>test</filename> °õ¦æÀÉ¡A
+ ¦ý¬O«o¨S¦³¥ô¦ó¨Æµo¥Í¡A¨ì©³¬Oþ¸Ì¥X¿ù¤F¡H</para>
</question>
<answer>
- <para>Most &unix; systems have a program called
- <command>test</command> in <filename>/usr/bin</filename>
- and the shell is picking that one up before it gets to
- checking the current directory. Either type:</para>
+ <para>¤j¦h¼Æªº &unix; ¨t²Î³£·|¦b¸ô®| <filename>/usr/bin</filename> Â\©ñ°õ¦æÀÉ¡C
+ °£«D¦³«ü©w¨Ï¥Î¦b¥Ø«e¥Ø¿ý¤ºªº <filename>test</filename>¡A§_«h shell ·|Àu¥ý¿ï¾Ü¦ì¦b
+ <filename>/usr/bin</filename> ªº <filename>test</filename>¡A
+ n«ü©wÀɦWªº¸Ü¡A§@ªkÃþ¦ü¡G</para>
<informalexample>
<screen>&prompt.user; <userinput>./test</userinput>
</screen>
</informalexample>
- <para>or choose a better name for your program!</para>
+ <para>¬°¤FÁ×§K¤Wz§xÂZ¡A½Ð¬°§Aªºµ{¦¡¨ú§ó¦nªº¦WºÙ§a¡I</para>
</answer>
</qandaentry>
<qandaentry>
<question>
- <para>I compiled my program and it seemed to run all right
- at first, then there was an error and it said something
- about <errorname>core dumped</errorname>. What does that
- mean?</para>
+ <para>·í°õ¦æ§Ú¼gªºµ{¦¡®Éè¶}©l¥¿±`¡A
+ ±µ¤U¨Ó«o¥X²{ <errorname>core dumped</errorname> ¿ù»~°T®§¡C³o¿ù»~°T®§¨ì©³¥Nªí¤°»ò¡H</para>
</question>
<answer>
- <para>The name <firstterm>core dump</firstterm> dates back
- to the very early days of &unix;, when the machines used
- core memory for storing data. Basically, if the program
- failed under certain conditions, the system would write
- the contents of core memory to disk in a file called
- <filename>core</filename>, which the programmer could
- then pore over to find out what went wrong.</para>
+ <para>Ãö©ó <firstterm>core dumped</firstterm> ³oÓ¦WºÙªº¥Ñ¨Ó¡A
+ ¥i¥H°l·¹¨ì¦´Áªº &unix; ¨t²Î¶}©l¨Ï¥Î core memory ¹ï¸ê®Æ±Æ§Ç®É¡C
+ °ò¥»¤W·íµ{¦¡¦b«Ü¦h±¡ªp¤Uµo¥Í¿ù»~«á¡A
+ §@·~¨t²Î·|§â core memory ¤¤ªº¸ê°T¼g¤J <filename>core</filename> ³oÀɮפ¤¡A
+ ¥H«KÅý programmer ª¾¹Dµ{¦¡¨ì©³¬O¬°¦ó¥X¿ù¡C</para>
</answer>
</qandaentry>
<qandaentry>
<question>
- <para>Fascinating stuff, but what I am supposed to do
- now?</para>
+ <para>¯u¬O¤Ó¯«©_¤F¡Iµ{¦¡©~µMµo¥Í <errorname>core dumped</errorname> ¤F¡A¸Ó«ç»ò¿ì¡H</para>
</question>
<answer>
- <para>Use <command>gdb</command> to analyze the core (see
- <xref linkend="debugging">).</para>
+ <para>½Ð¥Î <command>gdb</command> ¨Ó¤ÀªR core µ²ªG(¸Ô±¡½Ð°Ñ¦Ò <xref linkend="debugging">)¡C</para>
</answer>
</qandaentry>
<qandaentry>
<question>
- <para>When my program dumped core, it said something about
- a <errorname>segmentation fault</errorname>. What is
- that?</para>
+ <para>·íµ{¦¡¤w¸g§â core memory ¸ê®Æ dump ¥X¨Ó«á¡A
+ ¦P®É¤]¥X²{¥t¤@Ó¿ù»~ <errorname>segmentation fault</errorname> ³o·N«ä¬O¡H</para>
</question>
<answer>
- <para>This basically means that your program tried to
- perform some sort of illegal operation on memory; &unix;
- is designed to protect the operating system and other
- programs from rogue programs.</para>
+ <para>°ò¥»¤W¡A³oÓ¿ù»~ªí¥Ü§Aªºµ{¦¡¦b°O¾ÐÅ餤¸ÕµÛ°µ¤@ÓÄY«ªº«Dªk¹B§@(illegal operation)¡A
+ &unix; ´N¬O³Q³]p¨Ó«OÅ@¾ãÓ§@·~¨t²Î§K©ó³Q´c½èªºµ{¦¡¯}Ãa¡A©Ò¥H¤~·|§i¶D§A³oÓ°T®§¡C</para>
- <para>Common causes for this are:</para>
+ <para>³Ì±`³y¦¨<quote>segmentation fault</quote>ªºì¦]³q±`¬°¡G</para>
<itemizedlist>
<listitem>
- <para>Trying to write to a <symbol>NULL</symbol>
- pointer, eg</para>
+ <para>¸ÕµÛ¹ï¤@Ó <symbol>NULL</symbol> ªº«ü¼Ð(pointer)§@¼g¤Jªº°Ê§@¡A¦p</para>
<programlisting>char *foo = NULL;
strcpy(foo, "bang!");
@@ -796,25 +726,21 @@
</listitem>
<listitem>
- <para>Using a pointer that has not been initialized,
- eg</para>
+ <para>¨Ï¥Î¤@Ó©|¥¼ªì©l¤Æ(initialized)ªº«ü¼Ð¡A¦p¡G</para>
<programlisting>char *foo;
strcpy(foo, "bang!");
</programlisting>
- <para>The pointer will have some random value that,
- with luck, will point into an area of memory that
- is not available to your program and the kernel will
- kill your program before it can do any damage. If
- you are unlucky, it will point somewhere inside your
- own program and corrupt one of your data structures,
- causing the program to fail mysteriously.</para>
+ <para>©|¥¼ªì©l¤Æªº«ü¼Ðªºªì©lȱN·|¬OÀH¾÷ªº¡A¦pªG§A°÷©¯¹Bªº¸Ü¡A
+ ³oÓ«ü¼Ðªºªì©lÈ·|«ü¦V kernel ¤w¸g¥Î¨ìªº°O¾ÐÅé¦ì¸m¡A
+ kernel ·|µ²§ô±¼³oÓµ{¦¡¥H½T«O¨t²Î¹B§@¥¿±`¡C¦pªG§A¤£°÷©¯¹B¡A
+ ªì©l«ü¨ìªº°O¾ÐÅé¦ì¸m¬O§Aµ{¦¡¥²¶·n¥Î¨ìªº¸ê®Æµ²ºc(data structures)ªº¦ì¸m¡A
+ ·í³oÓ±¡§Îµo¥Í®Éµ{¦¡±N·|·íªº¤£ª¾¨ä©Ò¥HµM¡C</para>
</listitem>
<listitem>
- <para>Trying to access past the end of an array,
- eg</para>
+ <para>¸ÕµÛ¼g¤J¶W¹L°}¦C(array)¤¸¯ÀӼơA¦p¡G</para>
<programlisting>int bar[20];
bar[27] = 6;
@@ -822,8 +748,7 @@
</listitem>
<listitem>
- <para>Trying to store something in read-only memory,
- eg</para>
+ <para>¸ÕµÛŪ¼g¦b°ßŪ°O¾ÐÅé(read-only memory)¤¤ªº¸ê®Æ¡A¦p¡G</para>
<programlisting>char *foo = "My string";
strcpy(foo, "bang!");
==== //depot/projects/dtrace/doc/zh_TW.Big5/books/fdp-primer/sgml-primer/chapter.sgml#3 (text+ko) ====
@@ -27,23 +27,21 @@
ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
- $FreeBSD: doc/zh_TW.Big5/books/fdp-primer/sgml-primer/chapter.sgml,v 1.3 2006/07/19 15:21:42 vanilla Exp $
+ $FreeBSD: doc/zh_TW.Big5/books/fdp-primer/sgml-primer/chapter.sgml,v 1.4 2006/08/05 05:10:18 vanilla Exp $
Original revision: 1.45
-->
<chapter id="sgml-primer">
<title>SGML Primer</title>
- <para>The majority of FDP documentation is written in applications of
- SGML. This chapter explains exactly what that means, how to read
- and understand the source to the documentation, and the sort of SGML
- tricks you will see used in the documentation.</para>
+ <para>FDP ¤å¥ó´X¥G³£¬O¥H SGML ¬ÛÃöµ{¦¡¼gªº¡C¥»³¹·|¤¶²Ð SGML ¬O¤°»ò¡B
+ ¦p¦ó¾\Ū¡B²z¸Ñ³o¨Ç SGML ì½Z¡A¥H¤Î¥»¤å¥ó¤¤©Ò¹B¥Îªº¦U¶µ SGML §Þ¥©¡C</para>
- <para>Portions of this section were inspired by Mark Galassi's <ulink
- url="http://nis-www.lanl.gov/~rosalia/mydocs/docbook-intro/docbook-intro.html">Get Going With DocBook</ulink>.</para>
+ <para>¥»¸`³¡¤ÀÆF·P±Òµo¨Ó¦Û Mark Galassi ªº³o½g <ulink
+ url="http://nis-www.lanl.gov/~rosalia/mydocs/docbook-intro/docbook-intro.html">Get Going With DocBook</ulink>¡C</para>
<sect1 id="sgml-primer-overview">
- <title>Overview</title>
+ <title>²¤¶</title>
<para>Way back when, electronic text was simple to deal with. Admittedly,
you had to know which character set your document was written in (ASCII,
==== //depot/projects/dtrace/doc/zh_TW.Big5/books/handbook/book.sgml#3 (text+ko) ====
@@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
- $FreeBSD: doc/zh_TW.Big5/books/handbook/book.sgml,v 1.4 2006/06/17 10:22:45 vanilla Exp $
+ $FreeBSD: doc/zh_TW.Big5/books/handbook/book.sgml,v 1.5 2006/08/05 04:50:38 vanilla Exp $
Original revision: 1.163
-->
@@ -126,14 +126,14 @@
<emphasis>FreeBSD &rel.current;-RELEASE</emphasis> ªº¦w¸Ë©M¤é±`¨Ï¥Î¡C
³o¥÷¨Ï¥Î¤â¥U¬O«Ü¦h¤Hªº¶°Åé³Ð§@¡A¦Ó¥B¤´µM¡y«ùÄò¤£Â_¡zªº¶i¦æ¤¤¡C
³\¦h³¹¸`¤´¥¼§¹¦¨¡A¤w§¹¦¨ªº³¡¥÷¤]¦³¨Ç»Ýn§ó·s¡C
- ¦pªG±z¹ï¨ó§U¥»pµeªº¶i¦æ¦³¿³½ìªº¸Ü¡A½Ð±H e-mail ¨ì &a.doc;¡C
+ ¦pªG±z¦³¿³½ì¨ó§U¥»pµeªº¸Ü¡A½Ð±H e-mail ¨ì &a.doc;¡C
¦b <ulink url="http://www.FreeBSD.org/">FreeBSD ºô¯¸</ulink>
¥i¥H§ä¨ì³o¥÷¤å¥óªº³Ì·sª©¥»(ª©¤å¥ó¥i±q <ulink
url="http://docs.FreeBSD.org/doc/"></ulink> ¨ú±o)¡A¤]¥i¥H±q <ulink
url="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">FreeBSD FTP ¦øªA¾¹</ulink>
©Î¬O²³¦h <link linkend="mirrors-ftp">mirror ¯¸»O</link>
- ¤U¸ü¤£¦P®æ¦¡¤Î¤£¦PÀ£ÁY¿ï¶µªº¸ê®Æ¡C
- ¦pªG¤ñ¸û°¾¦n¾Ö¦³¹êÅé®Ñ±¸ê®Æ¡A¨º¥i¥H¦b
+ ¤U¸ü¤£¦P®æ¦¡ªº¸ê®Æ¡C
+ ¦pªG¤ñ¸û°¾¦n¹êÅé®Ñ±¸ê®Æ¡A¨º¥i¥H¦b
<ulink url="http://www.freebsdmall.com/">FreeBSD Mall</ulink> ÁʶR¡C
¦¹¥~¡A¤]¥i¥H¦b <ulink url="&url.base;/search/index.html">¨Ï¥Î¤â¥U</ulink>
¤¤·j´M¸ê®Æ¡C
==== //depot/projects/dtrace/doc/zh_TW.Big5/books/handbook/linuxemu/chapter.sgml#2 (text+ko) ====
@@ -1,8 +1,8 @@
<!--
The FreeBSD Documentation Project
- $FreeBSD: doc/zh_TW.Big5/books/handbook/linuxemu/chapter.sgml,v 1.3 2006/01/31 01:31:03 vanilla Exp $
- Original revision: 1.127
+ $FreeBSD: doc/zh_TW.Big5/books/handbook/linuxemu/chapter.sgml,v 1.4 2006/08/05 04:52:05 vanilla Exp $
+ Original revision: 1.132
-->
<chapter id="linuxemu">
@@ -28,101 +28,85 @@
</authorgroup>
</chapterinfo>
- <title>Linux Binary Compatibility</title>
+ <title>»P Linux Binary ªº¬Û®e¤è±</title>
<sect1 id="linuxemu-synopsis">
- <title>Synopsis</title>
+ <title>·§z</title>
<indexterm><primary>Linux binary compatibility</primary></indexterm>
<indexterm>
<primary>binary compatibility</primary>
<secondary>Linux</secondary>
</indexterm>
- <para>FreeBSD provides binary compatibility with several other
- &unix; like operating systems, including Linux. At this point,
- you may be asking yourself why exactly, does
- FreeBSD need to be able to run Linux binaries? The answer to that
- question is quite simple. Many companies and developers develop
- only for Linux, since it is the latest <quote>hot thing</quote> in
- the computing world. That leaves the rest of us FreeBSD users
- bugging these same companies and developers to put out native
- FreeBSD versions of their applications. The problem is, that most
- of these companies do not really realize how many people would use
- their product if there were FreeBSD versions too, and most continue
- to only develop for Linux. So what is a FreeBSD user to do? This
- is where the Linux binary compatibility of FreeBSD comes into
- play.</para>
+ <para>FreeBSD ¦³´£¨Ñ¨ä¥L´XºØ &unix; like §@·~¨t²Îªº binary ¬Û®e©Ê¡A¨ä¤¤¥]¬A¤F Linux¡C
+ §A¥i¯à·|¯Ç´e¡G¬°¤°»ò FreeBSD »Ýn¯à°÷°õ¦æ Linux ±M¥Î°õ¦æÀÉ(binary)©O¡Hµª®×«Ü²³æ¡A
+ ³\¦h¤½¥q¡B¶}µoªÌ¥u·| Linux ¶}µoµ{¦¡¡A¦]¬°³o¬O¥Ø«e¸ê°T¬É <quote>³Ì¼öªù</quote> ªºª±·N¡C
+ ³o¹G±o³\¦h FreeBSD ¨Ï¥ÎªÌ¤£±o¤£¥hÄU»¡³o¨Ç¤H¬O§_´£¨Ñ¥iª½±µ¦b FreeBSD ¤W°õ¦æªºª©¥»¡C
+ ¦ý°ÝÃD¬O¡A¤j¦h¼Æ¤½¥q¨Ã¤£ÁA¸Ñ·|¦³¦h¤Ö¤H·|¥Î FreeBSD ª©¡A¦]¦¹¥L̤´¥u¶}µo Linux ª©¡C
+ ¨º»ò FreeBSD ¨Ï¥ÎªÌ¸Ó«ç»ò¿ì©O¡Hµª®×´N¬O¥Î FreeBSD ©Ò´£¨Ñªº Linux binary ¬Û®e¡C</para>
- <para>In a nutshell, the compatibility allows FreeBSD users to run
- about 90% of all Linux applications without modification. This
- includes applications such as <application>&staroffice;</application>,
- the Linux version of <application>&netscape;</application>,
- <application>&adobe; &acrobat;</application>,
- <application><trademark class="registered">RealPlayer</trademark></application>,
- <application><trademark>VMware</trademark></application>,
- <application>&oracle;</application>,
- <application><trademark class="registered">WordPerfect</trademark></application>, <application>Doom</application>,
- <application>Quake</application>, and more. It is also reported
- that in some situations, Linux binaries perform better on FreeBSD
- than they do under Linux.</para>
+ <para>²³æ¨ÓÁ¿¡A³oºØ¬Û®e©Ê¥iÅý FreeBSD ¨Ï¥ÎªÌª½±µ°õ¦æ¬ù 90% ªº Linux µ{¦¡¡A¦Ó¤£¥²°µ¥ô¦ó×§ï¡C
+ ³o¨Ç¥]¬A¤F¡G <application>&staroffice;</application>¡B
+ <application>&netscape;</application> ªº Linux ª©¡B
+ <application>&adobe; &acrobat;</application>¡B
+ <application><trademark class="registered">RealPlayer</trademark></application>¡B
+ <application><trademark>VMware</trademark></application>¡B
+ <application>&oracle;</application>¡B
+ <application><trademark class="registered">WordPerfect</trademark></application>¡B<application>Doom</application>¡B
+ <application>Quake</application> µ¥µ¥¡C¦¹¥~¡A¤]¦³¤H¦^³ø»¡¦b¬Y¨Ç±¡ªp¤U¡A
+ ³o¨Ç¦b FreeBSD ¤W°õ¦æªº Linux µ{¦¡¡A¬Æ¦Ü¤ñ쥻¦b Linux °õ¦æ±o§ó¦n¡C</para>
- <para>There are, however, some Linux-specific operating system
- features that are not supported under FreeBSD. Linux binaries will
- not work on FreeBSD if they overly use &i386; specific
- calls, such as enabling virtual 8086 mode.</para>
+ <para>µM¦Ó©O¡AÁÙ¬O¦³¨Ç¥u Linux ¯S©wªº§@·~¨t²Î¥\¯à¡A¦b FreeBSD ¤W¨Ã¥¼¤ä´©¡C
+ ¦pªG Linux µ{¦¡¹L©óÀݥΥu¦³ &i386; ¬[ºc¤W¤~¯à¥Îªº¥\¯à¡A¤ñ¦p¡GµêÀÀ 8086 ¼Ò¦¡¡A
+ «h¥i¯àµLªk¦b FreeBSD ¹B§@¥¿±`¡C</para>
- <para>After reading this chapter, you will know:</para>
+ <para>Ū§¹³o³¹¡A±z±N¤F¸Ñ¡G</para>
<itemizedlist>
<listitem>
- <para>How to enable Linux binary compatibility on your system.</para>
+ <para>¦p¦ó±Ò¥Î Linux ¬Û®e¼Ò¦¡¡C</para>
</listitem>
<listitem>
- <para>How to install additional Linux shared
- libraries.</para>
+ <para>¦p¦ó¦w¸ËÃB¥~ªº Linux share libraries¡C</para>
</listitem>
<listitem>
- <para>How to install Linux applications on your FreeBSD system.</para>
+ <para>¦p¦ó¦b FreeBSD ¤W¦w¸Ë Linux µ{¦¡¡C</para>
</listitem>
<listitem>
- <para>The implementation details of Linux compatibility in FreeBSD.</para>
+ <para>FreeBSD ¤Wªº Linux ¬Û®e¼Ò¦¡ªº¹ê§@²Ó¸`¡C</para>
</listitem>
</itemizedlist>
- <para>Before reading this chapter, you should:</para>
+ <para>¦b¾\Ū³o³¹¤§«e¡A±zÀ³·í¤F¸Ñ¡G</para>
<itemizedlist>
<listitem>
- <para>Know how to install additional third-party
- software (<xref linkend="ports">).</para>
+ <para>ª¾¹D¦p¦ó³z¹L port ¾÷¨î¨Ó¦w¸Ë³nÅé(<xref linkend="ports">)¡C</para>
</listitem>
</itemizedlist>
</sect1>
<sect1 id="linuxemu-lbc-install">
- <title>Installation</title>
+ <title>¦w¸Ë</title>
<indexterm><primary>KLD (kernel loadable object)</primary></indexterm>
- <para>Linux binary compatibility is not turned on by default. The
- easiest way to enable this functionality is to load the
+ <para>¹w³]¨Ã¤£·|¥´¶} Linux ¬Û®e¼Ò¦¡¡A³Ì²³æªº±Ò¥Î¤è¦¡¡A´N¬O¸ü¤J
<literal>linux</literal> KLD object (<quote>Kernel LoaDable
- object</quote>). You can load this module by typing the
- following as <username>root</username>:</para>
+ object</quote>)¡C ¸ü¤J¤è¦¡¡A½Ð¤Á¬° <username>root</username>
+ Åv¡AµM«á¥´¤U¦C«ü¥O¡G</para>
<screen>&prompt.root; <userinput>kldload linux</userinput></screen>
- <para>If you would like Linux compatibility to always be enabled,
- then you should add the following line to
- <filename>/etc/rc.conf</filename>:</para>
+ <para>Yn¨C¦¸¶}¾÷³£±Ò¥Îªº¸Ü¡A½Ð§â¤U¦C¤º®e¥[¨ì
+ <filename>/etc/rc.conf</filename> ÀÉ¡G</para>
<programlisting>linux_enable="YES"</programlisting>
- <para>The &man.kldstat.8; command can be used to verify that the
- KLD is loaded:</para>
+ <para>¥t¥~¥i¥H¥Î &man.kldstat.8; «ü¥O¡A¨Ó½T»{¦³þ¨Ç KLD ¦³¸ü¤J¡G</para>
<screen>&prompt.user; <userinput>kldstat</userinput>
Id Refs Address Size Name
@@ -130,7 +114,7 @@
7 1 0xc24db000 d000 linux.ko</screen>
<indexterm>
<primary>kernel options</primary>
- <secondary>LINUX</secondary>
+ <secondary>COMPAT_LINUX</secondary>
</indexterm>
<para>If for some reason you do not want to or cannot load the KLD,
@@ -160,7 +144,7 @@
from the <ulink type="html" url="file://localhost/usr/ports/">Ports Collection</ulink>.
Simply do the following:</para>
- <screen>&prompt.root; <userinput>cd /usr/ports/emulators/linux_base</userinput>
+ <screen>&prompt.root; <userinput>cd /usr/ports/emulators/linux_base-fc4</userinput>
&prompt.root; <userinput>make install distclean</userinput></screen>
<para>You should now have working Linux binary compatibility.
@@ -1563,8 +1547,7 @@
<title>Installation of FreeBSD</title>
<para>First you have to install FreeBSD. There are several ways to do
- this (FreeBSD 4.3 was installed via FTP, FreeBSD 4.5 directly from
- the RELEASE CD) for more information read the <xref
+ this, for more information read the <xref
linkend="install-diff-media">.</para>
<sect3 id="disk-layout">
@@ -2066,7 +2049,7 @@
and <application>&oracle;</application>, therefore choose a larger
number of shared memory pages.</para>
- <note><para>With the default installation of FreeBSD 4.5 on &i386;,
+ <note><para>With the default installation of FreeBSD on &i386;,
leave <literal>MAXDSIZ</literal> and <literal>DFLDSIZ</literal> at 1 GB maximum. Otherwise, strange
errors like <errorname>ORA-27102: out of memory</errorname> and
<errorname>Linux Error: 12: Cannot allocate memory</errorname>
@@ -3037,7 +3020,7 @@
<sect3 id="ora-00001">
>>> TRUNCATED FOR MAIL (1000 lines) <<<
More information about the p4-projects
mailing list