Re: awk(1) error messages fix
On Tue, Jan 17, 2012 at 02:46:21PM +0100, Martin Pelikan wrote: > Here's one copy-paste error in awk(1). > CVS log mentions some upstream; anyone have idea what that is? They may > be interested... As I just wrote in private, those parts aren't in bwk's upstream code, so there's no point sending the diff to bwk. The diff itself looks fine, anyway. Ciao, Kili > Index: run.c > === > RCS file: /cvs/src/usr.bin/awk/run.c,v > retrieving revision 1.33 > diff -u -p -r1.33 run.c > --- run.c 28 Sep 2011 19:27:18 - 1.33 > +++ run.c 17 Jan 2012 13:42:19 - > @@ -1546,7 +1546,7 @@ Cell *bltin(Node **a, int n)/* builtin > break; > case FXOR: > if (nextarg == 0) { > - WARNING("or requires two arguments; returning 0"); > + WARNING("xor requires two arguments; returning 0"); > u = 0; > break; > } > @@ -1557,7 +1557,7 @@ Cell *bltin(Node **a, int n)/* builtin > break; > case FLSHIFT: > if (nextarg == 0) { > - WARNING("or requires two arguments; returning 0"); > + WARNING("lshift requires two arguments; returning 0"); > u = 0; > break; > } > @@ -1568,7 +1568,7 @@ Cell *bltin(Node **a, int n)/* builtin > break; > case FRSHIFT: > if (nextarg == 0) { > - WARNING("or requires two arguments; returning 0"); > + WARNING("rshift requires two arguments; returning 0"); > u = 0; > break; > }
Re: SiS 5513 rev 0x015597/5598 freeze & diff
Jonathan Gray [j...@goblin.cx] wrote: > > I've committed this now. Unknown SiS devices could still be attached > with udma disabled if we were sure the 5597/5598 case is only > used in machines with 5597_HB and and another else. Ironically, according to Logan's experience as he tried to get this working, the 5597/5598 code worked fine in UDMA mode on his 968, but didn't work in MW DMA mode. I suggested that he try to move the 5597/5598 check to sis_hostbr. The chip also has a pure SATA pciide mode that apparently works and AHCI.
Re: awk(1) rshift/lshift on the borders of int
Martin Pelikan napsal: > I can't say anything more than 'this solved my problem', which was > > $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e > 'obase=16' > FF80 > vs. > $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e > 'obase=16' > DE > > I hope it starts a discussion (at least), but I don't really know what > the correct way is to these problems. > > -- > Martin Pelikan > Hello Martin, You reached int boundary, so You received minimal number possible. I do not think extending boundary is good solution (that way you will reach it soon again). To demonstrate: $ awk 'BEGIN { printf("%d\n","0x7fff") }' 2147483647 $ awk 'BEGIN { printf("%d\n","0x8000") }' $ awk 'BEGIN { printf("%d\n","0x8001") }' $ awk 'BEGIN { printf("%d\n","0x") }' $ awk 'BEGIN { printf("%d\n","0xfeedbeef") }' $ awk 'BEGIN { printf("%d\n","0xf") }' -2147483648 In my point of view, You should solve the problem elsehow. For example splitting that big number to smaller or just trim last six characters (it depends on problem you have) Best regards -- Jakub TuD ek/otaznik
La Serie Definitiva Completa Digitalizada Y Remasterizada 2012 Imperdible ref.ruta
si no podes visualizar este correo, podes hacerlo clickeando en este enlace. LOS PITUFOS 12 DVDs DE COLECCION Serie Completa Remasterizada Calidad DVD 100% Esta edicion definitiva reune la serie completa con una digitalizacion increible en 12 DVDs con audio latino identico al emitido en sus principios por TV. Envio SIN CARGO a todo el Pais !!! Lo paga cuando lo recibe en la puerta de su casa. Para visitar la web y ver todo los detalles haga clic aqui ((( Haga Click Aca Para Ver Detalle Completo Y Comprar ))) Para ser eliminado de nuestras listas envienos un email y en asunto aclarar REMOVER control de envio: yphsqjmfoicxhgithwcbhfv
Re: Only noise from azalia
On Tue, Jan 17, 2012 at 08:28:12AM -0200, Daniel Bolgheroni wrote: > On Mon, Jan 16, 2012 at 08:49:13PM -0200, Jairo Souto wrote: > > I can get only noise from the audio of a notebook Acer Aspire > > 5820T-6825. > > > > OpenBSD uranio.dlg 4.9 GENERIC.MP#6 amd64 > > > > The snapshots until "9051675 Jan 13 19:04 bsd.mp" have not worked. > > > > dmesg, audioctl -a and mixerctl -av are attached. > > > > I do need your help. Thank you. > > Basic question: have you tried 5.0 or -current? I have been tried all bsd.mp from ftp.openbsd.org:/pub/OpenBSD/snapshots/amd64/bsd.mp > > (This thread is more appropriate to misc@.) misc@ did not answer... > Thank you. --Jairo Souto (38)8816-1254
awk(1) rshift/lshift on the borders of int
I can't say anything more than 'this solved my problem', which was $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e 'obase=16' FF80 vs. $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e 'obase=16' DE I hope it starts a discussion (at least), but I don't really know what the correct way is to these problems. -- Martin Pelikan Index: run.c === RCS file: /cvs/src/usr.bin/awk/run.c,v retrieving revision 1.33 diff -u -p -r1.33 run.c --- run.c 28 Sep 2011 19:27:18 - 1.33 +++ run.c 17 Jan 2012 15:01:32 - @@ -1562,7 +1562,7 @@ Cell *bltin(Node **a, int n) /* builtin break; } y = execute(a[1]->nnext); - u = ((int)getfval(x)) << ((int)getfval(y)); + u = ((long long)getfval(x)) << ((long long)getfval(y)); tempfree(y); nextarg = nextarg->nnext; break; @@ -1573,7 +1573,7 @@ Cell *bltin(Node **a, int n) /* builtin break; } y = execute(a[1]->nnext); - u = ((int)getfval(x)) >> ((int)getfval(y)); + u = ((long long)getfval(x)) >> ((long long)getfval(y)); tempfree(y); nextarg = nextarg->nnext; break;
awk(1) error messages fix
Hi! Here's one copy-paste error in awk(1). CVS log mentions some upstream; anyone have idea what that is? They may be interested... -- Martin Pelikan Index: run.c === RCS file: /cvs/src/usr.bin/awk/run.c,v retrieving revision 1.33 diff -u -p -r1.33 run.c --- run.c 28 Sep 2011 19:27:18 - 1.33 +++ run.c 17 Jan 2012 13:42:19 - @@ -1546,7 +1546,7 @@ Cell *bltin(Node **a, int n) /* builtin break; case FXOR: if (nextarg == 0) { - WARNING("or requires two arguments; returning 0"); + WARNING("xor requires two arguments; returning 0"); u = 0; break; } @@ -1557,7 +1557,7 @@ Cell *bltin(Node **a, int n) /* builtin break; case FLSHIFT: if (nextarg == 0) { - WARNING("or requires two arguments; returning 0"); + WARNING("lshift requires two arguments; returning 0"); u = 0; break; } @@ -1568,7 +1568,7 @@ Cell *bltin(Node **a, int n) /* builtin break; case FRSHIFT: if (nextarg == 0) { - WARNING("or requires two arguments; returning 0"); + WARNING("rshift requires two arguments; returning 0"); u = 0; break; }
etc/rc.d/sendmail diff
The sendmail daemon can be in a state where it is rejecting new messages and sets the proc title accordingly. The current rc.d script ignores sendmail if it is in this state. $ pgrep -lf sendmail 459 sendmail: rejecting new messages: min free: 100 I don't believe the wildcard following '(accepting|rejecting)' is really needed either, but left it in. Index: sendmail === RCS file: /home/danh/.cvs/openbsd/src/etc/rc.d/sendmail,v retrieving revision 1.4 diff -u -p -r1.4 sendmail --- sendmail12 Jul 2011 05:40:55 - 1.4 +++ sendmail17 Jan 2012 11:59:54 - @@ -6,7 +6,7 @@ daemon="/usr/sbin/sendmail" . /etc/rc.d/rc.subr -pexp="(sendmail: accepting.*|${daemon}* -(q[0-9]|bd)*)" +pexp="(sendmail: (accepting|rejecting).*|${daemon}* -(q[0-9]|bd)*)" rc_bg=YES
Replace your expensive paper labels with Pan Pen®
Throw out your paper labels and start saving today View this email online at: http://foodservice.greatvaluezone.com/DEK_Presents/FSM/2012/1-Panpen/index.ht ml Purchase now: http://www.panpenstore.com About: http://www.panpens.com/#!about Gallery: http://www.panpens.com/#!gallery Testimonials: http://www.panpens.com/#!testimonials One Pan Pen package is equal to 30,000 paper labels. Watch our video: http://www.panpens.com/ Pricing Get one package of Pan Pens for only $14 Get two packages of Pan Pens for only $25 And refills for only $6.99 Get your Pan Pen: http://www.panpenstore.com What is Pan Pen Pan PenB. is the one and only cost effective replacement for sticky paper label rolls used in the food service industry. Itbs a pen with a special marking point that can write on any non-porous surface and then be washed clean in hot dish water or with a dry rag. Click for details: http://www.panpens.com/#!about Pan Pen can be used on b" Food Prep Holding Pans b" Hot-Well Pans b" Bags and Boxes b" Laminated Check Lists b" And Much More! Click to purchase your Pan Pen today http://www.panpenstore.com Why Pan Pen Because your food has to be labeled. Because you want to do it in the most efficient and cost effective way. Would you rather buy rolls of labels every week that can cost between $10 and $20 per roll or would you like to buy a set of two Pan PenB. with 20 refills that can last up to a year or much more for a small fraction of the overall cost? You will cut the time it takes to write on labels, peel labels, and adhere them to the food prep because now you can write on the pan! Click for details: http://www.panpens.com/#!about Get your Pan Pen today Click to purchase your Pan Pen: http://www.panpenstore.com For bulk purchasing please call 800.803.1849 Corporate chains please contact us via http://www.panpens.com -- www.FoodService.GreatValueZone.com B) 2011 Machalek Communications, Inc. Carefully selected products & services for your restaurant or food service establishment. 12550 W. Frontage Rd. Suite 220 Burnsville, MN 55337 b" 800.846.5520 Did this go into your junk mail? Click to learn how to whitelist us. http:///foodservice.greatvaluezone.com/whitelist.cfm
memory leak in OpenSSH
Hello, this diff fixes a memory leak in OpenSSH. I have compiled it, but could not test the code path. This function is always called with an already initialized buffer. bye, Jan Index: authfile.c === RCS file: /mount/cvsdev/cvs/openbsd/src/usr.bin/ssh/authfile.c,v retrieving revision 1.92 diff -u -w -p -r1.92 authfile.c --- authfile.c 14 Jun 2011 22:49:18 - 1.92 +++ authfile.c 17 Jan 2012 10:13:53 - @@ -329,7 +329,7 @@ key_load_file(int fd, const char *filena filename == NULL ? "" : " "); return 0; } - buffer_init(blob); + buffer_clear(blob); for (;;) { if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) { if (errno == EPIPE)
Re: diff: fix compiler warnings of npppd
On Thursday, January 12, 2012 14:30 CET, YASUOKA Masahiko wrote: > This fixes many compiler warnings and some styles. > > ok? since I'm testing npppd to get mobile phone to run, I tested this diff. The hunk to npppd/npppd_radius.c doesn't apply, seems to be already in the tree: Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -- |Index: npppd/npppd_radius.c |=== |RCS file: /cvs/src/usr.sbin/npppd/npppd/npppd_radius.c,v |retrieving revision 1.1 |diff -u -p -r1.1 npppd_radius.c |--- npppd/npppd_radius.c 6 Jul 2011 20:52:28 - 1.1 |+++ npppd/npppd_radius.c 15 Oct 2011 07:19:38 - -- Patching file npppd/npppd_radius.c using Plan A... Reversed (or previously applied) patch detected! Assume -R? [y] n Apply anyway? [n] Hunk #1 ignored at 120. Hunk #2 ignored at 151. Hunk #3 ignored at 198. 3 out of 3 hunks ignored--saving rejects to npppd/npppd_radius.c.rej So ignoring this part, the rest applies well, and then compiling is also working like a charm, no warnings anymore. tested on amd63 My OK may probably not count much here but you get it: OK sebastia@ cheers, Sebastian > > Index: l2tp/l2tp.h > === > RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tp.h,v > retrieving revision 1.5 > diff -u -p -r1.5 l2tp.h > --- l2tp/l2tp.h 15 Oct 2011 03:24:11 - 1.5 > +++ l2tp/l2tp.h 15 Oct 2011 07:19:35 - > @@ -313,7 +313,7 @@ typedef struct _l2tpd { > /** timeout event context */ > struct event ev_timeout; > /** instance ID */ > - unsigned id; > + u_int id; > /** listener list */ > slist listener; > /** state */ > @@ -347,7 +347,7 @@ typedef struct _l2tpd { > typedef struct _l2tp_ctrl { > struct event ev_timeout; > /** ID */ > - unsigned id; > + u_int id; > /** parent L2TPD */ > l2tpd *l2tpd; > /** listener index number */ > @@ -425,7 +425,7 @@ typedef struct _l2tp_ctrl { > */ > typedef struct _l2tp_call { > /** ID */ > - unsignedid; > + u_int id; > /** state */ > int state; > /** parent control connection */ > @@ -475,10 +475,10 @@ void l2tpd_release_call (l2t > int l2tpd_start (l2tpd *); > void l2tpd_stop (l2tpd *); > void l2tpd_stop_immediatly (l2tpd *); > -l2tp_ctrl*l2tpd_get_ctrl (l2tpd *, int); > +l2tp_ctrl*l2tpd_get_ctrl (l2tpd *, u_int); > void l2tpd_add_ctrl (l2tpd *, l2tp_ctrl *); > void l2tpd_ctrl_finished_notify(l2tpd *); > -void l2tpd_remove_ctrl (l2tpd *, int); > +void l2tpd_remove_ctrl (l2tpd *, u_int); > int l2tpd_add_listener (l2tpd *, int, const char *, struct > sockaddr *); > void l2tpd_log (l2tpd *, int, const char *, ...) > __attribute__((__format__ (__printf__, 3, 4))); > > Index: l2tp/l2tp_ctrl.c > === > RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tp_ctrl.c,v > retrieving revision 1.7 > diff -u -p -r1.7 l2tp_ctrl.c > --- l2tp/l2tp_ctrl.c 15 Oct 2011 03:24:11 - 1.7 > +++ l2tp/l2tp_ctrl.c 15 Oct 2011 07:19:36 - > @@ -93,7 +93,7 @@ static inline const char *l2tp_ctrl_sta > #endif > > /* Sequence # of l2tp_ctrl ID */ > -static unsigned l2tp_ctrl_id_seq = 0; > +static u_int l2tp_ctrl_id_seq = 0; > > #define SEQ_LT(a,b) ((int16_t)((a) - (b)) < 0) > #define SEQ_GT(a,b) ((int16_t)((a) - (b)) > 0) > Index: l2tp/l2tp_subr.h > === > RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tp_subr.h,v > retrieving revision 1.3 > diff -u -p -r1.3 l2tp_subr.h > --- l2tp/l2tp_subr.h 2 Jul 2010 21:20:57 - 1.3 > +++ l2tp/l2tp_subr.h 15 Oct 2011 07:19:36 - > @@ -83,13 +83,13 @@ avp_set_val32(struct l2tp_avp *avp, uint > static inline int > short_cmp(const void *m, const void *n) > { > - return (int)((int)m - (int)n); > + return ((intptr_t)m - (intptr_t)n); > } > > static inline uint32_t > short_hash(const void *v, int sz) > { > - return (int)v % sz; > + return ((uintptr_t)v % sz); > } > > /* > Index: l2tp/l2tpd.c > === > RCS file: /cvs/src/usr.sbin/npppd/l2tp/l2tpd.c,v > retrieving revision 1.6 > diff -u -p -r1.6 l2tpd.c > --- l2tp/l2tpd.c 16 Mar 2011 09:49:11 - 1.6 > +++ l2tp/l2tpd.c 15 Oct 2011 07:19:36 - > @@ -80,7 +80,7 @@ static inline int short_cmp (const > static inline uint32_t short_hash (const void *, int); > > /* sequence # of l2tpd ID */ > -static unsigned l2tpd_id_seq = 0; > +static u_int l2tpd_id_seq = 0; > > #ifndef USE_LIBSOCKUTIL > struct in_ipsec_sa_cookie
Re: Only noise from azalia
On Mon, Jan 16, 2012 at 08:49:13PM -0200, Jairo Souto wrote: > I can get only noise from the audio of a notebook Acer Aspire > 5820T-6825. > > OpenBSD uranio.dlg 4.9 GENERIC.MP#6 amd64 > > The snapshots until "9051675 Jan 13 19:04 bsd.mp" have not worked. > > dmesg, audioctl -a and mixerctl -av are attached. > > I do need your help. Thank you. Basic question: have you tried 5.0 or -current? (This thread is more appropriate to misc@.)