#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} |
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 | |||
) |
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 | |||
) |
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