Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jul 2007 16:13:49 +0200
From:      dirk.meyer@dinoex.sub.org (Dirk Meyer)
To:        freebsd-current@freebsd.org
Subject:   Re: HEADS UP:  getenv() and family API change
Message-ID:  <Xuu8UV3Bay@dmeyer.dinoex.sub.org>
References:  <20070703182400.Q1449@baba.farley.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]
http://people.freebsd.org/~dinoex/errorlogs/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Xuu8UV3Bay>