LINUX.ORG.RU

История изменений

Исправление cumvillain, (текущая версия) :

Я не понимаю почему все тут про отказ диска заговорили. pwrite() может вернуть меньше, чем ты просил его записать. Это не будет ошибкой.

В мане же написано, кек:

The  number  of  bytes  written  may  be  less  than  count  if,  for  example, there is insufficient space on the underlying physical medium, or the RLIMIT_FSIZE resource limit is encountered (see setrlimit(2)), or the call was interrupted by a signal handler after having written less  than  count bytes. (See also pipe(7).)

Исправление cumvillain, :

Я не понимаю почему все тут про отказ диска заговорили. pwrite() может вернуть меньше, чем ты просил его записать. Это не будет ошибкой.

В мане же написано, кек:

       The  number  of  bytes  written  may  be  less  than  count  if,  for  example, there is insufficient space on the underlying physical medium, or the
       RLIMIT_FSIZE resource limit is encountered (see setrlimit(2)), or the call was interrupted by a signal handler after having written less  than  count
       bytes.  (See also pipe(7).)

Исходная версия cumvillain, :

Я не понимаю почему все тут про отказ диска заговорили. pwrite() может вернуть меньше, чем ты просил его записать. Это не будет ошибкой.