On Fri, 3 Aug 2007, amol wrote:
Hi,
I want to use the struct direct datastructure from the file ufs_fsdir.h -
just that
data structure in a proprietary code. I read the CDDL CDDL FAQ and i know I
am allowed to do that, but I am not sure how much source code I need to
release under CDDL.
Am I allowed to do the following?:
- take the data structure
- save it in a .h file, which will have the required license text present.
- make just this .h file open source and leave the .c files that use the data
structure closed-source.
Thanks,
Amol
If you're so horridly worried about licensing nits, I suggest to sidestep
_that_ problem.
Compare struct direct from:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/ufs_fsdir.h
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/ufs/ufs/dir.h?rev=1.12
The first one, CDDL/OpenSolaris, is:
struct direct {
uint32_td_ino; /* inode number of entry */
ushort_td_reclen; /* length of this record */
ushort_td_namlen; /* length of string in d_name */
chard_name[MAXNAMLEN + 1]; /* name must be no longer than this */
};
The second one, BSD/FreeBSD, is:
struct direct {
u_int32_t d_ino;/* inode number of entry */
u_int16_t d_reclen; /* length of this record */
u_int8_t d_type; /* file type, see below */
u_int8_t d_namlen; /* length of string in d_name */
char d_name[MAXNAMLEN + 1];/* name with length = MAXNAMLEN */
};
Layout compatible, but the second one is BSD licensed.
Finally:
For the real license zealots, pick:
http://lxr.linux.no/source/include/linux/ufs_fs.h#L326
In short, you have all options.
FrankH.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org