ipc/ statics

ipc/ statics

Post by Stephen Rothwel » Sat, 22 Jun 2002 13:50:05



Hi,

This patch just makes some stuff in ipc/ static.

--
Cheers,

http://www.canb.auug.org.au/~sfr/
 diff -ruN 2.5.24/ipc/msg.c 2.5.24-sfr.2/ipc/msg.c
--- 2.5.24/ipc/msg.c    Sat Sep 15 07:17:00 2001

        return 0;
 }

-int inline pipelined_send(struct msg_queue* msq, struct msg_msg* msg)
+static int inline pipelined_send(struct msg_queue* msq, struct msg_msg* msg)
 {
        struct list_head* tmp;

        return err;
 }

-int inline convert_mode(long* msgtyp, int msgflg)
+static int inline convert_mode(long* msgtyp, int msgflg)
 {
        /*
         *  find message of correct type.
diff -ruN 2.5.24/ipc/sem.c 2.5.24-sfr.2/ipc/sem.c
--- 2.5.24/ipc/sem.c    Thu May 30 05:12:31 2002

        }
 }

-int semctl_nolock(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_nolock(int semid, int semnum, int cmd, int version, union semun arg)
 {
        int err = -EINVAL;

        return err;
 }

-int semctl_main(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_main(int semid, int semnum, int cmd, int version, union semun arg)
 {
        struct sem_array *sma;

        }
 }

-int semctl_down(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_down(int semid, int semnum, int cmd, int version, union semun arg)
 {
        struct sem_array *sma;
        int err;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

ipc/ statics

Post by Stephen Rothwel » Sat, 22 Jun 2002 13:50:06


[Try two  - without the extra white space]

Hi,

This patch just makes some stuff in ipc/ static.

--
Cheers,

http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.24/ipc/msg.c 2.5.24-sfr.2/ipc/msg.c
--- 2.5.24/ipc/msg.c    Sat Sep 15 07:17:00 2001

        return 0;
 }

-int inline pipelined_send(struct msg_queue* msq, struct msg_msg* msg)
+static int inline pipelined_send(struct msg_queue* msq, struct msg_msg* msg)
 {
        struct list_head* tmp;

        return err;
 }

-int inline convert_mode(long* msgtyp, int msgflg)
+static int inline convert_mode(long* msgtyp, int msgflg)
 {
        /*
         *  find message of correct type.
diff -ruN 2.5.24/ipc/sem.c 2.5.24-sfr.2/ipc/sem.c
--- 2.5.24/ipc/sem.c    Thu May 30 05:12:31 2002

        }
 }

-int semctl_nolock(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_nolock(int semid, int semnum, int cmd, int version, union semun arg)
 {
        int err = -EINVAL;

        return err;
 }

-int semctl_main(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_main(int semid, int semnum, int cmd, int version, union semun arg)
 {
        struct sem_array *sma;

        }
 }

-int semctl_down(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_down(int semid, int semnum, int cmd, int version, union semun arg)
 {
        struct sem_array *sma;
        int err;

--
Cheers,

http://www.canb.auug.org.au/~sfr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. SYS V IPC, how does "ipcs" get list of existing IPC structures

I need to clean up after a process which tends to die leaving IPC structures
hanging about.  Currently I use "system" to run
"ipcs | grep $USERNAME | cut | ipcrm" to clean up the IPC structures for the
user.  What is the mechanism for obtaining all IPC structures for a given user
programatically?  (i.e.) How can I get a list of all message structures
created by a specific user so that I can delete them using "msgctl", "semctl",
etc.

                                                Glenn

2. FIND Question

3. Posix.1b IPC and SysV IPC

4. Reg Exp doesn't work

5. Berkeley IPC & SysV IPC

6. Solaris 8 Study Guide Now Available in PDA Format

7. AT&T IPC-802 /IPC-900 Drivers for SCO?

8. ** Result of "who" command incorrect **

9. Initializing BIG statics with raw data - ld guru needed!

10. Statics in Apache mod

11. ipv6 statics

12. PAS 16 statics problem

13. statics destructing and g++