Switch to Bing in English
Copilot
あなたの日常的な AI アシスタント
約 132,000 件の結果
    賛成票8上位の回答answered Nov 28, 2011 at 21:29

    __USE_GNU is an internal macro, so you shouldn't define it yourself.

    But you may define _GNU_SOURCE, either in your code, or when compiling (using the -D option).

    I think defining this one will help to make TEMP_FAILURE_RETRY available.

    Content Under CC-BY-SA license
    これは役に立ちましたか?
  1. Interrupted Primitives (The GNU C Library)

  2. 他の人はこちらも質問
    The GNU C Library provides a convenient way to retry a call after a temporary failure, with the macro TEMP_FAILURE_RETRY : This macro evaluates expression once, and examines its value as type long int. If the value equals -1, that indicates a failure and errno should be set to show what kind of failure.
    This macro evaluates expression once, and examines its value as type long int. If the value equals -1, that indicates a failure and errno should be set to show what kind of failure. If it fails and reports error code EINTR , TEMP_FAILURE_RETRY evaluates it again, and over and over until the result is not a temporary failure.
    Typically, POSIX applications that use signal handlers must check for EINTR after each library function that can return it, in order to try the call again. Often programmers forget to check, which is a common source of error. The GNU C Library provides a convenient way to retry a call after a temporary failure, with the macro TEMP_FAILURE_RETRY :
  3. c - TEMP_FAILURE_RETRY and __USE_GNU - Stack Overflow

  4. 宏: TEMP_FAILURE_RETRY(expression)-CSDN博客

  5. I/O Primitives (The GNU C Library)

  6. Is it safe to restart system calls? - Unix & Linux Stack Exchange

  7. libcutils/include/cutils/fs.h - platform/system/core - Git at Google

  8. C++ (Cpp) TEMP_FAILURE_RETRY Examples - HotExamples

  9. TEMP_FAILURE_RETRY宏的应用(很好用) - CSDN博客

  10. C 中的通用临时重试宏/函数 (TEMP_FAILURE_RETRY) - IT工具网

  11. 一部の検索結果が削除されました
このサイトを利用すると、分析、カスタマイズされたコンテンツ、広告に Cookie を使用することに同意したことになります。サード パーティの Cookie に関する詳細情報|Microsoft のプライバシー ポリシー