File: add attribute for file permission and size.

* Add method to truncate file.
Dlogger: add attribute to set maximum log size.
test: Add test for Buffer, Dlogger, and mapping from host to DNSQuery.
Ignore directory "test/tmp".

Directory "test/tmp" is for saving the output of testing.