Search Results

Search: Posts Made By: segmentation
1,581
Posted By segmentation
I don't understand what do you mean with 2...
I don't understand what do you mean with 2 consecutive /B. I tried string/BB and
string/B/B and some other combinations but no result.
1,581
Posted By segmentation
I am trying to implement a program in erlang...
I am trying to implement a program in erlang which detects file types.I am using unix's database magic.mime and its syntax.My system is ubuntu.
1,581
Posted By segmentation
Magic numbers string/B problem
Hello,

In manpage magic(5)
"
The “B” flag compacts whitespace in the target, which must contain at least one whitespace character. If the magic has n consecutive blanks, the target needs at...
2,040
Posted By segmentation
I choose a=0x22 and b=0x32. In C they match...
I choose a=0x22 and b=0x32.
In C they match but in magic test not matched. When we think like C language it is similar to not equal but it does not work every time. I am implementing filetype...
2,040
Posted By segmentation
Sorry, I do not understand functionality of ^...
Sorry, I do not understand functionality of ^ operator by this sentences
" "^0x1" means low order bit must be 0 "

I posted above and will write again clearly.

In my magic.mime there is only...
2,040
Posted By segmentation
Thank you very much friend it works now. "ubyte"...
Thank you very much friend it works now. "ubyte" is not writing on man pages but it is mentioned in somewhere in magic.mime database files and ulong, ubelong ... , as well. So "^" operator is vice...
2,040
Posted By segmentation
Magic numbers '&' operator problem
Hello everyone,

on the man page of "magic(5)"
There is explanation
"&, to specify that the value from the file must have set all of the bits that are set in the specified value" .

My...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy