Merge pull request #1 from akoshibe/master

added sockproto values
Add raw socket type.
Optimize nodemoves()

    Maintain sets for the instruction, so that we don't
    have to do lots of O(n) lookups. Those are slow.
Merge https://github.com/oridb/mc
Add IP protos to OSX
x
Add getdents function to linux.
Make system/arch dependent rules generic.

    Use a wild card rule for the copying.
Fix getdents() syscall.
Add directory listing under Linux.
Fix dir-linux to actually keep the offset.
Add support for directory listing under OSX
Move to stat64 on OSX.
Fix struct stat under Linux.
Compute the directory length

    There can be padding at the end of the buffer for alignment.
    All we can rely on is the '\0' terminator.
Fix struct stat.

    We had the wrong types/sizes. especially for a 64 bit stat.
add lstat() syscall
Add support for padded strings.

    Feeping Creaturinm.
Add tests for padded format strings.
Correct support for zero/space padded negative int

    We would either print '-     123' or 000000-123'
    in the past. Fixed.