Re: [osol-code] SIOC*TUNPARAM

2008-06-17 Thread Garrett D'Amore
Peter Memishian wrote: > [ This is unrelated to the original topic; changing subject. It'd be nice > if we could stay on-point. ] > > > > > 2) I did find *one* potential issue in ON, which is that struct > > > > iftun_req has a size of 600. All other ioctls defined in ON header > > > >

Re: [osol-code] device list

2008-06-17 Thread Artem Kachitchkine
sharath wrote: > hi. I am working on my academic project in sun on designing the device > manager for opensolaris based distro. so, i need help in generating the > devices list. i am using the prtconf -pv command to obtain the device id and > vendor id. How do i map these to device type. You mi

Re: [osol-code] utmpx

2008-06-17 Thread Neale Ferguson
Thanks. The problem turned out to be related to the ABI of the platform I'm porting to. lseek32 has an off32_t parameter. The ABI specifies that ints are sign extended so the compiler can bypass doing the sign extending when lseek32 calls lseek32_common. I added some "thunking" code to do the pr

[osol-code] device list

2008-06-17 Thread sharath
hi. I am working on my academic project in sun on designing the device manager for opensolaris based distro. so, i need help in generating the devices list. i am using the prtconf -pv command to obtain the device id and vendor id. How do i map these to device type. This message posted from o

Re: [osol-code] SIOC*TUNPARAM

2008-06-17 Thread Peter Memishian
[ This is unrelated to the original topic; changing subject. It'd be nice if we could stay on-point. ] > > > 2) I did find *one* potential issue in ON, which is that struct > > > iftun_req has a size of 600. All other ioctls defined in ON header > > > files use sizes that won't be tru

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread James Carlson
Garrett D'Amore writes: > Peter Memishian wrote: > > > files use sizes that won't be truncated.The ioctls impacted are > > > SIOCGTUNPARAM and SIOCSTUNPARAM. > > > > FWLIW, those ioctls are gone in the Clearview gate and will be gone from > > ON when Clearview IP Tunneling integrates. > >

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Garrett D'Amore
James Carlson wrote: > Garrett D'Amore writes: > >>> So, with the putback for 6711665 we have a small >>> binary incompatibility. >>> >>> >> Ouch. How much of a concern is this (for this particular case)? >> > > Here's a way in which it's a concern: meem rightly notes that the >

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Garrett D'Amore
Peter Memishian wrote: > > 1) The macros themselves that make use of _IOCPARM_MASK (_IOR, _IOW, > > _IORW) are "private" to ON. That is, external code shouldn't be > > directly using them. kqemu falls down here. I'm not sure we need to > > worry about that. > > But the macros are older th

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Garrett D'Amore
Alan Coopersmith wrote: > Garrett D'Amore wrote: > >> 1) The macros themselves that make use of _IOCPARM_MASK (_IOR, _IOW, >> _IORW) are "private" to ON. That is, external code shouldn't be >> directly using them. >> > > Are they? I've been working to get our DRI/DRM (graphics direct >

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread James Carlson
Garrett D'Amore writes: > > So, with the putback for 6711665 we have a small > > binary incompatibility. > > > Ouch. How much of a concern is this (for this particular case)? Here's a way in which it's a concern: meem rightly notes that the macros are ancient in origin (with the UCB warning la

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Peter Memishian
> 1) The macros themselves that make use of _IOCPARM_MASK (_IOR, _IOW, > _IORW) are "private" to ON. That is, external code shouldn't be > directly using them. kqemu falls down here. I'm not sure we need to > worry about that. But the macros are older than dirt and common in other Unice

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread James Carlson
Garrett D'Amore writes: > 1) Undo the change entirely. > 2) Define some "compatibility" versions of the macros that are useful > only to these older ioctls, and make those ioctls use them. > 3) Ignore the potential for breakage, on some belief (and I don't > advocate this) that nobody outside of

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Alan Coopersmith
Garrett D'Amore wrote: > 1) The macros themselves that make use of _IOCPARM_MASK (_IOR, _IOW, > _IORW) are "private" to ON. That is, external code shouldn't be > directly using them. Are they? I've been working to get our DRI/DRM (graphics direct rendering, not media rights/restrictions) chan

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Garrett D'Amore
Darren J Moffat wrote: > Garrett D'Amore wrote: >> Jürgen Keil wrote: >>> Hmm, in the past, nothing prevented me from passing >>> ioctl parameter structures with a size > 255. >>> >>> qemu and it's kqemu kernel module are actually using such a big >>> structure with the KQEMU_EXEC ioctl. >>> >>

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Jürgen Keil
Garrett D'Amore wrote > Jürgen Keil wrote: > > The putback for 6711665 did break kqemu for me, > > because the kernel module was compiled on bits before > > the 6711665 putback, and the qemu application that is > > using the ioctl was compiled after the putback. > > The old kernel module didn't un

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Darren J Moffat
Garrett D'Amore wrote: > Jürgen Keil wrote: >> Hmm, in the past, nothing prevented me from passing >> ioctl parameter structures with a size > 255. >> >> qemu and it's kqemu kernel module are actually using such >> a big structure with the KQEMU_EXEC ioctl. >> > > Ah, but the encoded size in t

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Garrett D'Amore
Jürgen Keil wrote: > Hmm, in the past, nothing prevented me from passing > ioctl parameter structures with a size > 255. > > qemu and it's kqemu kernel module are actually using such > a big structure with the KQEMU_EXEC ioctl. > Ah, but the encoded size in the ioctl will be truncated. If you

Re: [osol-code] ON b79 non-debug build on x86: Command failed for target 'dtrace'

2008-06-17 Thread Daniel Shelepov
I've checked until the point where the dtrace directory is entered (several screens back), and there is no indication of error. Here are some more lines immediately preceding the portion that I posted in the first post. ... .. /usr/bin/rm -f /cs/systems/home/dsa5/Sol_old_ws/proto/root_i3

[osol-code] /usr/bin/ld fails in OpenSolaris 2008.05

2008-06-17 Thread Joachim Worringen
Greetings, just installed OpenSolaris 2008.05 on a new box - very nice, BUT: ld fails to link (to do anything, actually)! [EMAIL PROTECTED]:/usr/bin$ ldd ld libld.so.4 =>/usr/bin/../../lib/libld.so.4 libld.so.4 (SUNWprivate_4.2) => (version not found) libelf.so.1 =>

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Garrett D'Amore
James Carlson wrote: > Jürgen Keil writes: > >> James D. Carlson wrote: >> >>> Can you explain the incompatibility you found in more >>> detail? Perhaps in the form of a complete bug report? >>> >> The KQEMU_EXEC ioctl was defined like this: >> >> % grep KQEMU_EXEC kqemu.h >> #defin

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread James Carlson
Jürgen Keil writes: > James D. Carlson wrote: > > Can you explain the incompatibility you found in more > > detail? Perhaps in the form of a complete bug report? > > The KQEMU_EXEC ioctl was defined like this: > > % grep KQEMU_EXEC kqemu.h > #define KQEMU_EXEC _IOWR('q', 1, struct kq

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Jürgen Keil
> > In particular, how did the kqemu private ioctl change after this > > integration? > > 0xc2487101 => 0xc2487101 Sorry, typo. Of cause it did change, from 0xc0487101 => 0xc2487101 This message posted from opensolaris.org ___ opensolaris-code mai

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Jürgen Keil
James D. Carlson wrote: > Jürgen Keil writes: > > The putback for 6711665 did break kqemu for me, > > because the kernel module was compiled on bits before > > the 6711665 putback, and the qemu application that is > > using the ioctl was compiled after the putback. > > The old kernel module didn't

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread James Carlson
Jürgen Keil writes: > The putback for 6711665 did break kqemu for me, > because the kernel module was compiled on bits before > the 6711665 putback, and the qemu application that is > using the ioctl was compiled after the putback. The > old kernel module didn't understand the new ioctl codes > an

Re: [osol-code] ON b79 non-debug build on x86: Command failed for target 'dtrace'

2008-06-17 Thread James Carlson
Daniel Shelepov writes: > No, the mail message doesn't seem to give any additional insight. Here is the > relevant output (no errors or warnings until this point): Look in the nightly.log file, and scan upwards from the first line with the "not remade because" string in it. You should see a comp

Re: [osol-code] increasing size of IOCPARM_MASK in ioccom.h?

2008-06-17 Thread Jürgen Keil
Hmm, in the past, nothing prevented me from passing ioctl parameter structures with a size > 255. qemu and it's kqemu kernel module are actually using such a big structure with the KQEMU_EXEC ioctl. The putback for 6711665 did break kqemu for me, because the kernel module was compiled on bits be