ioctlの意味 ref: http://qiita.com/items/5c51343befae6107b0ff