zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

write_device_with_junk.c File Reference
#include "includes.h"
#include "../lib/includes.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <blkid/blkid.h>
#include <libintl.h>
#include <locale.h>
#include <stdio.h>
#include <libcryptsetup.h>
#include <signal.h>
Include dependency graph for write_device_with_junk.c:

Go to the source code of this file.

Macros

#define SIZE   1024
 
#define KEY_SIZE   128
 
#define _ignore_result(x)   if( x ){;}
 

Functions

void sigTERMhandler (int sig)
 
static int zuluExit (stringList_t stl, int status)
 
static int open_plain_as_me_1 (const struct_opts *opts, const char *mapping_name, uid_t uid, int op)
 
int zuluCryptEXEOpenPlainAsMe (const struct_opts *opts, const char *mapping_name, uid_t uid)
 
int zuluCryptEXEWriteDeviceWithJunk (const struct_opts *opts, const char *mapping_name, uid_t uid)
 

Variables

static int __exit_as_requested
 
static int __sig_caught
 

Macro Definition Documentation

◆ _ignore_result

#define _ignore_result (   x)    if( x ){;}

Definition at line 40 of file write_device_with_junk.c.

◆ KEY_SIZE

#define KEY_SIZE   128

Definition at line 36 of file write_device_with_junk.c.

◆ SIZE

#define SIZE   1024

Definition at line 35 of file write_device_with_junk.c.

Function Documentation

◆ open_plain_as_me_1()

◆ sigTERMhandler()

void sigTERMhandler ( int  sig)

Definition at line 45 of file write_device_with_junk.c.

References __exit_as_requested, and __sig_caught.

Referenced by zuluCryptEXEWriteDeviceWithJunk().

◆ zuluCryptEXEOpenPlainAsMe()

int zuluCryptEXEOpenPlainAsMe ( const struct_opts opts,
const char *  mapping_name,
uid_t  uid 
)

Definition at line 252 of file write_device_with_junk.c.

References open_plain_as_me_1().

Referenced by zuluCryptEXE().

◆ zuluCryptEXEWriteDeviceWithJunk()

◆ zuluExit()

static int zuluExit ( stringList_t  stl,
int  status 
)
static

Variable Documentation

◆ __exit_as_requested

int __exit_as_requested
static

Definition at line 42 of file write_device_with_junk.c.

Referenced by sigTERMhandler(), and zuluCryptEXEWriteDeviceWithJunk().

◆ __sig_caught

int __sig_caught
static

Definition at line 43 of file write_device_with_junk.c.

Referenced by sigTERMhandler().