This commit is contained in:
Ralf Corsepius
2010-08-30 12:25:10 +00:00
parent 80a7533ab6
commit ec34180ff4
2 changed files with 0 additions and 83 deletions

View File

@@ -1,48 +0,0 @@
/**
* @file devctl.h
*/
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#ifndef _DEVCTL_H
#define _DEVCTL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <unistd.h>
#if defined(_POSIX_DEVICE_CONTROL)
#include <sys/types.h>
#include <unistd.h>
/*
* 21.2.1 Control a Device, P1003.4b/D8, p. 65
*/
int devctl(
int filedes,
void *dev_data_ptr,
size_t nbyte,
int *dev_info_ptr
);
#endif
#ifdef __cplusplus
}
#endif
#endif
/* end of include file */

View File

@@ -1,35 +0,0 @@
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <devctl.h>
#include <errno.h>
#include <rtems/system.h>
#include <rtems/seterr.h>
/*PAGE
*
* 21.2.1 Control a Device, P1003.4b/D8, p. 65
*/
int devctl(
int filedes __attribute__((unused)),
void *dev_data_ptr __attribute__((unused)),
size_t nbyte __attribute__((unused)),
int *dev_info_ptr __attribute__((unused))
)
{
rtems_set_errno_and_return_minus_one( ENOSYS );
}