History log of /src/sys/compat/linux/common/linux_cdrom.c |
Revision | | Date | Author | Comments |
1.29 |
| 01-Oct-2024 |
riastradh | sys/compat/linux/common: Nix trailing whitespace, and one blank line.
No functional change intended.
|
1.28 |
| 07-Sep-2021 |
riastradh | sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.27 |
| 28-Apr-2008 |
martin | branches: 1.27.2; 1.27.80; 1.27.92; Remove clause 3 and 4 from TNF licenses
|
1.26 |
| 21-Mar-2008 |
ad | branches: 1.26.2; 1.26.4; Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
|
1.25 |
| 20-Dec-2007 |
dsl | branches: 1.25.6; Convert all the system call entry points from: int foo(struct lwp *l, void *v, register_t *retval) to: int foo(struct lwp *l, const struct foo_args *uap, register_t *retval) Fixup compat code to not write into 'uap' and (in some cases) to actually pass a correctly formatted 'uap' structure with the right name to the next routine. A few 'compat' routines that just call standard ones have been deleted. All the 'compat' code compiles (along with the kernels required to test build it). 98% done by automated scripts.
|
1.24 |
| 19-Oct-2007 |
njoly | branches: 1.24.4; 1.24.8; Add compat_linux and exec_linux_elf lkm support for amd64: - Add needed COMPAT_OSSAUDIO to GENERIC. - Add missing includes needed by linux_syscallargs.h. - Add lkm building.
|
1.23 |
| 30-Jun-2007 |
dsl | branches: 1.23.6; 1.23.8; 1.23.12; Use the new CDIOCREADSUBCHANNEL_BUF and CDIOREADTOCENTRIES_BUF ioctls to avoid copying into the stackgap.
|
1.22 |
| 04-Mar-2007 |
christos | branches: 1.22.2; 1.22.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.21 |
| 09-Feb-2007 |
ad | branches: 1.21.2; Merge newlock2 to head.
|
1.20 |
| 12-Jun-2006 |
christos | branches: 1.20.6; don't allocate a crapload of struct's on the stack. Use a couple of unions and use malloc for them.
|
1.19 |
| 11-Dec-2005 |
christos | branches: 1.19.4; 1.19.8; 1.19.14; merge ktrace-lwp.
|
1.18 |
| 26-Feb-2005 |
perry | branches: 1.18.4; nuke trailing whitespace
|
1.17 |
| 29-Jun-2003 |
fvdl | branches: 1.17.2; 1.17.10; 1.17.12; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.16 |
| 28-Jun-2003 |
darrenr | Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
1.15 |
| 21-Mar-2003 |
dsl | Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'. Avoids a lot of casting and removes the need for some line breaks. Removed a load of (caddr_t) casts from calls to copyin/copyout as well. (approved by christos - he has a plan to remove caddr_t...)
|
1.14 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.13 |
| 22-Mar-2002 |
christos | gc debugging printfs.
|
1.12 |
| 16-Mar-2002 |
christos | make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc * in, instead of using curproc). While there add an optional size argument to stackgap_init.
|
1.11 |
| 15-Feb-2002 |
christos | s/printf/uprintf/
|
1.10 |
| 13-Nov-2001 |
lukem | add RCSIDs (including regeneration of files as appropriate)
|
1.9 |
| 14-Jun-2001 |
thorpej | branches: 1.9.2; Fix a partial construction problem that can cause race conditions between creation of a file descriptor and close(2) when using kernel assisted threads. What we do is stick descriptors in the table, but mark them as "larval". This causes essentially everything to treat it as a non-existent descriptor, except for fdalloc(), which sees a filled slot so that it won't (incorrectly) allocate it again. When a descriptor is fully constructed, the code that has constructed it marks it as "mature" (which actually clears the "larval" flag), and things continue to work as normal.
While here, gather all the code that gets a descriptor from the table into a fd_getfile() function, and call it, rather than having the same (sometimes incorrect) code copied all over the place.
|
1.8 |
| 03-Feb-2001 |
fvdl | branches: 1.8.2; Oops, remove debugging printf.
|
1.7 |
| 03-Feb-2001 |
fvdl | For the read subchannel ioctl, don't mix up the data and address formats, and always set the track to 0, like Linux does.
|
1.6 |
| 10-Dec-2000 |
fvdl | Add some ioctls for harddisk, floppy disk and console handling. Implement a few extra cdrom ioctl calls. Make sure to correctly use FILE_USE and FILE_UNUSE.
|
1.5 |
| 29-Oct-1999 |
mycroft | branches: 1.5.6; Emulate the Linux DVD_* ioctls(2). This gets us 90% of the way to running the LiViD DVD player. (See forthcoming mail to current-users.) XXX NOTE: We should do something to probe capabilities, rather than allowing these ioctls on any device.
|
1.4 |
| 03-Oct-1998 |
christos | branches: 1.4.12; 1.4.14; 1.4.16; Remove stray debugging printfs
|
1.3 |
| 03-Oct-1998 |
christos | Attempt to fix the mess.
|
1.2 |
| 01-Oct-1998 |
erh | Moved compat/linux/linux_cdrom to common.
|
1.1 |
| 15-Jan-1998 |
christos | PR/4794: Urban Boquist: Linux cdrom ioctls are missing
|
1.4.16.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.4.14.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.4.12.3 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.4.12.2 |
| 13-Dec-2000 |
bouyer | Sync with HEAD (for UBC fixes).
|
1.4.12.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago
|
1.5.6.1 |
| 30-Mar-2001 |
he | Pull up revisions 1.6-1.8 (requested by fvdl): Add some required Linux emulation bits to support the Linux version of VMware.
|
1.8.2.5 |
| 29-May-2002 |
nathanw | #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t now that <sys/param.h> doesn't include <sys/sa.h>.
(Behold the Power of Ed)
|
1.8.2.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.8.2.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.8.2.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.8.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.9.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.9.2.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.9.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.17.12.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.17.10.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.17.2.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.17.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.17.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.17.2.1 |
| 02-Jul-2003 |
darrenr | Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
|
1.18.4.6 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.18.4.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.18.4.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.18.4.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.18.4.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.18.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.19.14.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.19.8.1 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.19.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.20.6.1 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.21.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.22.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.22.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.23.12.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.23.8.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.23.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.23.6.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.24.8.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.24.4.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.25.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.25.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.26.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.26.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.27.92.1 |
| 03-Aug-2022 |
martin | Pull up following revision(s), all via patch (requested by riastradh in ticket #1487):
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168 sys/compat/sunos/sunos_misc.c: revision 1.177 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52 sys/compat/common/kern_resource_43.c: revision 1.23 sys/compat/netbsd32/netbsd32_conv.h: revision 1.46 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35 sys/compat/common/vfs_syscalls_12.c: revision 1.38 sys/compat/ultrix/ultrix_misc.c: revision 1.126 sys/compat/common/kern_sig_43.c: revision 1.37 sys/compat/linux/common/linux_mtio.c: revision 1.8 sys/compat/freebsd/freebsd_misc.c: revision 1.34 sys/compat/freebsd/freebsd_machdep.c: revision 1.5 sys/compat/linux/common/linux_olduname.c: revision 1.67 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44 sys/compat/freebsd/freebsd_sched.c: revision 1.23 sys/compat/ossaudio/ossaudio.c: revision 1.84 sys/compat/sys/time_types.h: revision 1.6 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51 sys/compat/common/ieee80211_20.c: revision 1.7 sys/compat/linux/common/linux_file.c: revision 1.119 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34 sys/compat/netbsd32/netbsd32_wait.c: revision 1.25 sys/compat/linux32/common/linux32_time.c: revision 1.38 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52 sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46 sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36 sys/compat/ultrix/ultrix_ioctl.c: revision 1.39 sys/compat/linux/common/linux_misc.c: revision 1.252 sys/compat/linux/common/linux_hdio.c: revision 1.19 sys/compat/sunos/sunos_ioctl.c: revision 1.71 sys/compat/linux/common/linux_sched.c: revision 1.79 sys/compat/common/kern_info_43.c: revision 1.40 sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20 sys/compat/linux/common/linux_socket.c: revision 1.153 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60 sys/compat/common/vfs_syscalls_43.c: revision 1.68 sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9 sys/compat/common/kern_time_50.c: revision 1.37 sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42 sys/compat/linux/common/linux_cdrom.c: revision 1.28 sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43 sys/compat/common/kern_info_09.c: revision 1.22 sys/compat/linux32/common/linux32_resource.c: revision 1.12 sys/compat/linux/common/linux_oldolduname.c: revision 1.67 sys/compat/common/if_media_80.c: revision 1.4 sys/compat/linux/arch/alpha/linux_osf1.c: revision 1.5 sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8 sys/compat/linux32/common/linux32_signal.c: revision 1.21 sys/compat/common/kern_sig_13.c: revision 1.22 sys/compat/sunos32/sunos32_ioctl.c: revision 1.36 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23 sys/compat/netbsd32/netbsd32_time.c: revision 1.56 sys/compat/linux/common/linux_signal.c: revision 1.84 sys/compat/netbsd32/netbsd32_signal.c: revision 1.52 sys/compat/sunos32/sunos32_misc.c: revision 1.85 sys/compat/linux/common/linux_time.c: revision 1.40 sys/compat/linux/common/linux_fdio.c: revision 1.14 sys/compat/common/vfs_syscalls_30.c: revision 1.43
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.27.80.1 |
| 21-Jun-2023 |
martin | Pull up following revision(s) (requested by riastradh in ticket #1836):
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168 sys/compat/sunos/sunos_misc.c: revision 1.177 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52 sys/compat/common/kern_resource_43.c: revision 1.23 sys/compat/netbsd32/netbsd32_conv.h: revision 1.46 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35 sys/compat/common/vfs_syscalls_12.c: revision 1.38 sys/compat/ultrix/ultrix_misc.c: revision 1.126 sys/compat/common/kern_sig_43.c: revision 1.37 sys/compat/linux/common/linux_mtio.c: revision 1.8 sys/compat/freebsd/freebsd_misc.c: revision 1.34 sys/compat/linux/common/linux_olduname.c: revision 1.67 sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44 sys/compat/freebsd/freebsd_sched.c: revision 1.23 sys/compat/ossaudio/ossaudio.c: revision 1.84 sys/compat/sys/time_types.h: revision 1.6 sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51 sys/compat/linux/common/linux_file.c: revision 1.119 sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34 sys/compat/netbsd32/netbsd32_wait.c: revision 1.25 sys/compat/linux32/common/linux32_time.c: revision 1.38 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33 sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52 sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46 sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36 sys/compat/ultrix/ultrix_ioctl.c: revision 1.39 sys/compat/linux/common/linux_misc.c: revision 1.252 sys/compat/linux/common/linux_hdio.c: revision 1.19 sys/compat/sunos/sunos_ioctl.c: revision 1.71 sys/compat/linux/common/linux_sched.c: revision 1.79 sys/compat/common/kern_info_43.c: revision 1.40 sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20 sys/compat/linux/common/linux_socket.c: revision 1.153 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60 sys/compat/common/vfs_syscalls_43.c: revision 1.68 sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9 sys/compat/common/kern_time_50.c: revision 1.37 sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42 sys/compat/linux/common/linux_cdrom.c: revision 1.28 sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43 sys/compat/common/kern_info_09.c: revision 1.22 sys/compat/linux32/common/linux32_resource.c: revision 1.12 sys/compat/linux/common/linux_oldolduname.c: revision 1.67 sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8 sys/compat/linux32/common/linux32_signal.c: revision 1.21 sys/compat/common/kern_sig_13.c: revision 1.22 sys/compat/sunos32/sunos32_ioctl.c: revision 1.36 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23 sys/compat/netbsd32/netbsd32_time.c: revision 1.56 sys/compat/linux/common/linux_signal.c: revision 1.84 sys/compat/netbsd32/netbsd32_signal.c: revision 1.52 sys/compat/sunos32/sunos32_misc.c: revision 1.85 sys/compat/linux/common/linux_time.c: revision 1.40 sys/compat/linux/common/linux_fdio.c: revision 1.14 sys/compat/common/vfs_syscalls_30.c: revision 1.43
sys/compat: Memset zero before copyout.
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
|
1.27.2.2 |
| 14-May-2008 |
wrstuden | Per discussion with ad, remove most of the #include <sys/sa.h> lines as they were including sa.h just for the type(s) needed for syscallargs.h.
Instead, create a new file, sys/satypes.h, which contains just the types needed for syscallargs.h. Yes, there's only one now, but that may change and it's probably more likely to change if it'd be difficult to handle. :-)
Per discussion with matt at n dot o, add an include of satypes.h to sigtypes.h. Upcall handlers are kinda signal handlers, and signalling is the header file that's already included for syscallargs.h that closest matches SA.
This shaves about 3000 lines off of the diff of the branch relative to the base. That also represents about 18% of the total before this checkin.
I think this reduction is very good thing.
|
1.27.2.1 |
| 10-May-2008 |
wrstuden | Initial checkin of re-adding SA. Everything except kern_sa.c compiles in GENERIC for i386. This is still a work-in-progress, but this checkin covers most of the mechanical work (changing signalling to be able to accomidate SA's process-wide signalling and re-adding includes of sys/sa.h and savar.h). Subsequent changes will be much more interesting.
Also, kern_sa.c has received partial cleanup. There's still more to do, though.
|