Renamed findproc() to _pm_findproc() to reduce polluting of application
namespace.
This commit is contained in:
@@ -8,7 +8,7 @@ libc_FILES=" \
|
||||
_allocmem.c \
|
||||
_brk.c \
|
||||
_devctl.c \
|
||||
_findproc.c \
|
||||
__pm_findproc.c \
|
||||
_freemem.c \
|
||||
_getnpid.c \
|
||||
_getsigset.c \
|
||||
|
||||
@@ -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 */
|
||||
{
|
||||
@@ -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 \
|
||||
|
||||
7
lib/syscall/_pm_findproc.s
Normal file
7
lib/syscall/_pm_findproc.s
Normal file
@@ -0,0 +1,7 @@
|
||||
.sect .text
|
||||
.extern ___pm_findproc
|
||||
.define __pm_findproc
|
||||
.align 2
|
||||
|
||||
__pm_findproc:
|
||||
jmp ___pm_findproc
|
||||
@@ -1,7 +0,0 @@
|
||||
.sect .text
|
||||
.extern __findproc
|
||||
.define _findproc
|
||||
.align 2
|
||||
|
||||
_findproc:
|
||||
jmp __findproc
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user