From owner-freebsd-ports Mon Mar 24 18:40:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA02941 for ports-outgoing; Mon, 24 Mar 1997 18:40:08 -0800 (PST) Received: from nexis.net (customer-1.ican.net [198.133.36.101]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA02878 for ; Mon, 24 Mar 1997 18:39:50 -0800 (PST) Received: from localhost (james@localhost) by nexis.net (8.8.5/8.8.5) with SMTP id VAA24451 for ; Mon, 24 Mar 1997 21:36:02 -0500 (EST) Date: Mon, 24 Mar 1997 21:36:02 -0500 (EST) From: James FitzGibbon To: freebsd-ports@freebsd.org Subject: Re: Replacement for strptime(3) ? (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Question: what is the "official" position regarding ports that require hacks (or borrowed addition) to FreeBSD libraries. Read below for specifics, but the short form is that in order to port mSQL 2.0b5 completely, I need strptime(3), which isn't in FBSD libc, but is in GNU libc. Can I just include strptime.c in ${FILESDIR} and compile it up for this port, or does that tread on policy (GNU, FreeBSD, or otherwise ?) -- j. ---------- Forwarded message ---------- Date: Mon, 24 Mar 1997 17:42:52 -0600 (CST) From: Dan Walters To: James FitzGibbon Subject: Re: Replacement for strptime(3) ? I just ripped the one out of GNU libc, think I had to delete one #include to make it work. Must be for mSQL. :) ====================================================================== Dan Walters hannibal@cyberstation.net ====================================================================== On Mon, 24 Mar 1997, James FitzGibbon wrote: > > I'm looking for a replacement for strptime in order to complete a port. > The calls in the source code look like this : > > strptime(date,"%d-%b-%Y", &locTime); > > >From what I can tell, strptime is the inverse of strftime, taking a > string in ctime(3) format, a format specifier, and returning a time_t > struct. > > Unfortunately, the call is not including in the standard FreeBSD libc. > > If it's available as a standard add-on library, I'd be happy to port that > and make the new port rely on it. Otherwise, since there is only one call > to strptime and the format specifier is static, I could write a relatively > simple wrapper for it.. > > Any help is appreciated. > > -- > j. >