source: rtems/cpukit/libfs/src/defaults/default_ioctl.c @ f68401e

4.11
Last change on this file since f68401e was ba120d1, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 31, 2013 at 1:17:57 PM

Filesystem: Use ENOTTY for default ioctl() handler

This is in line with Linux and FreeBSD.

  • Property mode set to 100644
File size: 622 bytes
Line 
1/**
2 * @file
3 *
4 * @brief RTEMS Default File System controls a STREAMS device
5 * @ingroup LibIOFSOps File System Operations
6 */
7
8/*
9 *  COPYRIGHT (c) 2010.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18  #include "config.h"
19#endif
20
21#include <rtems/libio_.h>
22
23int rtems_filesystem_default_ioctl(
24  rtems_libio_t   *iop,
25  ioctl_command_t  request,
26  void            *buffer
27)
28{
29  rtems_set_errno_and_return_minus_one( ENOTTY );
30}
Note: See TracBrowser for help on using the repository browser.