ucom(4) ttyU* doesn't EBUSY

2016-06-11 Thread Marcus Glocker
Currently one can open multiple instances of /dev/ttyU* since ucom(4) just checks 'TS_ISOPEN' against /dev/cuaU* access. There are quiet a lot of flags in ucom.c so it's a bit difficult to understand what the initial idea was. But moving the 'TS_ISOPEN' check before the UCOMCUA branch makes /dev/

less(1): pass errret to setupterm(3)

2016-06-11 Thread Anton Lindqvist
The setupterm(3) manual states: > If errret is not null, then setupterm returns OK or ERR and stores a > status value in the integer pointed to by errret. > ... > If errret is null, setupterm prints an error message upon finding an > error and exits. Since less(1) passes NULL, it will no

Re: cbfb: coreboot framebuffer console

2016-06-11 Thread Miod Vallat
> Index: arch/amd64/amd64/cbfb.c > +struct cfattach cbfb_ca = { > + sizeof(struct cbfb_softc), cbfb_match, cbfb_attach, NULL > +}; Make it const. > +void > +cbfb_rasops_preinit(struct cbfb *cbfb) > +{ > +#define bmnum(_x) (fls(_x) - ffs(_x) + 1) > +#define bmpos(_x) (ffs(_x) - 1) These two