From owner-cvs-lib Sun May 10 06:30:52 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA23297 for cvs-lib-outgoing; Sun, 10 May 1998 06:30:52 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA23275; Sun, 10 May 1998 06:30:40 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id PAA17757; Sun, 10 May 1998 15:30:15 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Sun, 10 May 1998 15:30:14 +0200 (MET DST) Mime-Version: 1.0 To: Mike Smith Cc: "Jordan K. Hubbard" , Julian Elischer , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-lib@FreeBSD.org Subject: Re: cvs commit: src/lib/libftpio ftpio.c References: <199805090554.WAA00630@antipodes.cdrom.com> Organization: Gutteklubben Terrasse / KRST / PUMS / YASMW X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-Stop-Spam: http://www.cauce.org From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 10 May 1998 15:30:13 +0200 In-Reply-To: Mike Smith's message of "Fri, 08 May 1998 22:54:00 -0700" Message-ID: Lines: 18 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-cvs-lib@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Mike Smith writes: > > > FILE *fetchGetURL(char *URL, int flags); > > > FILE *fetchPutURL(char *URL, int flags); > > Sounds reasonable - so the flags will be the union of all possible > > options, e.g. everything from (contrived) FILE_SYMLINK to FTP_PASSIVE? > > Do we have less than 32 options in total? ;-) > Given that this looks a lot like fopen(), maybe use an option string > instead? Very good idea, thanks! BTW, I have the HTTP code pretty much knocked into place now, though there are some problems with transfer-coding I need to work out (using funopen() so I can decode chunk-encoded data transparently. I'll soon start banging the FTP code from libftpio into place... -- Noone else has a .sig like this one. From owner-cvs-lib Sun May 10 08:57:45 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA03683 for cvs-lib-outgoing; Sun, 10 May 1998 08:57:45 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA03625; Sun, 10 May 1998 08:57:37 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA18513; Sun, 10 May 1998 08:54:23 -0700 (PDT) Date: Sun, 10 May 1998 08:54:23 -0700 (PDT) Message-Id: <199805101554.IAA18513@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/rpc Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/05/10 08:54:23 PDT Modified files: lib/libc/rpc Makefile.inc Log: Fixed the usual missing dependencies on headers generated by rpcgen. Revision Changes Path 1.13 +2 -2 src/lib/libc/rpc/Makefile.inc From owner-cvs-lib Sun May 10 14:24:26 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA13518 for cvs-lib-outgoing; Sun, 10 May 1998 14:24:26 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13464; Sun, 10 May 1998 14:24:17 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA24050; Sun, 10 May 1998 14:21:02 -0700 (PDT) Date: Sun, 10 May 1998 14:21:02 -0700 (PDT) Message-Id: <199805102121.OAA24050@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdtime tzfile.5 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/10 14:21:02 PDT Modified files: lib/libc/stdtime tzfile.5 Log: Remove 'of type long' from a sentence talking about four 4-byte values because that is wrong on alpha. Revision Changes Path 1.5 +1 -2 src/lib/libc/stdtime/tzfile.5 From owner-cvs-lib Sun May 10 14:26:17 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA13921 for cvs-lib-outgoing; Sun, 10 May 1998 14:26:17 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13835; Sun, 10 May 1998 14:26:04 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA24086; Sun, 10 May 1998 14:22:48 -0700 (PDT) Date: Sun, 10 May 1998 14:22:48 -0700 (PDT) Message-Id: <199805102122.OAA24086@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/string memset.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/10 14:22:48 PDT Modified files: lib/libc/string memset.c Log: Cast a pointer to a long, not an int before masking it. Revision Changes Path 1.3 +1 -1 src/lib/libc/string/memset.c From owner-cvs-lib Sun May 10 16:49:32 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA29040 for cvs-lib-outgoing; Sun, 10 May 1998 16:49:32 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA28953; Sun, 10 May 1998 16:49:19 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA24947; Sun, 10 May 1998 16:46:03 -0700 (PDT) Date: Sun, 10 May 1998 16:46:03 -0700 (PDT) Message-Id: <199805102346.QAA24947@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/msun/src math_private.h Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/10 16:46:03 PDT Modified files: lib/msun/src math_private.h Log: There is no alpha asm code like on i386, so all the functions that the i386 builds with a __generic prefix need to have that stripped. Revision Changes Path 1.5 +28 -1 src/lib/msun/src/math_private.h From owner-cvs-lib Sun May 10 16:51:44 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA29286 for cvs-lib-outgoing; Sun, 10 May 1998 16:51:44 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA29248; Sun, 10 May 1998 16:51:35 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA25026; Sun, 10 May 1998 16:48:19 -0700 (PDT) Date: Sun, 10 May 1998 16:48:19 -0700 (PDT) Message-Id: <199805102348.QAA25026@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libss error.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/10 16:48:19 PDT Modified files: lib/libss error.c Log: Remove a 'const' because it was getting thrown away anyway. Revision Changes Path 1.4 +1 -1 src/lib/libss/error.c From owner-cvs-lib Mon May 11 02:14:27 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA09083 for cvs-lib-outgoing; Mon, 11 May 1998 02:14:27 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA08955; Mon, 11 May 1998 02:13:58 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA28292; Mon, 11 May 1998 02:10:39 -0700 (PDT) Date: Mon, 11 May 1998 02:10:39 -0700 (PDT) Message-Id: <199805110910.CAA28292@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/xdr xdr_sizeof.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/11 02:10:38 PDT Modified files: lib/libc/xdr xdr_sizeof.c Log: Cast a pointer to a long, not an int and make the arg passed to the function a long too (it does have a proper prototype). Revision Changes Path 1.2 +2 -2 src/lib/libc/xdr/xdr_sizeof.c From owner-cvs-lib Mon May 11 02:18:32 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA09739 for cvs-lib-outgoing; Mon, 11 May 1998 02:18:32 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA09695; Mon, 11 May 1998 02:18:25 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA28332; Mon, 11 May 1998 02:15:04 -0700 (PDT) Date: Mon, 11 May 1998 02:15:04 -0700 (PDT) Message-Id: <199805110915.CAA28332@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libskey Makefile Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/11 02:15:04 PDT Modified files: lib/libskey Makefile Log: Make -Werror i386 specific because gcc with -nostdinc on alpha belches warnings about static inline functions that cause the build to fail. And for some reason, alpha needs MD5. Find that out later! Revision Changes Path 1.12 +6 -1 src/lib/libskey/Makefile From owner-cvs-lib Mon May 11 06:30:02 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA09398 for cvs-lib-outgoing; Mon, 11 May 1998 06:30:02 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA09307; Mon, 11 May 1998 06:29:40 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.8.8/8.8.8) id JAA15707; Mon, 11 May 1998 09:29:24 -0400 (EDT) (envelope-from wollman) Date: Mon, 11 May 1998 09:29:24 -0400 (EDT) From: Garrett Wollman Message-Id: <199805111329.JAA15707@khavrinen.lcs.mit.edu> To: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Cc: Mike Smith , "Jordan K. Hubbard" , Julian Elischer , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libftpio ftpio.c In-Reply-To: References: <199805090554.WAA00630@antipodes.cdrom.com> Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk < BTW, I have the HTTP code pretty much knocked into place now, though > there are some problems with transfer-coding I need to work out (using > funopen() so I can decode chunk-encoded data transparently. I'll soon > start banging the FTP code from libftpio into place... I would have hoped that you started from the HTTP code that's already in fetch(1)... Here's a solution for your problem: -GAWollman ------------------------------------ /* * Copyright 1997 Massachusetts Institute of Technology * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby * granted, provided that both the above copyright notice and this * permission notice appear in all copies, that both the above * copyright notice and this permission notice appear in all * supporting documentation, and that the name of M.I.T. not be used * in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. M.I.T. makes * no representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied * warranty. * * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''. M.I.T. DISCLAIMS * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ static const char rcsid[] = "$Id$"; #include #include #include #include #include "streams.h" /* really independent of lpr/lpd */ /* * substreams -- implement a stdio stream which returns EOF after a * specified number of characters are read from it, with the data * being read via another stdio stream. */ struct substream { FILE *masterfp; size_t len; }; static int read_substream(void *cookie, char *buf, int len); static int close_substream(void *cookie); FILE * create_substream(FILE *orig, size_t len) { struct substream *ssp; FILE *rv; ssp = malloc(sizeof *ssp); if (ssp == 0) return 0; ssp->masterfp = orig; ssp->len = len; rv = funopen(ssp, read_substream, 0, 0, close_substream); if (rv == 0) free(ssp); return rv; } static int read_substream(void *cookie, char *buf, int len) { struct substream *ssp = cookie; int rv; if (len < 0) return -1; if (len != 0 && ssp->len == 0) return 0; if (len > ssp->len) len = ssp->len; rv = fread(buf, 1, len, ssp->masterfp); if (rv < 0) return rv; if (rv == 0) { ssp->len = 0; /* oops... eof before end of substream */ return 0; } ssp->len -= rv; return rv; } static int close_substream(void *cookie) { free(cookie); return 0; } /* * chunked substreams -- implement the HTTP/1.1 ``chunked'' transfer * coding, which allows for multiple ``files'' to be transmitted on a * stream without knowing in advance how long the files are. The HTTP/1.1 * protocol specifies an additional ``footer'' section, which we don't * implement---that would be the responsibility of our caller if this * code were to be used in an actual HTTP/1.1 implementation. * The caller must be able to tolerate our use of fgetln() on the * master stream. */ struct chunked_substream { FILE *masterfp; size_t chunklen; int eof; }; static int chunked_read(void *cookie, char *buf, int len); static int chunked_write(void *cookie, const char *buf, int len); static int chunked_close_ro(void *cookie); static int chunked_close_wr(void *cookie); FILE * create_chunked_substream(FILE *orig, const char *mode) { int reading, writing; struct chunked_substream *cssp; FILE *rv; reading = writing = 0; switch(mode[0]) { case 'r': reading = 1; break; case 'a': case 'w': writing = 1; break; default: errno = EINVAL; return 0; } while (*++mode) { if (*mode == '+') reading = 1; } if (!(reading || writing)) { errno = EINVAL; return 0; } cssp = malloc(sizeof *cssp); if (cssp == 0) return 0; cssp->masterfp = 0; cssp->eof = 0; cssp->chunklen = 0; rv = funopen(cssp, reading ? chunked_read : 0, writing ? chunked_write : 0, 0, writing ? chunked_close_wr : chunked_close_ro); if (rv == 0) { free(cssp); return 0; } return rv; } static int chunked_read(void *cookie, char *buf, int len) { struct chunked_substream *cssp = cookie; int rv; if (cssp->eof) /* if we have read EOF, keep returning it */ return 0; if (cssp->chunklen == 0) { /* we have yet to read the length */ char *len, *ep; size_t lenlen; unsigned long ilen; if ((len = fgetln(cssp->masterfp, &lenlen)) == 0 || len[lenlen - 1] != '\n') { cssp->eof = 1; return 0; } len[lenlen - 1] = '\0'; ilen = strtoul(len, &ep, 16); if (ep - len < 2) { /* must be at least 1 valid digit */ cssp->eof = 1; return 0; } cssp->chunklen = ilen; if (ilen == 0) { cssp->eof = 1; return 0; } } if (len > cssp->chunklen) len = cssp->chunklen; rv = fread(buf, 1, len, cssp->masterfp); if (rv < 0) return rv; if (rv == 0) cssp->eof = 1; cssp->chunklen -= rv; return rv; } static int chunked_write(void *cookie, const char *buf, int len) { struct chunked_substream *cssp = cookie; if (len < 0) { errno = EINVAL; return -1; } if (len == 0) return 0; fprintf(cssp->masterfp, "%d\r\n", len); return fwrite(buf, 1, len, cssp->masterfp); } static int chunked_close_ro(void *cookie) { free(cookie); return 0; } static int chunked_close_wr(void *cookie) { struct chunked_substream *cssp = cookie; fputs("0\r\n", cssp->masterfp); free(cssp); return 0; } From owner-cvs-lib Mon May 11 06:40:55 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA10234 for cvs-lib-outgoing; Mon, 11 May 1998 06:40:55 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA10203; Mon, 11 May 1998 06:40:45 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from gjallarhorn.ifi.uio.no (2602@gjallarhorn.ifi.uio.no [129.240.65.40]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id PAA16797; Mon, 11 May 1998 15:40:22 +0200 (MET DST) Received: (from dag-erli@localhost) by gjallarhorn.ifi.uio.no ; Mon, 11 May 1998 15:40:21 +0200 (MET DST) Mime-Version: 1.0 To: Garrett Wollman Cc: Mike Smith , "Jordan K. Hubbard" , Julian Elischer , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libftpio ftpio.c References: <199805090554.WAA00630@antipodes.cdrom.com> <199805111329.JAA15707@khavrinen.lcs.mit.edu> Organization: Gutteklubben Terrasse / KRST / PUMS / YASMW X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-Stop-Spam: http://www.cauce.org From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 11 May 1998 15:40:21 +0200 In-Reply-To: Garrett Wollman's message of "Mon, 11 May 1998 09:29:24 -0400 (EDT)" Message-ID: Lines: 8 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Garrett Wollman writes: > I would have hoped that you started from the HTTP code that's already > in fetch(1)... Here's a solution for your problem: I've fixed it already... -- Noone else has a .sig like this one. From owner-cvs-lib Wed May 13 15:58:08 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA08312 for cvs-lib-outgoing; Wed, 13 May 1998 15:58:08 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08072; Wed, 13 May 1998 15:57:44 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA03792; Wed, 13 May 1998 15:54:05 -0700 (PDT) Date: Wed, 13 May 1998 15:54:05 -0700 (PDT) Message-Id: <199805132254.PAA03792@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib Makefile Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/13 15:54:04 PDT Modified files: lib Makefile Log: libtcl now builds (with lots of pointer to int cast warnings) on alpha. Revision Changes Path 1.68 +2 -2 src/lib/Makefile From owner-cvs-lib Thu May 14 04:40:35 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA10611 for cvs-lib-outgoing; Thu, 14 May 1998 04:40:35 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA10406; Thu, 14 May 1998 04:40:00 -0700 (PDT) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id EAA12153; Thu, 14 May 1998 04:36:17 -0700 (PDT) Date: Thu, 14 May 1998 04:36:17 -0700 (PDT) Message-Id: <199805141136.EAA12153@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys Makefile.inc nanosleep.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1998/05/14 04:36:16 PDT Modified files: lib/libc/sys Makefile.inc nanosleep.2 Log: Nuke signanosleep() Revision Changes Path 1.53 +1 -2 src/lib/libc/sys/Makefile.inc 1.6 +2 -19 src/lib/libc/sys/nanosleep.2 From owner-cvs-lib Thu May 14 07:44:07 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA10704 for cvs-lib-outgoing; Thu, 14 May 1998 07:44:07 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA10575; Thu, 14 May 1998 07:43:44 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA07723; Thu, 14 May 1998 07:40:00 -0700 (PDT) Date: Thu, 14 May 1998 07:40:00 -0700 (PDT) Message-Id: <199805141440.HAA07723@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys sigsuspend.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1998/05/14 07:40:00 PDT Modified files: lib/libc/sys sigsuspend.2 Log: Remove reference to signanosleep Revision Changes Path 1.7 +0 -1 src/lib/libc/sys/sigsuspend.2 From owner-cvs-lib Thu May 14 14:49:36 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA20932 for cvs-lib-outgoing; Thu, 14 May 1998 14:49:36 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA20832; Thu, 14 May 1998 14:49:06 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA08916; Thu, 14 May 1998 14:45:19 -0700 (PDT) Date: Thu, 14 May 1998 14:45:19 -0700 (PDT) Message-Id: <199805142145.OAA08916@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/regex regex2.h regexec.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/14 14:45:19 PDT Modified files: lib/libc/regex regex2.h regexec.c Log: int -> long changes that reduce the diffs with the NetBSD version to work in a 64-bit environment. Revision Changes Path 1.3 +22 -22 src/lib/libc/regex/regex2.h 1.2 +12 -12 src/lib/libc/regex/regexec.c From owner-cvs-lib Fri May 15 05:03:38 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA09466 for cvs-lib-outgoing; Fri, 15 May 1998 05:03:38 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA09372; Fri, 15 May 1998 05:02:52 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id EAA14667; Fri, 15 May 1998 04:59:01 -0700 (PDT) Date: Fri, 15 May 1998 04:59:01 -0700 (PDT) Message-Id: <199805151159.EAA14667@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen getcwd.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/15 04:59:01 PDT Modified files: lib/libc/gen getcwd.c Log: NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no' when building libc with NetBSD syscalls. Revision Changes Path 1.16 +4 -0 src/lib/libc/gen/getcwd.c From owner-cvs-lib Fri May 15 05:05:45 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA09699 for cvs-lib-outgoing; Fri, 15 May 1998 05:05:45 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA09601; Fri, 15 May 1998 05:04:59 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id FAA14726; Fri, 15 May 1998 05:01:07 -0700 (PDT) Date: Fri, 15 May 1998 05:01:07 -0700 (PDT) Message-Id: <199805151201.FAA14726@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/alpha/gen Makefile.inc netbsd_getcwd.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/05/15 05:01:07 PDT Modified files: lib/libc/alpha/gen Makefile.inc Removed files: lib/libc/alpha/gen netbsd_getcwd.c Log: Remove a big hack after adding a small one to libc/gen/getcwd.c to handle the lack of __getcwd syscall in NetBSD. Revision Changes Path 1.2 +2 -2 src/lib/libc/alpha/gen/Makefile.inc From owner-cvs-lib Fri May 15 14:21:17 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA06667 for cvs-lib-outgoing; Fri, 15 May 1998 14:21:17 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA06581; Fri, 15 May 1998 14:20:57 -0700 (PDT) (envelope-from obrien@FreeBSD.org) From: "David E. O'Brien" Received: (from obrien@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA12762; Fri, 15 May 1998 14:17:03 -0700 (PDT) Date: Fri, 15 May 1998 14:17:03 -0700 (PDT) Message-Id: <199805152117.OAA12762@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libdisk disk.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk obrien 1998/05/15 14:17:02 PDT Modified files: lib/libdisk disk.c Log: Change an arbitarly hardcoded `10' to MAX_NO_DISKS, which is currently "20". Otherwise can't see sd10 (obtained using wired down sd unit numbers), reguardless of the number of actual disks you have. Revision Changes Path 1.34 +2 -2 src/lib/libdisk/disk.c From owner-cvs-lib Fri May 15 14:23:10 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA06954 for cvs-lib-outgoing; Fri, 15 May 1998 14:23:10 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA06907; Fri, 15 May 1998 14:22:56 -0700 (PDT) (envelope-from obrien@FreeBSD.org) From: "David E. O'Brien" Received: (from obrien@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA12846; Fri, 15 May 1998 14:19:01 -0700 (PDT) Date: Fri, 15 May 1998 14:19:01 -0700 (PDT) Message-Id: <199805152119.OAA12846@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libdisk disk.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk obrien 1998/05/15 14:19:01 PDT Modified files: (Branch: RELENG_2_2) lib/libdisk disk.c Log: MFC rev 1.34 Revision Changes Path 1.22.2.10 +2 -2 src/lib/libdisk/disk.c From owner-cvs-lib Fri May 15 14:40:35 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA10161 for cvs-lib-outgoing; Fri, 15 May 1998 14:40:35 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09865; Fri, 15 May 1998 14:39:49 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA12930; Fri, 15 May 1998 14:35:54 -0700 (PDT) Date: Fri, 15 May 1998 14:35:54 -0700 (PDT) Message-Id: <199805152135.OAA12930@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libncurses lib_vidattr.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1998/05/15 14:35:54 PDT Modified files: lib/libncurses lib_vidattr.c Log: Low level use of 'vidattr()' can cause a NULL pointer to be dereferenced. This is because 'SP' is only initialized via 'newterm()' (which is not required if you are going to interact with the 'terminfo' database without using 'ncurses'). PR: 6648 Submitted by: Max Euston Revision Changes Path 1.9 +11 -5 src/lib/libncurses/lib_vidattr.c From owner-cvs-lib Fri May 15 14:42:28 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA10652 for cvs-lib-outgoing; Fri, 15 May 1998 14:42:28 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA10563; Fri, 15 May 1998 14:42:10 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA13030; Fri, 15 May 1998 14:38:15 -0700 (PDT) Date: Fri, 15 May 1998 14:38:15 -0700 (PDT) Message-Id: <199805152138.OAA13030@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libncurses lib_vidattr.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1998/05/15 14:38:15 PDT Modified files: (Branch: RELENG_2_2) lib/libncurses lib_vidattr.c Log: MFC: NULL pointer in vidattr Revision Changes Path 1.6.6.3 +11 -5 src/lib/libncurses/lib_vidattr.c From owner-cvs-lib Fri May 15 16:01:53 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA19935 for cvs-lib-outgoing; Fri, 15 May 1998 16:01:53 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA19798; Fri, 15 May 1998 16:01:28 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) From: Bill Paul Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA13380; Fri, 15 May 1998 15:57:32 -0700 (PDT) Date: Fri, 15 May 1998 15:57:32 -0700 (PDT) Message-Id: <199805152257.PAA13380@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/rpc svc_tcp.c svc_unix.c src/lib/libc/xdr xdr_rec.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 1998/05/15 15:57:32 PDT Modified files: lib/libc/rpc svc_tcp.c svc_unix.c Log: Patch RPC library to avoid possible denial of service attacks as described recently in BUGTRAQ. If a stream oriented transport fails to properly decode an RPC message header structure where there should be one, it should mark the stream as dead so that the connection will be dropped. Revision Changes Path 1.12 +2 -1 src/lib/libc/rpc/svc_tcp.c 1.3 +2 -1 src/lib/libc/rpc/svc_unix.c Modified files: lib/libc/xdr xdr_rec.c Log: Patch RPC library to avoid possible denial of service attacks as described recently in BUGTRAQ. The set_input_fragment() routine in the XDR record marking code blindly trusts that the first two bytes it sees will in fact be an actual record header and that the specified size will be sane. In fact, if you just telnet to a listening port of an RPC service and send a few carriage returns, set_input_fragment() will obtain a ridiculously large record size and sit there for a long time trying to read from the network. A sanity test is required: if the record size is larger than the receive buffer, punt. Revision Changes Path 1.9 +7 -1 src/lib/libc/xdr/xdr_rec.c