Sponsored Content
Full Discussion: Open source project
Top Forums Shell Programming and Scripting Open source project Post 302652109 by Corona688 on Wednesday 6th of June 2012 02:35:26 PM
Old 06-06-2012
1) Make the changes.
2) Talk to the people who made the program, to see if they're interested in your changes.
 

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Recruiting for an open source project

I am posting this gauge the level of interest among the community in forming an open source team to work on an automation harness I am about to make available. I already have a working POC running at my place of work, but it is not secure enough for production environments. However, I am about... (6 Replies)
Discussion started by: steadyonabix
6 Replies

2. Shell Programming and Scripting

Feedback on "withsome" open source project

I have been developing an open source UNIX project for a few years and am looking for feedback on whether further development of the "withsome" project is of interest to other programmers. One simple example to give an idea of the project is: withsome ./pugs vi Pugs.pm 1)... (0 Replies)
Discussion started by: ronaldxs
0 Replies
people(2)							System Calls Manual							 people(2)

NAME
people - fetch a structure containing all ttys, whose owner behaves like a human SYNOPSIS
#include <sys/people.h> #include <asr.h> int people (struct ppl_tty **ttys); DESCRIPTION
The people function fetches a short description of every tty, whose coupled process behaves as an actual human. It returns a newly malloc'ed array with just enough elements to contain all elements needed for this. The struct ppl_tty is declared as: struct ppl_tty { char tty_path[MAX_PATH_LENGTH]; int is_erratic; int uses_jobcontrol; int is_amoron; int is_aluser; int has_aclue; pid_t pgrp_leader; }; RETURN VALUES
On success people returns the number of elements in ttys , on failure it returns -1 and errno is set to an appropriate value. ERRORS
ENOENT There are no human-behavioured processes on the system EBUSY The kernel is busy and will not stand this silly behaviour. Caution to call people again, from the same process, as the kernel might kill it right away. ENODEV See ENOENT above. EUSERS Too many of the people found were lusers. The cut-off for this error is system dependent, but is usually about 3. EXAMPLE
#include <sys/people.h> #include <asr.h> #include <signal.h> int main (int argc, char **argv) { struct ppl_tty **ttys; int rv,c; rv=people(ttys); if (rv!=-1) { for (c=0;c<rv;c++) if ((ttys[c].is_amoron)||(ttys[c].is_aluser)) { kill(-(ttys[c].pgrp_leader),SIGKILL); } } else { ; /* Handle errors in a graceful way... */ } } AUTHOR
This man page was written by Ingvar Mattsson, as a contribution to the a.s.r man page collection. 4th Berkeley Distribution Release 0.01 alpha people(2)
All times are GMT -4. The time now is 02:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy