pike.git / src / modules / _Stdio / efuns.c

version» Context lines:

pike.git/src/modules/_Stdio/efuns.c:785:   #endif /* HAVE_STATVFS || HAVE_STATFS || HAVE_USTAT */   #endif /* __NT__ */      /*! @decl int rm(string f)    *!    *! Remove a file or directory.    *!    *! @returns    *! Returns @expr{0@} (zero) on failure, @expr{1@} otherwise.    *! +  *! @note +  *! May fail with @[errno()] set to @[EISDIR] or @[ENOTDIR] +  *! if the file has changed to a directory during the call +  *! or the reverse. +  *!    *! @seealso -  *! @[mkdir()], @[Stdio.recursive_rm()] +  *! @[Stdio.File()->unlinkat()], @[mkdir()], @[Stdio.recursive_rm()]    */   void f_rm(INT32 args)   {    PIKE_STAT_T st;    INT32 i;    struct pike_string *str;       destruct_objects_to_destruct();       if(args!=1)