#include <stdint.h>
#include <inttypes.h>
#include <sys/param.h>
Go to the source code of this file.
|
Value: x = ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)); Definition at line 49 of file libpst.h. Referenced by lzfu_decompress(), pst_build_id2(), pst_decode_index(), pst_ff_compile_ID(), pst_getBlockOffset(), pst_load_extended_attributes(), pst_parse_block(), and pst_process(). |
|
Value: x = ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8 ) | \ (((x) & 0x0000ff00) << 8 ) | \ (((x) & 0x000000ff) << 24)); Definition at line 44 of file libpst.h. Referenced by lzfu_decompress(), pst_decode_assoc(), pst_decode_desc(), pst_decode_index(), pst_decode_table(), pst_decode_type3(), pst_ff_compile_ID(), pst_getIntAt(), pst_getIntAtPos(), pst_load_extended_attributes(), pst_open(), pst_parse_block(), and pst_process(). |
|
Value: x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \ (((x) & UINT64_C(0x00ff000000000000)) >> 40) | \ (((x) & UINT64_C(0x0000ff0000000000)) >> 24) | \ (((x) & UINT64_C(0x000000ff00000000)) >> 8 ) | \ (((x) & UINT64_C(0x00000000ff000000)) << 8 ) | \ (((x) & UINT64_C(0x0000000000ff0000)) << 24) | \ (((x) & UINT64_C(0x000000000000ff00)) << 40) | \ (((x) & UINT64_C(0x00000000000000ff)) << 56)); Definition at line 35 of file libpst.h. Referenced by pst_decode_assoc(), pst_decode_desc(), pst_decode_index(), pst_decode_table(), pst_decode_type3(), pst_getIntAt(), and pst_getIntAtPos(). |
|
Definition at line 102 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 101 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 95 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 94 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 98 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 100 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 93 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 96 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 103 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 99 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 97 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 107 of file libpst.h. Referenced by pst_process(). |
|
Definition at line 109 of file libpst.h. Referenced by pst_process(). |
|
|
|
Definition at line 108 of file libpst.h. Referenced by pst_process(). |
|
Definition at line 110 of file libpst.h. Referenced by pst_process(). |
|
Definition at line 84 of file libpst.h. Referenced by pst_process(). |
|
Definition at line 76 of file libpst.h. Referenced by main(). |
|
|
|
|
|
Definition at line 89 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 87 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 90 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
Definition at line 88 of file libpst.h. Referenced by pst_process(), and write_appointment(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 61 of file libpst.h. Referenced by process(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by pst_decode_desc(). |
|
|
Referenced by pst_build_desc_ptr(), and pst_decode_desc(). |
|
Referenced by pst_process(). |
|
|
|
|
|
Referenced by pst_build_id_ptr(), and pst_decode_index(). |
|
|
Referenced by pst_decode_index(). |
|
|
|
|
Referenced by pst_parse_item(). |
|
|
|
Referenced by pst_parse_item(), and write_normal_email(). |
|
|
|
|
|
Referenced by pst_process(). |
|
Referenced by pst_process(). |
|
|
|
|
|
|
|
|
|
Referenced by pst_parse_block(). |
|
Referenced by pst_parse_block(). |
|
|
|
|
|
|
|
Definition at line 290 of file libpst.c. References pst_item_attach::data, DEBUG_ENT, DEBUG_RET, DEBUG_WARN, pst_item_attach::id_val, pst_ff_getID2data(), pst_fwrite(), pst_getID(), pst_index_ll, and pst_item_attach::size. Referenced by write_separate_attachment(). |
|
Definition at line 314 of file libpst.c. References base64_encode(), pst_holder::base64_extra, pst_holder::base64_extra_chars, pst_item_attach::data, DEBUG_ENT, DEBUG_RET, DEBUG_WARN, pst_item_attach::id_val, pst_ff_getID2data(), pst_fwrite(), pst_getID(), pst_index_ll, and pst_item_attach::size. Referenced by write_inline_attachment(). |
|
Definition at line 268 of file libpst.c. References DEBUG_ENT, DEBUG_RET, DEBUG_WARN, pst_item_attach::id_val, pst_ff_getID2data(), pst_getID(), pst_index_ll, and pst_item_attach::size. |
|
|
Definition at line 3708 of file libpst.c. References DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_INDEX, DEBUG_RET, DEBUG_WARN, pst_file::do_read64, pst_index2_tree::id, pst_id2_assoc::id, pst_index_tree::id, pst_index2_tree::id2, pst_id2_assoc::id2, LE16_CPU, pst_index2_tree::next, pst_index_tree::offset, pst_decode_assoc(), pst_getID(), pst_index2_ll, pst_index_ll, pst_read_block_size(), pst_index_tree::size, pst_id2_assoc::table2, pst_index_tree::u1, WARN, and xmalloc(). Referenced by pst_load_extended_attributes(), and pst_parse_item(). |
|
|
Definition at line 4697 of file libpst.c. Referenced by pst_rfc2426_escape(). |
|
Definition at line 229 of file libpst.c. References pst_file::d_head, DEBUG_ENT, DEBUG_RET, pst_file::fp, pst_file::i_head, pst_free_desc(), pst_free_id(), pst_free_xattrib(), WARN, and pst_file::x_head. Referenced by main(). |
|
Definition at line 4220 of file libpst.c. References comp_enc, comp_high1, comp_high2, DEBUG_ENT, DEBUG_RET, and WARN. Referenced by main(), pst_ff_compile_ID(), and pst_ff_getIDblock_dec(). |
|
Definition at line 4446 of file libpst.c. References pst_holder::base64, base64_encode(), pst_holder::base64_extra, pst_holder::base64_extra_chars, pst_holder::buf, DEBUG_EMAIL, DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_READ, DEBUG_RET, DEBUG_WARN, pst_file::encryption, pst_holder::fp, pst_table3_rec::id, LE16_CPU, LE32_CPU, pst_decode_type3(), pst_decrypt(), pst_ff_getIDblock(), pst_ff_getIDblock_dec(), and pst_fwrite(). Referenced by pst_ff_getID2data(). |
|
Definition at line 4394 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_ff_getID2data(), pst_getID2(), pst_index2_ll, and pst_index_ll. Referenced by pst_getBlockOffsetPointer(), and pst_parse_block(). |
|
Definition at line 4412 of file libpst.c. References pst_holder::base64, base64_encode(), pst_holder::buf, DEBUG_ENT, DEBUG_READ, DEBUG_RET, pst_holder::fp, pst_index_tree::id, pst_ff_compile_ID(), pst_ff_getIDblock_dec(), pst_fwrite(), and pst_index_ll. Referenced by pst_attach_to_file(), pst_attach_to_file_base64(), pst_attach_to_mem(), and pst_ff_getID2block(). |
|
Read a block of data from file into memory.
Definition at line 4376 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_index_tree::offset, pst_getID(), pst_index_ll, pst_read_block_size(), and pst_index_tree::size. Referenced by main(), pst_ff_compile_ID(), and pst_ff_getIDblock_dec(). |
|
Get an ID block from file using _pst_ff_getIDblock and decrypt if necessary.
Definition at line 4353 of file libpst.c. References DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_INDEX, DEBUG_RET, pst_file::encryption, pst_decrypt(), and pst_ff_getIDblock(). Referenced by main(), pst_ff_compile_ID(), pst_ff_getID2data(), and pst_parse_block(). |
|
Definition at line 3671 of file libpst.c. References pst_desc_tree::child, DEBUG_ENT, DEBUG_RET, DIE, pst_desc_tree::next, pst_desc_tree::parent, and pst_desc_ll. Referenced by pst_close(). |
|
Definition at line 3659 of file libpst.c. References DEBUG_ENT, DEBUG_RET, pst_index_tree::next, and pst_index_ll. Referenced by pst_close(). |
|
Definition at line 3647 of file libpst.c. References DEBUG_ENT, DEBUG_RET, pst_index2_tree::next, and pst_index2_ll. Referenced by pst_load_extended_attributes(), and pst_parse_item(). |
|
Definition at line 3625 of file libpst.c. References pst_num_item::data, DEBUG_ENT, DEBUG_RET, pst_num_array::items, pst_num_array::next, and pst_num_array::orig_count. Referenced by pst_load_extended_attributes(), pst_parse_block(), and pst_parse_item(). |
|
Definition at line 3695 of file libpst.c. References pst_x_attrib_ll::data, DEBUG_ENT, DEBUG_RET, and pst_x_attrib_ll::next. Referenced by pst_close(). |
|
|
Definition at line 4607 of file libpst.c. References DEBUG_ENT, DEBUG_RET, and DEBUG_WARN. Referenced by main(), pst_attach_to_file(), pst_attach_to_file_base64(), pst_ff_compile_ID(), pst_ff_getID2data(), write_email_body(), write_inline_attachment(), and write_separate_attachment(). |
|
Read part of the pst file.
Definition at line 4309 of file libpst.c. References DEBUG_ENT, DEBUG_RET, and pst_file::fp. Referenced by pst_getIntAtPos(), pst_open(), and pst_read_block_size(). |
|
Definition at line 4055 of file libpst.c. References DEBUG_ENT, DEBUG_RET, DEBUG_WARN, pst_block_offset::from, LE16_CPU, and pst_block_offset::to. Referenced by pst_getBlockOffsetPointer(). |
|
The offset might be zero, in which case we have no data, so return a pair of null pointers. Or, the offset might end in 0xf, so it is an id2 pointer, in which case we read the id2 block. Otherwise, the high order 16 bits of offset is the index into the subblocks, and the (low order 16 bits of offset)>>4 is an index into the table of offsets in the subblock. Definition at line 4008 of file libpst.c. References pst_subblock::buf, DEBUG_ENT, DEBUG_RET, DEBUG_WARN, pst_block_offset::from, pst_block_offset_pointer::from, pst_subblock::i_offset, pst_block_offset_pointer::needfree, pst_ff_getID2block(), pst_getBlockOffset(), pst_index2_ll, pst_subblock::read_size, pst_subblocks::subblock_count, pst_subblocks::subs, pst_block_offset::to, and pst_block_offset_pointer::to. Referenced by pst_parse_block(). |
|
find the id in the descriptor tree rooted at pf->d_head
Definition at line 4129 of file libpst.c. References pst_desc_tree::child, pst_file::d_head, DEBUG_ENT, DEBUG_RET, pst_desc_tree::id, pst_desc_tree::next, pst_desc_tree::parent, and pst_desc_ll. Referenced by pst_build_desc_ptr(), pst_getTopOfFolders(), pst_load_extended_attributes(), and record_descriptor(). |
|
Definition at line 4079 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_file::i_head, pst_index_tree::id, pst_index_tree::next, and pst_index_ll. Referenced by main(), pst_attach_to_file(), pst_attach_to_file_base64(), pst_attach_to_mem(), pst_build_desc_ptr(), pst_build_id2(), and pst_ff_getIDblock(). |
|
Definition at line 4103 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_index_tree::id, pst_index2_tree::id, pst_index2_tree::id2, pst_index2_tree::next, pst_index2_ll, and pst_index_ll. Referenced by pst_ff_getID2block(), and pst_parse_item(). |
|
Definition at line 4268 of file libpst.c. References pst_file::do_read64, LE32_CPU, and LE64_CPU. Referenced by pst_build_desc_ptr(), and pst_build_id_ptr(). |
|
Definition at line 4284 of file libpst.c. References pst_file::do_read64, LE32_CPU, LE64_CPU, and pst_getAtPos(). Referenced by pst_open(). |
|
|
|
Definition at line 372 of file libpst.c. References pst_desc_tree::child, DEBUG_ENT, DEBUG_RET, pst_desc_tree::next, pst_desc_tree::parent, and pst_desc_ll. Referenced by main(). |
|
Definition at line 250 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_entryid_struct::id, pst_item::message_store, pst_desc_ll, pst_getDptr(), and pst_item_message_store::top_of_personal_folder. Referenced by main(). |
|
|
Definition at line 349 of file libpst.c. References pst_file::d_head, DEBUG_CODE, DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_file::index1, pst_file::index1_back, pst_file::index2, pst_file::index2_back, pst_build_desc_ptr(), pst_build_id_ptr(), pst_printDptr(), and WARN. Referenced by main(). |
|
Definition at line 158 of file libpst.c. References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, ENC_TYPE, FILE_SIZE_POINTER, INDEX_BACK, INDEX_POINTER, INDEX_TYPE32, INDEX_TYPE64, INDEX_TYPE_OFFSET, LE32_CPU, pst_getAtPos(), pst_getIntAtPos(), SECOND_BACK, SECOND_POINTER, unicode_init(), and WARN. Referenced by main(). |
|
|
|
Definition at line 4147 of file libpst.c. References pst_desc_tree::child, DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_desc_tree::desc, pst_index_tree::id, pst_desc_tree::id, pst_desc_tree::list_index, pst_desc_tree::next, pst_desc_tree::no_child, and pst_desc_ll. Referenced by pst_load_index(). |
|
Definition at line 4173 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_index_tree::id, pst_index2_tree::id, pst_index2_tree::id2, pst_index2_tree::next, and pst_index2_ll. Referenced by pst_load_extended_attributes(), and pst_parse_item(). |
|
Definition at line 4162 of file libpst.c. References DEBUG_ENT, DEBUG_INDEX, DEBUG_RET, pst_file::i_head, pst_index_tree::id, pst_index_tree::next, pst_index_tree::offset, pst_index_ll, and pst_index_tree::size. |
|
|
Read a block of data from file into memory.
Definition at line 4192 of file libpst.c. References DEBUG_ENT, DEBUG_READ, DEBUG_RET, DEBUG_WARN, pst_file::fp, pst_getAtPos(), and xmalloc(). Referenced by pst_build_desc_ptr(), pst_build_id2(), pst_build_id_ptr(), and pst_ff_getIDblock(). |
|
Definition at line 4707 of file libpst.c. References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, and fileTimeToStructTM(). Referenced by write_vcard(). |
|
Definition at line 4639 of file libpst.c. References DEBUG_ENT, DEBUG_RET, and pst_chr_count(). Referenced by process(), write_appointment(), and write_vcard(). |
|
Definition at line 4720 of file libpst.c. References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, and fileTimeToStructTM(). Referenced by process(), and write_appointment(). |
|
Definition at line 4575 of file libpst.c. Referenced by pst_process(). |
|
Definition at line 4590 of file libpst.c. Referenced by pst_process(), and write_normal_email(). |
|
Definition at line 4621 of file libpst.c. References DEBUG_ENT, DEBUG_RET, and xmalloc(). Referenced by pst_load_extended_attributes(). |