file_tests.c File Reference

#include "op_file.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
Include dependency graph for file_tests.c:

Go to the source code of this file.

Functions

int main (void)

Variables

static char * tests [][2]

Detailed Description

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file file_tests.c.


Function Documentation

int main ( void   ) 

Definition at line 44 of file file_tests.c.

References tests.


Variable Documentation

char* tests[][2] [static]
Initial value:
 {
    { "/usr/bin/../bin", "/usr/bin" },
    { "/../usr/bin/", "/usr/bin" },
    { "/../../usr/bin/", "/usr/bin" },
    { "/../../usr/bin/.", "/usr/bin" },
    { "/../../usr/bin/./", "/usr/bin" },
    { "/usr/./bin", "/usr/bin" },
    { "/usr/././bin", "/usr/bin" },
    { "/usr///", "/usr" },
    { "../", "/" },
    { "./", "/usr" },
    { ".", "/usr" },
    { "./../", "/" },
    { "bin/../bin/../", "/usr" },
    { "../../../../../", "/" },
    { "/usr/bin/../../..", "/" },
    { "/usr/bin/../../../", "/" },
    { "././.", "/usr" },
    
    { "//", "/" },
    { "//usr", "/usr" },
    { "///", "/" },
    { NULL, NULL },
}

Definition at line 19 of file file_tests.c.

Referenced by main().


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1