.\" .\" Copyright (c) 1998 Jordan Hubbard .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" .\" %FreeBSD: src/lib/libutil/property. 3, v 1.8. 2.7 2001/12/17 10:08:32 ru Exp % .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/property. 3, v 1.5 2002/05/18 07:12:56 horikawa Exp $ .\" " .Dd October 7, 1998 .Os .Dt PROPERTIES 3 .Sh ¸íĪ .Nm properties_read , .Nm propery_find , .Nm properties_free .Nd ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ ¸®½ºÆ®¸¦ ASCII ·ÎºÎÅÍ ÀÛ¼ºÇÏ´Â ÇÔ¼ö .Sh ¼­½Ä .In sys/types.h .In libutil.h .Ft properties .Fn properties_read "int fd" .Ft char * .Fn property_find "properties list" "const char *name" .Ft void .Fn properties_free "properties list" .Sh ÇØ¼³ .Bd -literal typedef struct _properties { struct _properties *next; char *name; char *value; } *properties; .Ed .Pp ÇÔ¼ö .Fn properties_read (Àº)´Â, .Fa fd ±×¸®°í °Ç³×¹ÞÀº ÆÄÀÏ ±â¼úÀڷκÎÅÍ À̸§°ú °ªÀÇ Æä¾î¸¦ Àоîµé¿©, ÆÄÀÏÀÇ ³»¿ëÀÌ ÀûÀýÈ÷ ºÐ¼®µÈ °ÍÀ¸·Î¼­ »õ·Ó´Ù ÇÁ·ÎÆÛƼ ¸®½ºÆ®ÀÇ Çìµå¸¦ µÇµ¹¸³´Ï´Ù. ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì´Â NULL °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. µ¹·ÁÁÖ¾îÁö´Â °ªÀº, ÃÖ´ëÀå .Dv PROPERTY_MAX_VALUE ¹ÙÀÌÆ®±îÁöÀÔ´Ï´Ù. .Pp .Fn property_find (Àº)´Â, .Fa name (ÀÌ)¶ó´Â À̸§ÀÇ ÇÁ·ÎÆÛƼÀÇ °ü·ÃÄ¡ string¸¦ µÇµ¹¸³´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼ°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì´Â NULL ¸¦ µÇµ¹¸³´Ï´Ù. .Pp .Fn properties_free (Àº)´Â, .Fn properties_read ÇÏÁö¸¸ µÇµ¹¸° ±¸Á¶Ã¼°¡ ÇÊ¿ä¾ø°Ô µÇ¾ú´Ù °æ¿ì¿¡ ±×°ÍÀ» ÇØ¹æÇÕ´Ï´Ù. .Sh ÆÄÀÏ Çü½Ä ÆÄÀÏÀÇ °¢ ÇÁ·ÎÆÛƼ´Â, .Fa name = value ±×·¸´Ù°í ÇÏ´Â Æ÷¸ËÀÌ µÇ¾î ÀÖÀ¸¸é(ÀÚ) »óÁ¤µË´Ï´Ù. .Fa name (Àº)´Â ¿µ¼ýÀÚ Ä³¸¯ÅÍ ¶óÀÎ ( ¹× `='ÀÌ¿ÜÀÇ Æ¯¼ö ij¸¯ÅÍ)ÀÔ´Ï´Ù. .Fa value (Àº)´Â, °³Çà ij¸¯ÅÍ·Î ³¡³ª´Â, ÅØ½ºÆ®ÀÇ ÀÓÀÇÀÇ stringÀÔ´Ï´Ù. °³ÇàÇÑ´Ù °æ¿ì´Â, °ªÀüü¸¦ { } ·Î µÑ·¯½Ò Çʿ䰡 ÀÖ½À´Ï´Ù. # Àΰ¡ ; ·Î ½ÃÀ۵Ǵ ÇàÀº ÄÚ¸àÆ®·Î °£ÁÖÇØÁ® ¹«½ÃµË´Ï´Ù. .Sh °ü·Ã Ç׸ñ .Xr auth_getval 3 .Sh ¹ö±× ´Ü¼øÇÕ´Ï´Ù. .Sh ÀúÀÚ .An Jordan Hubbard