source: rtems/testsuites/support/src/test_support.c @ 77998753

4.115
Last change on this file since 77998753 was 77998753, checked in by Sebastian Huber <sebastian.huber@…>, on 02/17/12 at 15:54:23

Use alternative API

Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().

  • Property mode set to 100644
File size: 819 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2010.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <fcntl.h>
17#include <tmacros.h>
18#include "test_support.h"
19#include <rtems/libcsupport.h>
20
21static char  Too_Long_Name[PATH_MAX + 2];
22static char  Longest_Name[PATH_MAX + 1];
23
24const char *Get_Too_Long_Name(void)
25{
26  int i;
27
28  for ( i=0; i <= PATH_MAX; i++ )
29    Too_Long_Name[i] = 'E';
30  Too_Long_Name[i] = '\0';
31  return Too_Long_Name;
32}
33
34const char *Get_Longest_Name(void)
35{
36  int i;
37
38  for ( i=0; i < PATH_MAX-1; i++ )
39    Longest_Name[i] = 'L';
40  Longest_Name[i] = '\0';
41  return Longest_Name;
42}
Note: See TracBrowser for help on using the repository browser.