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)  

String.h File Reference
#include <string.h>
#include <sys/types.h>
#include <stdlib.h>
Include dependency graph for String.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define StringVoid   ( ( string_t ) 0 )
 
#define CREATE   1 /*if the file does not exist,create it,if the file exist,trancate it*/
 
#define APPEND   2 /* if the file exist,append it*/
 

Typedefs

typedef struct StringTypestring_t
 
typedef char * StringIterator
 

Functions

void StringExitOnMemoryExaustion (void(*)(void))
 
void StringGetIterators (string_t, StringIterator *begin, StringIterator *end)
 
string_t String (const char *cstring)
 
string_t String_1 (const char *cstring,...)
 
string_t StringEmpty (void)
 
string_t StringBuffer (size_t s)
 
string_t StringWithSize (const char *string, size_t length)
 
const char * StringAppend (string_t st, const char *s)
 
const char * StringAppendInt (string_t, u_int64_t)
 
const char * StringSubStringWithInt (string_t st, const char *str, u_int64_t num)
 
const char * StringMultipleAppend (string_t st,...)
 
const char * StringAppendString (string_t st, string_t xt)
 
int StringContains (string_t st, const char *str)
 
static __inline__ int StringDoesNotContain (string_t st, const char *str)
 
const char * StringAppendMultipleString (string_t st,...)
 
const char * StringAppendChar (string_t st, char c)
 
const char * StringPrepend (string_t st, const char *s)
 
const char * StringMultiplePrepend (string_t st,...)
 
const char * StringMultiplePrependString (string_t st,...)
 
const char * StringPrependString (string_t st, string_t xt)
 
const char * StringPrependChar (string_t st, char c)
 
string_t StringInherit (char **data)
 
string_t StringInheritWithSize (char **data, size_t size, size_t length)
 
static const __inline__ char * StringContent (string_t st)
 
static const __inline__ char ** StringPointer (string_t st)
 
void StringPrint (string_t st)
 
void StringPrintLine (string_t st)
 
char * StringCopy_1 (string_t st)
 
string_t StringCopy (string_t st)
 
char * StringCopy_2 (const char *)
 
char * StringCopy_3 (string_t st, size_t x)
 
void StringReadToBuffer (string_t st, char *buffer, size_t size)
 
void StringDelete (string_t *st)
 
const char * StringToLowerCase (string_t)
 
void StringClearDelete (string_t *st)
 
void StringMultipleDelete (string_t *st,...)
 
char * StringDeleteHandle (string_t *st)
 
size_t StringLength (string_t st)
 
int StringLengthMatch (string_t st, size_t s)
 
char StringCharAt (string_t st, size_t p)
 
char StringCharAtLast (string_t st)
 
ssize_t StringIndexOfChar (string_t st, size_t p, char s)
 
ssize_t StringIndexOfString (string_t st, size_t p, const char *s)
 
ssize_t StringLastIndexOfChar (string_t st, char s)
 
ssize_t StringLastIndexOfString (string_t st, const char *s)
 
const char * StringStringAt (string_t st, size_t p)
 
int StringOwned (string_t)
 
int StringLock (string_t)
 
int StringUnlock (string_t)
 
int StringEndsWith (string_t st, const char *s)
 
int StringEndsWith_1 (const char *e, const char *s)
 
int StringEndsWithAtLeastOne (const char *e,...)
 
int StringEndsWith_2 (string_t e, string_t s)
 
int StringStartsWith (string_t st, const char *s)
 
int StringStartsWith_1 (string_t st, string_t xt)
 
int StringStartsAndEndsWith (const char *a, const char *b, const char *c)
 
int StringStartsWithAtLeastOne (string_t st,...)
 
int StringEndsWithChar (string_t st, char s)
 
const char * StringInsertString (string_t st, size_t x, const char *s)
 
const char * StringInsertChar (string_t st, size_t x, char s)
 
const char * StringSubChar (string_t st, size_t x, char s)
 
const char * StringSubString (string_t st, size_t x, const char *s)
 
const char * StringAppendAt (string_t st, size_t x, const char *s)
 
const char * StringRemoveLength (string_t st, size_t x, size_t y)
 
const char * StringRemoveString (string_t st, const char *s)
 
const char * StringRemoveStringPos (string_t st, const char *s, size_t p)
 
const char * StringRemoveRight (string_t st, size_t x)
 
void StringClear (string_t st)
 
void StringReset (string_t st)
 
const char * StringRemoveLeft (string_t st, size_t x)
 
const char * StringRemoveDigits (string_t)
 
string_t StringMidString (string_t st, size_t x, size_t y)
 
const char * StringReplaceString (string_t st, const char *x, const char *y)
 
const char * StringReplace (string_t, const char *str)
 
const char * StringReplaceStringPos (string_t st, const char *x, const char *y, size_t p)
 
const char * StringReplaceChar (string_t st, char x, char y)
 
const char * StringReplaceChar_1 (string_t st, size_t z, char x, char y)
 
const char * StringReplaceCharPos (string_t st, char x, char y, size_t p)
 
const char * StringReplaceCharString (string_t st, char x, const char *y)
 
const char * StringReplaceCharStringPos (string_t st, char x, const char *y, size_t p)
 
char * StringIntToString_1 (char *x, size_t y, u_int64_t z)
 
string_t StringIntToString (u_int64_t)
 
u_int64_t StringConvertToInt (const char *)
 
int StringsAreEqual_1 (string_t x, string_t y)
 
int StringsAreEqual_2 (string_t x, const char *y)
 
int StringIsEmpty (string_t x)
 
static __inline__ int StringsAreNotEqual_2 (string_t x, const char *y)
 
int StringAtLeastOneMatch (string_t x,...)
 
int StringAtLeastOneMatch_1 (const char *x,...)
 
const char * StringInsertCharString (string_t st, char x, const char *y)
 
const char * StringInsertCharStringPos (string_t st, char x, const char *y, size_t p)
 
const char * StringInsertCharChar (string_t st, char x, char y)
 
const char * StringCrop (string_t st, size_t x, size_t y)
 
string_t StringGetFromTerminal (void)
 
string_t StringGetFromTerminal_1 (size_t s)
 
int StringSilentlyGetFromTerminal (string_t *)
 
int StringSilentlyGetFromTerminal_1 (string_t *, size_t s)
 
string_t StringGetFromFile (const char *path)
 
string_t StringRandomString (size_t size)
 
int StringGetFromFile_1 (string_t *st, const char *path)
 
int StringGetFromFile_3 (string_t *st, const char *path, size_t offset, size_t length)
 
string_t StringGetFromFile_2 (const char *path, int *status)
 
int StringGetFromFileMemoryLocked (string_t *str, const char *path, size_t offset, ssize_t length)
 
void StringWriteToFile (string_t st, const char *path, int mode)
 
string_t StringGetFromVirtualFile (const char *path)
 
u_int32_t StringJenkinsOneAtATimeHash (const char *key)
 
u_int32_t StringJenkinsOneAtATimeHash_1 (string_t)
 
static __inline__ void StringFree (const void *str)
 
static __inline__ void StringFree_1 (const void *str)
 
static __inline__ size_t StringSize (const char *str)
 
static __inline__ int StringsAreEqual (const char *x, const char *y)
 
static __inline__ int StringHasNothing (const char *x)
 
static __inline__ int StringsAreNotEqual (const char *x, const char *y)
 
static __inline__ int StringPrefixMatch (const char *x, const char *y, size_t z)
 
int StringAtLeastOnePrefixMatch (const char *x,...)
 
int StringHasAtLeastOneComponent_1 (const char *x,...)
 
int StringHasAtLeastOneComponent (string_t st,...)
 
static __inline__ int StringPrefixEqual (const char *x, const char *y)
 
static __inline__ int StringPrefixNotEqual (const char *x, const char *y)
 
static __inline__ ssize_t StringHasComponent_1 (const char *x, const char *y)
 
static __inline__ size_t StringCharCount (const char *x, char y)
 
static __inline__ int StringHasComponent (const char *x, const char *y)
 
static __inline__ int StringHasNoComponent (const char *x, const char *y)
 
static __inline__ ssize_t StringLastIndexOfChar_1 (const char *str, char s)
 
static __inline__ ssize_t StringFirstIndexOfChar_1 (const char *str, char s)
 

Macro Definition Documentation

◆ APPEND

#define APPEND   2 /* if the file exist,append it*/

Definition at line 800 of file String.h.

◆ CREATE

#define CREATE   1 /*if the file does not exist,create it,if the file exist,trancate it*/

Definition at line 799 of file String.h.

◆ StringVoid

#define StringVoid   ( ( string_t ) 0 )

Definition at line 47 of file String.h.

Typedef Documentation

◆ string_t

typedef struct StringType* string_t

Definition at line 41 of file String.h.

◆ StringIterator

typedef char* StringIterator

Definition at line 49 of file String.h.

Function Documentation

◆ String()

string_t String ( const char *  cstring)

Definition at line 318 of file String.c.

References _StringError(), StringType::length, StringType::owned, StringType::size, StringType::string, STRING_INIT_SIZE, and StringVoid.

Referenced by _checkUnmount(), _create_file_system(), _create_volume(), _create_work_directory(), _cryptsetup_unlock_bitlocker(), _get_crypto_info_from_cryptsetup(), _get_type_from_udev_1(), _open_tcrypt_volume_zuluplay(), _print_device_properties(), _root_device(), _zuluCryptAddLVMVolumes(), _zuluCryptAddMDRAIDVolumes(), _zuluCryptBindUnmountVolume(), _zuluCryptCheckSYSifDeviceIsSystem(), _zuluCryptDeleteDeadMountPoints(), _zuluCryptVolumeList_0(), crypt_opt(), main(), open_loop_device(), open_loop_device_1(), open_plain_as_me_1(), set_mount_options(), String_1(), StringGetFromTerminal(), StringGetFromTerminal_1(), StringIntToString(), StringList(), StringListAppend(), StringListInsertAt(), zuluCryptBindMountVolume(), zuluCryptBindSharedMountPointPathTaken(), zuluCryptBitLockerMapperName(), zuluCryptBitLockerResolveMapperPath(), zuluCryptClearDeadMappers(), zuluCryptConvertIfPathIsLVM(), zuluCryptCreateMapperName(), zuluCryptCreateMountPath(), zuluCryptEXECreateVolume(), zuluCryptEXEOpenVolume(), zuluCryptFileSystemProperties(), zuluCryptGetALoopDeviceAssociatedWithAnImageFile(), zulucryptGetBlkidFileSystem(), zuluCryptGetFileNameFromFileDescriptor(), zuluCryptGetFstabEntry(), zuluCryptGetLoopDeviceAddress(), zuluCryptGetPassFromFile(), zuluCryptGetUserName(), zuluCryptGetUUIDFromMapper(), zuluCryptGetVolumeSize(), zuluCryptLoopDeviceAddress_1(), zuluCryptOpenVolume_0(), zuluCryptPluginManagerGetKeyFromModule(), zuluCryptResolveMDPath_1(), zuluCryptResolvePath_2(), zuluCryptSecuritySanitizeTheEnvironment(), zuluCryptVolumeType(), zuluMountCryptoMount(), zuluMountCryptoUMount(), zuluMountPrintBitLockerProperties(), zuluMountPrintDeviceProperties(), zuluMountUnEncryptedVolumeStatus(), and zuluMountVolumeStatus().

◆ String_1()

◆ StringAppend()

◆ StringAppendAt()

const char* StringAppendAt ( string_t  st,
size_t  x,
const char *  s 
)

◆ StringAppendChar()

const char* StringAppendChar ( string_t  st,
char  c 
)

◆ StringAppendInt()

◆ StringAppendMultipleString()

const char* StringAppendMultipleString ( string_t  st,
  ... 
)

Definition at line 1141 of file String.c.

References StringType::string, and StringAppend().

◆ StringAppendString()

const char* StringAppendString ( string_t  st,
string_t  xt 
)

◆ StringAtLeastOneMatch()

int StringAtLeastOneMatch ( string_t  x,
  ... 
)

Definition at line 1478 of file String.c.

References e, StringType::string, and StringVoid.

Referenced by zuluCryptEXEOpenVolume().

◆ StringAtLeastOneMatch_1()

◆ StringAtLeastOnePrefixMatch()

int StringAtLeastOnePrefixMatch ( const char *  x,
  ... 
)

◆ StringBuffer()

string_t StringBuffer ( size_t  s)

Definition at line 297 of file String.c.

References _StringError(), StringType::length, StringType::owned, StringType::size, and StringType::string.

Referenced by StringEmpty().

◆ StringCharAt()

char StringCharAt ( string_t  st,
size_t  p 
)

Definition at line 848 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringCharAtLast()

char StringCharAtLast ( string_t  st)

Definition at line 859 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringCharCount()

static __inline__ size_t StringCharCount ( const char *  x,
char  y 
)
static

Definition at line 938 of file String.h.

Referenced by zuluCryptMultiPartitionLoopDevice(), and zuluCryptNoPartitionLoopDevice().

◆ StringClear()

void StringClear ( string_t  st)

Definition at line 618 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringClearDelete()

void StringClearDelete ( string_t st)

Definition at line 177 of file String.c.

References e, StringType::length, StringType::owned, StringType::string, and StringVoid.

Referenced by crypt_opt(), and zuluGetKeys().

◆ StringContains()

◆ StringContent()

static const __inline__ char * StringContent ( string_t  st)
static

Definition at line 1011 of file String.h.

References e, and StringPointer().

Referenced by _clean_loop_path(), _create_path(), _dislocker_unlock_bitlocker(), _eval_path(), _get_result(), _modify_tcrypt(), _mounted(), _print_device_properties(), _print_list(), _remove_btfs_multiple_devices(), _remove_duplicates(), _replace_truecrypt_key(), _root_device(), _StringGetFromVirtualFile(), _unmount_dead_mount_points(), _zuluCryptDeleteDeadMountPoints(), _zuluCryptResolveDevRoot(), _zuluCryptVolumeList_0(), _zuluMountprintAListOfMountedVolumes(), attach_device_to_loop(), crypt_mapper(), crypt_opt(), main(), mount_point_prefix_match_0(), open_plain_as_me_1(), StringAppendString(), zuluCryptBindMountVolume(), zuluCryptBindSharedMountPointPathTaken(), zuluCryptBitLockerlock(), zuluCryptBitLockerResolveMapperPath(), zuluCryptBitLockerVolumeFS(), zuluCryptCreateKeyFile_1(), zuluCryptCreateTCrypt(), zuluCryptDecryptFile(), zuluCryptDeleteFile_1(), zuluCryptDeviceManagedByDislocker(), zuluCryptEncryptFile(), zuluCryptEXEAddKey(), zuluCryptEXECheckIfTcrypt(), zuluCryptEXECloseVolume(), zuluCryptEXECreateVolume(), zuluCryptEXEOpenVolume(), zuluCryptEXERemoveKey(), zuluCryptEXEVolumeInfo(), zuluCryptEXEWriteDeviceWithJunk(), zuluCryptGetPassFromFile(), zuluCryptGetVolumeSize(), zuluCryptMountHasNotAllowedFileSystemOptions(), zuluCryptMountVolume(), zuluCryptOpenedVolumesList(), zuluCryptOpenTcrypt(), zuluCryptOpenVolume_2(), zuluCryptPartitions(), zuluCryptPathIsNotValid_0(), zuluCryptRealPath(), zuluCryptSecurityLockMemory(), zuluCryptSecurityLockMemory_1(), zuluCryptSecurityUnlockMemory(), zuluCryptSecurityUnlockMemory_1(), zuluExit(), zuluMountMount(), zuluMountprintAListOfMountedVolumes(), zuluMountPrintBitLockerProperties(), zuluMountPrintDeviceProperties(), zuluMountPrintVolumesProperties(), and zuluMountUMount().

◆ StringConvertToInt()

◆ StringCopy()

◆ StringCopy_1()

char* StringCopy_1 ( string_t  st)

Definition at line 716 of file String.c.

References StringType::size, StringCopy_3(), and StringVoid.

◆ StringCopy_2()

◆ StringCopy_3()

char* StringCopy_3 ( string_t  st,
size_t  x 
)

Definition at line 749 of file String.c.

References _StringError(), StringType::string, and StringVoid.

Referenced by StringCopy_1().

◆ StringCrop()

const char* StringCrop ( string_t  st,
size_t  x,
size_t  y 
)

Definition at line 652 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringDelete()

void StringDelete ( string_t st)

Definition at line 162 of file String.c.

References StringType::owned, StringType::string, and StringVoid.

Referenced by _check_if_device_is_supported(), _checkUnmount(), _create_file_system(), _create_mount_point(), _create_mount_point_0(), _create_path_0(), _delete_mount_point(), _dislocker_unlock_bitlocker(), _fileSystemIsSupported(), _get_crypto_info_from_cryptsetup(), _get_file_system_options_from_config_file(), _get_file_system_options_from_config_file_1(), _get_mount_entries(), _get_result(), _modify_tcrypt_header(), _mounted(), _open_tcrypt_volume_zuluplay(), _print_device_properties(), _replace_truecrypt_key(), _restore_header(), _secure_file_path(), _StringGetFromVirtualFile(), _volumeList(), _zuluCryptAddLVMVolumes(), _zuluCryptBindUnmountVolume(), _zuluCryptCheckSYSifDeviceIsSystem(), _zuluCryptDeleteDeadMountPoints(), _zuluCryptResolveDevRoot(), _zuluCryptVolumeList_0(), _zuluExit(), _zuluMountExe(), _zuluMountprintAListOfMountedVolumes(), crypt_mapper(), crypt_opt(), main(), mount_point_prefix_match_0(), open_loop_device_1(), StringGetFromTerminal(), StringGetFromTerminal_1(), StringListAppend(), StringListAppendWithSize(), StringListInsertAt(), StringListInsertAtSize(), StringListRemoveAt(), zuluCryptBindMountVolume(), zuluCryptBindSharedMountPointPathTaken(), zuluCryptBitLockerCreateMapperPath(), zuluCryptBitLockerFullMapperPath(), zuluCryptBitLockerResolveMapperPath(), zuluCryptBitLockerVolumeFS(), zuluCryptCreateKeyFile(), zuluCryptCreateKeyFiles(), zuluCryptCreateMountPath(), zuluCryptCreateMountPointPrefix(), zuluCryptCreateTCrypt(), zuluCryptDeleteDeadMountPoints(), zuluCryptDeviceHasAgivenFileSystem(), zuluCryptDeviceHasEncryptedFileSystem(), zuluCryptDeviceManagedByDislocker(), zuluCryptEXECheckIfTcrypt(), zuluCryptEXEOpenVolume(), zuluCryptEXEVolumeInfo(), zuluCryptFileSystemProperties(), zuluCryptGetALoopDeviceAssociatedWithAnImageFile(), zuluCryptGetFileNameFromFileDescriptor(), zuluCryptGetFstabEntry(), zuluCryptGetFstabEntryList(), zuluCryptGetFstabList(), zuluCryptGetLoopDeviceAddress(), zuluCryptGetMountEntry_1(), zuluCryptGetMountOptionsFromFstab(), zuluCryptGetMountPointFromPath(), zuluCryptGetPartitionFromConfigFile(), zuluCryptGetPartitionFromCrypttab(), zuluCryptGetPassFromFile(), zuluCryptGetVolumeSize(), zuluCryptOpenedVolumesList(), zuluCryptOpenTcrypt(), zuluCryptOpenVolume_2(), zuluCryptRealPath(), zuluCryptUnmountVolume(), zuluCryptVolumeType(), zuluExit(), zuluMountCryptoMount(), zuluMountCryptoUMount(), zuluMountPrintBitLockerProperties(), zuluMountPrintDeviceProperties(), zuluMountUMount(), zuluMountUnEncryptedVolumeStatus(), and zuluMountVolumeStatus().

◆ StringDeleteHandle()

◆ StringDoesNotContain()

static __inline__ int StringDoesNotContain ( string_t  st,
const char *  str 
)
static

Definition at line 129 of file String.h.

References StringContains().

Referenced by set_mount_options().

◆ StringEmpty()

string_t StringEmpty ( void  )

◆ StringEndsWith()

int StringEndsWith ( string_t  st,
const char *  s 
)

Definition at line 781 of file String.c.

References _string_ends_with(), StringType::size, StringType::string, and StringVoid.

Referenced by _clean_loop_path().

◆ StringEndsWith_1()

int StringEndsWith_1 ( const char *  e,
const char *  s 
)

Definition at line 790 of file String.c.

References _string_ends_with(), and e.

Referenced by StringEndsWithAtLeastOne(), and zuluCryptIsDislockerMapperPath().

◆ StringEndsWith_2()

int StringEndsWith_2 ( string_t  e,
string_t  s 
)

Definition at line 799 of file String.c.

References _string_ends_with(), e, StringType::size, StringType::string, and StringVoid.

◆ StringEndsWithAtLeastOne()

int StringEndsWithAtLeastOne ( const char *  e,
  ... 
)

Definition at line 1104 of file String.c.

References e, and StringEndsWith_1().

Referenced by _offset().

◆ StringEndsWithChar()

int StringEndsWithChar ( string_t  st,
char  s 
)

Definition at line 839 of file String.c.

References StringType::size, StringType::string, and StringVoid.

Referenced by _remove_duplicates().

◆ StringExitOnMemoryExaustion()

void StringExitOnMemoryExaustion ( void(*)(void)  )

Definition at line 75 of file String.c.

References _memory_error.

Referenced by main().

◆ StringFirstIndexOfChar_1()

static __inline__ ssize_t StringFirstIndexOfChar_1 ( const char *  str,
char  s 
)
static

Definition at line 997 of file String.h.

Referenced by _add_entry().

◆ StringFree()

static __inline__ void StringFree ( const void *  str)
static

Definition at line 823 of file String.h.

Referenced by _add_entry(), _checkUnmount(), _close_dislocker(), _create_mount_point_1(), _device_info(), _eval_path(), _get_file_system_options_from_config_file(), _loop_device_path(), _offset(), _paths_are_not_sane(), _print_device_properties(), _print_list(), _print_uuid_from_path(), _printResult(), _remove_mapper(), _resolve_path(), _restore_header(), _save_header(), _unmount_dead_mount_points(), _volumeList(), _zulucrypt_getloopfs(), _zuluCryptAddMDRAIDVolumes(), _zuluCryptBindUnmountVolume(), _zuluCryptCheckEmptySlots(), _zuluCryptExECheckEmptySlots(), _zuluCryptVolumeList_0(), _zuluExit(), _zuluExit_1(), _zuluMountDoAction(), _zuluMountprintAListOfMountedVolumes(), _zuluMountPrintVolumeDeviceName(), crypt_mapper(), main(), open_plain_as_me_1(), path_is_accessible(), zuluCryptBitLockerlock(), zuluCryptCheckInvalidKey(), zuluCryptClearDeadMappers(), zuluCryptCreateFileSystemInAVolume(), zuluCryptCreateMapperName(), zuluCryptEXECheckIfLuks(), zuluCryptEXECloseVolume(), zuluCryptEXECreateVolume(), zuluCryptEXEGetDevice(), zuluCryptEXEOpenVolume(), zuluCryptEXEVolumeInfo(), zuluCryptFileSystemProperties(), zuluCryptGetALoopDeviceAssociatedWithAnImageFile(), zuluCryptGetDeviceFileProperties(), zuluCryptGetFileNameFromFileDescriptor(), zuluCryptGetLoopDeviceAddress(), zuluCryptGetUUIDFromMapper(), zuluCryptHeaderMatchBackUpHeader(), zuluCryptLoopDeviceAddress_1(), zuluCryptOpenedVolumesList(), zuluCryptOpenPlain_2(), zuluCryptPartitionIsSystemPartition(), zuluCryptPathDidNotChange(), zuluCryptPathDoesNotStartsWith(), zuluCryptPathStartsWith(), zuluCryptPrintPartitionProperties(), zuluCryptRealPath(), zuluCryptResolveDMPath(), zuluCryptResolveMDPath_1(), zuluCryptResolvePath(), zuluCryptUnmountVolume(), zuluCryptVolumeStatus(), zuluExit(), zuluMountCryptoMount(), zuluMountCryptoUMount(), zuluMountPartitionProperties(), zuluMountPrintDeviceProperties(), zuluMountPrintVolumesProperties(), zuluMountUMount(), zuluMountUnEncryptedVolumeStatus(), and zuluMountVolumeStatus().

◆ StringFree_1()

static __inline__ void StringFree_1 ( const void *  str)
static

Definition at line 836 of file String.h.

Referenced by _check_if_device_is_supported().

◆ StringGetFromFile()

◆ StringGetFromFile_1()

int StringGetFromFile_1 ( string_t st,
const char *  path 
)

Definition at line 1858 of file String.c.

References StringGetFromFile_3().

Referenced by StringGetFromFile().

◆ StringGetFromFile_2()

string_t StringGetFromFile_2 ( const char *  path,
int *  status 
)

Definition at line 1993 of file String.c.

References StringGetFromFile_3(), and StringVoid.

◆ StringGetFromFile_3()

int StringGetFromFile_3 ( string_t st,
const char *  path,
size_t  offset,
size_t  length 
)

◆ StringGetFromFileMemoryLocked()

int StringGetFromFileMemoryLocked ( string_t str,
const char *  path,
size_t  offset,
ssize_t  length 
)

Definition at line 1921 of file String.c.

References _StringError(), StringInheritWithSize(), and StringVoid.

Referenced by zuluCryptGetPassFromFile().

◆ StringGetFromTerminal()

string_t StringGetFromTerminal ( void  )

Definition at line 1653 of file String.c.

References String(), StringAppendChar(), StringDelete(), and StringVoid.

Referenced by StringSilentlyGetFromTerminal().

◆ StringGetFromTerminal_1()

◆ StringGetFromVirtualFile()

◆ StringGetIterators()

void StringGetIterators ( string_t  ,
StringIterator begin,
StringIterator end 
)

◆ StringHasAtLeastOneComponent()

int StringHasAtLeastOneComponent ( string_t  st,
  ... 
)

Definition at line 1552 of file String.c.

References e, StringType::string, and StringVoid.

Referenced by _check_if_device_is_supported(), and zuluMountUnEncryptedVolumeStatus().

◆ StringHasAtLeastOneComponent_1()

int StringHasAtLeastOneComponent_1 ( const char *  x,
  ... 
)

Definition at line 1528 of file String.c.

References e.

Referenced by _option_contain_not_allowed().

◆ StringHasComponent()

◆ StringHasComponent_1()

static __inline__ ssize_t StringHasComponent_1 ( const char *  x,
const char *  y 
)
static

◆ StringHasNoComponent()

static __inline__ int StringHasNoComponent ( const char *  x,
const char *  y 
)
static

Definition at line 973 of file String.h.

Referenced by zuluCryptEXEOpenVolume().

◆ StringHasNothing()

static __inline__ int StringHasNothing ( const char *  x)
static

Definition at line 864 of file String.h.

Referenced by _create_luks_0(), and _create_tcrypt_volume().

◆ StringIndexOfChar()

ssize_t StringIndexOfChar ( string_t  st,
size_t  p,
char  s 
)

◆ StringIndexOfString()

ssize_t StringIndexOfString ( string_t  st,
size_t  p,
const char *  s 
)

Definition at line 468 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringInherit()

◆ StringInheritWithSize()

◆ StringInsertChar()

const char* StringInsertChar ( string_t  st,
size_t  x,
char  s 
)

Definition at line 953 of file String.c.

References StringInsertString().

◆ StringInsertCharChar()

const char* StringInsertCharChar ( string_t  st,
char  x,
char  y 
)

Definition at line 1645 of file String.c.

References StringInsertCharString().

◆ StringInsertCharString()

const char* StringInsertCharString ( string_t  st,
char  x,
const char *  y 
)

Definition at line 1640 of file String.c.

References StringInsertCharStringPos().

Referenced by StringInsertCharChar().

◆ StringInsertCharStringPos()

const char* StringInsertCharStringPos ( string_t  st,
char  x,
const char *  y,
size_t  p 
)

Definition at line 1635 of file String.c.

References StringICS__().

Referenced by StringInsertCharString().

◆ StringInsertString()

const char* StringInsertString ( string_t  st,
size_t  x,
const char *  s 
)

Definition at line 1218 of file String.c.

References __StringExpandMemory(), StringType::size, and StringType::string.

Referenced by StringInsertChar().

◆ StringIntToString()

string_t StringIntToString ( u_int64_t  )

Definition at line 1404 of file String.c.

References _intToString(), BUFFSIZE, and String().

Referenced by zuluCryptEncryptFile().

◆ StringIntToString_1()

char* StringIntToString_1 ( char *  x,
size_t  y,
u_int64_t  z 
)

◆ StringIsEmpty()

int StringIsEmpty ( string_t  x)

Definition at line 1333 of file String.c.

References StringType::string, and StringVoid.

Referenced by zuluCryptGetLoopDeviceAddress().

◆ StringJenkinsOneAtATimeHash()

u_int32_t StringJenkinsOneAtATimeHash ( const char *  key)

Definition at line 1816 of file String.c.

Referenced by _add_entry(), and zuluCryptCreateMapperName().

◆ StringJenkinsOneAtATimeHash_1()

u_int32_t StringJenkinsOneAtATimeHash_1 ( string_t  )

Definition at line 1836 of file String.c.

References e, StringType::size, StringType::string, and StringVoid.

◆ StringLastIndexOfChar()

◆ StringLastIndexOfChar_1()

static __inline__ ssize_t StringLastIndexOfChar_1 ( const char *  str,
char  s 
)
static

◆ StringLastIndexOfString()

ssize_t StringLastIndexOfString ( string_t  st,
const char *  s 
)

Definition at line 509 of file String.c.

References e, StringType::string, and StringVoid.

◆ StringLength()

◆ StringLengthMatch()

int StringLengthMatch ( string_t  st,
size_t  s 
)

Definition at line 687 of file String.c.

References StringType::size, and StringVoid.

◆ StringLock()

int StringLock ( string_t  )

Definition at line 144 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringMidString()

string_t StringMidString ( string_t  st,
size_t  x,
size_t  y 
)

Definition at line 1240 of file String.c.

References _StringError(), StringType::string, and StringInheritWithSize().

◆ StringMultipleAppend()

◆ StringMultipleDelete()

◆ StringMultiplePrepend()

◆ StringMultiplePrependString()

const char* StringMultiplePrependString ( string_t  st,
  ... 
)

◆ StringOwned()

int StringOwned ( string_t  )

Definition at line 86 of file String.c.

References StringType::owned, and StringVoid.

◆ StringPointer()

static const __inline__ char ** StringPointer ( string_t  st)
static

Definition at line 1006 of file String.h.

Referenced by _remove_duplicates(), StringContent(), and zuluCryptConvertIfPathIsLVM().

◆ StringPrefixEqual()

◆ StringPrefixMatch()

static __inline__ int StringPrefixMatch ( const char *  x,
const char *  y,
size_t  z 
)
static

◆ StringPrefixNotEqual()

static __inline__ int StringPrefixNotEqual ( const char *  x,
const char *  y 
)
static

◆ StringPrepend()

◆ StringPrependChar()

const char* StringPrependChar ( string_t  st,
char  c 
)

Definition at line 1045 of file String.c.

References StringPrepend().

◆ StringPrependString()

const char* StringPrependString ( string_t  st,
string_t  xt 
)

Definition at line 1040 of file String.c.

References StringType::string, and StringPrepend().

Referenced by zuluCryptBitLockerCreateMapperPath().

◆ StringPrint()

void StringPrint ( string_t  st)

Definition at line 406 of file String.c.

References StringType::string, and StringVoid.

◆ StringPrintLine()

void StringPrintLine ( string_t  st)

◆ StringRandomString()

string_t StringRandomString ( size_t  size)

Definition at line 1771 of file String.c.

References e, ignore_result, StringInheritWithSize(), and StringVoid.

Referenced by open_plain_as_me_1().

◆ StringReadToBuffer()

void StringReadToBuffer ( string_t  st,
char *  buffer,
size_t  size 
)

Definition at line 384 of file String.c.

References StringType::string.

◆ StringRemoveDigits()

const char* StringRemoveDigits ( string_t  )

◆ StringRemoveLeft()

const char* StringRemoveLeft ( string_t  st,
size_t  x 
)

◆ StringRemoveLength()

const char* StringRemoveLength ( string_t  st,
size_t  x,
size_t  y 
)

Definition at line 568 of file String.c.

References StringType::size, StringType::string, and StringVoid.

Referenced by StringRemoveLeft().

◆ StringRemoveRight()

◆ StringRemoveString()

◆ StringRemoveStringPos()

const char* StringRemoveStringPos ( string_t  st,
const char *  s,
size_t  p 
)

Definition at line 1323 of file String.c.

References StringRS__().

Referenced by StringRemoveString().

◆ StringReplace()

◆ StringReplaceChar()

const char* StringReplaceChar ( string_t  st,
char  x,
char  y 
)

◆ StringReplaceChar_1()

const char* StringReplaceChar_1 ( string_t  st,
size_t  z,
char  x,
char  y 
)

◆ StringReplaceCharPos()

const char* StringReplaceCharPos ( string_t  st,
char  x,
char  y,
size_t  p 
)

Definition at line 1360 of file String.c.

References StringCRC__().

Referenced by StringReplaceChar().

◆ StringReplaceCharString()

const char* StringReplaceCharString ( string_t  st,
char  x,
const char *  y 
)

Definition at line 931 of file String.c.

References StringReplaceCharStringPos().

Referenced by zuluCryptCreateMapperName().

◆ StringReplaceCharStringPos()

const char* StringReplaceCharStringPos ( string_t  st,
char  x,
const char *  y,
size_t  p 
)

Definition at line 925 of file String.c.

References StringType::string, and Stringsrcs__().

Referenced by StringReplaceCharString().

◆ StringReplaceString()

◆ StringReplaceStringPos()

const char* StringReplaceStringPos ( string_t  st,
const char *  x,
const char *  y,
size_t  p 
)

Definition at line 1313 of file String.c.

References StringRS__().

Referenced by StringReplaceString().

◆ StringReset()

void StringReset ( string_t  st)

Definition at line 626 of file String.c.

References StringType::size, StringType::string, and StringVoid.

Referenced by _add_entry(), and zuluCryptGetLoopDeviceAddress().

◆ StringsAreEqual()

static __inline__ int StringsAreEqual ( const char *  x,
const char *  y 
)
static

Definition at line 855 of file String.h.

◆ StringsAreEqual_1()

int StringsAreEqual_1 ( string_t  x,
string_t  y 
)

Definition at line 1460 of file String.c.

References StringType::size, StringType::string, and StringVoid.

Referenced by crypt_opt(), zuluCryptEXEAddKey(), and zuluCryptEXECreateVolume().

◆ StringsAreEqual_2()

◆ StringsAreNotEqual()

static __inline__ int StringsAreNotEqual ( const char *  x,
const char *  y 
)
static

Definition at line 869 of file String.h.

◆ StringsAreNotEqual_2()

static __inline__ int StringsAreNotEqual_2 ( string_t  x,
const char *  y 
)
static

Definition at line 656 of file String.h.

References StringsAreEqual_2().

Referenced by zuluCryptEXECreateVolume().

◆ StringSilentlyGetFromTerminal()

int StringSilentlyGetFromTerminal ( string_t )

Definition at line 1730 of file String.c.

References __terminalEchoOff(), StringGetFromTerminal(), and StringVoid.

◆ StringSilentlyGetFromTerminal_1()

◆ StringSize()

◆ StringStartsAndEndsWith()

int StringStartsAndEndsWith ( const char *  a,
const char *  b,
const char *  c 
)

Definition at line 808 of file String.c.

References _string_ends_with().

Referenced by _get_mapper_property_from_udev().

◆ StringStartsWith()

◆ StringStartsWith_1()

int StringStartsWith_1 ( string_t  st,
string_t  xt 
)

Definition at line 830 of file String.c.

References StringType::size, StringType::string, and StringVoid.

Referenced by _get_mount_entries(), and _not_removed().

◆ StringStartsWithAtLeastOne()

int StringStartsWithAtLeastOne ( string_t  st,
  ... 
)

◆ StringStringAt()

const char* StringStringAt ( string_t  st,
size_t  p 
)

Definition at line 870 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringSubChar()

◆ StringSubString()

const char* StringSubString ( string_t  st,
size_t  x,
const char *  s 
)

Definition at line 936 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringSubStringWithInt()

const char* StringSubStringWithInt ( string_t  st,
const char *  str,
u_int64_t  num 
)

Definition at line 1438 of file String.c.

References _intToString(), BUFFSIZE, and StringReplaceString().

◆ StringToLowerCase()

const char* StringToLowerCase ( string_t  )

◆ StringUnlock()

int StringUnlock ( string_t  )

Definition at line 153 of file String.c.

References StringType::size, StringType::string, and StringVoid.

◆ StringWithSize()

string_t StringWithSize ( const char *  string,
size_t  length 
)

Definition at line 453 of file String.c.

References _StringError(), StringInheritWithSize(), and StringVoid.

Referenced by StringListCopy().

◆ StringWriteToFile()

void StringWriteToFile ( string_t  st,
const char *  path,
int  mode 
)

Definition at line 2013 of file String.c.

References ignore_result, StringType::size, StringType::string, and StringVoid.