change int to mode_t's and to dev_t's as appropriate add new new stat syscem calls and make the old ones compatibility.