What does errno 105 (ECANCELED) mean?

 
Could be also:
ConstantTypeOS
ERROR_SEM_OWNER_DIEDWin32 errorWindows
ENOBUFSerrnoLinux
EOWNERDEADerrnoMac
IO1_INITIALIZATION_FAILEDBugCheck CodeWindows
Previous Next
EBADMSG ECONNABORTED

ECANCELED

ECANCELED is a UCRT POSIX compatibility constant. Its useful meaning is attached to a particular asynchronous request: the requested work was canceled, rather than completing normally or merely failing to start.

POSIX makes this distinction explicit for asynchronous I/O. A successful aio_cancel() request marks the affected operation with ECANCELED; work that cannot be canceled continues through normal completion. That model is useful when diagnosing a portability layer on Windows: first identify the request object and its completion path, rather than treating the number as a generic Windows cancellation code.

What to distinguish

  • The cancellation request was accepted and this specific operation reported cancellation.
  • The request was already completed before cancellation was attempted.
  • The operation could not be canceled because it was already executing.
  • A different operation, callback, timeout policy, or shutdown path produced the status.

Record the initiating component, request identifier, cancellation reason, and final completion state. Microsoft notes that errno is not necessarily the original operating-system error, so native Windows APIs must still be interpreted through their documented return and error channels.

References


Looking for a different code? Search another status or error code.