Re: ifconfig vlan tag range

2011-02-10 Thread Henning Brauer
* Camiel Dobbelaar c...@sentia.nl [2011-02-09 20:34]:
 The valid range for vlan tags in OpenBSD is 0-4095 (inclusive).

not only in openbsd - that's what you can fit in the 12 bits ;)

 Index: ifconfig.c
 ===
 RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
 retrieving revision 1.242
 diff -u -r1.242 ifconfig.c
 --- ifconfig.c9 Nov 2010 21:14:47 -   1.242
 +++ ifconfig.c5 Feb 2011 14:28:56 -
 @@ -3351,7 +3351,7 @@
   struct vlanreq vreq;
   const char *errmsg = NULL;
  
 - __tag = tag = strtonum(val, 0, 65535, errmsg);
 + __tag = tag = strtonum(val, 0, 4095, errmsg);
   if (errmsg)
   errx(1, vlan tag %s: %s, val, errmsg);
   __have_tag = 1;
 @@ -3411,7 +3411,7 @@
  
   if (!__have_tag  vreq.vlr_tag == 0) {
   skip = strcspn(ifr.ifr_name, 0123456789);
 - tag = strtonum(ifr.ifr_name + skip, 1, 4095, estr);
 + tag = strtonum(ifr.ifr_name + skip, 0, 4095, estr);
   if (estr != NULL)
   errx(1, invalid vlan tag and device specification);
   vreq.vlr_tag = tag;
 

ok.

-- 
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: compat/linux: add mprotect() syscall

2011-02-10 Thread Otto Moerbeek
On Thu, Feb 10, 2011 at 02:08:07PM +0200, Paul Irofti wrote:

 This adds the mprotect syscall to the linux compat layer. This plus the
 other time syscalls that went in will make the new versions of
 applications such as Opera and Skype work.
 
 Okay? 

maybe, but your timing is wrong, we're in ABI lock.

-Otto

 
 Index: linux_misc.c
 ===
 RCS file: /cvs/src/sys/compat/linux/linux_misc.c,v
 retrieving revision 1.65
 diff -u -p -r1.65 linux_misc.c
 --- linux_misc.c  26 Jul 2010 01:56:27 -  1.65
 +++ linux_misc.c  7 Feb 2011 10:13:38 -
 @@ -1474,3 +1474,13 @@ linux_sys_sysinfo(p, v, retval)
  
   return (copyout(si, SCARG(uap, sysinfo), sizeof(si)));
  }
 +
 +int
 +linux_sys_mprotect(struct proc *p, void *v, register_t *retval)
 +{
 + struct sys_mprotect_args *uap = v;
 +
 + if (SCARG(uap, prot)  (PROT_READ | PROT_WRITE | PROT_EXEC))
 + SCARG(uap, prot) |= PROT_READ | PROT_EXEC;
 + return (sys_mprotect(p, uap, retval));
 +}
 Index: syscalls.master
 ===
 RCS file: /cvs/src/sys/compat/linux/syscalls.master,v
 retrieving revision 1.51
 diff -u -p -r1.51 syscalls.master
 --- syscalls.master   30 Jun 2010 21:54:12 -  1.51
 +++ syscalls.master   7 Feb 2011 10:13:39 -
 @@ -223,7 +223,7 @@
  123  STD { int linux_sys_modify_ldt(void); }
  #endif
  124  STD { int linux_sys_adjtimex(void); }
 -125  NOARGS  { int sys_mprotect(caddr_t addr, int len, int prot); }
 +125  STD { int linux_sys_mprotect(caddr_t addr, int len, int 
 prot); }
  126  STD { int linux_sys_sigprocmask(int how, \
   linux_old_sigset_t *set, linux_old_sigset_t *oset); 
 }
  127  STD { int linux_sys_create_module(void); }



Re: ifconfig vlan tag range

2011-02-10 Thread Erik

Op 10-2-2011 12:08, Henning Brauer schreef:

not only in openbsd - that's what you can fit in the 12 bits;)
Time to implement half bits next April 1. ;) Also solves the ip address 
range problem, and numerous other things.


Erik



Re: compat/linux: add mprotect() syscall

2011-02-10 Thread Paul Irofti
On Thu, Feb 10, 2011 at 01:15:37PM +0100, Otto Moerbeek wrote:
 On Thu, Feb 10, 2011 at 02:08:07PM +0200, Paul Irofti wrote:
 
  This adds the mprotect syscall to the linux compat layer. This plus the
  other time syscalls that went in will make the new versions of
  applications such as Opera and Skype work.
  
  Okay? 
 
 maybe, but your timing is wrong, we're in ABI lock.

Hmm... well I guessed if the timing syscalls could go in so could this
one. I don't see a difference.

 
   -Otto
 
  
  Index: linux_misc.c
  ===
  RCS file: /cvs/src/sys/compat/linux/linux_misc.c,v
  retrieving revision 1.65
  diff -u -p -r1.65 linux_misc.c
  --- linux_misc.c26 Jul 2010 01:56:27 -  1.65
  +++ linux_misc.c7 Feb 2011 10:13:38 -
  @@ -1474,3 +1474,13 @@ linux_sys_sysinfo(p, v, retval)
   
  return (copyout(si, SCARG(uap, sysinfo), sizeof(si)));
   }
  +
  +int
  +linux_sys_mprotect(struct proc *p, void *v, register_t *retval)
  +{
  +   struct sys_mprotect_args *uap = v;
  +
  +   if (SCARG(uap, prot)  (PROT_READ | PROT_WRITE | PROT_EXEC))
  +   SCARG(uap, prot) |= PROT_READ | PROT_EXEC;
  +   return (sys_mprotect(p, uap, retval));
  +}
  Index: syscalls.master
  ===
  RCS file: /cvs/src/sys/compat/linux/syscalls.master,v
  retrieving revision 1.51
  diff -u -p -r1.51 syscalls.master
  --- syscalls.master 30 Jun 2010 21:54:12 -  1.51
  +++ syscalls.master 7 Feb 2011 10:13:39 -
  @@ -223,7 +223,7 @@
   123STD { int linux_sys_modify_ldt(void); }
   #endif
   124STD { int linux_sys_adjtimex(void); }
  -125NOARGS  { int sys_mprotect(caddr_t addr, int len, int 
  prot); }
  +125STD { int linux_sys_mprotect(caddr_t addr, int len, 
  int prot); }
   126STD { int linux_sys_sigprocmask(int how, \
  linux_old_sigset_t *set, linux_old_sigset_t *oset); 
  }
   127STD { int linux_sys_create_module(void); }



Re: compat/linux: add mprotect() syscall

2011-02-10 Thread Otto Moerbeek
On Thu, Feb 10, 2011 at 02:45:31PM +0200, Paul Irofti wrote:

 On Thu, Feb 10, 2011 at 01:15:37PM +0100, Otto Moerbeek wrote:
  On Thu, Feb 10, 2011 at 02:08:07PM +0200, Paul Irofti wrote:
  
   This adds the mprotect syscall to the linux compat layer. This plus the
   other time syscalls that went in will make the new versions of
   applications such as Opera and Skype work.
   
   Okay? 
  
  maybe, but your timing is wrong, we're in ABI lock.
 
 Hmm... well I guessed if the timing syscalls could go in so could this
 one. I don't see a difference.

OK, if miod is ok with that, I'm ok too.

-Otto



Re: compat/linux: add mprotect() syscall

2011-02-10 Thread Paul Irofti
On Thu, Feb 10, 2011 at 01:53:21PM +0100, Otto Moerbeek wrote:
 On Thu, Feb 10, 2011 at 02:45:31PM +0200, Paul Irofti wrote:
 
  On Thu, Feb 10, 2011 at 01:15:37PM +0100, Otto Moerbeek wrote:
   On Thu, Feb 10, 2011 at 02:08:07PM +0200, Paul Irofti wrote:
   
This adds the mprotect syscall to the linux compat layer. This plus the
other time syscalls that went in will make the new versions of
applications such as Opera and Skype work.

Okay? 
   
   maybe, but your timing is wrong, we're in ABI lock.
  
  Hmm... well I guessed if the timing syscalls could go in so could this
  one. I don't see a difference.
 
 OK, if miod is ok with that, I'm ok too.

Miod asked me to post it here because he was unsure about always marking
it PROT_EXEC. Is that okay with you?



Re: compat/linux: add mprotect() syscall

2011-02-10 Thread Otto Moerbeek
On Thu, Feb 10, 2011 at 02:58:31PM +0200, Paul Irofti wrote:

 On Thu, Feb 10, 2011 at 01:53:21PM +0100, Otto Moerbeek wrote:
  On Thu, Feb 10, 2011 at 02:45:31PM +0200, Paul Irofti wrote:
  
   On Thu, Feb 10, 2011 at 01:15:37PM +0100, Otto Moerbeek wrote:
On Thu, Feb 10, 2011 at 02:08:07PM +0200, Paul Irofti wrote:

 This adds the mprotect syscall to the linux compat layer. This plus 
 the
 other time syscalls that went in will make the new versions of
 applications such as Opera and Skype work.
 
 Okay? 

maybe, but your timing is wrong, we're in ABI lock.
   
   Hmm... well I guessed if the timing syscalls could go in so could this
   one. I don't see a difference.
  
  OK, if miod is ok with that, I'm ok too.
 
 Miod asked me to post it here because he was unsure about always marking
 it PROT_EXEC. Is that okay with you?

Indeed, why are you manipulating the flags? I must be missing
something. Especially since you seem to introduce WX combinations.

-Otto



Re: compat/linux: add mprotect() syscall

2011-02-10 Thread David Coppa
On Thu, Feb 10, 2011 at 1:08 PM, Paul Irofti p...@irofti.net wrote:
 This adds the mprotect syscall to the linux compat layer. This plus the
 other time syscalls that went in will make the new versions of
 applications such as Opera and Skype work.

 Okay?

A similar patch was posted on tech@ some years ago.

http://marc.info/?l=openbsd-techm=119548686505743

adapted from netbsd.

I see yours is way more compact. If it has the same functionality,
then i'd like to have it in.

ciao,
david



Sanjajte u dvoje uz romantični poklon

2011-02-10 Thread Top Shop
Sanjajte u dvoje o ljubavi uz poklon za zaljubljene - Ljubavne
jastuD
nice!

Poklon za Dan zaljubljenih ne mora da bude skup, vaEno je da je od srca.
Poklonite svojoj ljubavi bilo koji jastuk iz navedene ponude, a mi Vam
poklanjamo par Ljubavnih jastuD
nica!

Kliknite ovde poruD
ite savršen poklon i uštedite ;

Top Shop

poklon

uz sve jastuke

Ova ponuda vaD9Di do 28.2.2011. ili do isteka zaliha

PoEurite - broj poklona je ograniD
en!

Kliknite ovde i pogledajte sve proizvode iz ove ponude:

2 x Sweet Dream Pillow

+ poklon

2 x Sweet Dream Pillow

Vaša cena: 2.990 rsd

Više

Pillow Pets

+ poklon

Pillow pets

Vaša cena: 2.290 rsd

Više

Univerzalni jastuk

+ poklon

Univerzalni jastuk - kost

Vaša cena: 690 rsd

Više

Aeropedic Pillow 2 za 1

+ poklon

MultifunkDE$na masaD9Dna poduška

Vaša cena: 3.990 rsd

Više

Support - a - pillow

+ poklon

Support - a - pillow

Vaša cena: 1.490 rsd

Više

Slimming Pillow

+ poklon

Slimming Pillow

Vaša cena: 3.990 rsd

Više

2 x Jastuk od heljde

+ poklon

2 x Jastuk od heljde

Vaša cena: 3.290 rsd

Više

Memosan Classic

+ poklon

Dormeo Memosan Classic

Vaša cena: 3.290 rsd

Više

Jastuk za kiD
mu

+ poklon

Jastuk za kiDE$mu

Vaša cena: 2.590 rsd

Više

6 saveta za Dan zaljubljenih:

1.

Napravite Destitku

Napišite pesmu ili posvetu koja odraD9Dava Vašu liDE$nost.

2.

Napravite album

Ispunite ga omiljenim fotografijama, omiljenim stihovima, zajedniDE$kim
uspomenama...

3.

Napravite CD sa zajedniD
kim omiljenim pesmama

Na kom De biti balade i ljubavne pesme koje oboje volite da slušate.

4.

Nakit je uvek dobar poklon

Za nju neka to bude privezak u obliku srca. Za njega narukvica u muškom
stilu sa ugraviranim imenima ili reD
ina koje za vas imaju poseban
znaD
aj.

5.

Poklonite cveDe u saksiji ili od stakla, neko koje ne vene

Ukoliko vaša ljubav voli cveDe, neka to bude sadnica za saksiju ili
baštu.

6.

Pripremite mu/joj omiljeno jelo za romantiD
nu veD
eru

Servirajte ga lepo i veD
erajte pod romentiD
nom svetlošDu sveDa.

PoruD
ite svoj jastuk i obezbedite romatiD
an poklon!

Ovu elektronsku poštu primate, ukoliko ste uDE$estvovali u nagradnim i
poklon igrama ili se registrovali na sajtu www.top-shop.rs ili nekom od
drugih sajtova Studio Moderne.

Ponuda data u ovom email-u vaD9Di iskljuDE$ivo za porudD9Dbine putem
sajta www.top-shop.rs ili putem broja telefona 021 489 26 50. Ponude
vaD9De do isteka zaliha. Isporuku vršimo samo na teritoriji Srbije.

Ukoliko ne D9Delite više da primate našu elektronsku poštu, za odjavu sa
naše e-mailing liste kliknite ovde . U obrazac na strani upišite svoju
e-mail adresu i odjavu potvrdite.

Studio Moderna d.o.o., Bulevar vojvode Stepe 30, 21 000 Novi Sad, Srbija
Tel: +381 21 489 26 50, Fax: + 381 21 489 29 08.

[IMAGE]If you would no longer like to receive our emails please
unsubscribe by clicking here.



Fw: Segue em anexo relatorio orcamento..

2011-02-10 Thread Andreia Amorim
[IMAGE] 1 anexos

Relatorio-orcamento.pdf (144,1 kb)

Segue em anexo o relatorio para orgamento.
tenha um bom dia.
__



Alege o locuinta pentru tine

2011-02-10 Thread Consilier CFI
Daca aveti probleme cu vizionarea acestui email dati [click aici] pentru
a vizualiza varianta online!

[IMAGE]

[IMAGE]

Newsletter 08.02.2011  

[IMAGE]

CaseFaraIntermediari.roUrmariti-ne pe Facebook!Urmariti-ne pe 
Twitter!Urmariti-ne pe Blogger!

[IMAGE]

Ultimele anunturi adaugate

Vezi toate anunturile

[IMAGE]

[IMAGE]

Apartament 4 camere - 1 Mai, Bucuresti

Apartament 4 camere - 1 Mai, Bucuresti

95.000 EUR

  VANZARE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Apartament 2 camere - Unirii, Bucuresti

Apartament 2 camere - Unirii, Bucuresti

220.000 EUR

  VANZARE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Apartament in vila - Parcul Carol, Bucuresti

Apartament in vila - Parcul Carol, Bucuresti

130.000 EUR

  VANZARE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Teren - Silistea Snagovului, Ilfov

Teren - Silistea Snagovului, Ilfov

960.000 EUR

  VANZARE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Teren - Snagov, Ilfov

Teren - Snagov, Ilfov

140.000 EUR

  VANZARE

DETALII ;

[IMAGE]

[IMAGE]

Publica si tu un anunt!

[IMAGE]

Stiri Imobiliare

Vezi toate stirile

[IMAGE]

[IMAGE]

Apartamentele noi au suprafete prea mari ca sa corespunda unei familii cu 
venituri medii

Apartamentele noi au suprafete prea mari ca sa corespunda unei familii cu
venituri medii
Oferta actuala de unitati rezidentiale este greu de comercializat atat
datorita pretului de vanzare, cat si a structurii acesteia, avand in
vedere ca majoritatea unitDE#ilor au suprafeE#! e prea mari, se aratD
nn cel mai recent raport al companiei de consultanE#D imobiliarD Jones
Lang ...[CITESTE TOT]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Ce obligatii fiscale are o asociatie de proprietari

Ce obligatii fiscale are o asociatie de proprietari
O asociatie de proprietari are drept scop, potrivit art. 4, alin.1 din
Legea nr. 230/2007 “Privind infiinE#area, organizarea si functionarea
asociaE#iilor de proprietari”, administrarea si gestionarea proprietatii
comune care, pe langa drepturi, impune si obligatii pentru toti ...[CITESTE
TOT]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Chiriile pentru birouri sunt aproape sau chiar au atins minimul

Chiriile pentru birouri sunt aproape sau chiar au atins minimul
Chiriile pentru spatiile de birouri clasa A, amplasate in zona centrala a
Bucurestiului, sunt aproape sau chiar au atins punctul minim, se arata in
cel mai recent raport al companiei de consultanta imobiliara Jones Lang
LaSalle. In trimestrul al patrulea din 2010, chiriile contractuale au 
...[CITESTE
TOT]

[IMAGE]

[IMAGE]

Oferte turistice

Vezi toate ofertele

[IMAGE]

[IMAGE]

Complex Select Holiday Villas - Bran, Brasov

Complex Select Holiday Villas - Bran, Brasov

90 EUR/luna

  INCHIRIERE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Complex Turistic Wolf - Bran, Brasov

Complex Turistic Wolf - Bran, Brasov

negociabil

  INCHIRIERE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Pensiunea Casa Berbecilor - Moieciu de Jos, Brasov

Pensiunea Casa Berbecilor - Moieciu de Jos, Brasov

negociabil

  INCHIRIERE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Pensiunea La Munte - Moeciu

Pensiunea La Munte - Moeciu

negociabil

  INCHIRIERE

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Pensiunea Vlahia Inn - Moieciu de Sus, Brasov

Pensiunea Vlahia Inn - Moieciu de Sus, Brasov

150 EUR/luna

  INCHIRIERE

DETALII ;

[IMAGE]

[IMAGE]

Publica si tu un anunt!

Stiri economice

Vezi toate stirile

[IMAGE]

[IMAGE]

Afacere: superburuieni pentru foc

Afacere: superburuieni pentru foc
Cultivarea salciei scandinave si a stufului chinezesc este abia la
inceput in Romania, spre deosebire de alte tari europene. Romanii nu se
inghesuie sa cultive balarii eficiente energetic pentru ca nu primesc
subventii; o astfel de cultura poate inlocui incalzirea cu lemne, cu
motorina ...[CITESTE TOT]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Tarifele la electricitate si gaze cresc in 2013-2015

Tarifele la electricitate si gaze cresc in 2013-2015
Tarifele la energia electrica si gaze vor creste in intervalul 2013-2015,
dupa ce Guvernul va elimina preturile reglementate, la cererea FMI, pe
baza unui calendar care va fi stabilit pana in septembrie 2011, urmand sa
fie definiti consumatorii considerati vulnerabili, care trebuie
protejati. ...[CITESTE TOT]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Boc: Restructurarea sectorului minier continua pana in 2018

Boc: Restructurarea sectorului minier continua pana in 2018
Procesul de restructurare a sectorului minier va continua pana in 2018,
conform normelor UE in domeniu, interval in care nicio unitate nu va fi
inchisa, a declarat, luni seara, premierul Emil Boc. El a precizat ca in
aceasta perioada vor fi efectuate analize si cautate solutii pentru
unitatile ...[CITESTE TOT]

[IMAGE]

[IMAGE]

Scoala romaneasca

Vezi toate scolile

[IMAGE]

[IMAGE]

Scoala  Nr. 195 

Scoala Nr. 195

Lunca Bradului Nr. 2

DETALII ;

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Scoala Nr, 205 

Scoala Nr, 205

Aleea Compozitorilor

DETALII