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
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in LINUX
- How do I recursively find and replace only in files named index.php on Linux webserver?
- passing text with \n as one argument in shell
- kernel module does not print packet info
- How to send ESC/POS commands to thermal printer in Linux
- (x64 Nasm) Writeline function on Linux
- How do I set the Hive user to something different than the Spark user from within a Spark program?
- Default priority of thread with SCHED_FIFO
- Calling a python function with options from shell script
- How to split a directory into parts without compressing or archiving?
- Cross compile simple standard C program on Linux for Mac
- How to offload NAPI poll function to workqueue
- python netifaces - How to get currently used network interface
- Unexpected output from function
- mingw-64 conflicting declarations when cross-compiling
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
Related Questions in GLIBC
- How to load all symbols from shared library on start up?
- Malloc( ) - Decision between a new page(s) request or re-cycling previously allocated memory
- Custom glibc in non-standard path on machine with uclibc and gcc compiled against uclibc
- crosstool-NG linux x86 32Bit build fails on 32Bit vm-machine, Assembler messages
- dlopen errors in glibc
- Send UDP broadcast with use of glib
- GNU argp "too few arguments"
- C compiler error: cdefs.h not found
- How can I invoke a function with multiple distinct signatures (as glibc invokes main)?
- sudo su command not working in OEL 7
- -pthread, -lpthread and minimal dynamic linktime dependencies
- How to get the position of the function in the call stack?
- Standard way to call `ffsl` in C++?
- How to set LD_PRELOAD for su or sudo?
- Async signal safety of fork()
Related Questions in C11
- Does comma separators in type definition in C guarantee the order?
- Can an implementation that has sizeof (int) == 1 "fully conform"?
- Is there a meaningful distinction between freestanding and hosted implementations?
- Why C11 standard doesn't drop unsafe strcat(),strcpy() functions?
- How can I share a const char array between two source files gracefully?
- How to extract the source filename without path and suffix at compile time?
- Is this a valid definition for main()
- Why can't I "goto default;" or "goto case x;" within a switch selection structure?
- Reading a character with scanf_s
- How to understand atomics in a freestanding C or C++ implementation?
- How to highlight printf, scanf in Vim?
- Does assignment change the effective type of a variable?
- Can you always access suitably aligned buffer containing structure data in C?
- Initializing a thread local variable
- Compatibility of C89/C90, C99 and C11
Related Questions in TR24731
- Reading a character with scanf_s
- C++ strcpy_s IntelliSense error
- what is wrong in this program?
- "wcs" and "_w" and "_mbs" prefix in Visual Studio
- What is unsafe about fopen?
- Best practice for memcpy in C
- Difference between scanf and scanf_s
- __STDC_LIB_EXT1__ availability in gcc and clang
- Undefined symbols for architecture x86_64: "_gets_s"
- Why didn't gcc (or glibc) implement _s functions?
- error C4996: 'scanf': This function or variable may be unsafe in c programming
- Visual Studio error in C, unhandled exception at 0xfefefefe
- I am having trouble with multiple chars and scanf_s()
- man pages for optional C11 Annex K functions
- What is the oldest version of gcc/glibc that supports the strerrorlen_s and strerror_s functions?
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 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: