namespace.
eth_ign_proto= htons((u16_t) v);
/* Try to notify inet that we are present (again) */
- r = findproc("inet", &tasknr);
+ r = _pm_findproc("inet", &tasknr);
if (r == OK)
notify(tasknr);
#endif
/* Try to notify inet that we are present (again) */
- rc = findproc("inet", &tasknr);
+ rc = _pm_findproc("inet", &tasknr);
if (rc == OK)
notify(tasknr);
#endif
/* Try to notify inet that we are present (again) */
- r = findproc("inet", &tasknr);
+ r = _pm_findproc("inet", &tasknr);
if (r == OK)
notify(tasknr);
eth_ign_proto= htons((u16_t) v);
/* Try to notify inet that we are present (again) */
- r = findproc("inet", &tasknr);
+ r = _pm_findproc("inet", &tasknr);
if (r == OK)
notify(tasknr);
* not yet alive.
*/
(progname=strrchr(argv[0],'/')) ? progname++ : (progname=argv[0]);
- r = findproc("inet", &inet_proc_nr);
+ r = _pm_findproc("inet", &inet_proc_nr);
if (r == OK) notify(inet_proc_nr);
_PROTOTYPE( int getprocnr, (void) );
_PROTOTYPE( int getnprocnr, (pid_t pid) );
_PROTOTYPE( int getpprocnr, (void) );
-_PROTOTYPE( int findproc, (char *proc_name, int *proc_nr) );
+_PROTOTYPE( int _pm_findproc, (char *proc_name, int *proc_nr) );
_PROTOTYPE( int allocmem, (phys_bytes size, phys_bytes *base) );
_PROTOTYPE( int freemem, (phys_bytes size, phys_bytes base) );
#define DEV_MAP 1
_allocmem.c \
_brk.c \
_devctl.c \
- _findproc.c \
+ __pm_findproc.c \
_freemem.c \
_getnpid.c \
_getsigset.c \
#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 */
{
libc_FILES=" \
_exit.s \
+ _pm_findproc.s \
access.s \
alarm.s \
allocmem.s \
execve.s \
execvp.s \
fcntl.s \
- findproc.s \
fork.s \
fpathconf.s \
freemem.s \
--- /dev/null
+.sect .text
+.extern ___pm_findproc
+.define __pm_findproc
+.align 2
+
+__pm_findproc:
+ jmp ___pm_findproc
+++ /dev/null
-.sect .text
-.extern __findproc
-.define _findproc
-.align 2
-
-_findproc:
- jmp __findproc
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);
#ifdef __minix_vmd
r= sys_findproc(ecp->ec_task, &tasknr, 0);
#else /* Minix 3 */
- r = findproc(ecp->ec_task, &tasknr);
+ r = _pm_findproc(ecp->ec_task, &tasknr);
#endif
if (r != OK)
{