Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library fcntl > module Fcntl > O_RDWR
O_RDWR -> Integer
ファイルを読み書きできるように開きます。