linux_ioctl.c (301430) | linux_ioctl.c (306294) |
---|---|
1/*- 2 * Copyright (c) 1994-1995 S��ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include "opt_compat.h" 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1995 S��ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include "opt_compat.h" 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: stable/10/sys/compat/linux/linux_ioctl.c 301430 2016-06-05 07:40:12Z dchagin $"); | 32__FBSDID("$FreeBSD: stable/10/sys/compat/linux/linux_ioctl.c 306294 2016-09-24 10:34:35Z dchagin $"); |
33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/sysproto.h> 37#include <sys/capsicum.h> 38#include <sys/cdio.h> 39#include <sys/dvdio.h> 40#include <sys/conf.h> --- 250 unchanged lines hidden (view full) --- 291 return (error); 292 sectorsize = mediasize / sectorsize; 293 /* 294 * XXX: How do we know we return the right size of integer ? 295 */ 296 return (copyout(§orsize, (void *)args->arg, 297 sizeof(sectorsize))); 298 break; | 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/sysproto.h> 37#include <sys/capsicum.h> 38#include <sys/cdio.h> 39#include <sys/dvdio.h> 40#include <sys/conf.h> --- 250 unchanged lines hidden (view full) --- 291 return (error); 292 sectorsize = mediasize / sectorsize; 293 /* 294 * XXX: How do we know we return the right size of integer ? 295 */ 296 return (copyout(§orsize, (void *)args->arg, 297 sizeof(sectorsize))); 298 break; |
299 case LINUX_BLKSSZGET: 300 error = fo_ioctl(fp, DIOCGSECTORSIZE, 301 (caddr_t)§orsize, td->td_ucred, td); 302 fdrop(fp, td); 303 if (error) 304 return (error); 305 return (copyout(§orsize, (void *)args->arg, 306 sizeof(sectorsize))); 307 break; |
|
299 } 300 fdrop(fp, td); 301 return (ENOIOCTL); 302} 303 304/* 305 * termio related ioctls 306 */ --- 3371 unchanged lines hidden --- | 308 } 309 fdrop(fp, td); 310 return (ENOIOCTL); 311} 312 313/* 314 * termio related ioctls 315 */ --- 3371 unchanged lines hidden --- |