Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library fcntl > module Fcntl > O_EXCL
O_EXCL -> Integer
ファイルが存在する場合に失敗します。Fcntl.OCREAT と一緒に使用します。