Header And Logo

PostgreSQL
| The world's most advanced open source database.

Functions | Variables

strerror.c File Reference

#include "c.h"
Include dependency graph for strerror.c:

Go to the source code of this file.

Functions

const char * strerror (int errnum)

Variables

const char *const sys_errlist []
int sys_nerr

Function Documentation

const char* strerror ( int  errnum  ) 

Definition at line 19 of file strerror.c.

References _, buf, sys_errlist, and sys_nerr.

Referenced by _CloseArchive(), _CustomReadFunc(), _discoverArchiveFormat(), _LoadBlobs(), _PrintFileData(), _PrintTocData(), _ReopenArchive(), _skipData(), _StartBlob(), _StartBlobs(), _StartData(), _tarAddFile(), _tarWriteHeader(), _WriteBuf(), _WriteByte(), ahwrite(), BaseBackup(), check_errno(), check_input(), check_ok(), checkDataDir(), CheckForExternalTrigger(), CleanupPriorWALFiles(), close_walfile(), CloseArchive(), convert_sourcefiles_in(), create_data_directory(), create_xlog_symlink(), CustomizableCleanupPriorWALFiles(), die(), do_copy(), do_edit(), do_kill(), do_promote(), do_reload(), do_restart(), do_stop(), dolink(), dumpDatabases(), exec_command(), existsTimeLineHistoryFile(), file_line_count(), file_size(), find_my_exec(), FindEndOfXLOG(), FindStreamingStart(), fsync_fname(), get_id(), get_pgpid(), get_set_pwd(), get_user_name(), getErrorText(), getMessageFromWorker(), gets_fromFile(), handleCopyOut(), HandleCopyStream(), infile(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Tar(), KillExistingArchiveStatus(), KillExistingXLOG(), load_resultmap(), main(), make_absolute_path(), make_directory(), memcheck(), mkdatadir(), mkdirs(), open_result_files(), open_walfile(), parallel_exec_prog(), parallel_transfer_all_new_dbs(), ParallelBackupStart(), pclose_check(), pg_dlerror(), pgfnames(), popen_check(), PostmasterMain(), pqStrerror(), pre_sync_fname(), process_file(), reached_end_position(), ReadControlFile(), readfile(), reap_child(), ReceiveAndUnpackTarFile(), ReceiveTarFile(), ReceiveXlogStream(), regression_main(), report_fork_failure_to_client(), resolve_symlinks(), RestoreOutput(), RewriteControlFile(), rmtree(), run_schedule(), saveHistory(), scan_available_timezones(), SelectConfigFiles(), sendMessageToMaster(), sendMessageToWorker(), set_null_conf(), SetOutput(), setQFout(), SortTocFromFile(), spawn_process(), StartLogStreamer(), startup_hacks(), tarOpen(), tarWrite(), threadRun(), try_complete_step(), usage(), useful_strerror(), verify_dir_is_empty_or_create(), wait_for_tests(), walkdir(), write_syslogger_file(), write_version_file(), WriteDataToArchiveNone(), WriteEmptyXLOG(), writefile(), WriteRecoveryConf(), writeTarData(), writeTimeLineHistoryFile(), writezone(), and XLogDumpXLogRead().

{
    static char buf[24];

    if (errnum < 0 || errnum > sys_nerr)
    {
        sprintf(buf, _("unrecognized error %d"), errnum);
        return buf;
    }

    return sys_errlist[errnum];
}


Variable Documentation

const char* const sys_errlist[]

Referenced by strerror().

int sys_nerr

Referenced by strerror().