Re: HEADS UP: getenv() and family API change

From: Dirk Meyer <dirk.meyer_at_dinoex.sub.org>
Date: Sun, 08 Jul 2007 16:13:49 +0200
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/
Received on Sun Jul 08 2007 - 12:45:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC