io/rm.c File Reference

#include "rm.h"
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fts.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Functions

void _nps_rm_warning (void *filehandle, int my_error, char *filename)
int nps_rm_del (FTSENT *ent, const nps_rm_handler_t *handler)
int nps_rm_visit_tree (char *const *directory, char force, const nps_rm_handler_t *handler)
int nps_rm (char *const path, char force, const nps_rm_handler_t *handler)

Variables

const nps_rm_handler_t nps_rm_warning = {&stderr , *_nps_rm_warning}

Function Documentation

void _nps_rm_warning ( void *  filehandle,
int  my_error,
char *  filename 
)

A function to use in printing error messages

int nps_rm ( char *const   path,
char  force,
const nps_rm_handler_t handler 
)

The general purpose interface, nps_rm() returns 1 if any operation produced an error. When force is non-zero, nps_rm() attempts to continue its operation when an error occurs

int nps_rm_del ( FTSENT *  ent,
const nps_rm_handler_t handler 
)
int nps_rm_visit_tree ( char *const *  directory,
char  force,
const nps_rm_handler_t handler 
)

Variable Documentation

const nps_rm_handler_t nps_rm_warning = {&stderr , *_nps_rm_warning}

Here is an instance of nps_rm_handler_t which will print out error messages

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3