.\" Copyright (c) 1994 .\" Jan-Simon Pendry .\" 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. .\" .\" @(#) undelete. 2 8.4 (Berkeley) 10/18/94 .\" %FreeBSD: src/lib/libc/sys/undelete. 2, v 1.4. 2.5 2001/12/14 18:34:02 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man2/undelete. 2, v 1.7 2001/12/23 00:03:42 horikawa Exp $ .Dd October 18, 1994 .Dt UNDELETE 2 .Os .Sh ¸íĪ .Nm undelete .Nd »èÁ¦ÇÑ ÆÄÀÏÀÇ È¸º¹ .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc .Sh ¼­½Ä .In unistd.h .Ft int .Fn undelete "const char *path" .Sh ÇØ¼³ .Fn undelete ÇÔ¼ö´Â, .Fa path ±×¸®°í ÁöÁ¤µÈ »èÁ¦°¡ ³¡³­ ÆÄÀÏÀ» ȸº¹ÇÏ·Á°í ÇÕ´Ï´Ù. ÇöÀç´Â, ÁöÁ¤µÈ ¿ÀºêÁ§Æ®°¡ À¯´Ï¿Â ÆÄÀÏ ½Ã½ºÅÛÀÇ È­ÀÌÆ® ¾Æ¿ôÀÎ °æ¿ì¿¡ ÇÑÇØ¼­ µ¿ÀÛÇÕ´Ï´Ù. ÀÌ ½Ã½ºÅÛ ÄÝÀº È­ÀÌÆ® ¾Æ¿ôÀ» »èÁ¦ÇØ, À¯´Ï¿Â ½ºÅÃÀÇ ÇÏÃþ¿¡ ÀÖ´Â ¿ÀºêÁ§Æ®°¡ Ç¥½ÃµÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. .Pp ÃÖÁ¾ÀûÀ¸·Î .Fn undelete ±â´ÉÀº, ±× ¿ÜÀÇ ·Î±× ±¸Á¶ ÆÄÀÏ ½Ã½ºÅÛ°ú °°Àº »èÁ¦°¡ ³¡³­ ÆÄÀÏÀ» ȸº¹ÇÒ ¼ö ÀÖ´Â ÆÄÀÏ ½Ã½ºÅÛ¿¡ È®ÀåµÇ°ÚÁö¿ä. .Sh ¹Ýȯ°ª .Rv -std undelete .Sh ¿¡·¯ .Fn undelete (Àº)´Â, ÀÌÇÏÀÇ °æ¿ì¿¡ ¿¡·¯°¡ µË´Ï´Ù. .Bl -tag -width Er .It Bq Er ENOTDIR ÆÐ½ºÀÇ ¿ø°¡¿ä¼ÒÁß¿¡ µð·ºÅ丮 ÀÌ¿ÜÀÇ °ÍÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. .It Bq Er ENAMETOOLONG ÆÐ½º¸íÀÇ ¿ø°¡¿ä¼Ò°¡ 255 ij¸¯Å͸¦ ³Ñ°í ÀÖ´ÂÁö, ¶Ç´Â ÆÐ½º¸í Àüü°¡ 1023 ij¸¯Å͸¦ ³Ñ°í ÀÖ½À´Ï´Ù. .It Bq Er EEXIST ÆÐ½º°¡ È­ÀÌÆ® ¾Æ¿ôÀ» ÂüÁ¶Çϰí ÀÖÁö ¾Ê½À´Ï´Ù. .It Bq Er ENOENT ÁöÁ¤µÈ È­ÀÌÆ® ¾Æ¿ôÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. .It Bq Er EACCES ÀüÄ¡ÆÐ½º¸íÀÇ ¿ø°¡¿ä¼Ò¿¡ ´ëÇØ °Ë»ö Çã°¡°¡ °ÅºÎµÇ°í ÀÖ½À´Ï´Ù. .It Bq Er EACCES ȸº¹ÇÏ´Â ÆÄÀÏÀ» Æ÷ÇÔÇÑ µð·ºÅ丮¿¡ µµÂøÇØ, ±â·Ï Çã°¡°¡ °ÅºÎµÇ°í ÀÖ½À´Ï´Ù. .It Bq Er ELOOP ÆÐ½º¸íÀ» º¯È¯ÇÒ °æ¿ì¿¡ °ËÃâµÈ ±âÈ£ ¿¬°áÀÌ ³Ê¹« ¸¹½À´Ï´Ù. .It Bq Er EPERM ÆÄÀÏÀ» Æ÷ÇÔÇÑ µð·ºÅ丮°¡ ½ºÆ¼Å°¿Í ¸¶Å© µÇ¾î ±× µð·ºÅ丮°¡, À¯È¿ÇÑ À¯Àú ID ¿¡ ¼ÒÀ¯µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. .It Bq Er EIO µð·ºÅ丮 ¿£Æ®¸®ÀÇ °»½ÅÇϰí ÀÖ´Â µ¿¾È¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇß½À´Ï´Ù. .It Bq Er EROFS ÁöÁ¤µÈ ÆÄÀÏÀº Àбâ Àü¿ë ÆÄÀÏ ½Ã½ºÅÛ»ó¿¡ ÀÖ½À´Ï´Ù. .It Bq Er EFAULT .Fa path (Àº)´Â, ÇÁ·Î¼¼½º¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø address °ø°£ÀÇ ¹üÀ§¿Ü¸¦ °¡¸®Å°°í ÀÖ½À´Ï´Ù. .El .Sh °ü·Ã Ç׸ñ .Xr unlink 2 , .Xr mount_union 8 .Sh ¿ª»ç .Fn undelete ÇÔ¼ö È£ÃâÀº, .Bx 4.4 Lite ±×¸®°í óÀ½ µîÀåÇß½À´Ï´Ù.