<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.os.openbsd.tech">
    <title>gmane.os.openbsd.tech</title>
    <link>http://blog.gmane.org/gmane.os.openbsd.tech</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28866"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28864"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28861"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28859"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28858"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28857"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28856"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28855"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28848"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28841"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28840"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28839"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28837"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28832"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28831"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28829"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28828"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28826"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28824"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.openbsd.tech/28823"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28866">
    <title>MADEYBRAS: pisos de madera estructurada. publicidad   ma san</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28866</link>
    <description>&lt;pre&gt;
[demime 1.01d removed an attachment of type image/jpeg which had a name of abastecer.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of tfortisimo.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of palingenesica.jpg]


&lt;/pre&gt;</description>
    <dc:creator>ARTCO</dc:creator>
    <dc:date>2012-05-26T17:31:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28864">
    <title>No pierdas esta oportunidad de hacerte socio. publicidad   so gid</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28864</link>
    <description>&lt;pre&gt;Deseas hacerte socio de nuestro club y disfrutar de la ciudad, campo y playa?
La Alameda &amp;amp; Hacienda Club te espera...




La Alameda &amp;amp; Hacienda Club
T. 444-9018 / 241-3208

[demime 1.01d removed an attachment of type image/jpeg which had a name of nsubrayada.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of fcruentacion.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of ninexperto.jpg]


&lt;/pre&gt;</description>
    <dc:creator>La Alameda &amp; Hacienda Club</dc:creator>
    <dc:date>2012-05-26T08:21:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28861">
    <title>Viva una experiencia exclusiva con Diners Club. publicidad   bi bem</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28861</link>
    <description>&lt;pre&gt;
[demime 1.01d removed an attachment of type image/jpeg which had a name of fprimipara.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of dmultiflora.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of facineroso.jpg]


&lt;/pre&gt;</description>
    <dc:creator>DINERS CLUB</dc:creator>
    <dc:date>2012-05-26T03:49:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28859">
    <title>ftp synopsis</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28859</link>
    <description>&lt;pre&gt;the size of ftp's synopsis is making it very ugly. any objections to
shortening it? i.e. this diff is cosmetic.

jmc

Index: ftp.1
===================================================================
RCS file: /cvs/src/usr.bin/ftp/ftp.1,v
retrieving revision 1.82
diff -u -r1.82 ftp.1
--- ftp.130 Apr 2012 13:41:26 -00001.82
+++ ftp.125 May 2012 20:44:52 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -39,17 +39,17 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 .Sh SYNOPSIS
 .Nm ftp
 .Op Fl 46AadEegimnptVv
-.Op Fl k Ar seconds
+.Op Fl k Ar sec
 .Op Fl P Ar port
-.Op Fl r Ar seconds
-.Op Fl s Ar srcaddr
+.Op Fl r Ar sec
+.Op Fl s Ar src
 .Op Ar host Op Ar port
 .Nm ftp
 .Op Fl C
-.Op Fl o Ar output
-.Op Fl s Ar srcaddr
+.Op Fl o Ar out
+.Op Fl s Ar src
 .Sm off
-.No ftp:// Oo Ar user : password No &amp;lt; at &amp;gt;
+.No ftp:// Oo Ar user : pass No &amp;lt; at &amp;gt;
 .Oc Ar host Oo : Ar port
 .Oc No / Ar file Oo /
 .Oc
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -58,8 +58,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 .Nm ftp
 .Op Fl C
 .Op Fl c Ar cookie
-.Op Fl o Ar output
-.Op Fl s Ar srcaddr
+.Op Fl o Ar out
+.Op Fl s Ar src
 .Sm off
 .No http:// Ar host Oo : Ar port
 .Oc No / Ar file
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -68,8 +68,&lt;/pre&gt;</description>
    <dc:creator>Jason McIntyre</dc:creator>
    <dc:date>2012-05-25T20:47:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28858">
    <title>mg history and window relocation</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28858</link>
    <description>&lt;pre&gt;Move the windows section in the tutorial to a more sensible place
(next to buffers) and move the mg history into the README file which
seems a more sensible place as well.

ok?

-lum

Index: README
===================================================================
RCS file: /cvs/src/usr.bin/mg/README,v
retrieving revision 1.9
diff -u -p -r1.9 README
--- README11 Apr 2012 17:51:10 -00001.9
+++ README25 May 2012 10:30:31 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -40,8 +40,16 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; People who have worked on previous versi
 
 rtech!daveb&amp;lt; at &amp;gt;sun.comDave Brower
 
-Currently maintained in the OpenBSD src tree, with contributions from
-many others.
+Early release history:
+
+* Nov 16, 1986: First release to mod.sources
+* Mar 3, 1987: First Release (mg1a) via comp.sources.unix
+* May 26, 1988: Second release: (mg2a) via comp.sources.misc
+* Jan 26, 1992: Linux port released by Charles Hedrick. This version
+  later makes its way onto tsx-11, Infomagic, and various other Linux
+  repositories.
+* Feb 25, 2000: First import into the OpenBSD tree, wh&lt;/pre&gt;</description>
    <dc:creator>Mark Lumsden</dc:creator>
    <dc:date>2012-05-25T10:39:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28857">
    <title>mg end of buffer page down diff</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28857</link>
    <description>&lt;pre&gt;When you page down a document and get to the last page, mg doesn't
stop, it keeps going until the last line is at the top of the window.
This diff makes mg stop paging down when the end of the text is
visible. 

Comments/ok?

-lum
ps some whitespace for readability added. 

Index: basic.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/basic.c,v
retrieving revision 1.30
diff -u -p -r1.30 basic.c
--- basic.c4 Jun 2009 02:23:37 -00001.30
+++ basic.c25 May 2012 07:40:33 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -266,16 +266,20 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; forwpage(int f, int n)
 n = 1;/* if tiny window. */
 } else if (n &amp;lt; 0)
 return (backpage(f | FFRAND, -n));
+
 lp = curwp-&amp;gt;w_linep;
-while (n-- &amp;amp;&amp;amp; lforw(lp) != curbp-&amp;gt;b_headp) {
-lp = lforw(lp);
-}
+while (n--)
+if ((lp = lforw(lp)) == curbp-&amp;gt;b_headp)
+return(TRUE);
+
 curwp-&amp;gt;w_linep = lp;
 curwp-&amp;gt;w_rflag |= WFFULL;
+
 /* if in current window, don't move dot */
-for (n = curwp-&amp;gt;w_ntrows; n-- &amp;amp;&amp;amp; lp != curbp-&amp;gt;b_headp; lp = lforw(lp))
+for (n =&lt;/pre&gt;</description>
    <dc:creator>Mark Lumsden</dc:creator>
    <dc:date>2012-05-25T08:16:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28856">
    <title>Aromatizador automatico 57% OFF | Pochoclera Automatica 53% OFF | Juego de Cocina 51% OFF  | Cuchillo Deli Pro  60% OFF | Test de Alcoholemia 67% OFF | Cena Gourmet 52% OFF</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28856</link>
    <description>&lt;pre&gt;Para visualizar correctamente este newsletter ingresa a
http://news1.bonuscupon.com.ar/r.html?uid=1.j.295h.9y.2ij1azebm9


&lt;/pre&gt;</description>
    <dc:creator>Bonus Cupon</dc:creator>
    <dc:date>2012-05-24T23:57:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28855">
    <title>Bocaditos y Mini Sándwiches por Delivery. publicidad   mo son</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28855</link>
    <description>&lt;pre&gt;
[demime 1.01d removed an attachment of type image/jpeg which had a name of fcraniano.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of anhelante.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of ndesventajosa.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of tverdeceledon.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of ecuestre.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of cfrancolina.jpg]

[demime 1.01d removed an attachment of type image/jpeg which had a name of flaqueado.jpg]


&lt;/pre&gt;</description>
    <dc:creator>Montecristo Café·Restaurante  </dc:creator>
    <dc:date>2012-05-24T22:20:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28848">
    <title>Memory leak in snmpd(8)</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28848</link>
    <description>&lt;pre&gt;Hi,

with the OPENBSD-CARP-MIB a memory leak was introduced to snmpd(8):

RCS file: mib.c,v
retrieving revision 1.52
diff -u -p -r1.52 mib.c
--- mib.c       2012/03/20 03:01:26     1.52
+++ mib.c       2012/05/24 12:53:35
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -2713,7 +2713,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; mib_carpiftable(struct oid *oid, struct ber_oid *o,
st
         /* Get and verify the current row index */
         idx = o-&amp;gt;bo_id[OIDIDX_carpIfEntry];

-       if ((cif = mib_carpifget(cif, idx)) == NULL) {
+       if (mib_carpifget(cif, idx) == NULL) {
                 free(cif);
                 return (1);
         }


Gerhard

--
GeNUA, Gesellschaft fC&amp;lt;r Netzwerk- und Unix-Administration mbH
Domagkstrasse 7, 85551 Kirchheim bei Muenchen
tel +49 89 991950-0, fax -999, www.genua.de
Geschaeftsfuehrer: Dr. Magnus Harlander, Dr. Michaela Harlander,
Bernhard Schneck. Amtsgericht Muenchen HRB 98238


&lt;/pre&gt;</description>
    <dc:creator>Gerhard Roth</dc:creator>
    <dc:date>2012-05-24T11:54:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28841">
    <title>Campamentos Científicos para docentes y alumnos</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28841</link>
    <description>&lt;pre&gt;OBSERVATORIO ASTRONOMICO
AMPIMPA
TUCUMAN - ARGENTINA
Declarado de Interis Educativo por el Ministerio de Educacisn de la
Nacisn
  _____

tech&amp;lt; at &amp;gt;openbsd.org
At.


Campamentos Cientmficos 2012/2013
- Aqos del Maximo Solar -
  Docetes
Campamentos Cientmficos exclusivos para Docentes
"La ciencia en el Aula. Nuevos enfoques didacticos"

22 al  25 de Junio de 2012 (haga click para ver mayor informacisn)
&amp;lt;http://www.astrotuc.com.ar/Paginas/noticia.asp?id=145&amp;amp;p=1&amp;gt;

 17 al 20 de Agosto de 2012 (haga Click para ver mayor informacisn)
&amp;lt;http://www.skytuc.com.ar/Paginas/noticia.asp?id=157&amp;amp;p=1&amp;gt;

(Ver aqum imagenes de campamentos docentes anteriores)
&amp;lt;http://www.astrotuc.com.ar/Paginas/img_campdoc.htm&amp;gt;

  Presentacisn

Tambiin: talleres
&amp;lt;http://www.astrotuc.com.ar/temp/BANNER%20CAMPAMENTOS%20OBSERVATORIO%20t
allereslr.jpg&amp;gt;

Campamentos Cientmficos Educativos
para grupos de alumnos

Organice campamentos cientmficos con los alumnos de su Colegio/Escuela.
Participe con ellos de esta experiencia Cohetes
&amp;lt;http://www.astrotuc.com.&lt;/pre&gt;</description>
    <dc:creator>institucional&lt; at &gt;astrotuc.com.ar</dc:creator>
    <dc:date>2012-05-24T09:21:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28840">
    <title>mg - searching a buffer stops</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28840</link>
    <description>&lt;pre&gt;Currently, in mg, if you search (C-s) for a string and that string is located
at the end of a buffer AND there is no new-line after it, your search will
halt. For example, if you copy the text below into a new buffer and remove any
new lines after the last 5, then search for 5. When you reach the last line,
any further C-s's you do will seem to be ignored.

12345
54321
12345

Similarly, if you search backwards (C-r) and look for any 1's your search will
stutter at the first character on line 1.

This diff fixes these problems by not ignoring the return values of forwchar
and backchar, both of which conveniently indicate if we have reached the
end/start of the buffer or not.

Comments/ok?

-lum

Index: search.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/search.c,v
retrieving revision 1.39
diff -u -p -r1.39 search.c
--- search.c12 Apr 2012 04:47:59 -00001.39
+++ search.c24 May 2012 07:42:51 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -245,17 +245,21 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; isearch(int dir)
 ewprintf("Ove&lt;/pre&gt;</description>
    <dc:creator>Mark Lumsden</dc:creator>
    <dc:date>2012-05-24T07:49:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28839">
    <title>Çok Uygun fiyata ÇOK Özel İngilizce</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28839</link>
    <description>&lt;pre&gt;Merhaba

]ngilizceyi gok uygun fiyatlarda VZEL DERS alarak vprenmek igin benimle
ileti~ime geginiz.(Kampanyal} Ders Saati Fiyat}m}z 35 TL dir)

Sayg}lar}mla

Ceren GAKIR
KANADA K\LT\R MERKEZ]
0212 252 90 35 pbx


&lt;/pre&gt;</description>
    <dc:creator>Ceren ÇAKIR</dc:creator>
    <dc:date>2012-05-24T04:46:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28837">
    <title>Intel Atom E600 watchdog(4) support</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28837</link>
    <description>&lt;pre&gt;Attached are some patches that add support for the watchdog device on
boards based on the Intel Atom E600 series such as the Soekris net6501.

Based on existing drivers such as amdpcib(4), ichpcib(4) and ichwdt(4)
I've created an e600pcib(4) to override the standard pcib(4) which can
then access the watchdog device.

Here's the original dmesg:

---8&amp;lt;---
pcib0 at pci0 dev 31 function 0 "Intel E600 LPC" rev 0x00
isa0 at pcib0
---8&amp;lt;---

Here's with my changes:

---8&amp;lt;---
e600pcib0 at pci0 dev 31 function 0 "Intel E600 LPC" rev 0x00: watchdog
isa0 at e600pcib0
---8&amp;lt;---

I tested the watchdog by setting kern.watchdog.period to 60 and then
breaking into ddb and starting a stopwatch and timing until my net6501
resets, it take near enough to 60 seconds that I'm happy it's working.

On a watchdog-triggered reboot, I've done similar to ichwdt(4):

---8&amp;lt;---
e600pcib0 at pci0 dev 31 function 0 "Intel E600 LPC" rev 0x00: watchdog, reboot on timeout
isa0 at e600pcib0
---8&amp;lt;---

I've included the driver itself, man pages, ch&lt;/pre&gt;</description>
    <dc:creator>Matt Dainty</dc:creator>
    <dc:date>2012-05-23T20:52:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28832">
    <title>fstatfs64 for compat/linux</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28832</link>
    <description>&lt;pre&gt;Okay?


Index: linux_misc.c
===================================================================
RCS file: /cvs/src/sys/compat/linux/linux_misc.c,v
retrieving revision 1.77
diff -u -p -r1.77 linux_misc.c
--- linux_misc.c23 May 2012 11:08:57 -00001.77
+++ linux_misc.c23 May 2012 13:32:39 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -554,6 +554,35 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; linux_sys_fstatfs(p, v, retval)
 return copyout((caddr_t) &amp;amp;ltmp, (caddr_t) SCARG(uap, sp), sizeof ltmp);
 }
 
+int
+linux_sys_fstatfs64(struct proc *p, void *v, register_t *retval)
+{
+struct linux_sys_fstatfs64_args /* {
+syscallarg(int) fd;
+syscallarg(struct linux_statfs64 *) sp;
+} */ *uap = v;
+struct statfs btmp, *bsp;
+struct linux_statfs64 ltmp;
+struct sys_fstatfs_args bsa;
+caddr_t sg;
+int error;
+
+sg = stackgap_init(p-&amp;gt;p_emul);
+bsp = (struct statfs *) stackgap_alloc(&amp;amp;sg, sizeof (struct statfs));
+
+SCARG(&amp;amp;bsa, fd) = SCARG(uap, fd);
+SCARG(&amp;amp;bsa, buf) = bsp;
+
+if ((error = sys_fstatfs(p, &amp;amp;bsa, retval)))
+return error;
+
+if ((error = copyin((caddr_t) bsp, (caddr_t)&lt;/pre&gt;</description>
    <dc:creator>Paul Irofti</dc:creator>
    <dc:date>2012-05-23T13:33:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28831">
    <title>Ms clientes en su ciudad o localidad</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28831</link>
    <description>&lt;pre&gt;Mas clientes en su ciudad o localidad


&lt;/pre&gt;</description>
    <dc:creator>Mercosur.com</dc:creator>
    <dc:date>2012-05-23T12:10:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28829">
    <title>mg - start up file diffs (2 of 2)</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28829</link>
    <description>&lt;pre&gt;Further to my previous email, I noticed if I tried to use any of the *file*
commands in the startup ~/.mg file, nothing happened. By looking at main.c,
I realised that the order of starup function calls was the problem. This diff
moves the creation of the startup buffers before parsing the startup file.

Now an ~/.mg file such as:

find-file main.c
insert-file lines.c

Will work as expected. Commands that are usually located in the startup file
(global-set-key, set-default-mode etc...) are unaffected since they are not
reliant on the buffers being created or not. However, wider testing would be
appreciated.

Comments/ok?

-lum

Index: main.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/main.c,v
retrieving revision 1.64
diff -u -p -r1.64 main.c
--- main.c12 Apr 2012 04:47:59 -00001.64
+++ main.c20 May 2012 17:11:24 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -98,19 +98,18 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; main(int argc, char **argv)
  */
 update();
 
-/* user startup file */
-if ((cp = startupfile(NULL)) != NULL)
-&lt;/pre&gt;</description>
    <dc:creator>Mark Lumsden</dc:creator>
    <dc:date>2012-05-23T07:27:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28828">
    <title>mg - start up file diffs (1 of 2)</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28828</link>
    <description>&lt;pre&gt;If you want to open up a file using the mg startup file (~/.mg) using the
find-file command, e.g:

find-file main.c

mg will give an odd message of "File read error", but the file opens anyway.
However, if by accident you try to open a non-existant file mg will segv. 

After investigating I found mg uses a static FILE pointer that is reused
in fileio.c, and in this case the dual opening of the ~/.mg file and
main.c was screwing things up.

This diff removes the static variable and passes the file pointer amongst
function calls. Now an ~/.mg file such as:

find-file main.c
find-file file.c
find-file README

works as expected. Opening three buffers with the files contents in each one.
Also, if a non-existant file is attemped to be opened mg doesn't crash.

comments/ok?

-lum

Index: def.h
===================================================================
RCS file: /cvs/src/usr.bin/mg/def.h,v
retrieving revision 1.120
diff -u -p -r1.120 def.h
--- def.h12 Apr 2012 04:47:59 -00001.120
+++ def.h23 May 2012 07:&lt;/pre&gt;</description>
    <dc:creator>Mark Lumsden</dc:creator>
    <dc:date>2012-05-23T07:25:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28826">
    <title>Cena Gourmet en BRANDS 52% OFF | Paseo en Velero 64% OFF | Peninsula Valdez 75% OFF  | Tandil 67% OFF | Kingston de 8 GB 50% OFF | Cafetera de Filtro 51% OFF</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28826</link>
    <description>&lt;pre&gt;Para visualizar correctamente este newsletter ingresa a
http://news1.bonuscupon.com.ar/r.html?uid=1.i.295h.9f.rfwk1ki6bg


&lt;/pre&gt;</description>
    <dc:creator>Bonus Cupon</dc:creator>
    <dc:date>2012-05-23T03:49:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28824">
    <title>wpi: add sensor for rfkill</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28824</link>
    <description>&lt;pre&gt;Hi people,

the attached patch adds an indicator sensor to wpi devices that describes the
current RFKill status.  If the RF killswitch is engaged, the sensor reads "Off",
if it is not engaged and the device can operate, it reads "On".

If this is okay, I plan on adding similar sensors to other wireless devices,
but in that case I'd need help testing those because I only have access to wpi
devices.

&lt;/pre&gt;</description>
    <dc:creator>Gregor Best</dc:creator>
    <dc:date>2012-05-22T18:20:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28823">
    <title>Un Club d'achats réservé aux Professionnels</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28823</link>
    <description>&lt;pre&gt;Programme R&amp;amp;eacute;gional Bonjour,

Contrairement &amp;amp;agrave; nombre de vos confr&amp;amp;egrave;res et
coll&amp;amp;egrave;gues, vous ne semblez pas encore en profiter. C'est
pourquoi il me paraissait utile de vous rappeler que toutes les
personnes exer&amp;amp;ccedil;ant dans votre secteur d'activit&amp;amp;eacute; peuvent
d&amp;amp;eacute;sormais b&amp;amp;eacute;n&amp;amp;eacute;ficier gratuitement d'avantages
importants pour leur consommation familiale.

Une id&amp;amp;eacute;e simple&amp;amp;nbsp;: la force &amp;amp;eacute;conomique que nous
repr&amp;amp;eacute;sentons ne peut pas laisser indiff&amp;amp;eacute;rents les grands
acteurs de la distribution.

Nous avons donc n&amp;amp;eacute;goci&amp;amp;eacute; en direct avec toutes les grandes
Enseignes et avons d&amp;amp;eacute;j&amp;amp;agrave; obtenu un accord avec plus de 700
d'entre elles&amp;amp;nbsp;: Fnac.com, PIXmania, Thomas Cook, Monoprix, Leroy
Merlin et bien d'autres...

Nous vous remboursons automatiquement une partie de chacun de vos
achats personnels&amp;amp;nbsp;: 7% en moyenne. En plus, vous profitez en
permanence de r&amp;amp;eacute;ductions sp&amp;amp;eacute;ciales et debons plans
exclusifs.

V&lt;/pre&gt;</description>
    <dc:creator>Jacques Monet [PROCOPAM]</dc:creator>
    <dc:date>2012-05-22T17:59:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.openbsd.tech/28816">
    <title>add statfs64 to compat/linux</title>
    <link>http://comments.gmane.org/gmane.os.openbsd.tech/28816</link>
    <description>&lt;pre&gt;Okay?

Index: linux_misc.c
===================================================================
RCS file: /cvs/src/sys/compat/linux/linux_misc.c,v
retrieving revision 1.76
diff -u -p -r1.76 linux_misc.c
--- linux_misc.c22 Apr 2012 05:43:14 -00001.76
+++ linux_misc.c22 May 2012 14:58:00 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -441,6 +441,76 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; linux_sys_statfs(p, v, retval)
 return copyout((caddr_t) &amp;amp;ltmp, (caddr_t) SCARG(uap, sp), sizeof ltmp);
 }
 
+static void
+bsd_to_linux_statfs64(struct statfs *bsp, struct linux_statfs64 *lsp)
+{
+
+/*
+ * Convert BSD filesystem names to Linux filesystem type numbers
+ * where possible.  Linux statfs uses a value of -1 to indicate
+ * an unsupported field.
+ */
+if (!strcmp(bsp-&amp;gt;f_fstypename, MOUNT_FFS) ||
+    !strcmp(bsp-&amp;gt;f_fstypename, MOUNT_MFS))
+lsp-&amp;gt;l_ftype = 0x11954;
+else if (!strcmp(bsp-&amp;gt;f_fstypename, MOUNT_NFS))
+lsp-&amp;gt;l_ftype = 0x6969;
+else if (!strcmp(bsp-&amp;gt;f_fstypename, MOUNT_MSDOS))
+lsp-&amp;gt;l_ftype = 0x4d44;
+else if (!strcmp(bsp-&amp;gt;f_fstypename, MOUNT_PROCFS))
+lsp-&amp;gt;l_f&lt;/pre&gt;</description>
    <dc:creator>Paul Irofti</dc:creator>
    <dc:date>2012-05-22T15:00:02</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.os.openbsd.tech">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.os.openbsd.tech</link>
  </textinput>
</rdf:RDF>

