docs: clarification to license headers in files

Add license header to all files.  The summary of licensing is below,
taken from Craig Small's email which is referred in commit message
tail.

sysctl and pgrep are GPL 2+
The rest is LGPL 2.1+

Reference: http://www.freelists.org/post/procps/Incorrect-FSF-address-in-the-license-files,8
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=797962
CC: Craig Small <csmall@enc.com.au>
CC: Jaromir Capik <jcapik@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2012-03-02 13:29:36 +01:00 committed by Craig Small
parent f5e2277a2e
commit ce61089059
36 changed files with 573 additions and 163 deletions

View File

@ -1,4 +1,21 @@
// This is to test the compiler. /*
* This is to test the compiler.
* Copyright (C) Albert Cahalan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/resource.h> #include <sys/resource.h>
@ -15,7 +32,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
// Foul POS defines all sorts of stuff... /* Foul POS defines all sorts of stuff... */
#include <term.h> #include <term.h>
#undef tab #undef tab

View File

@ -1,12 +1,19 @@
/* /*
* Copyright 1998,2004 by Albert Cahalan; all rights reserved. * Copyright 1998,2004 by Albert Cahalan
* This file may be used subject to the terms and conditions of the *
* GNU Library General Public License Version 2, or any later version * This library is free software; you can redistribute it and/or
* at your option, as published by the Free Software Foundation. * modify it under the terms of the GNU Lesser General Public
* This program is distributed in the hope that it will be useful, * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* This is a minimal /bin/ps, designed to be smaller than the old ps /* This is a minimal /bin/ps, designed to be smaller than the old ps

View File

@ -1,13 +1,28 @@
/* /*
* w.c v1.4 * w.c - show logged users and what they are doing
*
* An alternative "w" program for Linux.
* Shows users and their processes.
* *
* Copyright (c) Dec 1993, Oct 1994 Steve "Mr. Bassman" Bryant * Copyright (c) Dec 1993, Oct 1994 Steve "Mr. Bassman" Bryant
* bassman@hpbbi30.bbn.hp.com (Old address) * bassman@hpbbi30.bbn.hp.com (Old address)
* bassman@muttley.soc.staffs.ac.uk * bassman@muttley.soc.staffs.ac.uk
* *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* An alternative "w" program for Linux.
* Shows users and their processes.
*
* Info: * Info:
* I starting writing as an improvement of the w program included * I starting writing as an improvement of the w program included
* with linux. The idea was to add in some extra functionality to the * with linux. The idea was to add in some extra functionality to the

View File

@ -1,3 +1,22 @@
/*
* utmp.c - utmp printing command
* Copyright (C) Albert Cahalan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

18
free.c
View File

@ -2,14 +2,28 @@
* free.c - free(1) * free.c - free(1)
* procps-ng utility to display free memory information * procps-ng utility to display free memory information
* *
* Copyright (C) 1992-2012
*
* Mostly new, Sami Kerola <kerolasa@iki.fi> 15 Apr 2011 * Mostly new, Sami Kerola <kerolasa@iki.fi> 15 Apr 2011
* All new, Robert Love <rml@tech9.net> 18 Nov 2002 * All new, Robert Love <rml@tech9.net> 18 Nov 2002
* Original by Brian Edmonds and Rafal Maszkowski 14 Dec 1992 * Original by Brian Edmonds and Rafal Maszkowski 14 Dec 1992
* *
* This program is licensed under the GNU Library General Public License, v2
*
* Copyright 2003 Robert Love * Copyright 2003 Robert Love
* Copyright 2004 Albert Cahalan * Copyright 2004 Albert Cahalan
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,5 +1,23 @@
/* /*
* strutils.c - various string routines shared by commands
* This file was copied from util-linux at fall 2011. * This file was copied from util-linux at fall 2011.
*
* Copyright (C) 2010 Karel Zak <kzak@redhat.com>
* Copyright (C) 2010 Davidlohr Bueso <dave@gnu.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdlib.h> #include <stdlib.h>

23
pgrep.c
View File

@ -1,17 +1,24 @@
/* emacs settings: -*- c-basic-offset: 8 tab-width: 8 -*- /*
*
* pgrep/pkill -- utilities to filter the process table * pgrep/pkill -- utilities to filter the process table
* *
* Copyright 2000 Kjetil Torgrim Homme <kjetilho@ifi.uio.no> * Copyright 2000 Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
*
* May be distributed under the conditions of the
* GNU General Public License; a copy is in COPYING
*
* Changes by Albert Cahalan, 2002,2006. * Changes by Albert Cahalan, 2002,2006.
* *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <limits.h> #include <limits.h>

22
pmap.c
View File

@ -1,12 +1,20 @@
/* /*
* Copyright 2002 by Albert Cahalan; all rights reserved. * pmap.c - print process memory mapping
* This file may be used subject to the terms and conditions of the * Copyright 2002 Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <ctype.h> #include <ctype.h>

View File

@ -1,9 +1,22 @@
// Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com /*
// Copyright 2002 Albert Cahalan * alloc.c - memory allocation functions
// * Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
// This file is placed under the conditions of the GNU Library * Copyright 2002 Albert Cahalan
// General Public License, version 2, or any later version. *
// See file COPYING for information on distribution conditions. * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2002 by Albert Cahalan; all rights resered. * devname - device name functions
* This file may be used subject to the terms and conditions of the * Copyright 1998-2002 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,13 +1,22 @@
/* /*
* Copyright 1998-2002 by Albert Cahalan; all rights resered. * escape.c - printing handling
* This file may be used subject to the terms and conditions of the * Copyright 1998-2002 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*/ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>

View File

@ -1,13 +1,22 @@
/* /*
* Copyright 1998-2003 by Albert Cahalan; all rights reserved. * ksym.c - kernel symbol handling
* This file may be used subject to the terms and conditions of the * Copyright 1998-2003 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -1,11 +1,25 @@
// Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com /*
// Note: most likely none of his code remains * pwcache.c - memory cache passwd file handling
// *
// Copyright 2002, Albert Cahalan * Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
// * Note: most likely none of his code remains
// This file is placed under the conditions of the GNU Library *
// General Public License, version 2, or any later version. * Copyright 2002, Albert Cahalan
// See file COPYING for information on distribution conditions. *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -3,8 +3,20 @@
* Copyright (C) 1996 Charles L. Blake. * Copyright (C) 1996 Charles L. Blake.
* Copyright (C) 1998 Michael K. Johnson * Copyright (C) 1998 Michael K. Johnson
* Copyright 1998-2003 Albert Cahalan * Copyright 1998-2003 Albert Cahalan
* May be distributed under the conditions of the *
* GNU Library General Public License; a copy is in COPYING * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "version.h" #include "version.h"

View File

@ -1,13 +1,22 @@
/* /*
* Copyright 1998-2003 by Albert Cahalan; all rights resered. * sig.c - signal name, and number, conversions
* This file may be used subject to the terms and conditions of the * Copyright 1998-2003 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <ctype.h> #include <ctype.h>
#include <signal.h> #include <signal.h>
#include <string.h> #include <string.h>

View File

@ -4,10 +4,22 @@
* Chris Rivera <cmrivera@ufl.edu> * Chris Rivera <cmrivera@ufl.edu>
* Robert Love <rml@tech9.net> * Robert Love <rml@tech9.net>
* *
* This program is licensed under the GNU Library General Public License, v2
*
* Copyright (C) 2003 Chris Rivera * Copyright (C) 2003 Chris Rivera
* Copyright 2004, Albert Cahalan * Copyright 2004, Albert Cahalan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,13 +1,23 @@
// Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com /*
// Copyright 1998-2003 Albert Cahalan * File for parsing top-level /proc entities.
// * Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
// This file is placed under the conditions of the GNU Library * Copyright 1998-2003 Albert Cahalan
// General Public License, version 2, or any later version. * June 2003, Fabian Frederick, disk and slab info
// See file COPYING for information on distribution conditions. *
// * This library is free software; you can redistribute it and/or
// File for parsing top-level /proc entities. */ * modify it under the terms of the GNU Lesser General Public
// * License as published by the Free Software Foundation; either
// June 2003, Fabian Frederick, disk and slab info * version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,11 +1,23 @@
/* Suite version information for procps-ng utilities /*
* Suite version information for procps-ng utilities
* Copyright (c) 1995 Martin Schulze <joey@infodrom.north.de> * Copyright (c) 1995 Martin Schulze <joey@infodrom.north.de>
* Ammended by cblake to only export the function symbol. * Ammended by cblake to only export the function symbol.
* *
* Modified by Albert Cahalan, ????-2003 * Modified by Albert Cahalan, ????-2003
* *
* Redistributable under the terms of the * This library is free software; you can redistribute it and/or
* GNU Library General Public License; see COPYING * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,4 +1,5 @@
/* This is a trivial uptime program. I hereby release this program /*
* This is a trivial uptime program. I hereby release this program
* into the public domain. I disclaim any responsibility for this * into the public domain. I disclaim any responsibility for this
* program --- use it at your own risk. (as if there were any.. ;-) * program --- use it at your own risk. (as if there were any.. ;-)
* -michaelkjohnson (johnsonm@sunsite.unc.edu) * -michaelkjohnson (johnsonm@sunsite.unc.edu)
@ -11,6 +12,19 @@
* Modified by J. Cowley to add printing the uptime message to a * Modified by J. Cowley to add printing the uptime message to a
* string (for top) and to optimize file handling. 19 Mar 1993. * string (for top) and to optimize file handling. 19 Mar 1993.
* *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2003 by Albert Cahalan; all rights resered. * display.c - display ps output
* This file may be used subject to the terms and conditions of the * Copyright 1998-2003 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <grp.h> #include <grp.h>

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2002 by Albert Cahalan; all rights resered. * global.c - generic ps symbols and functions
* This file may be used subject to the terms and conditions of the * Copyright 1998-2002 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <fcntl.h> #include <fcntl.h>

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2004 by Albert Cahalan; all rights reserved. * help.c - ps help output
* This file may be used subject to the terms and conditions of the * Copyright 1998-2004 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <errno.h> #include <errno.h>

View File

@ -1,13 +1,20 @@
/* /*
* Copyright 1999-2004 by Albert Cahalan; all rights reserved. * output.c - ps output definitions
* Copyright 1999-2004 by Albert Cahalan
* *
* This file may be used subject to the terms and conditions of the * This library is free software; you can redistribute it and/or
* GNU Library General Public License Version 2, or any later version * modify it under the terms of the GNU Lesser General Public
* at your option, as published by the Free Software Foundation. * License as published by the Free Software Foundation; either
* This program is distributed in the hope that it will be useful, * version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* /*

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2003 by Albert Cahalan; all rights reserved. * parser.c - ps command options parser
* This file may be used subject to the terms and conditions of the * Copyright 1998-2003 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/* Ought to have debug print stuff like this: /* Ought to have debug print stuff like this:

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2002 by Albert Cahalan; all rights resered. * select.c - ps process selection
* This file may be used subject to the terms and conditions of the * Copyright 1998-2002 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,12 +1,20 @@
/* /*
* Copyright 1998-2004 by Albert Cahalan; all rights resered. * sortformat - ps output sorting
* This file may be used subject to the terms and conditions of the * Copyright 1998-2004 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <grp.h> #include <grp.h>

View File

@ -1,8 +1,23 @@
/* /*
* stacktrace.c - ps debugging additions
* Gnu debugger stack trace code provided by Peter Mattis * Gnu debugger stack trace code provided by Peter Mattis
* <petm@CSUA.Berkeley.EDU> on Thu, 2 Nov 1995 * <petm@CSUA.Berkeley.EDU> on Thu, 2 Nov 1995
* *
* Modified for easy use by Albert Cahalan. * Modified for easy use by Albert Cahalan.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <errno.h> #include <errno.h>

21
pwdx.c
View File

@ -1,13 +1,20 @@
/* /*
* pwdx.c - print process working directory
* Copyright 2004 Nicholas Miell * Copyright 2004 Nicholas Miell
* *
* This file may be used subject to the terms and conditions of the * This library is free software; you can redistribute it and/or
* GNU Library General Public License Version 2 as published by the * modify it under the terms of the GNU Lesser General Public
* Free Software Foundation.This program is distributed in the hope * License as published by the Free Software Foundation; either
* that it will be useful, but WITHOUT ANY WARRANTY; without even the * version 2.1 of the License, or (at your option) any later version.
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR *
* PURPOSE. See the GNU Library General Public License for more * This library is distributed in the hope that it will be useful,
* details. * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <errno.h> #include <errno.h>

23
skill.c
View File

@ -1,13 +1,22 @@
/* /*
* Copyright 1998-2002 by Albert Cahalan; all rights resered. * skill.c - send a signal to process
* This file may be used subject to the terms and conditions of the * Copyright 1998-2002 by Albert Cahalan
* GNU Library General Public License Version 2, or any later version *
* at your option, as published by the Free Software Foundation. * This library is free software; you can redistribute it and/or
* This program is distributed in the hope that it will be useful, * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* GNU Library General Public License for more details. * Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <ctype.h> #include <ctype.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>

View File

@ -4,9 +4,21 @@
* Chris Rivera <cmrivera@ufl.edu> * Chris Rivera <cmrivera@ufl.edu>
* Robert Love <rml@tech9.net> * Robert Love <rml@tech9.net>
* *
* This program is licensed under the GNU Library General Public License, v2
*
* Copyright (C) 2003 Chris Rivera * Copyright (C) 2003 Chris Rivera
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <locale.h> #include <locale.h>

View File

@ -2,12 +2,20 @@
* Sysctl 1.01 - A utility to read and manipulate the sysctl parameters * Sysctl 1.01 - A utility to read and manipulate the sysctl parameters
* *
* "Copyright 1999 George Staikos * "Copyright 1999 George Staikos
* This file may be used subject to the terms and conditions of the GNU *
* General Public License Version 2, or any later version at your option, as * This program is free software; you can redistribute it and/or
* published by the Free Software Foundation. This program is distributed in * modify it under the terms of the GNU General Public License
* the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * as published by the Free Software Foundation; either version 2
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * of the License, or (at your option) any later version.
* PURPOSE. See the GNU General Public License for more details." *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* Changelog: * Changelog:
* v1.01: * v1.01:

15
tload.c
View File

@ -8,7 +8,22 @@
* Copyright (c) 1992 Branko Lankester * Copyright (c) 1992 Branko Lankester
* /proc changes by David Engel (david@ods.com) * /proc changes by David Engel (david@ods.com)
* Made a little more efficient by Michael K. Johnson (johnsonm@sunsite.unc.edu) * Made a little more efficient by Michael K. Johnson (johnsonm@sunsite.unc.edu)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "proc/version.h" #include "proc/version.h"
#include "proc/sysinfo.h" #include "proc/sysinfo.h"
#include "c.h" #include "c.h"

View File

@ -1,3 +1,22 @@
/*
* uptime.c - display system uptime
* Copyright (C) 2012 Craig Small <csmall-procps@enc.com.au>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <errno.h> #include <errno.h>
#include <getopt.h> #include <getopt.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,4 +1,5 @@
/* old: "Copyright 1994 by Henry Ware <al172@yfn.ysu.edu>. Copyleft same year." /*
* old: "Copyright 1994 by Henry Ware <al172@yfn.ysu.edu>. Copyleft same year."
* most code copyright 2002 Albert Cahalan * most code copyright 2002 Albert Cahalan
* *
* 27/05/2003 (Fabian Frederick) : Add unit conversion + interface * 27/05/2003 (Fabian Frederick) : Add unit conversion + interface
@ -11,6 +12,20 @@
* July 2003 (Fabian) : Adding disk partition output * July 2003 (Fabian) : Adding disk partition output
* Adding disk table * Adding disk table
* Syncing help / usage * Syncing help / usage
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <assert.h> #include <assert.h>

14
w.c
View File

@ -7,6 +7,20 @@
* Michael K. Johnson. * Michael K. Johnson.
* *
* Changes by Albert Cahalan, 2002. * Changes by Albert Cahalan, 2002.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "c.h" #include "c.h"

14
watch.c
View File

@ -11,6 +11,20 @@
* Changes by Albert Cahalan, 2002-2003. * Changes by Albert Cahalan, 2002-2003.
* stderr handling, exec, and beep option added by Morty Abzug, 2008 * stderr handling, exec, and beep option added by Morty Abzug, 2008
* Unicode Support added by Jarrod Lowe <procps@rrod.net> in 2009. * Unicode Support added by Jarrod Lowe <procps@rrod.net> in 2009.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "c.h" #include "c.h"