llvm::restoreStdHandleAutoConversion

Restore the previously saved auto-conversion mode for a standard handle.

Synopsis

Declared in <llvm/Support/AutoConvert.h>

std::error_code
restoreStdHandleAutoConversion(int FD);

Description

Applies to stdin, stdout, or stderr after enableAutoConversion has recorded their prior conversion state. On non-z/OS platforms this is a no-op that returns success.

Return Value

A default-constructed error_code on success, otherwise the platform error from restoring conversion.

Parameters

NameDescription
FDThe standard file descriptor to restore.