Re: hook-up acpi locking

2012-09-19 Thread Kenneth R Westerback
On Wed, Sep 19, 2012 at 12:22:49AM +0300, Paul Irofti wrote:
 Any reason we have this disabled?
 I ran with this diff in for quite some time w/o any problems.
 Can you test this and let me know if anything bad happens?
 I'd like to enable this codepath and I have diffs depending on it.
 
 Index: dev/acpi/dsdt.c
 ===
 RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
 retrieving revision 1.197
 diff -u -p -r1.197 dsdt.c
 --- dev/acpi/dsdt.c   16 Jul 2012 15:27:11 -  1.197
 +++ dev/acpi/dsdt.c   18 Sep 2012 21:20:30 -
 @@ -729,8 +729,6 @@ void aml_lockfield(struct aml_scope *, s
  long acpi_acquire_global_lock(void*);
  long acpi_release_global_lock(void*);
  static long global_lock_count = 0;
 -#define acpi_acquire_global_lock(x) 1
 -#define acpi_release_global_lock(x) 0
  void
  aml_lockfield(struct aml_scope *scope, struct aml_value *field)
  {
 

Not bad happens on my Aspire. But then the Aspire has never been
able to suspend more than once between power cycles and even then
only from X. :-).

 Ken



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Paul Irofti
On Tue, Sep 18, 2012 at 05:46:55PM -0700, Marco S Hyman wrote:
 On Sep 18, 2012, at 3:27 PM, Paul Irofti p...@irofti.net wrote:
 
  Because most of the guys in the hackingroom didn't get this, the
  reference is to a book named 'American Gods' by Neil Gaimen. Wednesday
  is Odin from the Norse Sagas in that book.
 
 Gaiman, not Gaimen. http://www.neilgaiman.com/

Sorry about that, I was writting it off the top of my head before going
to bed.



Don't get me wrong but you're really interesting to me.

2012-09-19 Thread Georgina Kiger
How's it going sweetie! 
Can you feel it? The spring is here! Don't you wanna
be loved by smb, to always know that somebody is here, just like I do? 
I'm
pretty sure u r. 
So, u can call me Georgina. I'm young, beautiful, wild, and
free. More to say, I am I have no hang-ups and I have no bad habits. 
I wanna
feel a man by my side, which will satisfy me fully, you know what I mean
right?) So, if u feel the same way then I'm happy. 
To carry conviction, I
will add that I think that BDSM is attractive.) 
I wanna know u better and
also I would like to share pictures with you (maybe something erotic
pictures). 
I'm sure we will make a good couple! 
Don't think too long! I'm
already waiting 4 u.
Georgina



32-bit ucas on amd64

2012-09-19 Thread Paul Irofti
I need this for acpi locking, okay?

(I'd also like to get rid of the silly x86_* prefix to match the i386
function name, but that's a different topic)

Index: arch/amd64/include/atomic.h
===
RCS file: /cvs/src/sys/arch/amd64/include/atomic.h,v
retrieving revision 1.8
diff -u -p -r1.8 atomic.h
--- arch/amd64/include/atomic.h 23 Mar 2011 16:54:34 -  1.8
+++ arch/amd64/include/atomic.h 19 Sep 2012 12:38:31 -
@@ -90,6 +90,17 @@ x86_atomic_clearbits_u32(volatile u_int3
__asm __volatile(LOCK  andl %1,%0 :  =m (*ptr) : ir (~bits));
 }
 
+static __inline int
+x86_atomic_ucas_32(volatile uint32_t *ptr, uint32_t expect, uint32_t set)
+{
+   u_long res;
+
+   __asm volatile(LOCK  cmpxchgl %2, %1 : =a (res), =m (*ptr)
+   : r (set), a (expect), m (*ptr) : memory);
+
+   return (res);
+}
+
 static __inline u_long
 x86_atomic_cas_ul(volatile u_long *ptr, u_long expect, u_long set)
 {



Balanced Scorecard--ASISTA

2012-09-19 Thread Lic. Sue Lin Lopez
Balanced Scorecard - Sistema de Información Gerencial Integral
Panama 26 de Septiembre de 2012
Sheraton Panama Hotel  Convention Center
Los altos Ejecutivos de las empresas globales dirigen organizaciones de
proporciones enormes y utilizan el Balanced Scorecard para planear, evaluar y
“balancear” estratégicamente la visión con los objetivos de la empresa,
integrando equipos gerenciales capaces de lograr resultados sobresalientes.
Esta revolucionaria metodología ayudará a los Directores y Ejecutivos a pensar
más ampliamente sobre lo que significa hoy el verdadero liderazgo en los
negocios...
Un experto en Alta Dirección de Empresas presentará este seminario práctico y
efectivo donde se discutirán las mejores prácticas del  Balanced Scorecard,
incluyendo:
- Cómo traducir la visión en objetivos concretos - Trazo y ejecución de planes
-
- Implementar controles de desempeño gerencial - Remuneración por resultados
-
- Establecer sistemas de información de los medidores Balanced Scorecard
- Mejorar la rentabilidad de la empresa, conservar clientes leales y empleados
de talento - Ingredientes esenciales para crear valor en la nueva economía-
Adquiera la información completa y sin compromiso, solo responda este correo
con asunto -Deseo Folleto Balanced o Comuníquese al (507) 279-1083 / 279-0258
/ 279-0887 - y a la brevedad lo recibirá!
ESTE CORREO NO PUEDE SER CONSIDERADO INTRUSIVO YA QUE CUMPLE CON LAS POLÍTICAS
ANTISPAM INTERNACIONALES Y LOCALES: Responda este correo con el Asunto borrar
y en 72 horas quedará fuera de nuestras listas. Este correo ha sido enviado a:
tech@openbsd.org



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Theo de Raadt
 arc4random() is also thread-safe (it has interal locking) and very
 desirable for other reasons. But no way to save state.

The last part of this is intentional.  Saving the state of pseudo
random number generators is a stupid concept from the 80's.



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Alexey Suslikov
On Wednesday, September 19, 2012, Theo de Raadt wrote:

  arc4random() is also thread-safe (it has interal locking) and very
  desirable for other reasons. But no way to save state.

 The last part of this is intentional.  Saving the state of pseudo
 random number generators is a stupid concept from the 80's.


I see many rng functions behaving very differently. Is it a good idea
to create a common locking layer on top of need-to-be-safe rng
functions? Or we should deal only with original problem (and only
port random.c code from netbsd)?



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Otto Moerbeek
Op 19 sep. 2012 om 17:28 heeft Theo de Raadt dera...@cvs.openbsd.org het
volgende geschreven:

 arc4random() is also thread-safe (it has interal locking) and very
 desirable for other reasons. But no way to save state.

 The last part of this is intentional.  Saving the state of pseudo
 random number generators is a stupid concept from the 80's.

Sometimes it is useful to be able to repeat the stream for testing purposes.
But anything that is not pure testing should not want to have repeatability.

 -Otto



Administración, Organización y Control de un Departame

2012-09-19 Thread Lic. Yinela Cheribin
Administración, Organización y Control de un Departamento de Compras.
SEMINARIO ONLINE EN VIVO este 01 de Octubre de 2012.
La falta de organización y control en el departamento de compras pueden llevar
a las áreas interrelacionadas como Almacén, Inventarios, Producción y hasta la
empresa en general - al caos administrativo y operativo - Muchos ejecutivos
operan en forma empírica o por cuenta propia, sin considerar los factores
necesarios para determinar una estructura óptima, basada en normas y
procedimientos que les permitan administrarse y operar en forma efectiva y
confiable.
Este Seminario ofrece lo que USTED necesita conocer para poner en marcha la
modernización de su departamento, incluyendo:
•¿Cómo organizar y establecer la estructura de un departamento de compras?
•¿Cómo diseñar los objetivos y planes estratégicos de compras?
•Las normas éticas de compras en la negociación
•¿Cómo elaborar el manual de políticas, procedimientos y controles de
compras?
•¿Cómo desarrollar y mantener un departamento de compras competitivo?

Adquiera la información completa y sin compromiso solo responda este correo
con asunto -Deseo Folleto Compras o Comuníquese al (507) 279-1083 / 279-0258 /
279-0887 - y a la brevedad lo recibira.
ESTE CORREO NO PUEDE SER CONSIDERADO INTRUSIVO YA QUE CUMPLE CON LAS POLÍTICAS
ANTISPAM INTERNACIONALES Y LOCALES: Responda este correo con el Asunto borrar
y automáticamente quedará fuera de nuestras listas. Este correo ha sido
enviado a: tech@openbsd.org



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Alexander Hall

On 09/19/12 10:16, Paul Irofti wrote:

On Tue, Sep 18, 2012 at 05:46:55PM -0700, Marco S Hyman wrote:

On Sep 18, 2012, at 3:27 PM, Paul Irofti p...@irofti.net wrote:


Because most of the guys in the hackingroom didn't get this, the
reference is to a book named 'American Gods' by Neil Gaimen. Wednesday
is Odin from the Norse Sagas in that book.


Gaiman, not Gaimen. http://www.neilgaiman.com/


Sorry about that, I was writting it off the top of my head before going
to bed.


Laptop in bed, thinking about gay men? Tsk, tsk... ;)



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Ted Unangst
On Wed, Sep 19, 2012 at 18:50, Alexey Suslikov wrote:
 On Wednesday, September 19, 2012, Theo de Raadt wrote:
 
  arc4random() is also thread-safe (it has interal locking) and very
  desirable for other reasons. But no way to save state.

 The last part of this is intentional.  Saving the state of pseudo
 random number generators is a stupid concept from the 80's.

 
 I see many rng functions behaving very differently. Is it a good idea
 to create a common locking layer on top of need-to-be-safe rng
 functions? Or we should deal only with original problem (and only
 port random.c code from netbsd)?

just slap a mutex around it.



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Alexey Suslikov
On Wed, Sep 19, 2012 at 10:24 PM, Ted Unangst t...@tedunangst.com wrote:
 On Wed, Sep 19, 2012 at 18:50, Alexey Suslikov wrote:
 On Wednesday, September 19, 2012, Theo de Raadt wrote:

  arc4random() is also thread-safe (it has interal locking) and very
  desirable for other reasons. But no way to save state.

 The last part of this is intentional.  Saving the state of pseudo
 random number generators is a stupid concept from the 80's.


 I see many rng functions behaving very differently. Is it a good idea
 to create a common locking layer on top of need-to-be-safe rng
 functions? Or we should deal only with original problem (and only
 port random.c code from netbsd)?

 just slap a mutex around it.

Could you guide me how to rebuild/reinstall libc in a proper way?



Re: Threads related SIGSEGV in random.c

2012-09-19 Thread Stefan Sperling
On Wed, Sep 19, 2012 at 10:37:09PM +0300, Alexey Suslikov wrote:
 Could you guide me how to rebuild/reinstall libc in a proper way?

It's easy, just needs 11 steps. This is how I did it:

1) $ cd /usr/src/lib/libc
2) edit files
3) $ make obj
4) $ make clean
5) $ make
6) pray !!!
7) $ sudo make install
8) ???
9) Realise that step 7) should really be:
   $ sudo cp /usr/lib/libc.so.66.0 /usr/lib/libc.so.66.0.bak
   $ sudo make install
10) reinstall system from snapshot
11) goto 2)



Re: Add PCI id for D-Link DGE-530T C1 to re(4)

2012-09-19 Thread Ryan Freeman
On Fri, Aug 10, 2012 at 04:37:43AM -0400, Brad Smith wrote:
 Add support to re(4) for the D-Link DGE-530T C1 adapter.

I swore I already searched the archives for this, yet
here it is in my own damn inbox.

I submitted a similar patch recently, presently going
through some multicast tests. 

There are some additional lines you added though, so
I may be smart to yield to your diff when everything
looks okay?

cheers,

-ryan

 Index: sys/dev/pci/if_re_pci.c
 ===
 RCS file: /home/cvs/src/sys/dev/pci/if_re_pci.c,v
 retrieving revision 1.34
 diff -u -p -r1.34 if_re_pci.c
 --- sys/dev/pci/if_re_pci.c   9 Jun 2011 19:34:42 -   1.34
 +++ sys/dev/pci/if_re_pci.c   26 Sep 2011 23:26:58 -
 @@ -66,14 +66,15 @@ struct re_pci_softc {
  };
  
  const struct pci_matchid re_pci_devices[] = {
 + { PCI_VENDOR_COREGA, PCI_PRODUCT_COREGA_CGLAPCIGT },
 + { PCI_VENDOR_DLINK, PCI_PRODUCT_DLINK_DGE528T },
 + { PCI_VENDOR_DLINK, PCI_PRODUCT_DLINK_DGE530T_C1 },
   { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8101E },
   { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8168 },
   { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169 },
   { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169SC },
 - { PCI_VENDOR_COREGA, PCI_PRODUCT_COREGA_CGLAPCIGT },
 - { PCI_VENDOR_DLINK, PCI_PRODUCT_DLINK_DGE528T },
 - { PCI_VENDOR_USR2, PCI_PRODUCT_USR2_USR997902 },
 - { PCI_VENDOR_TTTECH, PCI_PRODUCT_TTTECH_MC322 }
 + { PCI_VENDOR_TTTECH, PCI_PRODUCT_TTTECH_MC322 },
 + { PCI_VENDOR_USR2, PCI_PRODUCT_USR2_USR997902 }
  };
  
  #define RE_LINKSYS_EG1032_SUBID 0x00241737
 Index: share/man/man4/re.4
 ===
 RCS file: /home/cvs/src/share/man/man4/re.4,v
 retrieving revision 1.47
 diff -u -p -r1.47 re.4
 --- share/man/man4/re.4   13 Mar 2011 21:32:29 -  1.47
 +++ share/man/man4/re.4   26 Sep 2011 23:24:28 -
 @@ -63,6 +63,8 @@ Corega CG-LAPCIGT (8169S)
  .It
  D-Link DGE-528T (8169S)
  .It
 +D-Link DGE-530T C1 (8169)
 +.It
  D-Link DGE-660TD (8169/8110SB)
  .It
  Gigabyte 7N400 Pro2 Integrated Gigabit Ethernet (8110S)
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.



Re: ntpd.8 SIGINFO and ntpd

2012-09-19 Thread Jason McIntyre
On Tue, Sep 18, 2012 at 11:43:45PM +0200, Frank Brodbeck wrote:
 Hi,
 
 ntpd(8) states that:
 
  When ntpd receives a SIGINFO signal, it writes its peer and sensor
  status to syslog(3).
 
 But it isn't clear which process should be signalled:
 
 $ ps ax | grep ntpd  
  9770 ??  Is  0:00.01 ntpd: [priv] (ntpd)
 32294 ??  I   0:00.09 ntpd: ntp engine (ntpd)
 28642 ??  I   0:00.01 ntpd: dns engine (ntpd)
 
 Ok, it isn't hard to figure out that the right command should look like:
 
 # pkill -INFO -f 'ntpd: ntp engine'
 

henning just committed a fix to this page. we decided on a different
diff because although the example you give above works, it is simpler to
just do pkill -INFO ntpd.

hope that is satisfactory,
jmc

 but I think the man page could be more specific about that:
 
 Index: usr.sbin/ntpd/ntpd.8
 ===
 RCS file: /cvs/src/usr.sbin/ntpd/ntpd.8,v
 retrieving revision 1.32
 diff -u -r1.32 ntpd.8
 --- usr.sbin/ntpd/ntpd.830 Aug 2012 06:48:33 -  1.32
 +++ usr.sbin/ntpd/ntpd.818 Sep 2012 21:40:04 -
 @@ -117,11 +117,13 @@
  .Pa /var/db/ntpd.drift .
  Clock drift is periodically written to the drift file thereafter.
  .Pp
 -When
 -.Nm
 -receives a
 +When the
 +.Em ntp engine
 +child process receives a
  .Dv SIGINFO
 -signal, it writes its peer and sensor status to
 +signal, 
 +.Nm
 +writes its peer and sensor status to
  .Xr syslog 3 .
  .Sh FILES
  .Bl -tag -width /var/db/ntpd.driftXXX -compact
 
 -- 
 Frank Brodbeck f...@guug.de



Habilidades Gerenciales de Alto Impacto

2012-09-19 Thread Lic.Kelvin Ruiz
Habilidades Gerenciales de Alto Impacto
Panama este 10, 11 y 12 de Octubre de 2012
Sheraton Panama Hotel  Convention Center
APROVECHE LA PRE VENTA ¡¡CUPO ESTRICTAMENTE LIMITADO!!
El éxito de su organización descansa sobre sus hombros...
- Cómo responder a la presión abrumadora y a los problemas aparentemente
insuperables con confianza y serenidad.
- Deje de preocuparse sobre qué camino de acción seguir… Tome las decisiones
del negocio de manera más rápida y efectiva.
- Dirija con la confianza, el valor y la convicción que inspira a sus
colaboradores a dar su mayor esfuerzo.
- Identifique y elimine las barreras de la productividad.
- Cómo reconocer los “puntos débiles” en su personal y saber con seguridad
cuándo dejar que las personas se vayan.
- Reenfoque las prioridades sobre los asuntos que son más importantes y cambie
direcciones rápidamente si es necesario.
- ¡Aprenda a negociar para GANAR!
- Cómo hacer de su empresa una organización donde el cambio, el aprendizaje y
la evolución del individuo sean las bases de una organización virtuosa.
- Desarrolle habilidades para comunicarse con dinamismo y poder.
- Comuníquese con tacto, profesionalismo y diplomacia hasta en los más
desafiantes momentos.
¡¡ Un encuentro único que usted no puede dejar pasar!!
 Adquiera la información completa y sin compromiso, solo responda este correo
con asunto -Deseo Folleto Gerente o Comuníquese al (507) 279-1083 / 279-0258 /
279-0887 - y a la brevedad lo recibirá!
ESTE CORREO NO PUEDE SER CONSIDERADO INTRUSIVO YA QUE CUMPLE CON LAS POLÍTICAS
ANTISPAM INTERNACIONALES Y LOCALES: Responda este correo con el Asunto borrar
y automáticamente quedará fuera de nuestras listas. Este correo ha sido
enviado a: tech@openbsd.org



ln -s example

2012-09-19 Thread Amit Kulkarni
shouldn't this order be flipped?

Index: ln.1
===
RCS file: /cvs/src/bin/ln/ln.1,v
retrieving revision 1.29
diff -u -p -r1.29 ln.1
--- ln.12 Mar 2011 07:47:21 -   1.29
+++ ln.119 Sep 2012 23:27:04 -
@@ -130,7 +130,7 @@ Create a symbolic link named
 and point it to
 .Pa /var/www :
 .Pp
-.Dl # ln -s /var/www /home/www
+.Dl # ln -s /home/www /var/www
 .Pp
 Hard link
 .Pa /usr/local/bin/fooprog



Re: ln -s example

2012-09-19 Thread Chris Cappuccio
Amit Kulkarni [amitk...@gmail.com] wrote:
 shouldn't this order be flipped?
 

If you wanted a link in /var/www/www back to /home/www, then yes, it should be 
flipped.

 Index: ln.1
 ===
 RCS file: /cvs/src/bin/ln/ln.1,v
 retrieving revision 1.29
 diff -u -p -r1.29 ln.1
 --- ln.1  2 Mar 2011 07:47:21 -   1.29
 +++ ln.1  19 Sep 2012 23:27:04 -
 @@ -130,7 +130,7 @@ Create a symbolic link named
  and point it to
  .Pa /var/www :
  .Pp
 -.Dl # ln -s /var/www /home/www
 +.Dl # ln -s /home/www /var/www
  .Pp
  Hard link
  .Pa /usr/local/bin/fooprog

-- 
Keep them laughing half the time, scared of you the other half. And always keep 
them guessing. -- Clair George



-TALLER DE PRESUPUESTOS-QUE, COMO Y PARA QUE

2012-09-19 Thread Lic. Sue Lin Lopez
TALLER de PRESUPUESTOS
Panama 27 de Septiembre de 2012
Sheraton Panama Hotel  Convention Center
Conozca en este seminario, las mejores técnicas para la planeación de
presupuestos y vea cómo sus decisiones gerenciales se traducen en dinero. Si
usted es un Gerente nuevo y está un poco nervioso respecto a la planeación de
presupuesto con la gente de finanzas, un Gerente con experiencia que quiere
sacarle provecho a esta tarea anual o un profesional de las finanzas con
experiencia que quiere actualizar sus conocimientos y habilidades, entonces
este seminario es para usted.

En el programa se cubrirá el proceso de presupuestos de manera completa, desde
los fundamentos hasta el desarrollo y el análisis de rendimiento, incluyendo
entre sus OBJETIVOS:
- Entender qué es un presupuesto y por qué las organizaciones lo crean.
- Describir el ciclo de presupuesto y planeación.
- Explicar una serie de métodos para preparar presupuestos operacionales y las
ventajas y desventajas de cada uno.
- Identificar las variables de un presupuesto y determinar cómo manejarlas y
controlarlas.
- Preparar un presupuesto de capital y justificar sus gastos de capital.
- Cómo justificar su presupuesto en una reunión de revisión de presupuestos.
Adquiera la información completa y sin compromiso, solo responda este correo
con asunto -Deseo Folleto Presupuesto o Comuníquese al (507) 279-1083 /
279-0258 / 279-0887 - y a la brevedad lo recibirá!
ESTE CORREO NO PUEDE SER CONSIDERADO INTRUSIVO YA QUE CUMPLE CON LAS POLÍTICAS
ANTISPAM INTERNACIONALES Y LOCALES: Responda este correo con el Asunto borrar
y automáticamente quedará fuera de nuestras listas. Este correo ha sido
enviado a:tech@openbsd.org