4 ms·
>The man page also documents secure_getenv(), which is a GNU extension: to be avoided in anything intended to be portable. GCC itself is portable, so?
by coldtea 10y ago
>The man page also documents secure_getenv(), which is a GNU extension: to be avoided in anything intended to be portable.
GCC itself is portable, so?
- ptman 10y agosecure_getenv() first appeared in glibc 2.17. not GCC
- andreareina 10y agoThat's like arguing that because cows are vegetarian, so is beef. Portable means that any system implementing the standard interface can use it; secure_getenv isn't part of the standard, therefore it's not portable.
- coldtea 10y agoNo, it's more like arguing that if one is OK with the (lots) of platforms GCC covers, then it shouldn't matter if some extension is GCC specific. Your program is still portable for your use cases.
- andreareina 10y agoNot everyone uses GCC, or glibc.