Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!pilchuck!ssc!mcgp1!jgo From: jgo@mcgp1.UUCP (John Opalko, N7KBT) Newsgroups: comp.unix.questions Subject: Re: plock() Keywords: System V, 3B2, C Message-ID: <4677@mcgp1.UUCP> Date: 10 Dec 90 21:51:40 GMT References: Reply-To: jgo@mcgp1.UUCP (John Opalko) Distribution: usa Organization: McCaw Cellular Communications, Inc., Seattle Lines: 27 The plock() system call doesn't give your process a high priority, but it does prevent it from being swapped out. SYNOPSIS #include int plock (op) int op; Op specifies the following: PROCLOCK - lock text and data segments into memory (process lock) TXTLOCK - lock text segment into memory (text lock) DATLOCK - lock data segment into memory (data lock) UNLOCK - remove locks As you might suspect, you have to be root to use this hummer and, as usual, it returns 0 if successful and -1 if not, with the obligatory setting of errno. Hope this helps.