Renamed findproc() to _pm_findproc() to reduce polluting of application

namespace.
This commit is contained in:
Ben Gras
2006-03-25 04:49:04 +00:00
parent d9544b38d3
commit 7b58dd7f9b
13 changed files with 20 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ libc_FILES=" \
_allocmem.c \
_brk.c \
_devctl.c \
_findproc.c \
__pm_findproc.c \
_freemem.c \
_getnpid.c \
_getsigset.c \

View File

@@ -1,10 +1,9 @@
#include <lib.h>
#define findproc _findproc
#define _pm_findproc __pm_findproc
#include <unistd.h>
#include <string.h>
PUBLIC int findproc(proc_name, proc_nr)
PUBLIC int _pm_findproc(proc_name, proc_nr)
char *proc_name; /* name of process to search for */
int *proc_nr; /* return process number here */
{

View File

@@ -4,6 +4,7 @@ LIBRARIES=libc
libc_FILES=" \
_exit.s \
_pm_findproc.s \
access.s \
alarm.s \
allocmem.s \
@@ -29,7 +30,6 @@ libc_FILES=" \
execve.s \
execvp.s \
fcntl.s \
findproc.s \
fork.s \
fpathconf.s \
freemem.s \

View File

@@ -0,0 +1,7 @@
.sect .text
.extern ___pm_findproc
.define __pm_findproc
.align 2
__pm_findproc:
jmp ___pm_findproc

View File

@@ -1,7 +0,0 @@
.sect .text
.extern __findproc
.define _findproc
.align 2
_findproc:
jmp __findproc

View File

@@ -20,9 +20,9 @@ char *name;
size_t len;
message m;
r= findproc("pci", &pci_procnr);
r= _pm_findproc("pci", &pci_procnr);
if (r != 0)
panic("pci", "pci_init1: findproc failed for 'pci'", r);
panic("pci", "pci_init1: _pm_findproc failed for 'pci'", r);
m.m_type= BUSC_PCI_INIT;
len= strlen(name);