truct keyword...
hi there...
as i was wandering in the world of linux kernel headers, i stumbled on a type-name-like-thing with the name truct. one example follows... Code:
truct modversion_info thx ppl! dave. |
Unless someone declared an alias (or whatever C calls it), it's a typo. Should be "struct".
|
Something is trimming column 1 off your data (or your display). I'd lay a small wager it should look like
Code:
struct modversion_info |
Quote:
|
well, it kinda crossed my mind, but, on the same file all edge charachters are present!
#includes <...> are not deprived of a #, and as you can see, the semicolons line up properly! |
Does it matter what program you use to read the file?
What happens if you do this?: grep -A4 "truct modversion" filename |
just try the next command...
Code:
/usr/src/linux/include/linux/grep -o truct ./*|sort|most |
Instead of -o, try word bounding ... :eek:
|
Quote:
But, why are you asking us to run commands? You need to figure what's happening on your machine...... |
i did not force anyone to run any command at anytime m8!
and what is happening to my computer, possibly happens to yours as well! and i am trully sorry for making a mistake in my command syntax. what i meant was Code:
/usr/src/linux/include/linux/# grep -o truct ./*|sort|most |
bingo!! that does make more sense.....;)
"grep -o" returns only the search string, so what you are seeing is quite normal. It will find every line containing "truct" and print out only the "truct". It will do this for every line containing "struct". syg00 has the right answer (word bounding) I also asked if you had the same issue when using different programs to read the files....... |
All times are GMT -5. The time now is 12:34 AM. |