.\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#) mkstr. 1 8.1 (Berkeley) 6/6/93 .\" %FreeBSD: src/usr.bin/mkstr/mkstr. 1, v 1.7. 2.3 2002/07/15 07:10:07 keramida Exp % .\" $FreeBSD: doc/ja_JP.eucJP/man/man1/mkstr. 1, v 1.8 2002/08/11 19:49:09 horikawa Exp $ .\" .Dd June 6, 1993 .Dt MKSTR 1 .Os .Sh ¸íĪ .Nm mkstr .Nd C ¾ð¾î ¿ø½Ã ÆÄÀϷκÎÅÍ ¿¡·¯ ¸Þ¼¼Áö ÆÄÀÏÀ» ÀÛ¼ºÇÑ´Ù .Sh ¼­½Ä .Nm .Op Fl .Ar messagefile .Ar prefix Ar .Sh ÇØ¼³ .Nm À¯Æ¿¸®Æ¼´Â, C ¾ð¾î ¿ø½Ã ÆÄÀϷκÎÅÍ ¿¡·¯ ¸Þ¼¼Áö¸¦ ÃßÃâÇØ, À̰ÍÀ» °Ý³³ÇÏ´Â ÆÄÀÏÀ» ÀÛ¼ºÇÕ´Ï´Ù. ¶Ç ÀÛ¼ºµÇ°í ¿¡·¯ ¸Þ¼¼Áö ÆÄÀÏÀ» »ç¿ëÇϵµ·Ï(µíÀÌ), ±× ¿ø½Ã ÆÄÀÏÀ» ¼öÁ¤ÇØ . mkstr ´Â °Å´ëÇÑ ÇÁ·Î±×·¥ÀÇ »çÀÌÁ °¨¼Ò½ÃÄÑ, ½º¿ÒÀ» ÁÙÀÌ´Â °Í (À»)¸¦ ¸ñÀûÀ¸·Î Çϰí ÀÖ½À´Ï´Ù ( .Sx ¹ö±× ÀÇ Ç×À» ÂüÁ¶) . .Pp .Nm À¯Æ¿¸®Æ¼´Â, ¸í·ÉÇàÀ¸·Î ÁöÁ¤µÈ ÆÄÀÏÀ» ó¸®ÇØ, ¼öÁ¤ÇÑ ÀÔ·Â ÆÄÀÏÀ», ÁöÁ¤µÈ ÆÄÀÏ¸í¿¡, ÁöÁ¤µÈ ÇÁ·¹ÇȽº¸¦ ºÙÀÎ À̸§ÀÇ ÆÄÀÏ ±×¸®°í Ãâ·ÂÇÕ´Ï´Ù. ÀÌÇÏÀÇ »ç¿ë¿¹´Â ÀüÇüÀûÀÎ °ÍÀÔ´Ï´Ù. .Bd -literal -offset indent mkstr pistrings xx *. c .Ed .Pp .Nm (Àº)´Â, Ä¿·±Æ® µð·ºÅ丮¿¡ ÀÖ´Â ¸ðµç C ¾ð¾î ¼Ò½º·ÎºÎÅÍ ¸ð¾Ò´Ù ¿¡·¯ ¸Þ¼¼Áö¸¦, ÆÄÀÏ .Ar pistrings ¿¡ Ãâ·ÂÇØ, ¼öÁ¤µÈ ¿ø½Ã ÆÄÀÏÀ», ÆÄÀϸíÀÇ ¼±µÎ¿¡ .Ar \&xx (À»)¸¦ ºÙÀÎ ÆÄÀÏ¿¡ Ãâ·ÂÇÕ´Ï´Ù. .Pp ¿É¼Ç .Bl -tag -width indent .It Fl ÁöÁ¤µÈ ¿¡·¯ ¸Þ¼¼Áö ÆÄÀÏÀÇ ¸¶Áö¸·À¸·Î, ¿¡·¯ ¸Þ¼¼Áö°¡ ³õ¿©Áý´Ï´Ù. À̰ÍÀº, .Nm ±×¸®°í ó¸®µÈ °Å´ëÇÑ ÇÁ·Î±×·¥ÀÇ ÀϺθ¦ ÀçÄÄÆÄÀÏ Çϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù. .El .Pp .Nm À¯Æ¿¸®Æ¼´Â, ¿ø½Ã ÆÄÀÏÁßÀÇ .Li \&`error("' ±×·¸´Ù°í Çϴ ij¸¯ÅÍ ¶óÀÎÀ» ±âÃÊ·Î ¿¡·¯ ¸Þ¼¼Áö¸¦ °Ë»öÇÕ´Ï´Ù. ÀÌ Ä³¸¯ÅÍ ¶óÀÎÀÌ ÃâÇöÇϸé(ÀÚ), .Sq \&"\& (À¸)·ÎºÎÅÍ °³½ÃµÇ´Â ij¸¯ÅÍ ¶óÀÎ ¹× ±× ÈÄ¿¡ ´­ ij¸¯ÅÍ¿Í °³Çà ij¸¯Å͸¦ ¸Þ¼¼Áö ÆÄÀÏ¿¡ Ãâ·ÂÇÕ´Ï´Ù; º¯°æÀüÀÇ ¼Ò½º¿¡ ´ëÇØ ij¸¯ÅÍ ¶óÀÎÀÎ ºÎºÐÀº, ¸Þ¼¼Áö ÆÄÀÏÀÇ ¿ÀÇÁ¼Â(offset)·Î ¿Å°ÜÁö°í .Xr lseek 2 ¿¡ ÀÇÇØ ´ëÀÀÇÏ´Â ¸Þ¼¼Áö¸¦ ²¨³¾ ¼ö°¡ ÀÖ½À´Ï´Ù. ½ÇÁ¦·Î ¸Þ¼¼Áö¸¦ ²¨³»´Â °æ¿ì¿¡´Â, ÀÌÇÏ¿Í °°Àº Äڵ带 »ç¿ëÇÕ´Ï´Ù. .Bd -literal -offset indent char efilname = "/usr/lib/pi_strings"; int efil = -1; error(a1, a2, a3, a4) \&{ char buf[256]; if (efil < 0) { efil = open(efilname, 0); if (efil < 0) err(1, "%s", efilname); } if (lseek(efil, (off_t) a1, SEEK_SET) < 0 || read(efil, buf, 256) <= 0) err(1, "%s", efilname); printf(buf, a2, a3, a4); } .Ed .Sh °ü·Ã Ç׸ñ .Xr xstr 1 , .Xr lseek 2 .Sh ¿ª»ç .Nm À¯Æ¿¸®Æ¼´Â .Bx 3.0 ±×¸®°í µîÀåÇß½À´Ï´Ù. .Sh ¹ö±× .Nm À¯Æ¿¸®Æ¼´Â, PDP 11 ÆÐ¹Ð¸®ÀÇ Á¦ÇÑµÈ ¾ÆÅ°ÅØÃĸ¦ À§Çؼ­(¶§¹®¿¡) °³¹ßµÇ¾ú½À´Ï´Ù. ¸Å¿ì ÀϺÎÀÇ ÇÁ·Î±×·¥ ¹Û¿¡ mkstr ¸¦ »ç¿ëÇϰí ÀÖÁö ¾Ê½À´Ï´Ù. Pascal ÀÎÅÍÇÁ¸®ÅÍ .Xr \&pi 1 (¿Í)°ú ¿¡µðÅÍ .Xr \&ex 1 ÇÏÁö¸¸ .Nm ¿¡ ÀÇÇØ ÀÛ¼ºµÇ°í ÀÖ½À´Ï´Ù. .Nm ¹æ¹ýÀº È¿À²ÀûÀÎ ¹°°ÇÀ̶ó°í´Â ÇÒ ¼ö ¾ø±â ¶§¹®¿¡, ¿¡·¯ ¸Þ¼¼Áö´Â ÇÁ·Î±×·¥ ÅØ½ºÆ® ¼Ó¿¡ ÆÄ¹¯È÷°í ÀÖ¾î¾ß ÇÕ´Ï´Ù .Pq (¿ªÁÖ) ÃÖ±Ù¿¡´Â ¸Þ¼¼ÁöÀÇ ±¹Á¦È­µîÀ» À§Çؼ­(¶§¹®¿¡), ÇÁ·Î±×·¥Áß¿¡ ¸Þ¼¼Áö¸¦ ¹¯Áö ¾Ê´Â ¹æ¹ýµµ Àß ÀÌ¿ëµË´Ï´Ù . .\" »ó±â(¿ªÁÖ)´Â ¹ø¿ª½ÃºÎÅÍ ÀÖ¾úÁö¸¸, Çö»ó È®½ÇÈ÷ ±×·¡¼­ ³²°å½À´Ï´Ù. .\" 2.1. 5-2. 2-RELEASE ´ë»ó .\" By horikawa@jp.freebsd.org (Mar 29 1997)