HEADS UP: getenv() and family API change
Dirk Meyer
dirk.meyer at dinoex.sub.org
Sun Jul 8 14:45:53 UTC 2007
Hallo Sean C. Farley,
> Changes in moving to POSIX from historic BSD API:
> b. putenv takes a char * instead of const char *.
> c. putenv no longer makes a copy of the input string.
Can you give more details?
An application will break in using this:
putenv("PATH=/bin")
now taking a char *, this will break with gcc42.
kind regards Dirk
- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer at dinoex.sub.org],[dirk.meyer at guug.de],[dinoex at FreeBSD.org]
http://people.freebsd.org/~dinoex/errorlogs/
More information about the freebsd-current
mailing list