File: sdel.h

package info (click to toggle)
secure-delete 3.1-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 540 kB
  • sloc: ansic: 2,781; makefile: 188; sh: 65
file content (36 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _SDEL_H

#include "config.h"

#define VERSION		"v3.1"
#define AUTHOR		"van Hauser / THC"
#define EMAIL		"vh@thc.org"
#define WEB		"http://www.thc.org"

#ifndef O_SYNC
 #ifdef O_FSYNC
  #define O_SYNC O_FSYNC
 #else
  #define O_SYNC 0
 #endif
#endif

#ifndef O_LARGEFILE
 #define O_LARGEFILE 0
#endif

char *prg;

extern int verbose;

extern void sdel_init(int secure_random);
extern void sdel_finnish();
extern int  sdel_overwrite(int mode, int fd, long start, unsigned long bufsize, unsigned long length, int zero);
extern int  sdel_unlink(char *filename, int directory, int truncate, int slow);
extern void sdel_wipe_inodes(char *loc, char **array);
extern void __sdel_fill_buf(char pattern[3], unsigned long bufsize, char *buf);
extern void __sdel_random_buf(unsigned long bufsize, char *buf);
extern void __sdel_random_filename(char *filename);

#define _SDEL_H
#endif