Sponsored Content
Full Discussion: IPCop
Top Forums UNIX for Dummies Questions & Answers IPCop Post 37034 by jwbrown on Tuesday 10th of June 2003 03:30:32 PM
Old 06-10-2003
IPCop

I had this in the Networking section but was not getting any answers. Does anyone here know anything about this software?


I just recently heard about IPCop. I am curious if anyone knows anything about this program/os and if I should attempt to use it. I currently have a cable modem connected straight to my pc with a trial version firewall. But what I want is to setup IPCop on a pc and connect the cable modem to it then connect that pc to a hub/switch and connect my computers to it. Also, I am curious if with this setup I could connect my work laptop to it and then use my work vpn client? A lot of questions, I know but I haven't had the time to read up on this yet and I need to set it up tomorrow or buy a router, if I set it up this way I don't have to buy anything because I have all the listed items. Thanks for any and all help. Oh, and if I have put this in the wrong thread please move it or let me know thanks.
 
PROC_COMPARE(3) 					   BSD Library Functions Manual 					   PROC_COMPARE(3)

NAME
proc_compare -- compare two processes' interactivity LIBRARY
System Utilities Library (libutil, -lutil) SYNOPSIS
#include <sys/sysctl.h> int proc_compare(const struct kinfo_proc2 *p1, const struct kinfo_lwp *l1, const struct kinfo_proc2 *p2, const struct kinfo_lwp *l2); DESCRIPTION
The proc_compare() function compares two processes that are on the same terminal for their interactivity. This means that the process returned is the one that has a better chance being the active foreground process on that tty. This algorithm is used in the kernel for SIGINFO reporting and in userland by w(1). The algorithm used is as follows: o If one of them is runnable, it is preferred. o If both are runnable, the one with the largest CPU percent is preferred. o In a CPU percent tie, the one started more recently wins. o If none are runnable, and one of them is a zombie, the non-zombie is preferred o If both are zombies, the one started more recently wins. o If neither is a zombie, the one with the smaller sleep time wins. o In a tie, and one is sleeping in non-interruptible sleep, prefer that one. o If both are in the same state, the one started more recently is preferred. In all cases where the most recently started wins, if there was no winner, the one with the largest PID wins. RETURN VALUES
The proc_compare() function returns 0 if p1 is to be preferred and 1 if p2 is to be preferred. SEE ALSO
w(1) HISTORY
The proc_compare() was extracted from src/sys/kern/tty.c and src/usr.bin/w/proc_compare.c and merged in NetBSD 6.0. BSD
October 20, 2011 BSD
All times are GMT -4. The time now is 06:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy