source: trunk/kLdr/kLdrDyldFind.c@ 2852

Last change on this file since 2852 was 2843, checked in by bird, 19 years ago

executable bootstrapping.

  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1/* $Id: kLdrDyldFind.c 2843 2006-10-30 04:16:08Z bird $ */
2/** @file
3 *
4 * kLdr - The Dynamic Loader, File Searching Methods.
5 *
6 * Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net>
7 *
8 *
9 * This file is part of kLdr.
10 *
11 * kLdr is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * kLdr is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kLdr; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 */
26
27
28
29/*******************************************************************************
30* Header Files *
31*******************************************************************************/
32#include <kLdr.h>
33#include "kLdrHlp.h"
34#include "kLdrInternal.h"
35
36
37/**
38 * Locates and opens a module using the specified search method.
39 *
40 * @returns 0 and *ppRdr on success, non-zero OS specific error on failure.
41 *
42 * @param pszName Partial or complete name, it's specific to the search method to determin which.
43 * @param pszPrefix Prefix than can be used when searching.
44 * @param pszSuffix Suffix than can be used when searching.
45 * @param enmSearch The file search method to apply.
46 * @param fFlags Search flags.
47 * @param ppMod Where to store the file provider instance on success.
48 */
49int kldrDyldFindNewModule(const char *pszName, const char *pszPrefix, const char *pszSuffix,
50 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKLDRDYLDMOD ppMod)
51{
52 *ppMod = NULL;
53 return -1;
54}
55
56
57/**
58 * Locates an already open module using the specified search method.
59 *
60 * @returns 0 and *ppMod on success, non-zero OS specific error on failure.
61 *
62 * @param pszName Partial or complete name, it's specific to the search method to determin which.
63 * @param pszPrefix Prefix than can be used when searching.
64 * @param pszSuffix Suffix than can be used when searching.
65 * @param enmSearch The file search method to apply.
66 * @param fFlags Search flags.
67 * @param ppMod Where to store the file provider instance on success.
68 */
69int kldrDyldFindExistingModule(const char *pszName, const char *pszPrefix, const char *pszSuffix,
70 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKLDRDYLDMOD ppMod)
71{
72 *ppMod = NULL;
73 return -1;
74}
75
Note: See TracBrowser for help on using the repository browser.