]> Zhao Yanbai Git Server - minix.git/commitdiff
Renamed findproc() to _pm_findproc() to reduce polluting of application
authorBen Gras <ben@minix3.org>
Sat, 25 Mar 2006 04:49:04 +0000 (04:49 +0000)
committerBen Gras <ben@minix3.org>
Sat, 25 Mar 2006 04:49:04 +0000 (04:49 +0000)
namespace.

13 files changed:
drivers/dp8390/dp8390.c
drivers/dpeth/dp.c
drivers/fxp/fxp.c
drivers/lance/lance.c
drivers/rtl8139/rtl8139.c
include/unistd.h
lib/other/Makefile.in
lib/other/__pm_findproc.c [moved from lib/other/_findproc.c with 82% similarity]
lib/syscall/Makefile.in
lib/syscall/_pm_findproc.s [new file with mode: 0644]
lib/syscall/findproc.s [deleted file]
lib/syslib/pci_init1.c
servers/inet/mnx_eth.c

index c0f8cd78d47677facff0d863dfb866efd71554cb..2873120111df5885ad3d34182ba270a4a5383391 100644 (file)
@@ -195,7 +195,7 @@ int main(int argc, char *argv[])
        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);
 
index 06d43d26f952356c89bd5e03265b0a4efdb132f3..8894b1396b5bdc46cd0770c95674a7b67ba18eda 100644 (file)
@@ -579,7 +579,7 @@ PUBLIC int main(int argc, char **argv)
 #endif
 
   /* Try to notify inet that we are present (again) */
-  rc = findproc("inet", &tasknr);
+  rc = _pm_findproc("inet", &tasknr);
   if (rc == OK)
        notify(tasknr);
 
index 0617779da5de9b86a57cad442265087f0c4ae32a..223cb81b630006e5f343c1c11fdb11c7cb5230ef 100644 (file)
@@ -284,7 +284,7 @@ int main(int argc, char *argv[])
 #endif
 
        /* Try to notify inet that we are present (again) */
-       r = findproc("inet", &tasknr);
+       r = _pm_findproc("inet", &tasknr);
        if (r == OK)
                notify(tasknr);
 
index 15909cb78c1d61d643c45510a75193c634466c4d..8f8ee997753c21cf5cc72baf153b7622310988ad 100644 (file)
@@ -327,7 +327,7 @@ void main( int argc, char **argv )
   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);
 
index 456369b75e8a12c9504871df57cce96883905b8c..2d7c81e8af999d24690fd225dcf125434ddcb48c 100755 (executable)
@@ -303,7 +303,7 @@ int main(int argc, char *argv[])
         * 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);
 
 
index d4a25d26b3afb5d39ecafad33228f8cdd2293163..2d50fcf980d204f5195ba2bad2544b294ef9b9ba 100755 (executable)
@@ -180,7 +180,7 @@ _PROTOTYPE( int getsigset, (sigset_t *sigset)                               );
 _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
index 2fbc0467bd524a86c093c340a7095261a4d69ec3..e941573976285d03c13d3c55e2d7e01ba053467b 100644 (file)
@@ -8,7 +8,7 @@ libc_FILES=" \
        _allocmem.c \
        _brk.c \
        _devctl.c \
-       _findproc.c \
+       __pm_findproc.c \
        _freemem.c \
        _getnpid.c \
        _getsigset.c \
similarity index 82%
rename from lib/other/_findproc.c
rename to lib/other/__pm_findproc.c
index c57189e9aa5e4fa08ba4b714d99d7e1fdc97563d..deaa260762f4bffc6f7545b9611c48f779e12c49 100644 (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 */
 {
index 932c6f5f90c476cc796124a51da04b12bf0b1a38..c3b7490b1bf65d55cffcdab2f0c8a179cc1df236 100644 (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 \
diff --git a/lib/syscall/_pm_findproc.s b/lib/syscall/_pm_findproc.s
new file mode 100644 (file)
index 0000000..93c4b3b
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        ___pm_findproc
+.define        __pm_findproc
+.align 2
+
+__pm_findproc:
+       jmp     ___pm_findproc
diff --git a/lib/syscall/findproc.s b/lib/syscall/findproc.s
deleted file mode 100644 (file)
index 806e484..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-.sect .text
-.extern        __findproc
-.define        _findproc
-.align 2
-
-_findproc:
-       jmp     __findproc
index d46e4807bd130d19d75e49df70aff6f6015e6f66..443ca1a98280d38fce449f5980296d93fc2bb519 100644 (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);
index 50dbb7de6652dbfd9ff4fed13faac2b11d363167..75a810e12ab83beda4322ed004d379b564d20dc8 100644 (file)
@@ -46,7 +46,7 @@ PUBLIC void osdep_eth_init()
 #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)
                {