From owner-freebsd-standards@FreeBSD.ORG Sun Jul 18 06:59:52 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A1DF16A4CE; Sun, 18 Jul 2004 06:59:52 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE1BE43D31; Sun, 18 Jul 2004 06:59:51 +0000 (GMT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) i6I6xp5D097183; Sun, 18 Jul 2004 06:59:51 GMT (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6I6xp6r097179; Sun, 18 Jul 2004 06:59:51 GMT (envelope-from tjr) Date: Sun, 18 Jul 2004 06:59:51 GMT From: "Tim J. Robbins" Message-Id: <200407180659.i6I6xp6r097179@freefall.freebsd.org> To: david@pinko.net, tjr@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/57911: fnmatch ("[[:alpha:]]","x", FNM_PATHNAME) returns FNM_NOMATCH X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2004 06:59:52 -0000 Synopsis: fnmatch ("[[:alpha:]]","x", FNM_PATHNAME) returns FNM_NOMATCH State-Changed-From-To: open->analyzed State-Changed-By: tjr State-Changed-When: Sun Jul 18 06:57:01 GMT 2004 State-Changed-Why: I agree that this behaviour is incorrect and have documented it in the fnmatch(3) manual page. http://www.freebsd.org/cgi/query-pr.cgi?pr=57911 From owner-freebsd-standards@FreeBSD.ORG Sun Jul 18 07:00:11 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C7EE16A4CF; Sun, 18 Jul 2004 07:00:11 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE73B43D3F; Sun, 18 Jul 2004 07:00:10 +0000 (GMT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) i6I70AUv097249; Sun, 18 Jul 2004 07:00:10 GMT (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6I70AFA097245; Sun, 18 Jul 2004 07:00:10 GMT (envelope-from tjr) Date: Sun, 18 Jul 2004 07:00:10 GMT From: "Tim J. Robbins" Message-Id: <200407180700.i6I70AFA097245@freefall.freebsd.org> To: tjr@FreeBSD.org, freebsd-standards@FreeBSD.org, tjr@FreeBSD.org Subject: Re: standards/57911: fnmatch ("[[:alpha:]]","x", FNM_PATHNAME) returns FNM_NOMATCH X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2004 07:00:11 -0000 Synopsis: fnmatch ("[[:alpha:]]","x", FNM_PATHNAME) returns FNM_NOMATCH Responsible-Changed-From-To: freebsd-standards->tjr Responsible-Changed-By: tjr Responsible-Changed-When: Sun Jul 18 06:59:56 GMT 2004 Responsible-Changed-Why: I'll take care of this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=57911 From owner-freebsd-standards@FreeBSD.ORG Mon Jul 19 11:01:53 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C61916A4D7 for ; Mon, 19 Jul 2004 11:01:53 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DDA743D1D for ; Mon, 19 Jul 2004 11:01:53 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6JB1q5a015524 for ; Mon, 19 Jul 2004 11:01:53 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6JB1qhr015518 for freebsd-standards@freebsd.org; Mon, 19 Jul 2004 11:01:52 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 19 Jul 2004 11:01:52 GMT Message-Id: <200407191101.i6JB1qhr015518@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 11:01:53 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2001/01/24] misc/24590 standards timezone function not compatible witn Sin o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string o [2002/02/25] bin/35307 standards standard include files are not standard c o [2003/03/05] bin/48958 standards The type 'bool' has different sizes for C o [2003/04/21] standards/51209standards [PATCH] add a64l()/l64a/l64a_r functions p [2003/06/05] standards/52972standards /bin/sh arithmetic not POSIX compliant o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2003/09/15] standards/56906standards Several math(3) functions fail to set err o [2004/01/01] standards/60772standards _Bool and bool should be unsigned 9 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [1995/01/11] i386/105 standards Distributed libm (msun) has non-standard o [2000/09/24] bin/21519 standards sys/dir.h should be deprecated some more o [2001/01/16] bin/24390 standards Replacing old dir-symlinks when using /bi s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public o [2001/11/20] standards/32126standards getopt(3) not Unix-98 conformant s [2002/03/19] standards/36076standards Implementation of POSIX fuser command o [2002/06/14] standards/39256standards [v]snprintf aren't POSIX-conformant for s o [2002/07/09] misc/40378 standards stdlib.h gives needless warnings with -an p [2002/08/12] standards/41576standards POSIX compliance of ln(1) o [2002/10/23] standards/44425standards getcwd() succeeds even if current dir has o [2002/12/09] standards/46119standards Priority problems for SCHED_OTHER using p o [2002/12/23] standards/46504standards Warnings in headers o [2003/06/22] standards/53613standards FreeBSD doesn't define EPROTO o [2003/07/24] standards/54809standards pcvt deficits o [2003/07/25] standards/54833standards more pcvt deficits o [2003/07/25] standards/54839standards pcvt deficits o [2003/07/31] standards/55112standards glob.h, glob_t's gl_pathc should be "size o [2003/09/05] standards/56476standards cd9660 unicode support simple hack o [2003/10/29] standards/58676standards grantpt(3) alters storage used by ptsname p [2003/12/26] standards/60597standards FreeBSD's /usr/include lacks of cpio.h s [2004/02/14] standards/62858standards malloc(0) not C99 compliant p [2004/02/21] standards/63173standards Patch to add getopt_long_only(3) to libc o [2004/05/07] standards/66357standards make POSIX conformance problem ('sh -e' & o [2004/05/11] standards/66531standards _gettemp uses a far smaller set of filena 24 problems total. From owner-freebsd-standards@FreeBSD.ORG Wed Jul 21 12:52:53 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F2E316A4CF for ; Wed, 21 Jul 2004 12:52:53 +0000 (GMT) Received: from mail.FreeBSD.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id E657F43D5C for ; Wed, 21 Jul 2004 12:52:50 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 91132 invoked by uid 0); 21 Jul 2004 12:50:54 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.98.7) by mail.FreeBSD.org.cn with AES256-SHA encrypted SMTP; 21 Jul 2004 12:50:54 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id D85CE11D00; Wed, 21 Jul 2004 20:32:33 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00166-03; Wed, 21 Jul 2004 20:32:23 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id 564CC11CCE; Wed, 21 Jul 2004 20:32:20 +0800 (CST) Date: Wed, 21 Jul 2004 20:32:20 +0800 From: Xin LI To: freebsd-standards@FreeBSD.org, phk@FreeBSD.org Message-ID: <20040721123220.GA995@frontfree.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.2-delphij FreeBSD 5.2-delphij #80: Thu Jun 24 17:30:33 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net Subject: RFC: Proposal to expose timespec* outside _KERNEL X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 12:52:53 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, freebsd-standards@, It seems that our sys/time.h has timespec* macros (e.g. timespeccmp) inside an ifdef, while NetBSD and OpenBSD don't. So is the attached patch appropriate, or shall we change the ifdef statement to something like ifdef _KERNEL || BSD_COMPAT? Thanks in advance! Cheers, --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA/mJUOfuToMruuMARAlAeAJ40smWvZ60qiG0NlqNulNp9Xuo9lACgjGc5 K1ENue/RcDKFrji//XPFv+c= =zhRF -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC-- From owner-freebsd-standards@FreeBSD.ORG Wed Jul 21 14:16:07 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F098516A4CE for ; Wed, 21 Jul 2004 14:16:07 +0000 (GMT) Received: from mail.FreeBSD.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32F3F43D49 for ; Wed, 21 Jul 2004 14:16:05 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 92415 invoked by uid 0); 21 Jul 2004 14:14:10 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.98.7) by mail.FreeBSD.org.cn with AES256-SHA encrypted SMTP; 21 Jul 2004 14:14:10 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id BAD9511C1F for ; Wed, 21 Jul 2004 22:16:02 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00139-05 for ; Wed, 21 Jul 2004 22:15:52 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id 95BA711D4E; Wed, 21 Jul 2004 22:15:51 +0800 (CST) Date: Wed, 21 Jul 2004 22:15:51 +0800 From: Xin LI To: freebsd-standards@FreeBSD.org Message-ID: <20040721141551.GA2192@frontfree.net> References: <20040721123220.GA995@frontfree.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline In-Reply-To: <20040721123220.GA995@frontfree.net> User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.2-delphij FreeBSD 5.2-delphij #80: Thu Jun 24 17:30:33 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net Subject: Re: RFC: Proposal to expose timespec* outside _KERNEL X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 14:16:08 -0000 --s2ZSL+KKDSLx8OML Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-time.h" Content-Transfer-Encoding: quoted-printable Index: time.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/fcvs/src/sys/sys/time.h,v retrieving revision 1.65 diff -u -r1.65 time.h --- time.h 7 Apr 2004 04:19:49 -0000 1.65 +++ time.h 21 Jul 2004 12:27:13 -0000 @@ -139,8 +139,6 @@ } #endif /* __BSD_VISIBLE */ =20 -#ifdef _KERNEL - /* Operations on timespecs */ #define timespecclear(tvp) ((tvp)->tv_sec =3D (tvp)->tv_nsec =3D 0) #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) @@ -178,8 +176,6 @@ =20 /* timevaladd and timevalsub are not inlined */ =20 -#endif /* _KERNEL */ - #ifndef _KERNEL /* NetBSD/OpenBSD compatible interfaces */ =20 #define timerclear(tvp) ((tvp)->tv_sec =3D (tvp)->tv_usec =3D 0) --X1bOJ3K7DJ5YkBrT-- --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA/nqXOfuToMruuMARAtsbAJ0e+IqCBcdugEmGS44S0LTNd1kONQCgi3bi IydjTjwtqu2uApljksK9d4k= =2ziL -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML-- From owner-freebsd-standards@FreeBSD.ORG Wed Jul 21 14:45:30 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92DE616A4CE for ; Wed, 21 Jul 2004 14:45:30 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE2E143D55 for ; Wed, 21 Jul 2004 14:45:29 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i6LEj5X545922; Wed, 21 Jul 2004 16:45:06 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i6LEj5f122108; Wed, 21 Jul 2004 16:45:05 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i6LEj4V19144; Wed, 21 Jul 2004 16:45:04 +0200 (MET DST) Date: Wed, 21 Jul 2004 16:45:03 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: Xin LI In-Reply-To: <20040721141551.GA2192@frontfree.net> Message-ID: <20040721164404.N99248@beagle.kn.op.dlr.de> References: <20040721123220.GA995@frontfree.net> <20040721141551.GA2192@frontfree.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-standards@freebsd.org Subject: Re: RFC: Proposal to expose timespec* outside _KERNEL X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 14:45:30 -0000 If we want this, it should probably be under __BSD_VISIBLE. There have been instances when I wished I'd had those macros. harti From owner-freebsd-standards@FreeBSD.ORG Thu Jul 22 01:42:42 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B602816A4CE for ; Thu, 22 Jul 2004 01:42:42 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9A6643D2F for ; Thu, 22 Jul 2004 01:42:42 +0000 (GMT) (envelope-from mjoyner@vbservices.net) Received: from mike.vbservices.net (c-66-177-116-188.se.client2.attbi.com[66.177.116.188]) by comcast.net (rwcrmhc12) with ESMTP id <2004072201424101400393pde>; Thu, 22 Jul 2004 01:42:41 +0000 Received: from vbservices.net (localhost [IPv6:::1]) by mike.vbservices.net (8.12.11/8.12.11) with ESMTP id i6LLhtnM097067; Wed, 21 Jul 2004 21:43:55 GMT (envelope-from mjoyner@vbservices.net) Message-ID: <40FEE39B.6070807@vbservices.net> Date: Wed, 21 Jul 2004 21:43:55 +0000 From: Michael Joyner User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040519 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Narmontas References: <003b01c468cc$914ac4f0$0810050a@narmontas> In-Reply-To: <003b01c468cc$914ac4f0$0810050a@narmontas> X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-standards@freebsd.org Subject: Re: [Manhat]"Bug" detected... in fseek X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2004 01:42:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The fseek command is *always* succeeding, on the seeks to BEFORE THE BEGINNING OF THE FILE! (if I remember my random access correctly, this is expected behavior, at least in the positive direction, not sure if it supposed to work that way in the negative direction though... maybe be a "standards" compliancy bug of some sort) as a result the following fread command is trying to read non-existant data, and errno is set to 'file to big', (gotta love those error messages... I am thinking it is taking the negative value for the raw offset and treating it as an unsigned long internally, yielding a file size and location that is bigger than 1 Terabyte) the modified version below seems to work fine on FreeBSD w/o giving a segfault or anything and should be functionally equivelant to the original, except for the fread error check. :) void record_recent_logins (CONFIG_STRUCT *conf, USER_LOG_NODE *head) { ~ USER_LOG_NODE *person_ptr; ~ char logpath[MAX_PATH + 1]; ~ FILE *fp; ~ int i; ~ for (person_ptr = head; person_ptr; person_ptr = person_ptr->next) ~ { ~ for (i = 0; i < MAX_LOGINS; i++) ~ person_ptr->login_time[i] = (time_t) 0; ~ snprintf (logpath, MAX_PATH + 1, "%speople/%s/%s", ~ conf->course_path, person_ptr->user.username, ACCESS_LOG_FNAME); ~ fp = fopen (logpath, "r"); ~ if (fp) ~ { ~ for (i = 0; i < MAX_LOGINS; i++) ~ { ~ if (!fseek(fp, -((i + 1) * sizeof (time_t)), SEEK_END)) ~ fread (&(person_ptr->login_time[i]), sizeof (time_t), 1, fp); ~ } ~ fclose (fp); ~ } ~ } } Steven Narmontas wrote: | Michael, | | I'm very busy delivering Manhattan workshops all this week. | | I'll try to look into this issue early next week... | | Thanks, | Steve Narmontas | | Error reading file | | Platform: FreeBSD 4-STABLE | Manhattan: Version 2.4 | | ideas? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA/uObOElk0ppmOXwRAspqAJ91zJFrCsv6pdP9lTfldNQJsIK0dwCfVyon 3/ppajB8khPNE4tSmp0CO8c= =fYa1 -----END PGP SIGNATURE----- From owner-freebsd-standards@FreeBSD.ORG Thu Jul 22 01:46:52 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B0A16A4CE for ; Thu, 22 Jul 2004 01:46:52 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDF2543D1F for ; Thu, 22 Jul 2004 01:46:51 +0000 (GMT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.11/8.12.11) with ESMTP id i6M1kouA007888; Thu, 22 Jul 2004 05:46:50 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.11/8.12.11/Submit) id i6M1koSx007887; Thu, 22 Jul 2004 05:46:50 +0400 (MSD) (envelope-from ache) Date: Thu, 22 Jul 2004 05:46:50 +0400 From: Andrey Chernov To: Michael Joyner Message-ID: <20040722014650.GA7811@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Michael Joyner , Steven Narmontas , freebsd-standards@FreeBSD.ORG References: <003b01c468cc$914ac4f0$0810050a@narmontas> <40FEE39B.6070807@vbservices.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40FEE39B.6070807@vbservices.net> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.26.0.8; VDF 6.26.0.37 (host: pobrecita.freebsd.ru) cc: Steven Narmontas cc: freebsd-standards@FreeBSD.ORG Subject: Re: [Manhat]"Bug" detected... in fseek X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2004 01:46:52 -0000 On Wed, Jul 21, 2004 at 09:43:55PM +0000, Michael Joyner wrote: > > The fseek command is *always* succeeding, on the seeks to BEFORE THE > BEGINNING OF THE FILE! This bug is already fixed in FreeBSD 5.* -- Andrey Chernov | http://ache.pp.ru/ From owner-freebsd-standards@FreeBSD.ORG Fri Jul 23 11:15:20 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B061F16A4CE for ; Fri, 23 Jul 2004 11:15:20 +0000 (GMT) Received: from mx01.ewc.edu (mx01.ewc.edu [68.152.80.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0496343D55 for ; Fri, 23 Jul 2004 11:15:20 +0000 (GMT) (envelope-from mjoyner@vbservices.net) Received: from vbservices.net ([68.152.80.111]) by mx01.ewc.edu (8.12.9p2/8.12.9) with ESMTP id i6NBF0Z3021875; Fri, 23 Jul 2004 07:15:16 -0400 (EDT) (envelope-from mjoyner@vbservices.net) Message-ID: <4100F32F.5040202@vbservices.net> Date: Fri, 23 Jul 2004 07:14:55 -0400 From: Michael Joyner User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.6a) Gecko/20031029 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrey Chernov References: <003b01c468cc$914ac4f0$0810050a@narmontas> <40FEE39B.6070807@vbservices.net> <20040722014650.GA7811@nagual.pp.ru> In-Reply-To: <20040722014650.GA7811@nagual.pp.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new cc: Steven Narmontas cc: freebsd-standards@FreeBSD.ORG Subject: Re: [Manhat]"Bug" detected... in fseek X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2004 11:15:20 -0000 Are there any plans to MFC it to 4.X ? Andrey Chernov wrote: > On Wed, Jul 21, 2004 at 09:43:55PM +0000, Michael Joyner wrote: > >>The fseek command is *always* succeeding, on the seeks to BEFORE THE >>BEGINNING OF THE FILE! > > > This bug is already fixed in FreeBSD 5.* >