Control Efectivo de Almacenes e Inventarios, 19 de Agosto, México D.F

2010-08-07 Thread Lic. Lorena Tapia
[IMAGE]

Promociones Especiales para Grupos!

Mayores informes responda este correo electrC3nico con los siguientes
datos.

Empresa:

Nombre:

TelC)fono:

Email:

NC:mero de Interesados:

Y en breve le haremos llegar la informaciC3n completa del evento.

O bien comunCquense a nuestros telC)fonos un ejecutivo con gusto le
atenderC!
Tels. (33) 8851-2365, (33)8851-2741.

Copyright (C) 2010, PMS CapacitaciC3n Efectiva de MC)xico S.C. Derechos
Reservados. PMS de MC)xico, El logo de PMS de MC)xico son marcas
registradas.

ADVERTENCIA PMS de MC)xico no cuenta con alianzas estratC)gicas de
ningC:n tipo dentro de la Republica Mexicana. NO SE DEJE ENGACAR - DIGA
NO A LA PIRATERIA. Todos los logotipos, marcas comerciales e imC!genes
son propiedad de sus respectivas corporaciones y se utilizan con fines
informativos solamente.

Este Mensaje ha sido enviado a misc@openbsd.org como usuario de Pms de
MC)xico o bien un usuario le refiriC3 para recibir este boletCn.

Como usuario de Pms de MC)xico, en este acto autoriza de manera expresa
que Pms de MC)xico le puede contactar vCa correo electrC3nico u otros
medios.

Si usted ha recibido este mensaje por error, haga caso omiso de el y
reporte su cuenta respondiendo este correo con el subject BAJAALMACENES

Unsubscribe to this mailing list, reply a blank message with the subject
UNSUBSCRIBE ALMACENES Tenga en cuenta que la gestiC3n de nuestras bases
de datos es de suma importancia y no es intenciC3n de la empresa la
inconformidad del receptor.

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



Anyone playing with Active Protection System (hdaps) here ?

2010-08-07 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
Mon Laptop has a device aps0 , and hdapsd works fine on Gentoo Box , i'm
wondering how should i activate it on OpenBSD ?

/etc/rc.conf doesn't have anything related ..

Many thanks.

- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxdBwUACgkQvf41sEptMqBbbQCgioVJ9ft6tUT+ELCLNSMPuaMh
b0cAnA6xj5p0i9fR7eR0DphJ8Oc2B9Eh
=IWgd
-END PGP SIGNATURE-



Re: Anyone playing with Active Protection System (hdaps) here ?

2010-08-07 Thread Bret S. Lambert
On Sat, Aug 07, 2010 at 03:11:01PM +0800, Aaron Lewis wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
   Mon Laptop has a device aps0 , and hdapsd works fine on Gentoo Box , i'm
 wondering how should i activate it on OpenBSD ?
 
   /etc/rc.conf doesn't have anything related ..
 
   Many thanks.

from man aps:

SEE ALSO
 isa(4), sensorsd(8), sysctl(8)

That's your money reading, right there.

$ sysctl | grep -c aps
9

and that's where you pull the values to stick into sensorsd.conf

 
 - -- 
 Best Regards,
 Aaron Lewis - PGP: 0x4A6D32A0
 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
 irc: A4R0NL3WI5 on freenode
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkxdBwUACgkQvf41sEptMqBbbQCgioVJ9ft6tUT+ELCLNSMPuaMh
 b0cAnA6xj5p0i9fR7eR0DphJ8Oc2B9Eh
 =IWgd
 -END PGP SIGNATURE-



Re: Glitches with (some?) X apps

2010-08-07 Thread patrick keshishian
hmm.. I'm leaning towards this being a problem with X now. I'm seeing
very rare, transient artifacts with my WM's menu (pic added to URL
below). I also have noticed horizontal distortion line through my
desktop background images (forcing a redraw of same image clears the
distortion).


On Fri, Aug 6, 2010 at 2:24 PM, patrick keshishian pkesh...@gmail.com
wrote:
 Hi,

 With macppc snapshot install from Aug 3rd I was able to, once again,
 run firefox (v 3.6.8). But there are some drawing glitches in the UI.
 The Gimp port finally finished building and it too is demonstrating
 similar artifacts. They resemble the color shifts one would see when
 using apps that install their own colormap, but not quite.

 I'm not certain if this is an X issue or if the problem is at a higher
 level in the app or the toolkit (gtk+2). I don't run many X apps, the
 few others (wmapm, xv image viewer, xpdf) have much simpler UI
 interfaces and don't show issues.

 I placed three screen shots demonstrating the glitch over here:
http://sidster.com/scratch/glitch/

 With firefox and gmail interface as an example, you see the outline of
 check-boxes aren't drawn. If I roll-over them with the pointer they
 redraw but once the pointer is moved away they disappear. But if I
 check one of them (as shown), the outline for that check-box and all
 check-boxes below it remain drawn.

 Also included are dmesg[1], X log and conf.

 Any ideas as to the cause?

 I am assuming no one is having issues with -current and associated
 ports on other platforms. I'm just not sure how many others use macppc
 -current on a daily basis.

 Thanks,
 --patrick

 [1] Possibly not relevant, but it's my first time seeing this:
 attempting to restore vector in use vecproc 0 veccpu 6b0ff0



Re: Glitches with (some?) X apps

2010-08-07 Thread Matthieu Herrb
On Sat, Aug 7, 2010 at 10:29 AM, patrick keshishian pkesh...@gmail.com
wrote:
 hmm.. I'm leaning towards this being a problem with X now. I'm seeing
 very rare, transient artifacts with my WM's menu (pic added to URL
 below). I also have noticed horizontal distortion line through my
 desktop background images (forcing a redraw of same image clears the
 distortion).


 On Fri, Aug 6, 2010 at 2:24 PM, patrick keshishian pkesh...@gmail.com
 wrote:
 Hi,

 With macppc snapshot install from Aug 3rd I was able to, once again,
 run firefox (v 3.6.8). But there are some drawing glitches in the UI.
 The Gimp port finally finished building and it too is demonstrating
 similar artifacts. They resemble the color shifts one would see when
 using apps that install their own colormap, but not quite.

 I'm not certain if this is an X issue or if the problem is at a higher
 level in the app or the toolkit (gtk+2). I don't run many X apps, the
 few others (wmapm, xv image viewer, xpdf) have much simpler UI
 interfaces and don't show issues.

 I placed three screen shots demonstrating the glitch over here:
http://sidster.com/scratch/glitch/

 With firefox and gmail interface as an example, you see the outline of
 check-boxes aren't drawn. If I roll-over them with the pointer they
 redraw but once the pointer is moved away they disappear. But if I
 check one of them (as shown), the outline for that check-box and all
 check-boxes below it remain drawn.

 Also included are dmesg[1], X log and conf.

 Any ideas as to the cause?

 I am assuming no one is having issues with -current and associated
 ports on other platforms. I'm just not sure how many others use macppc
 -current on a daily basis.

 Thanks,
 --patrick

 [1] Possibly not relevant, but it's my first time seeing this:
 attempting to restore vector in use vecproc 0 veccpu 6b0ff0



Try without 'Option AccelMethod EXA in xorg.conf.
--
Matthieu Herrb



Re: Glitches with (some?) X apps

2010-08-07 Thread patrick keshishian
On Sat, Aug 7, 2010 at 1:42 AM, Matthieu Herrb mhe...@gmail.com wrote:
 On Sat, Aug 7, 2010 at 10:29 AM, patrick keshishian pkesh...@gmail.com
wrote:
 hmm.. I'm leaning towards this being a problem with X now. I'm seeing
 very rare, transient artifacts with my WM's menu (pic added to URL
 below). I also have noticed horizontal distortion line through my
 desktop background images (forcing a redraw of same image clears the
 distortion).


 On Fri, Aug 6, 2010 at 2:24 PM, patrick keshishian pkesh...@gmail.com
 wrote:
 Hi,

 With macppc snapshot install from Aug 3rd I was able to, once again,
 run firefox (v 3.6.8). But there are some drawing glitches in the UI.
 The Gimp port finally finished building and it too is demonstrating
 similar artifacts. They resemble the color shifts one would see when
 using apps that install their own colormap, but not quite.

 I'm not certain if this is an X issue or if the problem is at a higher
 level in the app or the toolkit (gtk+2). I don't run many X apps, the
 few others (wmapm, xv image viewer, xpdf) have much simpler UI
 interfaces and don't show issues.

 I placed three screen shots demonstrating the glitch over here:
http://sidster.com/scratch/glitch/

 With firefox and gmail interface as an example, you see the outline of
 check-boxes aren't drawn. If I roll-over them with the pointer they
 redraw but once the pointer is moved away they disappear. But if I
 check one of them (as shown), the outline for that check-box and all
 check-boxes below it remain drawn.

 Also included are dmesg[1], X log and conf.

 Any ideas as to the cause?

 I am assuming no one is having issues with -current and associated
 ports on other platforms. I'm just not sure how many others use macppc
 -current on a daily basis.

 Thanks,
 --patrick

 [1] Possibly not relevant, but it's my first time seeing this:
 attempting to restore vector in use vecproc 0 veccpu 6b0ff0



 Try without 'Option AccelMethod EXA in xorg.conf.

You win a cookie. I thought I have always had that on, but a quick
search through archives shows that at least in April time-frame
snapshot I had it commented out.

Thanks for the pointer.
--patrick



Re: Anyone playing with Active Protection System (hdaps) here ?

2010-08-07 Thread aaron lewis
 from man aps:

 SEE ALSO
 isa(4), sensorsd(8), sysctl(8)

 That's your money reading, right there.

 $ sysctl | grep -c aps
 9


Well , Thanks Bret , can you get me more instructions please ?

I think i should put a limit via sysctl  , right ?

-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode



Re: Anyone playing with Active Protection System (hdaps) here ?

2010-08-07 Thread Bret S. Lambert
On Sat, Aug 07, 2010 at 06:07:56PM +0800, aaron lewis wrote:
  from man aps:
 
  SEE ALSO
  isa(4), sensorsd(8), sysctl(8)
 
  That's your money reading, right there.
 
  $ sysctl | grep -c aps
  9
 
 
 Well , Thanks Bret , can you get me more instructions please ?

Yes: get familiar with man(1) and experimentation.

And thus is my reputation for being an unhelpful prick upheld!

 
 I think i should put a limit via sysctl  , right ?
 
 -- 
 Best Regards,
 Aaron Lewis - PGP: 0x4A6D32A0
 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
 irc: A4r0n on freenode



[SOLVE] Anyone playing with Active Protection System (hdaps) here ?

2010-08-07 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Yes: get familiar with man(1) and experimentation.
 
 And thus is my reputation for being an unhelpful prick upheld!

OK , no problem ;-)

- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxdS9AACgkQvf41sEptMqAySQCgwNPCFYKNo2PEXYptm/CGfMNY
h9sAn0Ryf/+Ta65BpzD/wZ5/JQkUjhqo
=P6/H
-END PGP SIGNATURE-



memory fragmentation

2010-08-07 Thread Edwin Eyan Moragas
Hi misc,

assuming that a long running app would malloc(3) when needed and then
free(3)s the resource immediately when it is done, is memory
fragmentation still a concern for long running apps?

what are steps that you take to manage this problem if ever it is a problem?

best,

/e



Re: How to Downgrade from 4.7 to 4.6

2010-08-07 Thread Stuart Henderson
a few thoughts,

- check your subnet masks carefully

- tcpdump is a very useful tool for working out what's going on,
especially with 'log' on pf rules and tcpdump -neipflog0 -vv

- if you have a restricted MTU connection (pppoe, some others)
in the path, make sure you're using an appropriate scrub max-mss
option.

- if you can, try it with a different router. i have seen some
*very* strange behaviour with certain routers (especially if the
router is natting)


On 2010-08-07, Peter Merritt pwmerr...@weirdwater.org wrote:
 It acts a firewall to an sbs server, sometimes I can ping out from
 server, or firewall sometimes I can't. Internet is extremely slow, and
 can't browse to some sites. Some computers on the lan can connect to
 internet others can't. Some that can't browse can ping. Some get
 destination net unreachable while others can ping the same ip just fine.
 I can ssh in from outside to the firewall. Its very erratic, and useless
 in its present state. I tested it using the simplest pf.conf, using
 suggestions from this group.  Right now I have a linksys router running
 dd-wrt which works just fine, but the OBSD firewall did antispam and
 other duties as well so it is sorely missed. I ran 4.6 and previous
 versions without hitch, in fact it usually works so well that I hardly
 remember its there.  I thought  originally the motherboard not
 compatible with 4.7, but I have ruled that out, it works fine at an
 other location and it ran at that location for 24hrs or more with no
 issues. I also have another MB with the same chipset, proccessor and
 nics, and it works with that. I am far from being an expert but I have
 been running obsd since ipf days, this one just baffles me I keep
 thinking I've missed something, but everything looks right.
   Peter

 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
 Of Bryan Irvine
 Sent: Friday, August 06, 2010 9:40 PM
 To: misc@openbsd.org
 Subject: Re: How to Downgrade from 4.7 to 4.6

 On Fri, Aug 6, 2010 at 9:27 PM, Chris Cappuccio ch...@nmedia.net
 wrote:
 Considering that 4.7 isn't known to have major, show-stopper bugs in
 PF like you experience, you may want to consider that there is a bug in
 some other part of the system like the ethernet driver or some such.

 If you can try 4.8 snapshots first, and perhaps post your tests,
 results, and dmesg to the list, then someone can help you narrow down
 what the actual problem is.

 Additionally posting what the actual problem is might help as well.

 -B



Re: How to Downgrade from 4.7 to 4.6

2010-08-07 Thread Peter N. M. Hansteen
Stuart Henderson s...@spacehopper.org writes:

 - if you have a restricted MTU connection (pppoe, some others)
 in the path, make sure you're using an appropriate scrub max-mss
 option.

Emphatically seconded. I forget what the bad settings here were (with
restults rather like what the original poster describes, some not
terribly well thougth out scrub options carried over from an earlier
version), but going to

match in all scrub (no-df max-mss 1440) 

made my home network a lot more pleasant.

And yes, the 4.8 snapshots are really worth trying.

- Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: UTF-8

2010-08-07 Thread Alexander Polakov
* Jordi Beltran Creix jbcreix.m...@gmail.com [100804 17:26]:
  ls(1) does not seem to be 100% UTF-8 ready:
 
 
  madro...@madthought:~% /bin/ls testb8-C4-D5-b/-\#
  testo?=o?=-C4-D5-o?=o?=-#
  madro...@madthought:~% /bin/ls testb8-C4-D5-b/-\# |cat
  testb8-C4-D5-b/-#
 
 ls(1) needs to use wcwidth(3) instead of just assuming 1 for alignment
 and if I remember correctly it also mangles the strings using
 isprint(3) or hardcoded values instead of iswprint(3) when printing to
 terminal which is probably what you are seeing here.

I made a patch for ls based on NetBSD (see below), works just fine for me.

 ed(1) is broken by the latter and ksh(1) for both reasons.

One can use mksh instead (or better backport their utf8-handling code).

 wcwidth(3) doesn't seem to have been added yet, though.

wcwidth() is in, but no man page yet.


--- ls.c2010/08/07 15:15:04 1.1
+++ ls.c2010/08/07 15:17:32
@@ -41,6 +41,7 @@
 #include err.h
 #include errno.h
 #include fts.h
+#include locale.h
 #include grp.h
 #include pwd.h
 #include stdio.h
@@ -102,6 +103,7 @@
int kflag = 0;
char *p;

+   setlocale(LC_CTYPE, );
/* Terminal defaults to -Cq, non-terminal defaults to -1. */
if (isatty(STDOUT_FILENO)) {
if ((p = getenv(COLUMNS)) != NULL)
--- util.c  2010/08/07 15:00:48 1.1
+++ util.c  2010/08/07 15:13:52
@@ -41,18 +41,75 @@
 #include stdio.h
 #include stdlib.h
 #include string.h
+#include wchar.h

 #include ls.h
 #include extern.h

+#define MB_LEN_MAX 32 /* goes into limits.h */
+
+static int
+printwc(wchar_t wc, mbstate_t * pst)
+{
+   size_t  size;
+   charbuf[MB_LEN_MAX];
+
+   size = wcrtomb(buf, wc, pst);
+   if (size == (size_t) -1)   /* This shouldn't happen, but for
+* sure */
+   return 0;
+   if (wc == L'\0') {
+   /* The following condition must be always true, but for sure */
+   if (size  0  buf[size - 1] == '\0')
+   --size;
+   }
+   if (size  0)
+   fwrite(buf, 1, size, stdout);
+   return wc == L'\0' ? 0 : wcwidth(wc);
+}
+
 int
-putname(char *name)
+putname(char *src)
 {
-   int len;
+   int n = 0;
+   mbstate_t   src_state, stdout_state;
+   /* The following +1 is to pass '\0' at the end of src to mbrtowc(). */
+   const char *endptr = src + strlen(src) + 1;

-   for (len = 0; *name; len++, name++)
-   putchar((!isprint(*name)  f_nonprint) ? '?' : *name);
-   return len;
+   /*
+   * We have to reset src_state each time in this function, because
+   * the codeset of src pathname may not match with current locale.
+   * Note that if we pass NULL instead of src_state to mbrtowc(),
+   * there is no way to reset the state.
+   */
+   memset(src_state, 0, sizeof(src_state));
+   memset(stdout_state, 0, sizeof(stdout_state));
+   while (src  endptr) {
+   wchar_t wc;
+   size_t  rv, span = endptr - src;
+   rv = mbrtowc(wc, src, span, src_state);
+   if (rv == 0) {  /* assert(wc == L'\0'); */
+   /* The following may output a shift sequence. */
+   n += printwc(wc, stdout_state);
+   break;
+   }
+   if (rv == (size_t) -1) {   /* probably errno == EILSEQ */
+   n += printwc(L'?', stdout_state);
+   /* try to skip 1byte, because there is no better way */
+   src++;
+   memset(src_state, 0, sizeof(src_state));
+   } else if (rv == (size_t) - 2) {
+   if (span  MB_CUR_MAX) {/* incomplete char */
+   n += printwc(L'?', stdout_state);
+   break;
+   }
+   src += span;/* a redundant shift sequence? */
+   } else {
+   n += printwc(iswprint(wc) ? wc : L'?', stdout_state);
+   src += rv;
+   }
+   }
+   return n;
 }

 void



Re: Error starting gnome

2010-08-07 Thread Steven Susbauer

On 07/27/10 11:09, Jose P.G wrote:

When i installed OpenBSD 4.4 with gnome all i needed to do is pkd_add
gnome-session. I am back using OpenBSD but now apparently as you said is
different (also, i never used ports so i really don't know how it works).
Can you tell me where i can find the information?
Herehttp://www.openbsdsupport.org/gnome-GDM.htmlsays nothing about
that. Thank you very much for your help.


I ran into this issue the other day when I installed Gnome using 
gnome-session, per the documentation. I suggest before running gdm and 
attempting to log in that way, you start gnome with startx and an 
.xinitrc. This will let you see the error messages from gnome once you 
close X.


In my case it became apparent very quickly that for some reason things 
like gnome-desktop and gnome-panel (and probably more) had not been 
installed, so when it started up it really was running all of gnome that 
was installed, which was pretty much the wallpaper.


I do not believe the output from the gnome-session install told me that 
I needed to install more for gnome to even work, rather it suggested 
some other packages I may want on top of the functional base.




Re: Error starting gnome

2010-08-07 Thread Steven Susbauer

On 08/07/10 11:28, Steven Susbauer wrote:
snip


I do not believe the output from the gnome-session install told me that
I needed to install more for gnome to even work, rather it suggested
some other packages I may want on top of the functional base.


I was wrong about one. gnome-panel is not installed by default and is 
one of those suggested in the README.OpenBSD. Check out the file 
(/usr/share/doc/gnome-session/README.OpenBSD) and install at least some 
of the packages listed in the top half. They say it's for a satisfying 
experience, but without even having a panel or terminal, gnome is pretty 
much impossible to use.




Re: UTF-8

2010-08-07 Thread Ingo Schwarze
Alexander Polakov wrote on Sat, Aug 07, 2010 at 06:52:24PM +0400:

 I made a patch for ls based on NetBSD (see below), works just fine for me.

Ugh.
I hate that.

Well, i partly see a point in providing such functions in libraries,
because libraries are used for compiling all sorts of software,
including typesetting software etc. etc.

But do we really want to uproot the tree in src/bin in this respect?
I value correctness by simplicity, and this code looks nightmarish.
More than 20 lines of code basically for counting up the length
of a word, involving five calls to two different library functions,
not counting memset.

Yes, it is possible to put all kinds of bytes into filenames.
But that doesn't mean it is a smart idea, and i'm not sure
it should be actively encouraged.

And even if you happen to think there is nothing wrong with
filenames that cannot be displayed everywhere, or with filenames
that look identical but are actually different, or with filenames
that some software may handle poorly, I consider the price we have
to pay for this feature rather high.



Re: memory fragmentation

2010-08-07 Thread Ted Unangst
On Sat, Aug 7, 2010 at 8:19 AM, Edwin Eyan Moragas e...@yndy.org wrote:
 assuming that a long running app would malloc(3) when needed and then
 free(3)s the resource immediately when it is done, is memory
 fragmentation still a concern for long running apps?

 what are steps that you take to manage this problem if ever it is a problem?

you write your own allocator.



Re: How to Downgrade from 4.7 to 4.6

2010-08-07 Thread Henning Brauer
there is zero information in this thread which would allow me (or any
other pf developer, heck, anybody else) to even guess if there is a
problem in pf or in your setup or on your link or whereever.

i know of a few bugs in pf, but apparently nobody else found them yet.
which is puzzling, especially for one. none of the things I am aware
of could be the reason for behaviour like the one described here. in
general, i am not aware of any real problems with pf after 4.7.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: memory fragmentation

2010-08-07 Thread Henning Brauer
* Ted Unangst ted.unan...@gmail.com [2010-08-07 19:54]:
 you write your own allocator.

don't. ever.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: memory fragmentation

2010-08-07 Thread Kenneth Gober
On Sat, Aug 7, 2010 at 4:03 PM, Henning Brauer lists-open...@bsws.dewrote:

 * Ted Unangst ted.unan...@gmail.com [2010-08-07 19:54]:
  you write your own allocator.

 don't. ever.


to put it another way, if memory fragmentation ever does become a problem
for you, there is probably an easier and safer solution than writing your
own allocator.  upgrading to a 64-bit platform, for example, is likely to be
a far better solution.  modifying your app to use malloc(3) and free(3) more
conservatively may be a viable option as well, although at that point you're
starting down the road of writing your own allocator again.

-ken



Reduza as suas mensalidades ate -60%

2010-08-07 Thread Partners Finances
Autorizagco : Autorizo(amos) que os dados facultados sejam tratados 
informaticamente pela M.B. FINANCES, S.A., PARTNERS FINANCES, intermediario em 
operagues de cridito, para efeitos de prospecgco comercial. Fica-me(nos) 
reservado o direito de acesso ` informagco, de correcgco, aditamento ou 
eliminagco dos meus(nossos) dados pessoais, mediante contacto escrito para : 
M.B. FINANCES, S.A., PARTNERS FINANCES, EDIF. D.PEDRO I, PISO 2, QUINTA DA 
FONTE, 2770-071 PAGO D'ARCOS.
  NOTA INFORMATIVA: O presente email destina-se znica e exclusivamente a 
informar potenciais utilizadores e nco pode ser considerado SPAM. De acordo com 
a legislagco internacional que regulamenta o correio electrsnico, o email nco 
pode sera ser considerado SPAM quando incluir uma forma do receptor ser 
removido da lista do emissor.
Para deixar de receber estas ofertas no seu e-mail clicar aqui



suspend - who's allowed?

2010-08-07 Thread Jiri B.
Hello,

suspend/resume works OK on Lenovo T400 but I have question, probably
pebkac one, about conditions of this feature.

Is it normal to be able to suspend laptop even I have no opened console
and my X is locked?

If so, is there a way to configure something (console or X) to prevent
this? I do not want to allow people to make jokes while suspending my
laptop when I withdraw even keeping it secured with kensington and
locked with X locker :)

jirib



Re: suspend - who's allowed?

2010-08-07 Thread Theo de Raadt
 suspend/resume works OK on Lenovo T400 but I have question, probably
 pebkac one, about conditions of this feature.
 
 Is it normal to be able to suspend laptop even I have no opened console
 and my X is locked?
 
 If so, is there a way to configure something (console or X) to prevent
 this? I do not want to allow people to make jokes while suspending my
 laptop when I withdraw even keeping it secured with kensington and
 locked with X locker :)

We are dealing with that after release.



Re: memory fragmentation

2010-08-07 Thread Edwin Eyan Moragas
On Sun, Aug 8, 2010 at 4:03 AM, Henning Brauer lists-open...@bsws.de wrote:
 * Ted Unangst ted.unan...@gmail.com [2010-08-07 19:54]:
 you write your own allocator.

 don't. ever.

i don't intend to.

thank you Ted and Henning for pointing that out.


 --
 Henning Brauer, h...@bsws.de, henn...@openbsd.org
 BS Web Services, http://bsws.de
 Full-Service ISP - Secure Hosting, Mail and DNS Services
 Dedicated Servers, Rootservers, Application Hosting



Re: memory fragmentation

2010-08-07 Thread Edwin Eyan Moragas
On Sun, Aug 8, 2010 at 4:19 AM, Kenneth Gober kgo...@gmail.com wrote:
 On Sat, Aug 7, 2010 at 4:03 PM, Henning Brauer
lists-open...@bsws.dewrote:

 * Ted Unangst ted.unan...@gmail.com [2010-08-07 19:54]:
  you write your own allocator.

 don't. ever.


 to put it another way, if memory fragmentation ever does become a problem
 for you, there is probably an easier and safer solution than writing your
 own allocator.  upgrading to a 64-bit platform, for example, is likely to
be
 a far better solution.  modifying your app to use malloc(3) and free(3)
more
 conservatively may be a viable option as well, although at that point
you're

came across this several times. thank you. i guess this is the way.
just lessen calls to malloc and free? but isn't this just a
performance concern?

was wondering if there are any special 'moves' that are employed in
creating daemons in openbsd that the devs might care to share.


 starting down the road of writing your own allocator again.

 -ken



bootstrap, crypto, hibernation/suspend-to-disk

2010-08-07 Thread Jiri B.
Hello,

first I have to say I do not behold this as fundamental feature but
still I'm interested in technical views of this topic and arguments
for and against.

Scenario:
- hibernation to encrypted swap

If I understand it correctly bootstrapper would need to be extended to
be able to handle encrypted storage. And as OpenBSD has by random
key encrypted swap, this would presume to use softraid crypto
discipline for swap to be able to read the image and restore it...

What are your thoughts about this? For example there's some physical
attack against Truecrypt bootloader which somehow confirms there's no
way to trust the bootloader itself ;) Some people proposed to Truecrypt
devs to use TPM but IIRC OpenBSD has refused TPM.

This post is just discussion ;)

jirib



Re: bootstrap, crypto, hibernation/suspend-to-disk

2010-08-07 Thread Theo de Raadt
 first I have to say I do not behold this as fundamental feature but
 still I'm interested in technical views of this topic and arguments
 for and against.
 
 Scenario:
 - hibernation to encrypted swap
 
 If I understand it correctly bootstrapper would need to be extended to
 be able to handle encrypted storage. And as OpenBSD has by random
 key encrypted swap, this would presume to use softraid crypto
 discipline for swap to be able to read the image and restore it...
 
 What are your thoughts about this? For example there's some physical
 attack against Truecrypt bootloader which somehow confirms there's no
 way to trust the bootloader itself ;) Some people proposed to Truecrypt
 devs to use TPM but IIRC OpenBSD has refused TPM.
 
 This post is just discussion ;)

No kidding.  Thoughts and words are free.  Boring.



xrandr to turn display back on?

2010-08-07 Thread Ted Unangst
I plugged a monitor into my laptop's VGA port.  I ran xrandr --auto
and got the mirrored screen.  I found it a little distracting, so I
turned off the LVDS: xrandr --output LVDS --off.  So far, so good.

Now I want to unplug the monitor.  How do I turn the laptop screen
back on?  I note that there is no --on option to match with --off.

atom:~ xrandr --output LVDS --auto
xrandr: Configure crtc 1 invalid time

Am I looking at a bug, user error, missing feature, what?