source: rtems/c/src/lib/libc/termiosreserveresources.c @ cf1f72e

4.104.114.84.95
Last change on this file since cf1f72e was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 802 bytes
Line 
1/*
2 *  Reserve enough resources to open every physical device once.
3 *
4 * $Id$
5 */
6
7#include <rtems.h>
8
9#if 0
10static int first_time;   /* assumed to be zeroed by BSS initialization */
11#endif
12
13void rtems_termios_reserve_resources (
14  rtems_configuration_table *configuration,
15  rtems_unsigned32           number_of_devices
16)
17{
18#if 0
19        rtems_api_configuration_table *rtems_config;
20
21
22        if (!configuration)
23                rtems_fatal_error_occurred (0xFFF0F001);
24        rtems_config = configuration->RTEMS_api_configuration;
25        if (!rtems_config)
26                rtems_fatal_error_occurred (0xFFF0F002);
27        if (!first_time)
28                rtems_config->maximum_semaphores += 1;
29        first_time = 1;
30        rtems_config->maximum_semaphores += (4 * number_of_devices);
31#endif
32}
33
Note: See TracBrowser for help on using the repository browser.