search for: magic_numb

Displaying 8 results from an estimated 8 matches for "magic_numb".

Did you mean: magic_number
2016 Mar 03
2
[cfe-dev] [3.8 Release] Please write release notes!
...a struct that represents that layout of a > serialized structure, consider making that struct packed; this will remove any > implicit internal padding that the compiler might add to the struct and > reduce its alignment requirement to 1. > > struct file_header { > uint16_t magic_number; > uint16_t format_version; > uint16_t num_entries; > } __attribute__((packed)); If we want to include this example, it is likely a good idea to point out that packed and aligned can be combined, i.e. if you know that the file_header copies are going to be at an aligned locati...
2004 Dec 20
0
[LLVMdev] Re: Compiling FreeType 2.1.9 with LLVM 1.4
...n ), (FT_UShort)( ((size_t) &((TT_Header *)0)->Font_Revision) ) }, { ft_frame_long_be, (FT_Byte)sizeof ( ((TT_Header*)0)->CheckSum_Adjust ), (FT_UShort)( ((size_t) &((TT_Header *)0)->CheckSum_Adjust) ) }, { ft_frame_long_be, (FT_Byte)sizeof ( ((TT_Header*)0)->Magic_Number ), (FT_UShort)( ((size_t) &((TT_Header *)0)->Magic_Number) ) }, { ft_frame_ushort_be, (FT_Byte)sizeof ( ((TT_Header*)0)->Flags ), (FT_UShort)( ((size_t) &((TT_Header *)0)->Flags) ) }, { ft_frame_ushort_be, (FT_Byte)sizeof ( ((TT_Header*)0)->Units_Per_EM ), (...
2016 Aug 05
4
Fwd: Re: Encrypt /decrypta file with ssh keys.
...;X$user_key" == 'X' ]; then user_key=`readlink -f ~/.ssh/id_rsa` fi if [ ! -e $user_key ]; then >&2 echo "User key file '$user_key' does not exist." exit 1 fi hex_data=`dd bs=1 if=$user_file skip=0 count=6 2>/dev/null` magic_number=${hex_data:0:2} if [ "$magic_number" != '5f' ]; then >&2 echo "File '$user_file' is not an ssh public key encrypted file." exit 1 fi crypt_key_len=$((16#${hex_data:2:4}-10000)) skip=$((2+4+$crypt_key_len)) magic_number=...
2016 Feb 26
2
[3.8 Release] Please write release notes!
If you were thinking about writing a note for 3.8 but didn't get around to it yet, this is the final reminder. (In particular, the notes for X86 and PowerPC could use some attention.) Thanks, Hans On Thu, Feb 11, 2016 at 4:16 PM, Hans Wennborg <hans at chromium.org> wrote: > Dear lots of people, > > The first comments on the 3.7 release expressed surprise that there > were
2004 Dec 20
2
[LLVMdev] Re: Compiling FreeType 2.1.9 with LLVM 1.4
On Sun, 2004-12-19 at 22:52, Adam Warner wrote: > Hi Reid Spencer, > > > CC=/path/to/llvmgcc CXX=/path/to/llvmg++ configure > > make > > > > and was able to reproduce the problem. Not sure what's up with that but > > as Misha pointed out, llvmgcc isn't any "particular" version of 3.4, its > > just 3.4ish. I also concur with him that you
1997 Sep 26
3
kerneld and module security
Here''s a neat trick for a machine running kerneld: not_root@machine$ /sbin/ifconfig isofs loads ''/lib/modules/(kernel version here)/fs/isofs.o''. /sbin/ifconfig when run as non-root queries a network interface for its configuration. However, if the interface is unknown it also tries to load the module that implements that interface using the name of the interface as
2016 Aug 10
2
crash JIT with AVX intrinsics
Hi all, I have some old code using the JIT via the LLVM-3.0-C API. I want to upgrade to newer versions of LLVM. As a simple example I wrote a C program that creates the following function and calls it: ; ModuleID = 'round-avx.bc' target triple = "x86_64-pc-linux-gnu" define void @round(<8 x float>*) { _L1: %1 = load <8 x float>* %0 %2 = call <8 x
2016 Feb 12
15
[3.8 Release] Please write release notes!
Dear lots of people, The first comments on the 3.7 release expressed surprise that there were no changes to the X86 or ARM targets. There had of course been a lot of hard work and many changes, but none of it was mentioned in the release notes. Please help make the release notes more comprehensive this time. The notes are of course not as important as the actual code, but they do get read, and