Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (89)
Tags (83)
master
users/dichen/readelf-28873
users/mark/try-addr2line-C
users/mark/try-inline-lto-scopes
users/fche/try-lessC
users/mark/try-protocols_str
users/dichen/readelf-dynamic-symtab
users/marxin/try-zstd-support-v2
users/mark/try-non-relative-includes
main-mesa
users/fche/try-pr29472
0.187-mesa
0.187-msvc
users/rgoldber/try-metadata_query
users/mark/try-ar-N
users/marxin/try-PR29474-fix-debuginfod-concurrency
users/mark/try-dynamicsizehash_concurrent_coordinator_doc
users/mjw/try-Project-Id-Version
users/rgoldber/try-bz28204
users/mark/try-handle_dynamic_d_val
elfutils-0.188
0.187-mesa-v1
elfutils-0.187
elfutils-0.186
elfutils-0.185
elfutils-0.184
elfutils-0.183
dts-0.182
elfutils-0.182
elfutils-0.181
dts-0.180
elfutils-0.180
dts-0.178
dts-0.177
elfutils-0.179
elfutils-0.178
elfutils-0.177
dts-0.176
elfutils-0.176
dts-0.175
master
Branches (89)
Tags (83)
master
users/dichen/readelf-28873
users/mark/try-addr2line-C
users/mark/try-inline-lto-scopes
users/fche/try-lessC
users/mark/try-protocols_str
users/dichen/readelf-dynamic-symtab
users/marxin/try-zstd-support-v2
users/mark/try-non-relative-includes
main-mesa
users/fche/try-pr29472
0.187-mesa
0.187-msvc
users/rgoldber/try-metadata_query
users/mark/try-ar-N
users/marxin/try-PR29474-fix-debuginfod-concurrency
users/mark/try-dynamicsizehash_concurrent_coordinator_doc
users/mjw/try-Project-Id-Version
users/rgoldber/try-bz28204
users/mark/try-handle_dynamic_d_val
elfutils-0.188
0.187-mesa-v1
elfutils-0.187
elfutils-0.186
elfutils-0.185
elfutils-0.184
elfutils-0.183
dts-0.182
elfutils-0.182
elfutils-0.181
dts-0.180
elfutils-0.180
dts-0.178
dts-0.177
elfutils-0.179
elfutils-0.178
elfutils-0.177
dts-0.176
elfutils-0.176
dts-0.175
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (89)
Tags (83)
master
users/dichen/readelf-28873
users/mark/try-addr2line-C
users/mark/try-inline-lto-scopes
users/fche/try-lessC
users/mark/try-protocols_str
users/dichen/readelf-dynamic-symtab
users/marxin/try-zstd-support-v2
users/mark/try-non-relative-includes
main-mesa
users/fche/try-pr29472
0.187-mesa
0.187-msvc
users/rgoldber/try-metadata_query
users/mark/try-ar-N
users/marxin/try-PR29474-fix-debuginfod-concurrency
users/mark/try-dynamicsizehash_concurrent_coordinator_doc
users/mjw/try-Project-Id-Version
users/rgoldber/try-bz28204
users/mark/try-handle_dynamic_d_val
elfutils-0.188
0.187-mesa-v1
elfutils-0.187
elfutils-0.186
elfutils-0.185
elfutils-0.184
elfutils-0.183
dts-0.182
elfutils-0.182
elfutils-0.181
dts-0.180
elfutils-0.180
dts-0.178
dts-0.177
elfutils-0.179
elfutils-0.178
elfutils-0.177
dts-0.176
elfutils-0.176
dts-0.175
elfutils
/
lib
/
error.c
elfutils
/
lib
/
error.c
error.c 1.79 KB
Copy Edit Raw Blame History
Colin Cross authored 2021年09月11日 02:07 +08:00 . lib: Make error.c more like error(3)
/* Definitions for error fallback functions.
Copyright (C) 2021 Google, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at
your option) any later version
or
* the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at
your option) any later version
or both in parallel, as here.
elfutils is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
#if !defined(HAVE_ERROR_H) && defined(HAVE_ERR_H)
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <err.h>
unsigned int error_message_count = 0;
void error(int status, int errnum, const char *format, ...) {
va_list argp;
int saved_errno = errno;
fflush (stdout);
va_start(argp, format);
if (status)
{
if (errnum)
{
errno = errnum;
verr (status, format, argp);
}
else
verrx (status, format, argp);
}
else
{
if (errnum)
{
errno = errnum;
vwarn (format, argp);
}
else
vwarnx (format, argp);
}
va_end(argp);
fflush (stderr);
++error_message_count;
errno = saved_errno;
}
#endif
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

fork from https://github.com/sourceware-org/elfutils.git
No labels
GPL-2.0
Use GPL-2.0
, LGPL-3.0
Use LGPL-3.0
, GPL-3.0
Use GPL-3.0
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/source-code-sync/elfutils.git
git@gitee.com:source-code-sync/elfutils.git
source-code-sync
elfutils
elfutils
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /