I'm having trouble using strerrorlen_s in gcc 4.7.2 even though I defined __STDC_WANT_LIB_EXT1__ 1.
What is the oldest version of gcc/glibc that supports the strerrorlen_s and strerror_s functions?
1.9k Views Asked by clockley1 At
2
There are 2 best solutions below
2
jim mcnamara
On
N1570 Committee Draft — April 12, 2011 ISO/IEC 9899:201x
errno_t strerror_s(char *s, rsize_t maxsize, errno_t errnum);
size_t strerrorlen_s(errno_t errnum);
size_t strnlen_s(const char *s, size_t maxsize);
That's from my copy of the C11 standard - draft N1570. Maybe later versions of gcc have it... So we are not both crazy....
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in GLIBC
- Format String Exploitation - Unkown differences in leaked LIBC addresses
- How to use a newer linker and glibc in a Kotlin/Native project?
- C++ Boost program how to statically compiled with musl libc?
- Error "cannot find /usr/lib/libc_nonshared.a" when installing cmake
- Why is fork() accepted in strace if the actual syscall is clone()?
- How do I create an Android make file to merge a glibc based root filesystem into to the AOSP filesystem?
- Why VTune fails with error `[Instrumentation Engine]: __libc_thread_freeres()`?
- How to upgrade Glibc library in Ubuntu 22.04
- Linking to .so with newer symbol
- symbol lookup error: undefined symbol: __pow_finite
- Why can't I run my python executables in busybox?
- Where do man pages about libc come from if they do not come from glibc?
- Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found
- C++: performance, free(null)/delete null and `std::move`
- Error while executing make check on glibc build for LFS
Related Questions in C11
- Forcing C standard in CMake
- Appropriate use of `void **` for garbage-collected structs in C?
- Why does C/C++ not have a atomic flag test_and_clear?
- do while loop does only execute scanf_s(" %d", &variable); once
- Setup C11 in Visual Studio Code
- C11 : killing a thread using standard-only library
- Does the C11/C17 Standard allow the compiler to clobber compound literals' memory?
- How to do file I/O with bool in C?
- How can I combine a comparison and an update in one atomic operation?
- MSVC compiled code hits debug assert when using _Atomic float
- Memory ordering and RMW operations
- How to get C11 threads (and other) man pages on linux system
- C11 nested generics
- Missing the great reason for memset_s (C11)
- What to do to make '_Generic('a', char : 1, int : 2) == 1' true
Related Questions in TR24731
- Use memcpy_s in c++
- Why is scanf() considered unsafe in Visual Studio?
- Why does this sprintf_s throw an exception?
- I'm using Linux, compiling with gcc, getting error: warning: implicit declaration of function ‘fopen_s’, can someone help me fix this?
- Using strcpy_s to copy string to char*
- Where is the scanf_s() buffer defined?
- Why didn't gcc (or glibc) implement _s functions?
- strtok_s is undefined on os x
- second scanf_s would skip if the first scanf_s contains more than one words
- Dev C++ strtok_s throws [Warning] assignment makes pointer from integer without a cast
- __STDC_LIB_EXT1__ availability in gcc and clang
- What is the difference between vsnprintf and vsprintf_s?
- What is unsafe about fopen?
- "string safe functions" and gcc
- sprintf_s() implicit declaration warning
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It's not in glib 2.13, at least under Debian, but I can't see why that would be different to any other system. A search for
strerrorlen_son the whole disk returns nothing.It's also not listed in any of the release notes for 2.14 through the current 2.17 (searched for
bounds,tr24731andstrerrorlen_s). It's not even mentioned on the 2.18 wiki page.Keep in mind that the bounds checking interfaces are an optional feature of C11. Annex K details this, and implementations are not required to provide it at all.
It looks like there are actually no plans to support this feature in the core
glibcat all. From a comment by Ulrich Drepper (admittedly March 2012) on whether support would be forthcoming:Similarly, from an LNW article around the same time: