freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: Mac OS X 10.1.5 Make Problem?
- Date: Mon, 16 Sep 2002 21:19:44 -0400
I had a few minutes to rewrite our asprintf.c tonight. If you update from
current CVS it should all Just Work. (If you can't do CVS, then wait until
the next tarball generation and try that). If you have any problems, let me
know.
You almost certainly won't have any problem. The implementation in our tree
was mistakenly being used even if the system already provided an
implementation. When I updated our implementation, I noticed this and fixed
the autoconf stuff so it will do the right thing. (asprintf.c now includes
config.h so that it will see the HAVE_VASPRINTF macro...)
Cheers,
--nick
-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Monday, September 16, 2002 7:14 PM
To: TDS Development Group
Subject: [freetds] RE: Mac OS X 10.1.5 Make Problem?
I knew I needed to test 0.63, but didn't get the time with 9/11 last week...
At 4:29 PM -0400 9/16/2002, Lowden, James K wrote:
>Yes. OS X perhaps has another variation on the theme for SC_PAGESIZE?
>What do you get for the following:
>
>$ grep -r SC_PAGESIZE /usr/include
Nothing.
>More interesting, what says "man asprintf" and "man vasprintf"? Are they
>not implemented by Darwin? The FreeTDS asprintf.c module should not come
>into play unless the OS does not provide these functions.
They are both implemented. Here's the relevant portions from the man page:
Asprintf() and vasprintf() set *ret to be a pointer to a buffer suffi-
ciently large to hold the formatted string. This pointer should be
passed to free(3) to release the allocated storage when it is no
longer
needed. If sufficient space cannot be allocated, asprintf() and
vasprintf() will return -1 and set ret to be a NULL pointer.
...
HISTORY
The functions asprintf() and vasprintf() first appeared in the GNU C
library. These were implemented by Peter Wemm <peter AT FreeBSD.org> in
FreeBSD 2.2, but were later replaced with a different implementation
from
Todd C. Miller <Todd.Miller AT courtesan.com> for OpenBSD 2.3.
Nothing in BUGS about it.
>I would be happy to fix FreeTDS to accomodate OS X, if we can find the
>equivalent of SC_PAGESIZE or correctly assess the presence of vasprintf(3).
There is /usr/bin/pagesize and the function getpagesize() in unistd.h
which return the number of bytes in a page.
--
__________________________________________________________________________
"They that can give up essential liberty
Mark J. Lilback to obtain a little temporary safety
<mark AT lilback.com> deserve neither liberty or safety."
http://www.lilback.com/ -- Benjamin Franklin
---
You are currently subscribed to freetds as: [Nicholas_Castellano AT acml.com]
To unsubscribe, forward this message to
$subst('Email.Unsub')
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.
-
Mac OS X 10.1.5 Make Problem?,
stephen . hsu, 09/16/2002
- <Possible follow-up(s)>
- Re: Mac OS X 10.1.5 Make Problem?, Frediano Ziglio, 09/16/2002
- RE: Mac OS X 10.1.5 Make Problem?, Lowden, James K, 09/16/2002
- Re: Mac OS X 10.1.5 Make Problem?, Castellano, Nicholas, 09/16/2002
- RE: Mac OS X 10.1.5 Make Problem?, Mark J. Lilback, 09/16/2002
- RE: Mac OS X 10.1.5 Make Problem?, Castellano, Nicholas, 09/16/2002
- RE: Mac OS X 10.1.5 Make Problem?, James K . Lowden, 09/16/2002
- RE: Mac OS X 10.1.5 Make Problem?, stephen . hsu, 09/16/2002
- RE: Mac OS X 10.1.5 Make Problem?, stephen . hsu, 09/17/2002
- RE: Mac OS X 10.1.5 Make Problem?, Castellano, Nicholas, 09/17/2002
- RE: Mac OS X 10.1.5 Make Problem?, Mark J. Lilback, 09/17/2002
Archive powered by MHonArc 2.6.24.