From owner-p4-projects@FreeBSD.ORG Sun Jul 6 01:42:32 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C36E41065682; Sun, 6 Jul 2008 01:42:31 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 85AE3106564A;
Sun, 6 Jul 2008 01:42:31 +0000 (UTC)
(envelope-from nyan@jp.FreeBSD.org)
Received: from watery.cc.kogakuin.ac.jp (watery.cc.kogakuin.ac.jp
[133.80.152.80])
by mx1.freebsd.org (Postfix) with ESMTP id 1F4C18FC15;
Sun, 6 Jul 2008 01:42:30 +0000 (UTC)
(envelope-from nyan@jp.FreeBSD.org)
Received: from localhost (localhost [IPv6:::1])
by watery.cc.kogakuin.ac.jp (unknown) with ESMTP id m661FePO072727;
Sun, 6 Jul 2008 10:15:40 +0900 (JST)
(envelope-from nyan@jp.FreeBSD.org)
Date: Sun, 06 Jul 2008 10:15:12 +0900 (JST)
Message-Id: <20080706.101512.193761302.nyan@jp.FreeBSD.org>
To: marcel@freebsd.org
From: Takahashi Yoshihiro
In-Reply-To: <200807051805.m65I5T4Y056554@repoman.freebsd.org>
References: <200807051805.m65I5T4Y056554@repoman.freebsd.org>
X-Mailer: Mew version 6.1 on Emacs 22.2 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: perforce@freebsd.org
Subject: Re: PERFORCE change 144729 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 01:42:32 -0000
In article <200807051805.m65I5T4Y056554@repoman.freebsd.org>
Marcel Moolenaar writes:
> @@ -67,9 +65,7 @@
> struct uart_class *class;
> unsigned int i, j, ivar;
>
> - class = &uart_ns8250_class; /* currently ns8250 only */
> - if (class == NULL)
> - return (ENXIO);
> + class = &uart_i8251_class;
>
> /* Check the environment. */
> if (uart_getenv(devtype, di, class) == 0)
Please revert this change. We want to use ns8250 class as default.
And the above comment in the diff was wrong...
The uart_i8251_class should be added to the uart_classes in uart_subr.c.
---
TAKAHASHI Yoshihiro
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 02:10:15 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id CAF7D1065676; Sun, 6 Jul 2008 02:10:15 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 8C9EC1065671;
Sun, 6 Jul 2008 02:10:15 +0000 (UTC)
(envelope-from nyan@jp.FreeBSD.org)
Received: from watery.cc.kogakuin.ac.jp (watery.cc.kogakuin.ac.jp
[133.80.152.80])
by mx1.freebsd.org (Postfix) with ESMTP id 252BF8FC0A;
Sun, 6 Jul 2008 02:10:14 +0000 (UTC)
(envelope-from nyan@jp.FreeBSD.org)
Received: from localhost (localhost [IPv6:::1])
by watery.cc.kogakuin.ac.jp (unknown) with ESMTP id m662AE4t075191;
Sun, 6 Jul 2008 11:10:14 +0900 (JST)
(envelope-from nyan@jp.FreeBSD.org)
Date: Sun, 06 Jul 2008 11:09:43 +0900 (JST)
Message-Id: <20080706.110943.226722229.nyan@jp.FreeBSD.org>
To: marcel@freebsd.org
From: Takahashi Yoshihiro
In-Reply-To: <200807051943.m65JhHZ6066371@repoman.freebsd.org>
References: <200807051943.m65JhHZ6066371@repoman.freebsd.org>
X-Mailer: Mew version 6.1 on Emacs 22.2 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: perforce@freebsd.org
Subject: Re: PERFORCE change 144741 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 02:10:16 -0000
In article <200807051943.m65JhHZ6066371@repoman.freebsd.org>
Marcel Moolenaar writes:
> static struct isa_pnp_id isa_i8251_ids[] = {
> {0x0100e4a5, "RSA-98III"},
> {0}
> };
> /* Probe PnP _and_ non-PnP i8251 here. */
> if (ISA_PNP_PROBE(parent, dev, isa_i8251_ids) != ENXIO) {
> sc->sc_class = &uart_i8251_class;
> return (uart_bus_probe(dev, 0, 0, 0, 0));
> }
These are wrong. RSA98-III is based on ns8250 and has extended FIFO
buffer. So I think that the uart_rsa_class should be added.
FYI, RSA series are not for pc98 only.
RSA-PCI (PCI) and RSA-DVII (ISA) exist but not supported yet.
---
TAKAHASHI Yoshihiro
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 07:40:38 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 9FD3E1065679; Sun, 6 Jul 2008 07:40:38 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 649A11065677
for ; Sun, 6 Jul 2008 07:40:38 +0000 (UTC)
(envelope-from julian@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 33CAE8FC16
for ; Sun, 6 Jul 2008 07:40:38 +0000 (UTC)
(envelope-from julian@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m667ecEw072025
for ; Sun, 6 Jul 2008 07:40:38 GMT
(envelope-from julian@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m667eXuX072017
for perforce@freebsd.org; Sun, 6 Jul 2008 07:40:33 GMT
(envelope-from julian@freebsd.org)
Date: Sun, 6 Jul 2008 07:40:33 GMT
Message-Id: <200807060740.m667eXuX072017@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
julian@freebsd.org using -f
From: Julian Elischer
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144759 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 07:40:38 -0000
http://perforce.freebsd.org/chv.cgi?CH=144759
Change 144759 by julian@julian_trafmon1 on 2008/07/06 07:40:24
Add a first draft of a vimage porting guide
Affected files ...
.. //depot/projects/vimage/porting_to_vimage.txt#1 add
Differences ...
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 07:44:42 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id BCC291065676; Sun, 6 Jul 2008 07:44:42 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 8056C106564A
for ; Sun, 6 Jul 2008 07:44:42 +0000 (UTC)
(envelope-from julian@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 69BDA8FC0A
for ; Sun, 6 Jul 2008 07:44:42 +0000 (UTC)
(envelope-from julian@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m667igSN072429
for ; Sun, 6 Jul 2008 07:44:42 GMT
(envelope-from julian@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m667igbh072427
for perforce@freebsd.org; Sun, 6 Jul 2008 07:44:42 GMT
(envelope-from julian@freebsd.org)
Date: Sun, 6 Jul 2008 07:44:42 GMT
Message-Id: <200807060744.m667igbh072427@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
julian@freebsd.org using -f
From: Julian Elischer
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144760 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 07:44:43 -0000
http://perforce.freebsd.org/chv.cgi?CH=144760
Change 144760 by julian@julian_trafmon1 on 2008/07/06 07:43:58
Add a note I forgot about
Affected files ...
.. //depot/projects/vimage/porting_to_vimage.txt#2 edit
Differences ...
==== //depot/projects/vimage/porting_to_vimage.txt#2 (text+ko) ====
@@ -51,10 +51,14 @@
required for the module to stash away the virtual machine instance
somewhere, and make associated changes in the code.
+5/ Add the code described below to the files that make up the module
+
Details:
+(temp. for module FOO add a definition for VNET_MOD_FOO in sys/vimage.h)
+
Symbols defined in other modules that have been virtualised will have been
moved to a module-specific virtualisation structure. It will be defined in a
.h file for just this purpose. If a module will never export virtualise
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 07:46:45 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id E9E0B1065686; Sun, 6 Jul 2008 07:46:44 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id AE34D106567D
for ; Sun, 6 Jul 2008 07:46:44 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 973488FC19
for ; Sun, 6 Jul 2008 07:46:44 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m667kixF072683
for ; Sun, 6 Jul 2008 07:46:44 GMT
(envelope-from hselasky@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m667kivJ072681
for perforce@freebsd.org; Sun, 6 Jul 2008 07:46:44 GMT
(envelope-from hselasky@FreeBSD.org)
Date: Sun, 6 Jul 2008 07:46:44 GMT
Message-Id: <200807060746.m667kivJ072681@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
hselasky@FreeBSD.org using -f
From: Hans Petter Selasky
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144761 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 07:46:45 -0000
http://perforce.freebsd.org/chv.cgi?CH=144761
Change 144761 by hselasky@hselasky_laptop001 on 2008/07/06 07:45:48
The beginning of a new generic USB file system
interface, to better support the upcoming LibUSB 1.0.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/include/usb2_ioctl.h#5 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/include/usb2_ioctl.h#5 (text+ko) ====
@@ -102,6 +102,68 @@
uint8_t ude_addr; /* not used */
};
+struct usb2_fs_start {
+ uint8_t ep_index;
+};
+
+struct usb2_fs_stop {
+ uint8_t ep_index;
+};
+
+/* This structure is used for all endpoint types */
+struct usb2_fs_endpoint {
+ void *priv_sc0; /* private client data */
+ void *priv_sc1; /* private client data */
+ /*
+ * NOTE: isochronous USB transfer only use one buffer, but can have
+ * multiple frame lengths !
+ */
+ void **ppBuffer; /* pointer to userland buffers */
+ uint32_t *pLength; /* pointer to frame lengths, updated
+ * to actual length */
+ uint32_t nFrames; /* number of frames, updated to actual
+ * frames */
+ uint16_t flags;
+ /* a single short frame will terminate */
+#define USB2_FS_FLAG_SINGLE_SHORT_OK 0x0001
+ /* multiple short frames are allowed */
+#define USB2_FS_FLAG_MULTI_SHORT_OK 0x0002
+ /* all frame(s) transmitted are short terminated */
+#define USB2_FS_FLAG_FORCE_SHORT 0x0004
+ /* will do a clear-stall before xfer */
+#define USB2_FS_FLAG_CLEAR_STALL 0x0008
+ uint16_t timeout; /* in milliseconds */
+ /* timeout value for no timeout */
+#define USB2_FS_TIMEOUT_NONE 0
+};
+
+struct usb2_fs_init {
+ /* userland pointer to endpoints structure */
+ struct usb2_fs_endpoint *pEndpoints;
+ /* maximum number of endpoints */
+ uint8_t ep_index_max;
+};
+
+struct usb2_fs_uninit {
+ uint8_t dummy;
+};
+
+struct usb2_fs_open {
+ uint32_t max_bufsize;
+ uint32_t max_frames;
+ uint8_t dev_index; /* currently unused */
+ uint8_t ep_index;
+ uint8_t ep_no; /* bEndpointNumber */
+};
+
+struct usb2_fs_close {
+ uint8_t ep_index;
+};
+
+struct usb2_fs_clear_stall_sync {
+ unit8_t ep_index;
+};
+
/* USB controller */
#define USB_REQUEST _IOWR('U', 1, struct usb2_ctl_request)
#define USB_SETDEBUG _IOW ('U', 2, int)
@@ -140,4 +202,13 @@
#define USB_GET_CM_OVER_DATA _IOR ('U', 130, int)
#define USB_SET_CM_OVER_DATA _IOW ('U', 131, int)
+/* USB file system interface */
+#define USB_FS_START _IOW ('U', 192, struct usb2_fs_start)
+#define USB_FS_STOP _IOW ('U', 193, struct usb2_fs_stop)
+#define USB_FS_INIT _IOW ('U', 194, struct usb2_fs_init)
+#define USB_FS_UNINIT _IOW ('U', 195, struct usb2_fs_uninit)
+#define USB_FS_OPEN _IOW ('U', 196, struct usb2_fs_open)
+#define USB_FS_CLOSE _IOW ('U', 197, struct usb2_fs_close)
+#define USB_FS_CLEAR_STALL_SYNC _IOW ('U', 198, struct usb2_fs_clear_stall_sync)
+
#endif /* _USB2_IOCTL_H_ */
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 08:50:49 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 849691065674; Sun, 6 Jul 2008 08:50:49 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 4A6BE1065670
for ; Sun, 6 Jul 2008 08:50:49 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 33AE08FC15
for ; Sun, 6 Jul 2008 08:50:49 +0000 (UTC)
(envelope-from hselasky@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m668onqp089750
for ; Sun, 6 Jul 2008 08:50:49 GMT
(envelope-from hselasky@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m668onpR089748
for perforce@freebsd.org; Sun, 6 Jul 2008 08:50:49 GMT
(envelope-from hselasky@FreeBSD.org)
Date: Sun, 6 Jul 2008 08:50:49 GMT
Message-Id: <200807060850.m668onpR089748@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
hselasky@FreeBSD.org using -f
From: Hans Petter Selasky
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144764 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 08:50:49 -0000
http://perforce.freebsd.org/chv.cgi?CH=144764
Change 144764 by hselasky@hselasky_laptop001 on 2008/07/06 08:49:50
Compile fix and add USB status on transfer completion.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/include/usb2_ioctl.h#6 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/include/usb2_ioctl.h#6 (text+ko) ====
@@ -135,6 +135,7 @@
uint16_t timeout; /* in milliseconds */
/* timeout value for no timeout */
#define USB2_FS_TIMEOUT_NONE 0
+ uint8_t status; /* see USB_ERR_XXX */
};
struct usb2_fs_init {
@@ -161,7 +162,7 @@
};
struct usb2_fs_clear_stall_sync {
- unit8_t ep_index;
+ uint8_t ep_index;
};
/* USB controller */
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 08:57:57 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 3C0C41065683; Sun, 6 Jul 2008 08:57:57 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 021161065681
for ; Sun, 6 Jul 2008 08:57:57 +0000 (UTC)
(envelope-from trasz@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id DF8808FC12
for ; Sun, 6 Jul 2008 08:57:56 +0000 (UTC)
(envelope-from trasz@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m668vukA090287
for ; Sun, 6 Jul 2008 08:57:56 GMT
(envelope-from trasz@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m668vue2090285
for perforce@freebsd.org; Sun, 6 Jul 2008 08:57:56 GMT
(envelope-from trasz@freebsd.org)
Date: Sun, 6 Jul 2008 08:57:56 GMT
Message-Id: <200807060857.m668vue2090285@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
trasz@freebsd.org using -f
From: Edward Tomasz Napierala
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144766 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 08:57:57 -0000
http://perforce.freebsd.org/chv.cgi?CH=144766
Change 144766 by trasz@trasz_traszkan on 2008/07/06 08:57:32
With NFS4 ACLs, it is possible that applying a mode to an ACL which
is identical to the mode computed from that ACL will modify the ACL.
For example, mode computed from the following ACL is 0600:
user:kamila:rwx--------C--:------:allow
owner@:--x-----------:------:deny
owner@:rw-p---A-W-Co-:------:allow
group@:rwxp----------:------:deny
group@:--------------:------:allow
everyone@:rwxp---A-W-Co-:------:deny
everyone@:------a-R-c--s:------:allow
However, applying that mode (chmod 0600) changes the ACL into this:
user:kamila:rwx-----------:------:deny
user:kamila:rwx--------C--:------:allow
owner@:--x-----------:------:deny
owner@:rw-p---A-W-Co-:------:allow
group@:rwxp----------:------:deny
group@:--------------:------:allow
everyone@:rwxp---A-W-Co-:------:deny
everyone@:------a-R-c--s:------:allow
In chmod(1) utility, there is an optimisation, which makes it not
call chmod(2) if the mode of the file is the same as the new mode.
Disable that optimisation for files which may have NFS4 ACLs.
Affected files ...
.. //depot/projects/soc2008/trasz_nfs4acl/TODO#5 edit
.. //depot/projects/soc2008/trasz_nfs4acl/bin/chmod/chmod.c#2 edit
Differences ...
==== //depot/projects/soc2008/trasz_nfs4acl/TODO#5 (text+ko) ====
@@ -6,10 +6,6 @@
- Add error checking to acl_to_text_nfs4.c.
-- Find out what to do with chmod(1). Right now, "chmod 600" on file
- which already has mode 0600 does not call chmod(2) at all - and it
- should, as it might cause ACL recomputation.
-
- Make access control more granular.
- Attach ZFS to the framework.
==== //depot/projects/soc2008/trasz_nfs4acl/bin/chmod/chmod.c#2 (text+ko) ====
@@ -54,6 +54,7 @@
#include
void usage(void);
+int may_have_nfs4acl(const FTSENT *ent);
int
main(int argc, char *argv[])
@@ -180,8 +181,15 @@
break;
}
newmode = getmode(set, p->fts_statp->st_mode);
- if ((newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS))
- continue;
+ /*
+ * With NFS4 ACLs, it is possible that applying a mode
+ * identical to the one computed from an ACL will change
+ * that ACL.
+ */
+ if (may_have_nfs4acl(p) == 0) {
+ if ((newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS))
+ continue;
+ }
if ((*change_mode)(p->fts_accpath, newmode) && !fflag) {
warn("%s", p->fts_path);
rval = 1;
@@ -219,3 +227,25 @@
"usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...\n");
exit(1);
}
+
+int
+may_have_nfs4acl(const FTSENT *ent)
+{
+ int ret;
+ static dev_t previous_dev = (dev_t)-1;
+ static int supports_acls = -1;
+
+ if (previous_dev != ent->fts_statp->st_dev) {
+ previous_dev = ent->fts_statp->st_dev;
+ supports_acls = 0;
+
+ ret = pathconf(ent->fts_accpath, _PC_EXTENDED_SECURITY_NP);
+ if (ret > 0)
+ supports_acls = 1;
+ else if (ret < 0 && errno != EINVAL)
+ warn("%s", ent->fts_path);
+ }
+
+ return (supports_acls);
+}
+
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 09:28:28 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 39B12106566C; Sun, 6 Jul 2008 09:28:28 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id EC21F1065673
for ; Sun, 6 Jul 2008 09:28:27 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id D57F78FC0A
for ; Sun, 6 Jul 2008 09:28:27 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m669SRJW093826
for ; Sun, 6 Jul 2008 09:28:27 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m669SR5X093824
for perforce@freebsd.org; Sun, 6 Jul 2008 09:28:27 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 09:28:27 GMT
Message-Id: <200807060928.m669SR5X093824@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144767 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 09:28:28 -0000
http://perforce.freebsd.org/chv.cgi?CH=144767
Change 144767 by gabor@gabor_server on 2008/07/06 09:28:26
- Add --exclude for -r
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/grep/grep.c#54 edit
.. //depot/projects/soc2008/gabor_textproc/grep/grep.h#30 edit
.. //depot/projects/soc2008/gabor_textproc/grep/util.c#47 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#54 (text+ko) ====
@@ -80,10 +80,17 @@
int eflags = REG_STARTEND;
int matchall; /* shortcut */
+
+/* Searching patterns */
int patterns, pattern_sz;
char **pattern;
regex_t *r_pattern;
+/* Filename exclusion patterns */
+int epatterns, epattern_sz;
+char **epattern;
+regex_t *er_pattern;
+
/* For regex errors */
char re_error[RE_ERROR_BUF + 1];
@@ -112,6 +119,7 @@
int xflag; /* -x: pattern must match entire line */
int lbflag; /* --line-buffered */
int nullflag; /* --null */
+int exclflag; /* --exclude */
char *label; /* --label */
char *color; /* --color */
unsigned long long mcount; /* count for -m */
@@ -128,7 +136,8 @@
MMAP_OPT,
LINEBUF_OPT,
LABEL_OPT,
- NULL_OPT
+ NULL_OPT,
+ R_EXCLUDE_OPT
};
/* Housekeeping */
@@ -162,6 +171,7 @@
{"null", no_argument, NULL, NULL_OPT},
{"color", optional_argument, NULL, COLOR_OPT},
{"colour", optional_argument, NULL, COLOR_OPT},
+ {"exclude", required_argument, NULL, R_EXCLUDE_OPT},
{"after-context", required_argument, NULL, 'A'},
{"text", no_argument, NULL, 'a'},
{"before-context", required_argument, NULL, 'B'},
@@ -239,6 +249,22 @@
}
static void
+add_epattern(char *pat, size_t len)
+{
+ if (epatterns == epattern_sz) {
+ epattern_sz *= 2;
+ epattern = grep_realloc(epattern, ++epattern_sz * sizeof(*epattern));
+ }
+ if (len > 0 && pat[len - 1] == '\n')
+ --len;
+ /* pat may not be NUL-terminated */
+ epattern[epatterns] = grep_malloc(len + 1);
+ memcpy(epattern[epatterns], pat, len);
+ epattern[epatterns][len] = '\0';
+ ++epatterns;
+}
+
+static void
read_patterns(const char *fn)
{
FILE *f;
@@ -481,6 +507,12 @@
case NULL_OPT:
nullflag = 1;
break;
+ case R_EXCLUDE_OPT:
+ if (dirbehave != DIR_RECURSE)
+ usage();
+ exclflag = 1;
+ add_epattern(optarg, strlen(optarg));
+ break;
case HELP_OPT:
default:
usage();
@@ -516,6 +548,15 @@
errx(2, "%s", re_error);
}
}
+ er_pattern = grep_calloc(epatterns, sizeof(*er_pattern));
+ for (i = 0; i < epatterns; ++i) {
+ c = regcomp(&er_pattern[i], epattern[i], REG_EXTENDED);
+ if (c != 0) {
+ regerror(c, &er_pattern[i], re_error,
+ RE_ERROR_BUF);
+ errx(2, "%s", re_error);
+ }
+ }
if (lbflag)
setlinebuf(stdout);
==== //depot/projects/soc2008/gabor_textproc/grep/grep.h#30 (text+ko) ====
@@ -82,14 +82,14 @@
/* Command line flags */
extern int Eflag, Fflag, Gflag, Hflag, Jflag, Lflag, Zflag,
bflag, cflag, hflag, iflag, lflag, mflag, nflag, oflag,
- qflag, sflag, vflag, wflag, xflag, nullflag;
+ qflag, sflag, vflag, wflag, xflag, nullflag, exclflag;
extern unsigned long long Aflag, Bflag, mcount;
extern char *color, *label;
extern int binbehave, devbehave, dirbehave, linkbehave;
-extern int first, prev, matchall, patterns, tail, notfound;
-extern char **pattern;
-extern regex_t *r_pattern;
+extern int first, prev, matchall, patterns, epatterns, tail, notfound;
+extern char **pattern, **epattern;
+extern regex_t *r_pattern, *er_pattern;
/* For regex errors */
#define RE_ERROR_BUF 512
==== //depot/projects/soc2008/gabor_textproc/grep/util.c#47 (text+ko) ====
@@ -62,7 +62,7 @@
{
FTS *fts;
FTSENT *p;
- int c, fts_flags;
+ int i, c, ok, fts_flags;
c = fts_flags = 0;
@@ -92,7 +92,21 @@
p->fts_path);
break;
default:
- c += procfile(p->fts_path);
+ if (exclflag) {
+ regmatch_t pmatch;
+
+ ok = 1;
+ pmatch.rm_so = 0;
+ pmatch.rm_eo = strlen(p->fts_path);
+ for (i = 0; i < patterns; i++)
+ if (regexec(&er_pattern[i], p->fts_path, 0, &pmatch, eflags) == 0) {
+ ok = 0;
+ break;
+ }
+ } else
+ ok = 1;
+ if (ok)
+ c += procfile(p->fts_path);
break;
}
}
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 09:34:34 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 67B5F1065670; Sun, 6 Jul 2008 09:34:34 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 1267E1065688
for ; Sun, 6 Jul 2008 09:34:34 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id DECD18FC0C
for ; Sun, 6 Jul 2008 09:34:33 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m669YXmw094324
for ; Sun, 6 Jul 2008 09:34:33 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m669YXvU094322
for perforce@freebsd.org; Sun, 6 Jul 2008 09:34:33 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 09:34:33 GMT
Message-Id: <200807060934.m669YXvU094322@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144768 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 09:34:34 -0000
http://perforce.freebsd.org/chv.cgi?CH=144768
Change 144768 by gabor@gabor_server on 2008/07/06 09:34:21
- Revert previous change, this was not really what is desired
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/grep/grep.c#55 edit
.. //depot/projects/soc2008/gabor_textproc/grep/grep.h#31 edit
.. //depot/projects/soc2008/gabor_textproc/grep/util.c#48 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#55 (text+ko) ====
@@ -80,17 +80,10 @@
int eflags = REG_STARTEND;
int matchall; /* shortcut */
-
-/* Searching patterns */
int patterns, pattern_sz;
char **pattern;
regex_t *r_pattern;
-/* Filename exclusion patterns */
-int epatterns, epattern_sz;
-char **epattern;
-regex_t *er_pattern;
-
/* For regex errors */
char re_error[RE_ERROR_BUF + 1];
@@ -119,7 +112,6 @@
int xflag; /* -x: pattern must match entire line */
int lbflag; /* --line-buffered */
int nullflag; /* --null */
-int exclflag; /* --exclude */
char *label; /* --label */
char *color; /* --color */
unsigned long long mcount; /* count for -m */
@@ -136,8 +128,7 @@
MMAP_OPT,
LINEBUF_OPT,
LABEL_OPT,
- NULL_OPT,
- R_EXCLUDE_OPT
+ NULL_OPT
};
/* Housekeeping */
@@ -171,7 +162,6 @@
{"null", no_argument, NULL, NULL_OPT},
{"color", optional_argument, NULL, COLOR_OPT},
{"colour", optional_argument, NULL, COLOR_OPT},
- {"exclude", required_argument, NULL, R_EXCLUDE_OPT},
{"after-context", required_argument, NULL, 'A'},
{"text", no_argument, NULL, 'a'},
{"before-context", required_argument, NULL, 'B'},
@@ -249,22 +239,6 @@
}
static void
-add_epattern(char *pat, size_t len)
-{
- if (epatterns == epattern_sz) {
- epattern_sz *= 2;
- epattern = grep_realloc(epattern, ++epattern_sz * sizeof(*epattern));
- }
- if (len > 0 && pat[len - 1] == '\n')
- --len;
- /* pat may not be NUL-terminated */
- epattern[epatterns] = grep_malloc(len + 1);
- memcpy(epattern[epatterns], pat, len);
- epattern[epatterns][len] = '\0';
- ++epatterns;
-}
-
-static void
read_patterns(const char *fn)
{
FILE *f;
@@ -507,12 +481,6 @@
case NULL_OPT:
nullflag = 1;
break;
- case R_EXCLUDE_OPT:
- if (dirbehave != DIR_RECURSE)
- usage();
- exclflag = 1;
- add_epattern(optarg, strlen(optarg));
- break;
case HELP_OPT:
default:
usage();
@@ -548,15 +516,6 @@
errx(2, "%s", re_error);
}
}
- er_pattern = grep_calloc(epatterns, sizeof(*er_pattern));
- for (i = 0; i < epatterns; ++i) {
- c = regcomp(&er_pattern[i], epattern[i], REG_EXTENDED);
- if (c != 0) {
- regerror(c, &er_pattern[i], re_error,
- RE_ERROR_BUF);
- errx(2, "%s", re_error);
- }
- }
if (lbflag)
setlinebuf(stdout);
==== //depot/projects/soc2008/gabor_textproc/grep/grep.h#31 (text+ko) ====
@@ -82,14 +82,14 @@
/* Command line flags */
extern int Eflag, Fflag, Gflag, Hflag, Jflag, Lflag, Zflag,
bflag, cflag, hflag, iflag, lflag, mflag, nflag, oflag,
- qflag, sflag, vflag, wflag, xflag, nullflag, exclflag;
+ qflag, sflag, vflag, wflag, xflag, nullflag;
extern unsigned long long Aflag, Bflag, mcount;
extern char *color, *label;
extern int binbehave, devbehave, dirbehave, linkbehave;
-extern int first, prev, matchall, patterns, epatterns, tail, notfound;
-extern char **pattern, **epattern;
-extern regex_t *r_pattern, *er_pattern;
+extern int first, prev, matchall, patterns, tail, notfound;
+extern char **pattern;
+extern regex_t *r_pattern;
/* For regex errors */
#define RE_ERROR_BUF 512
==== //depot/projects/soc2008/gabor_textproc/grep/util.c#48 (text+ko) ====
@@ -62,7 +62,7 @@
{
FTS *fts;
FTSENT *p;
- int i, c, ok, fts_flags;
+ int c, fts_flags;
c = fts_flags = 0;
@@ -92,21 +92,7 @@
p->fts_path);
break;
default:
- if (exclflag) {
- regmatch_t pmatch;
-
- ok = 1;
- pmatch.rm_so = 0;
- pmatch.rm_eo = strlen(p->fts_path);
- for (i = 0; i < patterns; i++)
- if (regexec(&er_pattern[i], p->fts_path, 0, &pmatch, eflags) == 0) {
- ok = 0;
- break;
- }
- } else
- ok = 1;
- if (ok)
- c += procfile(p->fts_path);
+ c += procfile(p->fts_path);
break;
}
}
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 10:00:00 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 0F9461065677; Sun, 6 Jul 2008 10:00:00 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id C6ED31065673
for ; Sun, 6 Jul 2008 09:59:59 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id AFFF88FC13
for ; Sun, 6 Jul 2008 09:59:59 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m669xxf1096249
for ; Sun, 6 Jul 2008 09:59:59 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m669xxRp096247
for perforce@freebsd.org; Sun, 6 Jul 2008 09:59:59 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 09:59:59 GMT
Message-Id: <200807060959.m669xxRp096247@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144769 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 10:00:00 -0000
http://perforce.freebsd.org/chv.cgi?CH=144769
Change 144769 by gabor@gabor_server on 2008/07/06 09:59:55
- Add --unidirectional-new-file
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/diff/diff.1#3 edit
.. //depot/projects/soc2008/gabor_textproc/diff/diff.c#10 edit
.. //depot/projects/soc2008/gabor_textproc/diff/diff.h#5 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/diff/diff.1#3 (text+ko) ====
@@ -30,7 +30,7 @@
.\"
.\" @(#)diff.1 8.1 (Berkeley) 6/30/93
.\"
-.Dd Jul 4, 2008
+.Dd Jul 6, 2008
.Dt DIFF 1
.Os
.Sh NAME
@@ -281,6 +281,8 @@
The
.Ar file
argument can be a directory.
+.It Fl Fl unidirectional-new-file
+Treat the first file as empty and generate a diff accordingly.
.It Fl w , Fl Fl ignore-all-space
Is similar to
.Fl b
==== //depot/projects/soc2008/gabor_textproc/diff/diff.c#10 (text+ko) ====
@@ -45,7 +45,7 @@
#include "diff.h"
int aflag, bflag, dflag, iflag, lflag, Nflag, Pflag, pflag, rflag;
-int sflag, tflag, Tflag, wflag;
+int sflag, tflag, Tflag, wflag, uniflag;
int format, status;
int fcase_behave = FCASE_SENSITIVE;
unsigned long long context;
@@ -60,7 +60,8 @@
FCASE_SENSITIVE_OPT,
FCASE_IGNORE_OPT,
FROMFILE_OPT,
- TOFILE_OPT
+ TOFILE_OPT,
+ UNIDIR_OPT
};
#define OPTIONS "0123456789abC:cdD:efhI:iL:lnNPpqrS:sTtU:uvwX:x:"
@@ -76,8 +77,8 @@
{ "GTYPE-group-format", required_argument, NULL, OPT_GTYPE },
{ "line-format", required_argument, NULL, OPT_LF },
{ "LTYPE-line-format", required_argument, NULL, OPT_LLF },
- { "tabsize", optional_argument, NULL, OPT_TSIZE },
- { "unidirectional-new-file", no_argument, NULL, OPT_UNINF }, */
+ { "tabsize", optional_argument, NULL, OPT_TSIZE }, */
+ { "unidirectional-new-file", no_argument, NULL, UNIDIR_OPT },
{ "from-file", required_argument, NULL, FROMFILE_OPT },
{ "to-file", required_argument, NULL, TOFILE_OPT },
/* XXX: UNIMPLEMENTED
@@ -133,7 +134,7 @@
main(int argc, char **argv)
{
char *ep, *fromfile = NULL, *tofile = NULL, **oargv;
- int ch, lastch, gotstdin, prevoptind, newarg;
+ int ch, lastch, gotstdin, prevoptind, newarg, flags = 0;
char *dst, *src;
oargv = argv;
@@ -261,6 +262,9 @@
err(2, "--from-file and --to-file are both specified");
asprintf(&fromfile, "%s", optarg);
break;
+ case UNIDIR_OPT:
+ uniflag = 1;
+ break;
case TOFILE_OPT:
if (fromfile != NULL)
err(2, "--from-file and --to-file are both specified");
@@ -326,8 +330,12 @@
if (strcmp(src, "-") == 0) {
fstat(STDIN_FILENO, &stb1);
gotstdin = 1;
- } else if (stat(src, &stb1) != 0)
- err(2, "%s", src);
+ } else if (stat(src, &stb1) != 0) {
+ if (uniflag)
+ flags |= D_EMPTY1;
+ else
+ err(2, "%s", src);
+ }
if (strcmp(dst, "-") == 0) {
fstat(STDIN_FILENO, &stb2);
gotstdin = 1;
@@ -352,7 +360,7 @@
if (stat(argv[1], &stb2) < 0)
err(2, "%s", argv[1]);
}
- print_status(diffreg(src, dst, 0), src, dst,
+ print_status(diffreg(src, dst, flags), src, dst,
NULL);
if (fromfile != NULL)
dst = argv[ch];
==== //depot/projects/soc2008/gabor_textproc/diff/diff.h#5 (text+ko) ====
@@ -83,7 +83,7 @@
};
extern int aflag, bflag, dflag, iflag, lflag, Nflag, Pflag, pflag, rflag,
- sflag, tflag, Tflag, wflag;
+ sflag, tflag, Tflag, wflag, uniflag;
extern int format, status;
extern int fcase_behave;
extern unsigned long long context;
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 10:30:30 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C12221065688; Sun, 6 Jul 2008 10:30:30 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 8508C1065672
for ; Sun, 6 Jul 2008 10:30:30 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 6CE338FC1C
for ; Sun, 6 Jul 2008 10:30:30 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66AUUNB099812
for ; Sun, 6 Jul 2008 10:30:30 GMT
(envelope-from pgj@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66AUUQs099810
for perforce@freebsd.org; Sun, 6 Jul 2008 10:30:30 GMT
(envelope-from pgj@FreeBSD.org)
Date: Sun, 6 Jul 2008 10:30:30 GMT
Message-Id: <200807061030.m66AUUQs099810@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
pgj@FreeBSD.org using -f
From: Gabor Pali
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144771 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 10:30:31 -0000
http://perforce.freebsd.org/chv.cgi?CH=144771
Change 144771 by pgj@disznohal on 2008/07/06 10:29:36
IFC
Affected files ...
.. //depot/projects/docproj_hu/doc/en_US.ISO8859-1/share/sgml/authors.ent#7 integrate
.. //depot/projects/docproj_hu/doc/share/pgpkeys/nwhitehorn.key#1 branch
.. //depot/projects/docproj_hu/doc/share/pgpkeys/pgpkeys-developers.sgml#5 integrate
.. //depot/projects/docproj_hu/doc/share/pgpkeys/pgpkeys.ent#5 integrate
.. //depot/projects/docproj_hu/www/en/developers.sgml#6 integrate
.. //depot/projects/docproj_hu/www/en/gnome/docs/develfaq.sgml#2 integrate
.. //depot/projects/docproj_hu/www/en/gnome/docs/halfaq.sgml#2 integrate
.. //depot/projects/docproj_hu/www/en/gnome/index.xsl#3 integrate
.. //depot/projects/docproj_hu/www/hu/docs/webresources.sgml#4 edit
.. //depot/projects/docproj_hu/www/share/sgml/news.xml#8 integrate
.. //depot/projects/docproj_hu/www/share/sgml/press.xml#4 integrate
Differences ...
==== //depot/projects/docproj_hu/doc/en_US.ISO8859-1/share/sgml/authors.ent#7 (text+ko) ====
@@ -13,7 +13,7 @@
builds for the other languages, and we will poke fun of you
in public.
- $FreeBSD: doc/en_US.ISO8859-1/share/sgml/authors.ent,v 1.452 2008/06/23 11:42:41 erik Exp $
+ $FreeBSD: doc/en_US.ISO8859-1/share/sgml/authors.ent,v 1.453 2008/07/03 14:50:22 nwhitehorn Exp $
-->
aaron@FreeBSD.org">
@@ -780,6 +780,8 @@
nsouch@FreeBSD.org">
+nwhitehorn@FreeBSD.org">
+
nyan@FreeBSD.org">
obraun@FreeBSD.org">
==== //depot/projects/docproj_hu/doc/share/pgpkeys/pgpkeys-developers.sgml#5 (text+ko) ====
@@ -1,7 +1,7 @@
@@ -1338,3 +1338,9 @@
&a.ivoras;
&pgpkey.ivoras;
+
+
+ &a.nwhitehorn;
+ &pgpkey.nwhitehorn;
+
+
==== //depot/projects/docproj_hu/doc/share/pgpkeys/pgpkeys.ent#5 (text+ko) ====
@@ -1,5 +1,5 @@
-
+
@@ -202,6 +202,7 @@
+
==== //depot/projects/docproj_hu/www/en/developers.sgml#6 (text+ko) ====
@@ -6,7 +6,7 @@
us to update author names, or the representation of those names (such
as adding email addresses), by just editing a single file.
-$FreeBSD: www/en/developers.sgml,v 1.197 2008/06/23 11:42:41 erik Exp $
+$FreeBSD: www/en/developers.sgml,v 1.198 2008/07/03 16:43:49 nwhitehorn Exp $
-->
@@ -391,6 +391,7 @@
+
==== //depot/projects/docproj_hu/www/en/gnome/docs/develfaq.sgml#2 (text+ko) ====
@@ -1,6 +1,6 @@
-
+
@@ -158,8 +158,11 @@
What is the current state of development GNOME on FreeBSD?
- GNOME 2.22.0 is now out, and ports and packages are
- up-to-date. Keep those bug reports coming.
+ GNOME 2.23.4 is the latest development release, and it is
+ relatively stable. The only obvious known issue is that
+ some icons are missing. This is part of an initiative to
+ clean up the deprecated icons. As the &gnomedevelver;
+ releases continue, this will gradually be fixed.
&footer;
==== //depot/projects/docproj_hu/www/en/gnome/docs/halfaq.sgml#2 (text+ko) ====
@@ -1,6 +1,6 @@
-
+
]>
@@ -210,7 +210,7 @@
for PolicyKit.conf, see the
PolicyKit.conf(5) man page.
- Step 4: If you have fixed volumes you wish to mount,
+
Step 3: If you have fixed volumes you wish to mount,
you must also authorize yourself for the
org.freedesktop.hal.storage.mount-fixed action.
Note: This step is applicable to ALL users
@@ -227,7 +227,7 @@
</match>
-
Step 5: While not really part of hal volume
+
Step 4: While not really part of hal volume
management, you may also be able to have volumes listed in
/etc/fstab automatically mounted. In GNOME, for
example, Nautilus will mount volumes listed in
==== //depot/projects/docproj_hu/www/en/gnome/index.xsl#3 (text+ko) ====
@@ -4,7 +4,7 @@
]>
-
+
State of the port
GNOME for FreeBSD is currently supported on
- 5-STABLE, 6-STABLE, 6.3, 7.X, 8-CURRENT, and 6.2.
+ 6.3, 6-STABLE, 7.0, 7-STABLE, and 8-CURRENT.
Most of GNOME has been ported to FreeBSD, but there is still
plenty left to be done!
==== //depot/projects/docproj_hu/www/hu/docs/webresources.sgml#4 (text+ko) ====
@@ -2,7 +2,7 @@
-
+
]>
@@ -19,72 +19,80 @@
- Az igazi világban...
+ A valós világban...
-
+
- Cikkek a FreeBSD-rõl a Sajtóban.
+ Cikkek a &os;-rõl a sajtóban.
Hírcsoportok
- A következõ hírcsoportok a FreeBSD-hez kapcsolódó
+
A következõ hírcsoportok a &os;-vel kapcsolatos
megbeszéléseket tartalmaznak:
További források
-
+
- A FreeBSD Projekt jelenlegi álláspontja a 2000. évi
- kompatibilitásról.
+ A &os; Projekt jelenlegi álláspontja a
+ kétezredik évi kompatibilitásról.
-
+
- Ha szeret a forráskódban túrkálni,
- itt talál egy hypertext verziót a FreeBSD kernel
+
Ha szeretnénk a forráskódban
+ túrkálni, akkor itt találunk egy hypertext
+ verziót a &os; rendszermag
forráskódjáról, Robert Watson
- önkéntes munkájának köszönhetõen.
+ önkéntes munkájának
+ köszönhetõen.
- Az ipari vezetõ a BSD hírekben.
+ A BSD hírek legjobb forrása.
- Ahogyan a FreeBSD önmaga is, ez a dokumentáció is
- önkéntes erõfeszítés eredménye.
- A célok is le vannak itt írva, illetve a
- javítások és az új anyag
- elküldésének módja is.
+ Ahogyan a &os; önmaga is, ez a dokumentáció is
+ önkéntes erõfeszítés
+ eredménye. Itt megtalálhatjuk a célokat,
+ valamint a javítások és az új anyagok
+ beküldésének módjait is.
-
+
- A FreeBSD Diary egy kezdõknek szóló
- "hogyan" dokumentumgyûjtemény. A cél egy
- raká,s lépésrõl-lépésre
- haladó útmutató írása
+
A &os; Diary egy kezdõknek szóló ,,hogyan''
+ dokumentumgyûjtemény. Itt a cél
+ lépésrõl-lépésre haladó
+ útmutatók írása a
különbözõ portok
telepítésérõl és
konfigurációjáról.
@@ -92,32 +100,35 @@
- A BSD Dev Center két állandó oszlopot tart
- a FreeBSD-rõl, tippeket és útmutatókat.
+ A BSD Dev Centernek két állandó &os; rovata
+ van, ahol különbözõ tippeket és
+ útmutatókat olvashatunk.
- A BSDnexus aktív fórumokat nyújt a FreeBSD-rõl
- és a többi BSD-rõl.
+ A BSDnexus a &os;-vel és a többi BSD-vel kapcsolatban
+ kínál aktív internetes fórumokat.
- A BSDGuides.org rengeteg BSD-vel kapcsolatos útmutatót
- kínál.
+ A BSDGuides.org rengeteg BSD-vel kapcsolatos
+ útmutatót tartalmaz.
Egyéb dokumentáció
- 4.4BSD Dokumentumok: Ez a 4.4BSD
- dokumentumok hypertext verziója, amit a
- /usr/share/doc könyvtár
- alatt talál egy FreeBSD telepítésen (ha telepítette a
- doc disztribúciót).
+ 4.4BSD dokumentumok:
+ Ez a 4.4BSD dokumentumok hypertext verziója, amelyet a /usr/share/doc
+ könyvtárban találhatunk meg minden &os;
+ rendszeren (amennyiben telepítettük a doc
+ terjesztést).
- Info Dokumentumok: Ezek az Info
- dokumentumok hypertext verziói, amelyeket a
- /usr/share/info könyvtár
- alatt talál meg egy FreeBSD telepítésen (ha telepítette
- az info disztribúciót).
+ Info dokumentumok: Ezek
+ az Info dokumentumok hypertext verziói, amelyeket a /usr/share/info
+ könyvtár alatt találhatunk meg minden &os;
+ rendszeren (ha telepítettük az info
+ terjesztést).
&footer;
==== //depot/projects/docproj_hu/www/share/sgml/news.xml#8 (text+ko) ====
@@ -20,7 +20,7 @@
- $FreeBSD: www/share/sgml/news.xml,v 1.170 2008/06/23 11:42:41 erik Exp $
+ $FreeBSD: www/share/sgml/news.xml,v 1.172 2008/07/03 16:43:48 nwhitehorn Exp $
@@ -28,6 +28,18 @@
2008
+ 7
+
+
+ 3
+
+ New committer: Nathan
+ Whitehorn (src)
+
+
+
+
+
6
@@ -36,6 +48,14 @@
New committer: Erik
Cederstrand (projects)
+
+
+ FreeBSD Technologies in Firefox 3
+ A
+ press
+ release describing FreeBSD technologies used by Mozilla
+ Firefox.
+
==== //depot/projects/docproj_hu/www/share/sgml/press.xml#4 (text+ko) ====
@@ -9,7 +9,7 @@
- $FreeBSD: www/share/sgml/press.xml,v 1.62 2008/06/24 15:47:55 brd Exp $
+ $FreeBSD: www/share/sgml/press.xml,v 1.65 2008/07/05 15:59:21 jkoshy Exp $
@@ -17,15 +17,29 @@
2008
+ 7
+
+ Book Review: The Best of FreeBSD Basics
+ http://www.osnews.com/story/19947/Book_Review:_The_Best_of_FreeBSD_Basics
+ OS News
+ http://www.osnews.com/
+ 2 July 2008
+ Peter Hummers
+ A review of the book ``The Best of FreeBSD Basics''.
+
+
+
+
6
- FreeBSD Technologies in Firefox 3
- http://www.prweb.com/releases/2008/6/prweb1042664.htm
- PR Web
- http://www.prweb.com/
- 23 June 2008
- An article about how Mozilla Firefox uses FreeBSD
- Technologies.
+ How FreeBSD makes vulnerability auditing easy: portaudit
+ http://blogs.techrepublic.com.com/security/?p=477
+ Tech Republic
+ http://www.techrepublic.com.com/
+ 24 June 2008
+ Chad Perrin
+ An article that highlights the ease with which a FreeBSD
+ system can be kept upto-date with respect to vulnerabilities.
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 12:35:37 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 33EB31065688; Sun, 6 Jul 2008 12:35:37 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id EBB50106567F
for ; Sun, 6 Jul 2008 12:35:36 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id BBF988FC12
for ; Sun, 6 Jul 2008 12:35:36 +0000 (UTC)
(envelope-from pgj@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66CZaOD012923
for ; Sun, 6 Jul 2008 12:35:36 GMT
(envelope-from pgj@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66CZaK1012921
for perforce@freebsd.org; Sun, 6 Jul 2008 12:35:36 GMT
(envelope-from pgj@FreeBSD.org)
Date: Sun, 6 Jul 2008 12:35:36 GMT
Message-Id: <200807061235.m66CZaK1012921@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
pgj@FreeBSD.org using -f
From: Gabor Pali
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144775 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 12:35:37 -0000
http://perforce.freebsd.org/chv.cgi?CH=144775
Change 144775 by pgj@disznohal on 2008/07/06 12:35:27
A forced submit to remark that a work-in-progress Hungarian source
rework got into integrated changes in my last submit
Pointhat for: pgj
Affected files ...
.. //depot/projects/docproj_hu/www/hu/docs/webresources.sgml#5 edit
Differences ...
==== //depot/projects/docproj_hu/www/hu/docs/webresources.sgml#5 (text+ko) ====
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 12:50:53 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 2A8531065670; Sun, 6 Jul 2008 12:50:53 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id E105B1065680
for ; Sun, 6 Jul 2008 12:50:52 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id CB25E8FC17
for ; Sun, 6 Jul 2008 12:50:52 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66CoqW3023410
for ; Sun, 6 Jul 2008 12:50:52 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66CoqQe023408
for perforce@freebsd.org; Sun, 6 Jul 2008 12:50:52 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 12:50:52 GMT
Message-Id: <200807061250.m66CoqQe023408@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144777 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 12:50:53 -0000
http://perforce.freebsd.org/chv.cgi?CH=144777
Change 144777 by gabor@gabor_server on 2008/07/06 12:50:06
- Readd --exclude and add --include in the same way. Even if these
are not GNU compatible as GNU seems to except a shell pattern, I
consider this a great feature with extended regexps.
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/grep/grep.c#56 edit
.. //depot/projects/soc2008/gabor_textproc/grep/grep.h#32 edit
.. //depot/projects/soc2008/gabor_textproc/grep/util.c#49 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#56 (text+ko) ====
@@ -70,9 +70,10 @@
/*10*/ "FreeBSD grep 2.5.1\n",
/*11*/ "unknown --binary-files option",
/*12*/ "Binary file %s matches\n",
-/*12*/ "value out of range",
-/*13*/ "unknown -d or --directory option",
-/*14*/ "unknown --color option"
+/*13*/ "value out of range",
+/*14*/ "unknown -d or --directory option",
+/*15*/ "unknown --color option",
+/*16*/ "both --include and --exclude are specified"
};
/* Flags passed to regcomp() and regexec() */
@@ -80,10 +81,17 @@
int eflags = REG_STARTEND;
int matchall; /* shortcut */
+
+/* Searching patterns */
int patterns, pattern_sz;
char **pattern;
regex_t *r_pattern;
+/* Filename exclusion patterns */
+int epatterns, epattern_sz;
+char **epattern;
+regex_t *er_pattern;
+
/* For regex errors */
char re_error[RE_ERROR_BUF + 1];
@@ -112,6 +120,8 @@
int xflag; /* -x: pattern must match entire line */
int lbflag; /* --line-buffered */
int nullflag; /* --null */
+int exclflag; /* --exclude */
+int inclflag; /* --include */
char *label; /* --label */
char *color; /* --color */
unsigned long long mcount; /* count for -m */
@@ -128,7 +138,9 @@
MMAP_OPT,
LINEBUF_OPT,
LABEL_OPT,
- NULL_OPT
+ NULL_OPT,
+ R_EXCLUDE_OPT,
+ R_INCLUDE_OPT
};
/* Housekeeping */
@@ -162,6 +174,8 @@
{"null", no_argument, NULL, NULL_OPT},
{"color", optional_argument, NULL, COLOR_OPT},
{"colour", optional_argument, NULL, COLOR_OPT},
+ {"exclude", required_argument, NULL, R_EXCLUDE_OPT},
+ {"include", required_argument, NULL, R_INCLUDE_OPT},
{"after-context", required_argument, NULL, 'A'},
{"text", no_argument, NULL, 'a'},
{"before-context", required_argument, NULL, 'B'},
@@ -239,6 +253,22 @@
}
static void
+add_epattern(char *pat, size_t len)
+{
+ if (epatterns == epattern_sz) {
+ epattern_sz *= 2;
+ epattern = grep_realloc(epattern, ++epattern_sz * sizeof(*epattern));
+ }
+ if (len > 0 && pat[len - 1] == '\n')
+ --len;
+ /* pat may not be NUL-terminated */
+ epattern[epatterns] = grep_malloc(len + 1);
+ memcpy(epattern[epatterns], pat, len);
+ epattern[epatterns][len] = '\0';
+ ++epatterns;
+}
+
+static void
read_patterns(const char *fn)
{
FILE *f;
@@ -470,7 +500,7 @@
} else if (strcmp("never", optarg) == 0)
color = NULL;
else
- errx(2, getstr(14));
+ errx(2, getstr(15));
break;
case LABEL_OPT:
label = optarg;
@@ -481,6 +511,20 @@
case NULL_OPT:
nullflag = 1;
break;
+ case R_INCLUDE_OPT:
+ if (dirbehave != DIR_RECURSE)
+ usage();
+ inclflag = 1;
+ exclflag = 0;
+ add_epattern(optarg, strlen(optarg));
+ break;
+ case R_EXCLUDE_OPT:
+ if (dirbehave != DIR_RECURSE)
+ usage();
+ inclflag = 0;
+ exclflag = 1;
+ add_epattern(optarg, strlen(optarg));
+ break;
case HELP_OPT:
default:
usage();
@@ -516,6 +560,15 @@
errx(2, "%s", re_error);
}
}
+ er_pattern = grep_calloc(epatterns, sizeof(*er_pattern));
+ for (i = 0; i < epatterns; ++i) {
+ c = regcomp(&er_pattern[i], epattern[i], REG_EXTENDED);
+ if (c != 0) {
+ regerror(c, &er_pattern[i], re_error,
+ RE_ERROR_BUF);
+ errx(2, "%s", re_error);
+ }
+ }
if (lbflag)
setlinebuf(stdout);
==== //depot/projects/soc2008/gabor_textproc/grep/grep.h#32 (text+ko) ====
@@ -82,14 +82,15 @@
/* Command line flags */
extern int Eflag, Fflag, Gflag, Hflag, Jflag, Lflag, Zflag,
bflag, cflag, hflag, iflag, lflag, mflag, nflag, oflag,
- qflag, sflag, vflag, wflag, xflag, nullflag;
+ qflag, sflag, vflag, wflag, xflag;
+extern int nullflag, exclflag, inclflag;
extern unsigned long long Aflag, Bflag, mcount;
extern char *color, *label;
extern int binbehave, devbehave, dirbehave, linkbehave;
-extern int first, prev, matchall, patterns, tail, notfound;
-extern char **pattern;
-extern regex_t *r_pattern;
+extern int first, prev, matchall, patterns, epatterns, tail, notfound;
+extern char **pattern, **epattern;
+extern regex_t *r_pattern, *er_pattern;
/* For regex errors */
#define RE_ERROR_BUF 512
==== //depot/projects/soc2008/gabor_textproc/grep/util.c#49 (text+ko) ====
@@ -62,7 +62,7 @@
{
FTS *fts;
FTSENT *p;
- int c, fts_flags;
+ int i, c, ok, fts_flags;
c = fts_flags = 0;
@@ -92,7 +92,31 @@
p->fts_path);
break;
default:
- c += procfile(p->fts_path);
+ if (exclflag) {
+ regmatch_t pmatch;
+
+ ok = 1;
+ pmatch.rm_so = 0;
+ pmatch.rm_eo = strlen(p->fts_path);
+ for (i = 0; i < epatterns; i++)
+ if (regexec(&er_pattern[i], p->fts_path, 0, &pmatch, eflags) == 0) {
+ ok = 0;
+ break;
+ }
+ } else if (inclflag) {
+ regmatch_t pmatch;
+ ok = 0;
+ pmatch.rm_so = 0;
+ pmatch.rm_eo = strlen(p->fts_path);
+ for (i = 0; i < epatterns; i++)
+ if (regexec(&er_pattern[i], p->fts_path, 0, &pmatch, eflags) == 0) {
+ ok = 1;
+ break;
+ }
+ } else
+ ok = 1;
+ if (ok)
+ c += procfile(p->fts_path);
break;
}
}
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 13:31:34 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 81DFF1065674; Sun, 6 Jul 2008 13:31:34 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 45DF01065672
for ; Sun, 6 Jul 2008 13:31:34 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 30ED58FC20
for ; Sun, 6 Jul 2008 13:31:34 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66DVY21028008
for ; Sun, 6 Jul 2008 13:31:34 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66DVYbN028006
for perforce@freebsd.org; Sun, 6 Jul 2008 13:31:34 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 13:31:34 GMT
Message-Id: <200807061331.m66DVYbN028006@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144780 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 13:31:34 -0000
http://perforce.freebsd.org/chv.cgi?CH=144780
Change 144780 by gabor@gabor_server on 2008/07/06 13:31:22
- Little change on -V to be more informative and more consistent with
GNU grep
Requested by: Pedro F. Giffuni
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/grep/grep.c#57 edit
.. //depot/projects/soc2008/gabor_textproc/grep/grep.h#33 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#57 (text+ko) ====
@@ -67,7 +67,7 @@
/* 7*/ "\t[--null] [pattern] [file ...]\n",
/* 8*/ "parentheses not balanced",
/* 9*/ "context out of range",
-/*10*/ "FreeBSD grep 2.5.1\n",
+/*10*/ "%s (BSD grep) %s\n",
/*11*/ "unknown --binary-files option",
/*12*/ "Binary file %s matches\n",
/*13*/ "value out of range",
@@ -465,7 +465,7 @@
/* noop, compatibility */
break;
case 'V':
- printf(getstr(10));
+ printf(getstr(10), __progname, VERSION);
exit(0);
case 'v':
vflag = 1;
==== //depot/projects/soc2008/gabor_textproc/grep/grep.h#33 (text+ko) ====
@@ -44,6 +44,7 @@
extern char *errstr[];
+#define VERSION "2.5.1-FreeBSD"
#define BINFILE_BIN 0
#define BINFILE_SKIP 1
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 13:37:41 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C16DC1065677; Sun, 6 Jul 2008 13:37:40 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 83E2E1065674
for ; Sun, 6 Jul 2008 13:37:40 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 6EE5D8FC12
for ; Sun, 6 Jul 2008 13:37:40 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66DbeqK028515
for ; Sun, 6 Jul 2008 13:37:40 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66Dbeve028513
for perforce@freebsd.org; Sun, 6 Jul 2008 13:37:40 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 13:37:40 GMT
Message-Id: <200807061337.m66Dbeve028513@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144781 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 13:37:41 -0000
http://perforce.freebsd.org/chv.cgi?CH=144781
Change 144781 by gabor@gabor_server on 2008/07/06 13:36:59
- Resync catalogues
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/grep/grep.c#58 edit
.. //depot/projects/soc2008/gabor_textproc/grep/nls/C.msg#4 edit
.. //depot/projects/soc2008/gabor_textproc/grep/nls/hu_HU.ISO8859-2.msg#3 edit
.. //depot/projects/soc2008/gabor_textproc/grep/nls/pt_BR.ISO8859-1.msg#4 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#58 (text+ko) ====
@@ -73,7 +73,6 @@
/*13*/ "value out of range",
/*14*/ "unknown -d or --directory option",
/*15*/ "unknown --color option",
-/*16*/ "both --include and --exclude are specified"
};
/* Flags passed to regcomp() and regexec() */
==== //depot/projects/soc2008/gabor_textproc/grep/nls/C.msg#4 (text+ko) ====
@@ -11,9 +11,9 @@
7 "\t[--null] [pattern] [file ...]\n"
8 "parentheses not balanced"
9 "context out of range"
-10 "FreeBSD grep 2.5.1\n"
+10 "%s (BSD grep) %s\n"
11 "unknown --binary-files option"
12 "Binary file %s matches\n"
-12 "value out of range"
-13 "unknown -d or --directory option"
-14 "unknown --color option"
+13 "value out of range"
+14 "unknown -d or --directory option"
+15 "unknown --color option"
==== //depot/projects/soc2008/gabor_textproc/grep/nls/hu_HU.ISO8859-2.msg#3 (text+ko) ====
@@ -11,9 +11,9 @@
7 "\t[--null] [minta] [fájl ...]\n"
8 "párosítatlan zárójelek"
9 "a kontextus a megengedett tartományon kívül esik"
-10 "FreeBSD grep 2.5.1\n"
+10 "%s (BSD grep) %s\n"
11 "ismeretlen --binary-files opció"
12 "%s bináris fájl illeszkedik\n"
-12 "az érték a megengedett tartományon kívül esik"
-13 "ismeretlen -d vagy --directory opció"
-14 "ismeretlen --color opció"
+13 "az érték a megengedett tartományon kívül esik"
+14 "ismeretlen -d vagy --directory opció"
+15 "ismeretlen --color opció"
==== //depot/projects/soc2008/gabor_textproc/grep/nls/pt_BR.ISO8859-1.msg#4 (text+ko) ====
@@ -11,9 +11,9 @@
7 "\t[--null] [padrão] [arquivo ...]\n"
8 "parênteses nâo balanceados"
9 "contexto está fora da escala"
-10 "FreeBSD grep 2.5.1\n"
+10 "%s (BSD grep) %s\n"
11 "opcão não conhecida de --binary-files"
12 "arquivo binário %s casa com o padrão\n"
-12 "el valor está fora da escala"
-13 "opcão não conhecida de -d ou --directory"
-14 "opcão não conhecida de --color"
+13 "el valor está fora da escala"
+14 "opcão não conhecida de -d ou --directory"
+15 "opcão não conhecida de --color"
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 13:50:54 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 286961065685; Sun, 6 Jul 2008 13:50:54 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id E03EB1065682
for ; Sun, 6 Jul 2008 13:50:53 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id CB9CA8FC14
for ; Sun, 6 Jul 2008 13:50:53 +0000 (UTC)
(envelope-from gabor@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66Dorrb029558
for ; Sun, 6 Jul 2008 13:50:53 GMT
(envelope-from gabor@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66Dor8R029556
for perforce@freebsd.org; Sun, 6 Jul 2008 13:50:53 GMT
(envelope-from gabor@freebsd.org)
Date: Sun, 6 Jul 2008 13:50:53 GMT
Message-Id: <200807061350.m66Dor8R029556@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
gabor@freebsd.org using -f
From: Gabor Kovesdan
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144782 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 13:50:54 -0000
http://perforce.freebsd.org/chv.cgi?CH=144782
Change 144782 by gabor@gabor_server on 2008/07/06 13:50:22
- Add --speed-large-files. At the moment this is a compatibility
noop, optimization comes later.
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/diff/diff.c#11 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/diff/diff.c#11 (text+ko) ====
@@ -61,7 +61,8 @@
FCASE_IGNORE_OPT,
FROMFILE_OPT,
TOFILE_OPT,
- UNIDIR_OPT
+ UNIDIR_OPT,
+ SPEEDLF_OPT
};
#define OPTIONS "0123456789abC:cdD:efhI:iL:lnNPpqrS:sTtU:uvwX:x:"
@@ -82,8 +83,8 @@
{ "from-file", required_argument, NULL, FROMFILE_OPT },
{ "to-file", required_argument, NULL, TOFILE_OPT },
/* XXX: UNIMPLEMENTED
- { "horizon-lines", required_argument, NULL, OPT_HLINES },
- { "speed-large-files", no_argument, NULL, OPT_LFILES }, */
+ { "horizon-lines", required_argument, NULL, OPT_HLINES }, */
+ { "speed-large-files", no_argument, NULL, SPEEDLF_OPT },
{ "help", no_argument, NULL, HELP_OPT },
{ "text", no_argument, NULL, 'a' },
/* XXX: UNIMPLEMENTED
@@ -276,6 +277,9 @@
case FCASE_IGNORE_OPT:
fcase_behave = FCASE_IGNORE;
break;
+ case SPEEDLF_OPT:
+ /* noop, compatibility */
+ break;
case NORMAL_OPT:
/* compatibility, this is the default */
break;
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 15:41:46 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 14F0F1065673; Sun, 6 Jul 2008 15:41:46 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id CD96C1065671
for ; Sun, 6 Jul 2008 15:41:45 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 9FBD18FC0C
for ; Sun, 6 Jul 2008 15:41:45 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66Ffjra040631
for ; Sun, 6 Jul 2008 15:41:45 GMT
(envelope-from marcel@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66FfjDd040629
for perforce@freebsd.org; Sun, 6 Jul 2008 15:41:45 GMT
(envelope-from marcel@freebsd.org)
Date: Sun, 6 Jul 2008 15:41:45 GMT
Message-Id: <200807061541.m66FfjDd040629@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
marcel@freebsd.org using -f
From: Marcel Moolenaar
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144784 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 15:41:46 -0000
http://perforce.freebsd.org/chv.cgi?CH=144784
Change 144784 by marcel@marcel_xcllnt on 2008/07/06 15:41:24
Make ns8250 the default. In other words, assume that people
refer to the ns8250 by default.
Requested by: nyan
Affected files ...
.. //depot/projects/uart/dev/uart/uart_cpu_pc98.c#20 edit
Differences ...
==== //depot/projects/uart/dev/uart/uart_cpu_pc98.c#20 (text+ko) ====
@@ -77,7 +77,7 @@
struct uart_class *class;
unsigned int i, ivar;
- class = &uart_i8251_class;
+ class = &uart_ns8250_class;
/* Check the environment. */
if (uart_getenv(devtype, di, class) == 0)
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 15:52:57 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 1B7181065689; Sun, 6 Jul 2008 15:52:57 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id D55FE1065684
for ; Sun, 6 Jul 2008 15:52:56 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id C19C08FC1F
for ; Sun, 6 Jul 2008 15:52:56 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66FqumH041496
for ; Sun, 6 Jul 2008 15:52:56 GMT
(envelope-from marcel@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66Fqugh041494
for perforce@freebsd.org; Sun, 6 Jul 2008 15:52:56 GMT
(envelope-from marcel@freebsd.org)
Date: Sun, 6 Jul 2008 15:52:56 GMT
Message-Id: <200807061552.m66Fqugh041494@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
marcel@freebsd.org using -f
From: Marcel Moolenaar
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144785 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 15:52:57 -0000
http://perforce.freebsd.org/chv.cgi?CH=144785
Change 144785 by marcel@marcel_xcllnt on 2008/07/06 15:52:13
The RSA-98III is actually a ns8250 class UART.
Affected files ...
.. //depot/projects/uart/dev/uart/uart_bus_isa.c#12 edit
Differences ...
==== //depot/projects/uart/dev/uart/uart_bus_isa.c#12 (text+ko) ====
@@ -65,6 +65,7 @@
{0x0205d041, "Multiport serial device (non-intelligent 16550)"}, /* PNP0502 */
{0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
{0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
+ {0x0100e4a5, "RSA-98III"},
/* Devices that do not have a compatid */
{0x12206804, NULL}, /* ACH2012 - 5634BTS 56K Video Ready Modem */
{0x7602a904, NULL}, /* AEI0276 - 56K v.90 Fax Modem (LKT) */
@@ -159,11 +160,6 @@
{0}
};
-static struct isa_pnp_id isa_i8251_ids[] = {
- {0x0100e4a5, "RSA-98III"},
- {0}
-};
-
static int
uart_isa_probe(device_t dev)
{
@@ -179,11 +175,7 @@
return (uart_bus_probe(dev, 0, 0, 0, 0));
}
- /* Probe PnP _and_ non-PnP i8251 here. */
- if (ISA_PNP_PROBE(parent, dev, isa_i8251_ids) != ENXIO) {
- sc->sc_class = &uart_i8251_class;
- return (uart_bus_probe(dev, 0, 0, 0, 0));
- }
+ /* Add checks for non-ns8250 IDs here. */
#ifdef PC98
sc->sc_class = uart_pc98_getdev(bus_get_resource_start(dev,
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 16:06:47 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 7B9C71065673; Sun, 6 Jul 2008 16:06:47 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 0DEAE106566C
for ; Sun, 6 Jul 2008 16:06:47 +0000 (UTC)
(envelope-from xcllnt@mac.com)
Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.68])
by mx1.freebsd.org (Postfix) with ESMTP id E82C28FC17
for ; Sun, 6 Jul 2008 16:06:46 +0000 (UTC)
(envelope-from xcllnt@mac.com)
Received: from asmtp022-bge351000.mac.com (asmtp022-bge351000 [10.150.69.85])
by smtpoutm.mac.com (Xserve/smtpout005/MantshX 4.0) with ESMTP id
m66FoMhf018028; Sun, 6 Jul 2008 08:50:22 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=US-ASCII; format=flowed
Received: from [192.168.1.102] (209-128-86-226.bayarea.net [209.128.86.226])
by asmtp022.mac.com
(Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008;
32bit)) with ESMTPSA id <0K3L00EOKDBX4620@asmtp022.mac.com>; Sun,
06 Jul 2008 08:50:22 -0700 (PDT)
Sender: xcllnt@mac.com
Message-id:
From: Marcel Moolenaar
To: Takahashi Yoshihiro
In-reply-to: <20080706.110943.226722229.nyan@jp.FreeBSD.org>
Date: Sun, 06 Jul 2008 08:50:21 -0700
References: <200807051943.m65JhHZ6066371@repoman.freebsd.org>
<20080706.110943.226722229.nyan@jp.FreeBSD.org>
X-Mailer: Apple Mail (2.926)
Cc: marcel@freebsd.org, perforce@freebsd.org
Subject: Re: PERFORCE change 144741 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 16:06:47 -0000
On Jul 5, 2008, at 7:09 PM, Takahashi Yoshihiro wrote:
> In article <200807051943.m65JhHZ6066371@repoman.freebsd.org>
> Marcel Moolenaar writes:
>
>> static struct isa_pnp_id isa_i8251_ids[] = {
>> {0x0100e4a5, "RSA-98III"},
>> {0}
>> };
>
>> /* Probe PnP _and_ non-PnP i8251 here. */
>> if (ISA_PNP_PROBE(parent, dev, isa_i8251_ids) != ENXIO) {
>> sc->sc_class = &uart_i8251_class;
>> return (uart_bus_probe(dev, 0, 0, 0, 0));
>> }
>
> These are wrong. RSA98-III is based on ns8250 and has extended FIFO
> buffer. So I think that the uart_rsa_class should be added.
Oh. In your patch you define it as i8251. I only refactored
the code. Also, the ns8250 class already supports extended
FIFOs, so we don't need a separate class for that. I'll
change it...
> FYI, RSA series are not for pc98 only.
> RSA-PCI (PCI) and RSA-DVII (ISA) exist but not supported yet.
Ok, good to know. With the refactored code there's maximum
sharing, so UART will support them on other platforms as
well...
--
Marcel Moolenaar
xcllnt@mac.com
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 16:31:36 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 5735C1065674; Sun, 6 Jul 2008 16:31:36 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 1B47F1065684
for ; Sun, 6 Jul 2008 16:31:36 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 07B518FC12
for ; Sun, 6 Jul 2008 16:31:36 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66GVZdD046007
for ; Sun, 6 Jul 2008 16:31:35 GMT
(envelope-from marcel@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66GVZw8046005
for perforce@freebsd.org; Sun, 6 Jul 2008 16:31:35 GMT
(envelope-from marcel@freebsd.org)
Date: Sun, 6 Jul 2008 16:31:35 GMT
Message-Id: <200807061631.m66GVZw8046005@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
marcel@freebsd.org using -f
From: Marcel Moolenaar
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144787 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 16:31:36 -0000
http://perforce.freebsd.org/chv.cgi?CH=144787
Change 144787 by marcel@marcel_xcllnt on 2008/07/06 16:31:06
Add a skeletal implementation for the i8251.
Doesn't do anything yet.
Affected files ...
.. //depot/projects/uart/conf/files#90 edit
.. //depot/projects/uart/dev/uart/uart_dev_i8251.c#6 add
.. //depot/projects/uart/modules/uart/Makefile#17 edit
Differences ...
==== //depot/projects/uart/conf/files#90 (text+ko) ====
@@ -1260,6 +1260,8 @@
dev/uart/uart_bus_scc.c optional uart scc
dev/uart/uart_core.c optional uart
dev/uart/uart_dbg.c optional uart gdb
+dev/uart/uart_dev_i8251.c optional uart uart_i8251
+dev/uart/uart_dev_i8251.c optional uart scc
dev/uart/uart_dev_ns8250.c optional uart uart_ns8250
dev/uart/uart_dev_quicc.c optional uart quicc
dev/uart/uart_dev_sab82532.c optional uart uart_sab82532
==== //depot/projects/uart/modules/uart/Makefile#17 (text+ko) ====
@@ -11,7 +11,7 @@
SRCS= uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \
uart_core.c uart_dbg.c \
- uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c \
+ uart_i8251.c uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c \
uart_if.c uart_if.h uart_subr.c uart_tty.c
.if ${MACHINE} == "sun4v"
SRCS+= uart_cpu_sparc64.c
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 16:33:38 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 9FB01106569A; Sun, 6 Jul 2008 16:33:38 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 62E6C1065672
for ; Sun, 6 Jul 2008 16:33:38 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 3525E8FC18
for ; Sun, 6 Jul 2008 16:33:38 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66GXcTE046182
for ; Sun, 6 Jul 2008 16:33:38 GMT
(envelope-from marcel@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66GXc3X046180
for perforce@freebsd.org; Sun, 6 Jul 2008 16:33:38 GMT
(envelope-from marcel@freebsd.org)
Date: Sun, 6 Jul 2008 16:33:38 GMT
Message-Id: <200807061633.m66GXc3X046180@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
marcel@freebsd.org using -f
From: Marcel Moolenaar
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144788 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 16:33:38 -0000
http://perforce.freebsd.org/chv.cgi?CH=144788
Change 144788 by marcel@marcel_xcllnt on 2008/07/06 16:32:37
Use uart(4), not sio(4).
Affected files ...
.. //depot/projects/uart/pc98/conf/GENERIC#27 edit
Differences ...
==== //depot/projects/uart/pc98/conf/GENERIC#27 (text+ko) ====
@@ -151,9 +151,7 @@
device cardbus # CardBus (32-bit) bus
# Serial (COM) ports
-options COM_MULTIPORT
-#options COM_ESP # ESP98
-device sio # 8250, 16[45]50, 8251 based serial ports
+device uart # 8250, 16[45]50, 8251 based serial ports
device mse
#device joy
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 16:39:45 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id E740C1065676; Sun, 6 Jul 2008 16:39:44 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id AB57C106564A
for ; Sun, 6 Jul 2008 16:39:44 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 97E4A8FC12
for ; Sun, 6 Jul 2008 16:39:44 +0000 (UTC)
(envelope-from marcel@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66Gdi5m046730
for ; Sun, 6 Jul 2008 16:39:44 GMT
(envelope-from marcel@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66Gdig0046728
for perforce@freebsd.org; Sun, 6 Jul 2008 16:39:44 GMT
(envelope-from marcel@freebsd.org)
Date: Sun, 6 Jul 2008 16:39:44 GMT
Message-Id: <200807061639.m66Gdig0046728@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
marcel@freebsd.org using -f
From: Marcel Moolenaar
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144790 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 16:39:45 -0000
http://perforce.freebsd.org/chv.cgi?CH=144790
Change 144790 by marcel@marcel_xcllnt on 2008/07/06 16:39:19
Compile...
Affected files ...
.. //depot/projects/uart/dev/uart/uart_dev_i8251.c#7 edit
.. //depot/projects/uart/modules/uart/Makefile#18 edit
.. //depot/projects/uart/pc98/conf/DEFAULTS#8 edit
Differences ...
==== //depot/projects/uart/dev/uart/uart_dev_i8251.c#7 (text+ko) ====
@@ -217,7 +217,6 @@
{
struct uart_bas *bas;
struct uart_devinfo *di;
- uint16_t st, rb;
bas = &sc->sc_bas;
if (sc->sc_sysdev != NULL) {
@@ -303,7 +302,6 @@
{
struct uart_bas *bas;
int ipend;
- uint16_t scce;
bas = &sc->sc_bas;
ipend = 0;
==== //depot/projects/uart/modules/uart/Makefile#18 (text+ko) ====
@@ -11,7 +11,8 @@
SRCS= uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \
uart_core.c uart_dbg.c \
- uart_i8251.c uart_dev_ns8250.c uart_dev_sab82532.c uart_dev_z8530.c \
+ uart_dev_i8251.c uart_dev_ns8250.c uart_dev_sab82532.c \
+ uart_dev_z8530.c \
uart_if.c uart_if.h uart_subr.c uart_tty.c
.if ${MACHINE} == "sun4v"
SRCS+= uart_cpu_sparc64.c
==== //depot/projects/uart/pc98/conf/DEFAULTS#8 (text+ko) ====
@@ -18,8 +18,8 @@
device io # I/O device
# UART chips on this platform
+device uart_i8251
device uart_ns8250
-#device uart_i8251
# Default partitioning schemes
options GEOM_BSD
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 16:46:52 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 7C6671065675; Sun, 6 Jul 2008 16:46:52 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 40EC6106567E
for ; Sun, 6 Jul 2008 16:46:52 +0000 (UTC)
(envelope-from rpaulo@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 2D9FB8FC14
for ; Sun, 6 Jul 2008 16:46:52 +0000 (UTC)
(envelope-from rpaulo@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66GkqDD047390
for ; Sun, 6 Jul 2008 16:46:52 GMT
(envelope-from rpaulo@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66GkqSV047388
for perforce@freebsd.org; Sun, 6 Jul 2008 16:46:52 GMT
(envelope-from rpaulo@FreeBSD.org)
Date: Sun, 6 Jul 2008 16:46:52 GMT
Message-Id: <200807061646.m66GkqSV047388@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
rpaulo@FreeBSD.org using -f
From: Rui Paulo
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144793 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 16:46:52 -0000
http://perforce.freebsd.org/chv.cgi?CH=144793
Change 144793 by rpaulo@rpaulo_epsilon on 2008/07/06 16:45:54
Add a couple more variables and correct the order.
Affected files ...
.. //depot/projects/soc2008/rpaulo-tcpad/tcpad.h#10 edit
Differences ...
==== //depot/projects/soc2008/rpaulo-tcpad/tcpad.h#10 (text+ko) ====
@@ -23,7 +23,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/soc2008/rpaulo-tcpad/tcpad.h#9 $
+ * $P4: //depot/projects/soc2008/rpaulo-tcpad/tcpad.h#10 $
*/
#ifndef _TCPAD_H_
@@ -45,13 +45,17 @@
/* TCP internal variables, from tcpcb */
int t_state; /* TCP FSM state */
tcp_seq snd_una;
- tcp_seq snd_max;
tcp_seq snd_nxt;
+ tcp_seq snd_wnd;
tcp_seq snd_up;
+ tcp_seq snd_wl1;
+ tcp_seq snd_wl2;
tcp_seq iss;
+
+ tcp_seq rcv_nxt;
+ tcp_seq rcv_wnd;
+ tcp_seq rcv_up;
tcp_seq irs;
- tcp_seq snd_wnd;
- tcp_seq rcv_wnd;
int isv6;
struct dumppkth *pktshead;
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 16:47:53 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id A63D41065679; Sun, 6 Jul 2008 16:47:53 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 6A3961065673
for ; Sun, 6 Jul 2008 16:47:53 +0000 (UTC)
(envelope-from julian@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 562BF8FC1F
for ; Sun, 6 Jul 2008 16:47:53 +0000 (UTC)
(envelope-from julian@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66GlrpP056735
for ; Sun, 6 Jul 2008 16:47:53 GMT
(envelope-from julian@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66GlrM5056733
for perforce@freebsd.org; Sun, 6 Jul 2008 16:47:53 GMT
(envelope-from julian@freebsd.org)
Date: Sun, 6 Jul 2008 16:47:53 GMT
Message-Id: <200807061647.m66GlrM5056733@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
julian@freebsd.org using -f
From: Julian Elischer
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144794 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 16:47:54 -0000
http://perforce.freebsd.org/chv.cgi?CH=144794
Change 144794 by julian@julian_trafmon1 on 2008/07/06 16:46:59
A bit more stuff added..
e.g symmap stuff.
saving before taking kids on picnic.
Affected files ...
.. //depot/projects/vimage/porting_to_vimage.txt#3 edit
Differences ...
==== //depot/projects/vimage/porting_to_vimage.txt#3 (text+ko) ====
@@ -112,7 +112,38 @@
could rely on the current thread being a good reference for the correct
virtual machine.
-As an example of virtualising a dummy module named the FOO module
+When a new module is defined for virtualisation. The following
+structure defining macro is used to define it to the framework.
+
+
+#define VNET_MOD_DECLARE(m_name_uc, m_name_lc, m_iattach, m_idetach, \
+ m_dependson, m_symmap) \
+ static const struct vnet_modinfo vnet_##m_name_lc##_modinfo = { \
+ .vmi_id = VNET_MOD_##m_name_uc, \
+ .vmi_dependson = VNET_MOD_##m_dependson, \
+ .vmi_name = #m_name_lc, \
+ .vmi_iattach = m_iattach, \
+ .vmi_idetach = m_idetach, \
+ .vmi_struct_size = \
+ sizeof(struct vnet_##m_name_lc), \
+ .vmi_symmap = m_symmap \
+The ID we allocated in the temporary first step in "Details" is
+the first entry here. Eventually this should be automatically done
+by module name. The DEPENDSON field tells us the order that modules
+should be initialised in a new virtual machine. This may later need
+to be changes to a list of text module names for dynamic calculation.
+The rest of the fields are self explanatory..
+With the exception of the symmap entry.
+The symmap allows us to intercept calls by libkvm to the
+linker when it is looking up symbols and to redirect it
+dynamically. this allows for example "netstat -r" to find the
+routing tables for THIS virtual machine. (cute eh?)
+(of course that won't work for core dumps). (XXX *needs thought *)
+
+
+
+
+As example of virtualising a dummy module named the FOO module
the following code might be added to a special vfoo.h or at least to
the exisitng foo.h file:
@@ -129,7 +160,7 @@
#define VNET_FOO(sym) VSYM(vnet_foo, sym)
-#ifdef VIMAGE
+#if (defined(VIMAGE) || defined(FUTURE))
struct vnet_foo {
int _foo_counter
struct foo_bar _foo_barx;
@@ -158,16 +189,59 @@
#include
[...]
+#ifndef VIMAGE
+ /* initially the globals would have been here,
+ * and for now we will leave them here when not using VIMAGE.
+ * In the future we will instead have a static version of the structure.
+ */
+# if defined(FUTURE)
+ struct vnet_foo vnet_foo_globals;
+# else /* !FUTURE */
+ int foo_counter = 0;
+ struct foo_bar foo_barx = {};
+# endif /* !FUTURE */
+#endif /* !VIMAGE */
+
+[...]
+
+#if (defined(VIMAGE) || defined(FUTURE))
static vnet_attach_fn vnet_foo_iattach;
-#ifdef VIMAGE
static vnet_detach_fn vnet_foo_idetach;
-#endif /* VIMAGE */
+#endif
+#ifdef VIMAGE
+/* If we have symbols we need to divert for libkvm
+ * then put them in here. We may net need to do anything if
+ * the symbols are not used by libkvm.
+ */
+static struct vnet_symmap vnet_net_symmap[] = {
+ VNET_SYMMAP(foo, foo_counter),
+ VNET_SYMMAP(foo, foo_barx),
+ VNET_SYMMAP_END
+};
+/*
+ * Declare our module and state that we want to be done after the
+ * loopback interface is initialised for the virtual machine.
+ */
VNET_MOD_DECLARE(FOO, foo, vnet_foo_iattach,
- vnet_foo_idetach, LOIF, NULL)
+ vnet_foo_idetach, LOIF, vnet_foo_symmap)
+#endif /* VIMAGE */
[...]
+/* a pre-exisiting 'foo' function that will be converted. */
+void
+foo_work(void)
+{
+ INIT_VNET_FOO(curvnet); /* Add this at the front */
+
+ V_foo_counter++; /* add "V_" to teh front */
+ [...]
+ V_foo_barx.mumble = V_foo_counter; /* and here too */
+ [...]
+}
+
+#if (defined(VIMAGE) || defined(FUTURE))
static int vnet_foo_iattach(const void *unused)
{
INIT_VNET_FOO(curvnet);
@@ -176,6 +250,7 @@
bzero (&V_foo_barx, sizeof (V_foo_barx));
return 0;
}
+#endif
#ifdef VIMAGE
static int vnet_foo_idetach(const void *unused)
@@ -204,9 +279,13 @@
#ifdef VIMAGE
/* This will do the work for each vortual machine. */
vnet_mod_register(&vnet_foo_modinfo);
-#else
+#else /* !VIMAGE */
+#ifdef FUTURE
/* otherwise do the initialisation directly */
vnet_foo_iattach(NULL);
+#else /* !FUTURE */
+/* otherwise the intialisation is done statically */
+#endif /* !FUTURE */
#endif /* !VIMAGE */
break;
case MOD_UNLOAD:
From owner-p4-projects@FreeBSD.ORG Sun Jul 6 21:16:24 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 469001065673; Sun, 6 Jul 2008 21:16:24 +0000 (UTC)
Delivered-To: perforce@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 0A4761065670
for ; Sun, 6 Jul 2008 21:16:24 +0000 (UTC)
(envelope-from snb@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id E96C58FC19
for ; Sun, 6 Jul 2008 21:16:23 +0000 (UTC)
(envelope-from snb@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m66LGNL4094895
for ; Sun, 6 Jul 2008 21:16:23 GMT
(envelope-from snb@FreeBSD.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m66LGNde094893
for perforce@freebsd.org; Sun, 6 Jul 2008 21:16:23 GMT
(envelope-from snb@FreeBSD.org)
Date: Sun, 6 Jul 2008 21:16:23 GMT
Message-Id: <200807062116.m66LGNde094893@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
snb@FreeBSD.org using -f
From: Nick Barkas
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144800 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sun, 06 Jul 2008 21:16:24 -0000
http://perforce.freebsd.org/chv.cgi?CH=144800
Change 144800 by snb@snb_toro on 2008/07/06 21:16:04
Upon receipt of vm_lowmem() signals, try deleting all dirhashes older
than DH_RECLAIMAGE, set here to five seconds for now. If all the
dirhashes are newer than this, just fall back to trying to delete the
one at the beginning of ufsdirhash_list.
DH_RECLAIMAGE probably will need tweaking, and so far dh_lastused is
only being updated during calls to ufsdirhash_build(),
ufsdirhash_lookup(), and ufsdirhash_add(). It may need to be updated
when other functions are called as well. Also, I have not yet tested
this code. This is a check point before I lose my network connection.
Affected files ...
.. //depot/projects/soc2008/snb-dirhash/sys-ufs-ufs/dirhash.h#2 edit
.. //depot/projects/soc2008/snb-dirhash/sys-ufs-ufs/ufs_dirhash.c#5 edit
Differences ...
==== //depot/projects/soc2008/snb-dirhash/sys-ufs-ufs/dirhash.h#2 (text+ko) ====
@@ -68,6 +68,12 @@
#define DH_SCOREINIT 8 /* initial dh_score when dirhash built */
#define DH_SCOREMAX 64 /* max dh_score value */
+/*
+ * If a vm_lowmem signal is received, we will try to free memory by
+ * deleting all hashes older than DH_RECLAIMAGE seconds.
+ */
+#define DH_RECLAIMAGE 5
+
/*
* The main hash table has 2 levels. It is an array of pointers to
* blocks of DH_NBLKOFF offsets.
@@ -101,6 +107,8 @@
int dh_onlist; /* true if on the ufsdirhash_list chain */
+ time_t dh_lastused; /* time the dirhash was last read or written*/
+
/* Protected by ufsdirhash_mtx. */
TAILQ_ENTRY(dirhash) dh_list; /* chain of all dirhashes */
};
==== //depot/projects/soc2008/snb-dirhash/sys-ufs-ufs/ufs_dirhash.c#5 (text+ko) ====
@@ -49,6 +49,7 @@
#include
#include
#include
+#include
#include
#include
@@ -92,7 +93,8 @@
static int ufsdirhash_findslot(struct dirhash *dh, char *name, int namelen,
doff_t offset);
static doff_t ufsdirhash_getprev(struct direct *dp, doff_t offset);
-static int ufsdirhash_destroy(void);
+static int ufsdirhash_destroy(struct dirhash *dh);
+static int ufsdirhash_destroy_first(void);
static int ufsdirhash_recycle(int wanted);
static void ufsdirhash_lowmem(void);
static void ufsdirhash_free_locked(struct inode *ip);
@@ -330,6 +332,7 @@
dh->dh_seqopt = 0;
dh->dh_seqoff = 0;
dh->dh_score = DH_SCOREINIT;
+ dh->dh_lastused = time_second;
/*
* Use non-blocking mallocs so that we will revert to a linear
@@ -500,6 +503,9 @@
/* Update the score. */
if (dh->dh_score < DH_SCOREMAX)
dh->dh_score++;
+
+ /* Update last used time. */
+ dh->dh_lastused = time_second;
DIRHASHLIST_UNLOCK();
vp = ip->i_vnode;
@@ -742,6 +748,9 @@
dh->dh_hused++;
DH_ENTRY(dh, slot) = offset;
+ /* Update last used time. */
+ dh->dh_lastused = time_second;
+
/* Update the per-block summary info. */
ufsdirhash_adjfree(dh, offset, -DIRSIZ(0, dirp));
ufsdirhash_release(dh);
@@ -1081,34 +1090,17 @@
}
/*
- * Delete the first dirhash on the list and reclaim its memory.
- * Assumes that ufsdirhash_list is locked, and leaves it locked.
- * If unable to obtain a lock on the first dirhash, moves down
- * the list until it can lock a dirhash and destroys it. Returns
- * the amount of memory freed, or -1 if unable to find any
- * dirhashes that can be destroyed.
+ * Delete the given dirhash and reclaim its memory. Assumes that
+ * ufsdirhash_list is locked, and leaves it locked. Also assumes
+ * that dh is locked. Returns the amount of memory freed.
*/
static int
-ufsdirhash_destroy()
+ufsdirhash_destroy(struct dirhash *dh)
{
- struct dirhash *dh;
doff_t **hash;
u_int8_t *blkfree;
int i, mem, narrays;
- dh = TAILQ_FIRST(&ufsdirhash_list);
- if (dh == NULL)
- return (-1);
-
- /*
- * If we can't lock it it's in use and we don't want to
- * destroy it anyway. Go on to the next in the list.
- */
- while (lockmgr(&dh->dh_lock, LK_EXCLUSIVE | LK_NOWAIT, NULL)) {
- dh = TAILQ_NEXT(dh, dh_list);
- if (dh == NULL)
- return (-1);
- }
KASSERT(dh->dh_hash != NULL, ("dirhash: NULL hash on list"));
/* Remove it from the list and detach its memory. */
@@ -1132,7 +1124,7 @@
/* Account for the returned memory. */
DIRHASHLIST_LOCK();
- ufs_dirhashmem -= mem;
+ ufs_dirhashmem -= mem;
return (mem);
}
@@ -1155,9 +1147,16 @@
return (-1);
}
- /* Try deleting a dirhash. Give up if we can't delete any. */
- if (ufsdirhash_destroy() < 0)
- return (-1);
+ /*
+ * If we can't lock it it's in use and we don't want to
+ * recycle it anyway.
+ */
+ if (lockmgr(&dh->dh_lock, LK_EXCLUSIVE | LK_NOWAIT, NULL)) {
+ dh = TAILQ_NEXT(dh, dh_list);
+ continue;
+ }
+
+ ufsdirhash_destroy(dh);
/* Repeat if necessary. */
dh = TAILQ_FIRST(&ufsdirhash_list);
@@ -1172,15 +1171,35 @@
static void
ufsdirhash_lowmem()
{
+ struct dirhash *dh;
+ int memfreed = 0;
+
ufs_dirhashlowmemcount++;
DIRHASHLIST_LOCK();
- if (ufs_dirhashmem > 0)
- /*
- * Try deleting only one dirhash for now, and don't bother
- * to check if it worked.
- */
- ufsdirhash_destroy();
+ /*
+ * Delete all dirhashes not used for more than DH_RECLAIMAGE seconds.
+ * If we can't get a lock on the dirhash, it will be skipped.
+ */
+ for (dh = TAILQ_FIRST(&ufsdirhash_list); dh != NULL; dh =
+ TAILQ_NEXT(dh, dh_list)) {
+ if (time_second - dh->dh_lastused > DH_RECLAIMAGE &&
+ lockmgr(&dh->dh_lock, LK_EXCLUSIVE | LK_NOWAIT, NULL))
+ memfreed += ufsdirhash_destroy(dh);
+ }
+
+ /*
+ * If no hashes were old enough, instead try deleting a single dirhash
+ * from the end of the list.
+ */
+ dh = TAILQ_FIRST(&ufsdirhash_list);
+ while (memfreed == 0 && dh != NULL) {
+ if (lockmgr(&dh->dh_lock, LK_EXCLUSIVE | LK_NOWAIT, NULL)) {
+ dh = TAILQ_NEXT(dh, dh_list);
+ continue;
+ }
+ memfreed += ufsdirhash_destroy(dh);
+ }
DIRHASHLIST_UNLOCK();
}
From owner-p4-projects@FreeBSD.ORG Mon Jul 7 02:20:31 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 93CD61065671; Mon, 7 Jul 2008 02:20:31 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 3FD37106564A
for ; Mon, 7 Jul 2008 02:20:31 +0000 (UTC)
(envelope-from alepulver@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 2AE0B8FC12
for ; Mon, 7 Jul 2008 02:20:31 +0000 (UTC)
(envelope-from alepulver@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m672KV7K036452
for ; Mon, 7 Jul 2008 02:20:31 GMT
(envelope-from alepulver@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m672KVjW036450
for perforce@freebsd.org; Mon, 7 Jul 2008 02:20:31 GMT
(envelope-from alepulver@freebsd.org)
Date: Mon, 7 Jul 2008 02:20:31 GMT
Message-Id: <200807070220.m672KVjW036450@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
alepulver@freebsd.org using -f
From: Alejandro Pulver
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144806 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 07 Jul 2008 02:20:31 -0000
http://perforce.freebsd.org/chv.cgi?CH=144806
Change 144806 by alepulver@alepulver_deimos on 2008/07/07 02:20:06
Initial working version plus test port.
Affected files ...
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/README#1 add
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.fpc.mk#1 branch
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gcc.mk#2 integrate
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gecko.mk#1 branch
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gnome.mk#2 integrate
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gnustep.mk#2 integrate
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.licenses.mk#1 add
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.port.mk#2 integrate
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.ruby.mk#2 integrate
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.sites.mk#2 integrate
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/test-license-1/Makefile#1 add
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/test-license-1/distinfo#1 add
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/test-license-1/pkg-descr#1 add
.. //depot/projects/soc2008/alepulver-portslicense/ports/Mk/test-license-1/pkg-plist#1 add
Differences ...
==== //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gcc.mk#2 (text+ko) ====
@@ -31,7 +31,7 @@
# If you are wondering what your port exactly does, use "make test-gcc"
# to see some debugging.
#
-# $FreeBSD: ports/Mk/bsd.gcc.mk,v 1.16 2008/05/05 23:26:30 gerald Exp $
+# $FreeBSD: ports/Mk/bsd.gcc.mk,v 1.17 2008/06/28 16:52:40 gerald Exp $
#
GCC_Include_MAINTAINER= gerald@FreeBSD.org
@@ -99,7 +99,9 @@
MAKE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}"
.endif
+
.if defined(USE_GCC)
+
# See if we can use a later version
_USE_GCC:= ${USE_GCC:S/+//}
.if ${USE_GCC} != ${_USE_GCC}
@@ -190,21 +192,25 @@
.endfor
.undef V
-
.if defined(_GCC_BUILD_DEPENDS)
BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
.endif
MAKE_ENV+= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}"
+.endif
+# defined(USE_GCC)
+
+
test-gcc:
@echo USE_GCC=${USE_GCC}
+ @echo USE_FORTRAN=${USE_FORTRAN}
+.if defined(USE_GCC)
.if defined(_GCC_ORLATER)
@echo Port can use later versions.
.else
@echo Port cannot use later versions.
.endif
- @echo USE_FORTRAN=${USE_FORTRAN}
.for v in ${GCCVERSIONS}
@echo -n "GCC version: ${_GCCVERSION_${v}_V} "
.if defined(_GCC_FOUND${v})
@@ -214,7 +220,7 @@
# @echo ${v} - ${_GCC_FOUND${v}} - ${_GCCVERSION_${v}_L} to ${_GCCVERSION_${v}_R} - ${_GCCVERSION_${v}_V}
.endfor
@echo Using GCC version ${_USE_GCC}
+.endif
@echo CC=${CC} - CXX=${CXX} - CFLAGS=${CFLAGS}
@echo F77=${F77} - FC=${FC} - FFLAGS=${FFLAGS}
@echo BUILD_DEPENDS=${BUILD_DEPENDS}
-.endif
==== //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gnome.mk#2 (text+ko) ====
@@ -1,9 +1,9 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $FreeBSD: ports/Mk/bsd.gnome.mk,v 1.147 2008/05/29 16:34:11 mezz Exp $
+# $FreeBSD: ports/Mk/bsd.gnome.mk,v 1.148 2008/06/30 20:16:17 mezz Exp $
# $NetBSD: $
-# $MCom: ports/Mk/bsd.gnome.mk,v 1.447 2008/03/12 03:42:31 marcus Exp $
+# $MCom: ports-stable/Mk/bsd.gnome.mk,v 1.8 2008/06/16 21:35:56 mezz Exp $
#
# Please view me with 4 column tabs!
@@ -645,7 +645,7 @@
# Also, check to see if each component has a desktop requirement. If it does,
# and if the user's chosen desktop is not of the same version, mark the
# port as IGNORE.
-. for component in ${USE_GNOME}
+. for component in ${USE_GNOME:C/^([^:]+).*/\1/}
. if defined(GNOME_DESKTOP_VERSION) && \
defined(${component}_GNOME_DESKTOP_VERSION)
. if ${GNOME_DESKTOP_VERSION}!=${${component}_GNOME_DESKTOP_VERSION}
@@ -677,16 +677,21 @@
${PATCH_WRKSRC}/$$file; \
done;
.else
-. if ${USE_GNOME:Mltverhack}!="" || ${USE_GNOME:Mltasneededhack}!=""
+. if ${USE_GNOME:Mltverhack*}!="" || ${USE_GNOME:Mltasneededhack}!=""
IGNORE= cannot install: ${PORTNAME} uses the ltverhack and/or ltasneededhack GNOME components but does not use libtool
. endif
.endif
+.if ${USE_GNOME:Mltverhack\:*:C/^[^:]+:([^:]+).*/\1/}==""
+ltverhack_LIB_VERSION= major=.`expr $$current - $$age`
+.else
+ltverhack_LIB_VERSION= major=".${USE_GNOME:Mltverhack\:*:C/^[^:]+:([^:]+).*/\1/}"
+.endif
ltverhack_PATCH_DEPENDS=${LIBTOOL_DEPENDS}
ltverhack_PRE_PATCH= for file in gnome-ltmain.sh gnome-libtool; do \
if [ -f ${WRKDIR}/$$file ]; then \
${REINPLACE_CMD} -e \
- '/freebsd-elf)/,/;;/ s|major="\.$$current"|major=.`expr $$current - $$age`|; \
+ '/freebsd-elf)/,/;;/ s|major="\.$$current"|${ltverhack_LIB_VERSION}|; \
/freebsd-elf)/,/;;/ s|versuffix="\.$$current"|versuffix="$$major"|' \
${WRKDIR}/$$file; \
fi; \
@@ -703,9 +708,9 @@
# Then traverse through all components, check which of them
# exist in ${_USE_GNOME} and set variables accordingly
.ifdef _USE_GNOME
-. if ${USE_GNOME:Mltverhack}!= "" || ${USE_GNOME:Mltasneededhack}!= ""
+. if ${USE_GNOME:Mltverhack*}!= "" || ${USE_GNOME:Mltasneededhack}!= ""
GNOME_PRE_PATCH+= ${lthacks_PRE_PATCH}
-.endif
+. endif
. for component in ${_USE_GNOME_ALL}
. if ${_USE_GNOME:M${component}}!=""
PATCH_DEPENDS+= ${${component}_PATCH_DEPENDS}
==== //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.gnustep.mk#2 (text+ko) ====
@@ -1,5 +1,5 @@
#
-# $FreeBSD: ports/Mk/bsd.gnustep.mk,v 1.49 2008/05/04 21:13:21 dinoex Exp $
+# $FreeBSD: ports/Mk/bsd.gnustep.mk,v 1.50 2008/06/20 15:13:50 dinoex Exp $
#
# This file contains some variable definitions that are supposed to
# make your life easier when dealing with ports related to the GNUstep.
@@ -266,7 +266,7 @@
#
.if defined(USE_GNUSTEP_BACK)
.if defined(WITH_GNUSTEP_DEVEL)
-BACKSUFFIX?= -013
+BACKSUFFIX?= -014
.else
BACKSUFFIX?= -012
.endif
==== //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.port.mk#2 (text+ko) ====
@@ -1,7 +1,7 @@
#-*- mode: makefile; tab-width: 4; -*-
# ex:ts=4
#
-# $FreeBSD: ports/Mk/bsd.port.mk,v 1.593 2008/05/27 22:12:02 miwi Exp $
+# $FreeBSD: ports/Mk/bsd.port.mk,v 1.595 2008/06/30 20:16:17 mezz Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -423,6 +423,9 @@
# USE_EFL - If set, this port use EFL libraries.
# Implies inclusion of bsd.efl.mk. (Also see
# that file for more information on USE_EFL_*).
+# USE_FPC - If set, this port relies on the Free Pascal language.
+# Implies inclusion of bsd.fpc.mk. (Also see
+# that file for more information on WANT_FPC_*).
# USE_JAVA - If set, this port relies on the Java language.
# Implies inclusion of bsd.java.mk. (Also see
# that file for more information on USE_JAVA_*).
@@ -441,6 +444,9 @@
# (Also see that file for more information on
# USE_GNUSTEP_*).
##
+# USE_GECKO - If set, this port uses the Gecko/Mozilla product.
+# See bsd.gecko.mk for more details.
+##
# USE_GNOME - A list of the Gnome dependencies the port has (e.g.,
# glib12, gtk12). Implies that the port needs Gnome.
# Implies inclusion of bsd.gnome.mk. See bsd.gnome.mk
@@ -1462,6 +1468,10 @@
.include "${PORTSDIR}/Mk/bsd.efl.mk"
.endif
+.if defined(USE_FPC) || defined(WANT_FPC_BASE) || defined(WANT_FPC_ALL)
+.include "${PORTSDIR}/Mk/bsd.fpc.mk"
+.endif
+
.if defined(USE_JAVA)
.include "${PORTSDIR}/Mk/bsd.java.mk"
.endif
@@ -1490,6 +1500,10 @@
.include "${PORTSDIR}/Mk/bsd.qt.mk"
.endif
+.if defined(WANT_GECKO) || defined(USE_GECKO)
+.include "${PORTSDIR}/Mk/bsd.gecko.mk"
+.endif
+
.if defined(WANT_GNOME) || defined(USE_GNOME) || defined(USE_GTK)
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
.endif
@@ -1999,6 +2013,10 @@
.include "${PORTSDIR}/Mk/bsd.autotools.mk"
.endif
+.if defined(WANT_GECKO) || defined(USE_GECKO)
+.include "${PORTSDIR}/Mk/bsd.gecko.mk"
+.endif
+
.if defined(WANT_GNOME) || defined(USE_GNOME) || defined(USE_GTK)
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
.endif
@@ -2335,6 +2353,9 @@
ALL_TARGET?= all
INSTALL_TARGET?= install
+# Integrate with the license auditing framework
+.include "${PORTSDIR}/Mk/bsd.licenses.mk"
+
# Popular master sites
.include "bsd.sites.mk"
@@ -4064,15 +4085,15 @@
.endif
_SANITY_SEQ= ${_CHROOT_SEQ} pre-everything check-makefile check-categories \
check-makevars check-desktop-entries check-depends \
- check-deprecated check-vulnerable buildanyway-message \
- options-message
+ check-deprecated check-vulnerable check-license \
+ buildanyway-message options-message
_FETCH_DEP= check-sanity
_FETCH_SEQ= fetch-depends pre-fetch pre-fetch-script \
do-fetch post-fetch post-fetch-script
_EXTRACT_DEP= fetch
_EXTRACT_SEQ= extract-message checksum extract-depends pre-extract \
pre-extract-script do-extract \
- post-extract post-extract-script
+ post-extract post-extract-script ask-license
_PATCH_DEP= extract
_PATCH_SEQ= patch-message patch-depends patch-dos2unix pre-patch \
pre-patch-script do-patch post-patch post-patch-script
@@ -4089,7 +4110,7 @@
pre-install-script generate-plist check-already-installed
_INSTALL_SUSEQ= check-umask install-mtree pre-su-install \
pre-su-install-script do-install install-desktop-entries \
- post-install post-install-script add-plist-info \
+ install-license post-install post-install-script add-plist-info \
add-plist-docs add-plist-examples add-plist-data \
add-plist-post install-rc-script compress-man \
install-ldconfig-file fake-pkg security-check
@@ -5727,6 +5748,9 @@
${CAT} /tmp/${PKGNAME}-required-by >> ${PKG_DBDIR}/${PKGNAME}/+REQUIRED_BY; \
${RM} -f /tmp/${PKGNAME}-required-by; \
fi
+.if defined(REGISTER_LICENSE)
+# XXX concat prepared file to +CONTENTS (or directly use .if exists())
+.endif
.else
@${DO_NADA}
.endif
==== //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.ruby.mk#2 (text+ko) ====
@@ -3,7 +3,7 @@
#
# Created by: Akinori MUSHA
#
-# $FreeBSD: ports/Mk/bsd.ruby.mk,v 1.168 2008/04/06 10:29:53 stas Exp $
+# $FreeBSD: ports/Mk/bsd.ruby.mk,v 1.170 2008/06/25 23:00:27 stas Exp $
#
.if !defined(Ruby_Include)
@@ -167,7 +167,7 @@
# Ruby 1.8
#
RUBY_RELVERSION= 1.8.6
-RUBY_PORTREVISION= 2
+RUBY_PORTREVISION= 4
RUBY_PORTEPOCH= 1
RUBY_PATCHLEVEL= 111
==== //depot/projects/soc2008/alepulver-portslicense/ports/Mk/bsd.sites.mk#2 (text+ko) ====
@@ -20,7 +20,7 @@
#
# Note: all entries should terminate with a slash.
#
-# $FreeBSD: ports/Mk/bsd.sites.mk,v 1.451 2008/06/02 07:42:56 itetcu Exp $
+# $FreeBSD: ports/Mk/bsd.sites.mk,v 1.453 2008/06/23 12:18:35 tdb Exp $
#
# Where to put distfiles that don't have any other master site
@@ -1184,9 +1184,9 @@
# List: http://dl.sv.gnu.org/releases/00_MIRRORS.html
.if !defined(IGNORE_MASTER_SITE_SAVANNAH)
MASTER_SITE_SAVANNAH+= \
- http://download.savannah.nongnu.org/releases/%SUBDIR%/ \
- http://www.de-mirrors.de/nongnu/%SUBDIR%/ \
+ http://download.savannah.gnu.org/releases/%SUBDIR%/ \
http://ftp.cc.uoc.gr/mirrors/nongnu.org/%SUBDIR%/ \
+ http://www.very-clever.com/download/nongnu/%SUBDIR%/ \
http://ftp.twaren.net/Unix/NonGNU/%SUBDIR%/ \
ftp://ftp.cc.uoc.gr/mirrors/nongnu.org/%SUBDIR%/ \
ftp://ftp.twaren.net/Unix/NonGNU/%SUBDIR%/
@@ -1306,8 +1306,6 @@
http://ftp.isu.edu.tw/pub/Linux/SuSE/%SUBDIR%/ \
ftp://ftp.mirrorservice.org/sites/ftp.suse.com/pub/suse/%SUBDIR%/ \
http://www.mirrorservice.org/sites/ftp.suse.com/pub/suse/%SUBDIR%/ \
- ftp://ftp.mirror.ac.uk/sites/ftp.suse.com/%SUBDIR%/ \
- http://download.mirror.ac.uk/sites/ftp.suse.com/%SUBDIR%/ \
ftp://ftp.kde.org/pub/suse/ftp.suse.com/suse/%SUBDIR%/ \
ftp://ftp.suse.com/pub/suse/%SUBDIR%/ \
ftp://ftp.softnet.tuc.gr/pub/linux/suse/suse/%SUBDIR%/ \
From owner-p4-projects@FreeBSD.ORG Mon Jul 7 08:43:18 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id C09421065684; Mon, 7 Jul 2008 08:43:18 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 8315E106567B;
Mon, 7 Jul 2008 08:43:18 +0000 (UTC)
(envelope-from nyan@jp.FreeBSD.org)
Received: from watery.cc.kogakuin.ac.jp (watery.cc.kogakuin.ac.jp
[133.80.152.80])
by mx1.freebsd.org (Postfix) with ESMTP id 37D9E8FC1B;
Mon, 7 Jul 2008 08:43:18 +0000 (UTC)
(envelope-from nyan@jp.FreeBSD.org)
Received: from localhost (localhost [IPv6:::1])
by watery.cc.kogakuin.ac.jp (unknown) with ESMTP id m678hGNq023524;
Mon, 7 Jul 2008 17:43:16 +0900 (JST)
(envelope-from nyan@jp.FreeBSD.org)
Date: Mon, 07 Jul 2008 17:42:08 +0900 (JST)
Message-Id: <20080707.174208.94913728.nyan@jp.FreeBSD.org>
To: xcllnt@mac.com
From: Takahashi Yoshihiro
In-Reply-To:
References: <200807051943.m65JhHZ6066371@repoman.freebsd.org>
<20080706.110943.226722229.nyan@jp.FreeBSD.org>
X-Mailer: Mew version 6.1 on Emacs 22.2 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: marcel@freebsd.org, perforce@freebsd.org
Subject: Re: PERFORCE change 144741 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 07 Jul 2008 08:43:19 -0000
In article
Marcel Moolenaar writes:
> > These are wrong. RSA98-III is based on ns8250 and has extended FIFO
> > buffer. So I think that the uart_rsa_class should be added.
>
> Oh. In your patch you define it as i8251. I only refactored
> the code. Also, the ns8250 class already supports extended
> FIFOs, so we don't need a separate class for that. I'll
> change it...
No. My code set sc_class to uart_rsa_class. It's your mistake.
And then I found another problem in uart_bus_isa.c. In your code
non-PnP devices for pc98 cannot probe. My original code was no
problem...
And, RSA has extra registers to control its FIFO buffer. So we need
additional code to support it.
See: sys/dev/ic/rsa.h and sys/pc98/cbus/sio.c
---
TAKAHASHI Yoshihiro
From owner-p4-projects@FreeBSD.ORG Mon Jul 7 08:44:59 2008
Return-Path:
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
id 952EF1065678; Mon, 7 Jul 2008 08:44:59 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
by hub.freebsd.org (Postfix) with ESMTP id 3FD661065676
for ; Mon, 7 Jul 2008 08:44:59 +0000 (UTC)
(envelope-from jb@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
[IPv6:2001:4f8:fff6::29])
by mx1.freebsd.org (Postfix) with ESMTP id 2B1C48FC27
for ; Mon, 7 Jul 2008 08:44:59 +0000 (UTC)
(envelope-from jb@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m678ixAr085678
for ; Mon, 7 Jul 2008 08:44:59 GMT
(envelope-from jb@freebsd.org)
Received: (from perforce@localhost)
by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m678iwZT085676
for perforce@freebsd.org; Mon, 7 Jul 2008 08:44:58 GMT
(envelope-from jb@freebsd.org)
Date: Mon, 7 Jul 2008 08:44:58 GMT
Message-Id: <200807070844.m678iwZT085676@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
jb@freebsd.org using -f
From: John Birrell
To: Perforce Change Reviews
Cc:
Subject: PERFORCE change 144809 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: