1197 lines
49 KiB
Diff
1197 lines
49 KiB
Diff
From 240ef79448b4926255fb9878b308d6a8355414b3 Mon Sep 17 00:00:00 2001
|
|
From: Sami Kerola <kerolasa@iki.fi>
|
|
Date: Fri, 2 Mar 2012 13:29:36 +0100
|
|
Subject: [PATCH] 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>
|
|
---
|
|
contrib/dummy.c | 21 +++++++++++++++++++--
|
|
contrib/minimal.c | 21 ++++++++++++++-------
|
|
contrib/tmp-junk.c | 23 +++++++++++++++++++----
|
|
contrib/utmp.c | 19 +++++++++++++++++++
|
|
free.c | 18 ++++++++++++++++--
|
|
lib/strutils.c | 18 ++++++++++++++++++
|
|
pgrep.c | 21 ++++++++++++++-------
|
|
pmap.c | 22 +++++++++++++++-------
|
|
proc/alloc.c | 25 +++++++++++++++++++------
|
|
proc/devname.c | 22 +++++++++++++++-------
|
|
proc/escape.c | 25 +++++++++++++++++--------
|
|
proc/ksym.c | 23 ++++++++++++++++-------
|
|
proc/pwcache.c | 30 ++++++++++++++++++++++--------
|
|
proc/readproc.c | 16 ++++++++++++++--
|
|
proc/sig.c | 23 ++++++++++++++++-------
|
|
proc/slab.c | 16 ++++++++++++++--
|
|
proc/sysinfo.c | 30 ++++++++++++++++++++----------
|
|
proc/version.c | 18 +++++++++++++++---
|
|
proc/whattime.c | 16 +++++++++++++++-
|
|
ps/display.c | 22 +++++++++++++++-------
|
|
ps/global.c | 22 +++++++++++++++-------
|
|
ps/help.c | 22 +++++++++++++++-------
|
|
ps/output.c | 21 ++++++++++++++-------
|
|
ps/parser.c | 22 +++++++++++++++-------
|
|
ps/select.c | 22 +++++++++++++++-------
|
|
ps/sortformat.c | 22 +++++++++++++++-------
|
|
ps/stacktrace.c | 15 +++++++++++++++
|
|
pwdx.c | 21 ++++++++++++++-------
|
|
skill.c | 23 ++++++++++++++++-------
|
|
slabtop.c | 16 ++++++++++++++--
|
|
sysctl.c | 20 ++++++++++++++------
|
|
tload.c | 15 +++++++++++++++
|
|
uptime.c | 19 +++++++++++++++++++
|
|
vmstat.c | 17 ++++++++++++++++-
|
|
w.c | 14 ++++++++++++++
|
|
watch.c | 14 ++++++++++++++
|
|
36 files changed, 572 insertions(+), 162 deletions(-)
|
|
|
|
diff --git a/contrib/dummy.c b/contrib/dummy.c
|
|
index 95e7824..dffc707 100644
|
|
--- a/contrib/dummy.c
|
|
+++ b/contrib/dummy.c
|
|
@@ -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/resource.h>
|
|
@@ -15,7 +32,7 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
-// Foul POS defines all sorts of stuff...
|
|
+/* Foul POS defines all sorts of stuff... */
|
|
#include <term.h>
|
|
#undef tab
|
|
|
|
diff --git a/contrib/minimal.c b/contrib/minimal.c
|
|
index 820c11d..cda1423 100644
|
|
--- a/contrib/minimal.c
|
|
+++ b/contrib/minimal.c
|
|
@@ -1,12 +1,19 @@
|
|
/*
|
|
- * Copyright 1998,2004 by Albert Cahalan; all rights reserved.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * Copyright 1998,2004 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 Library General Public License for more details.
|
|
+ * 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
|
|
*/
|
|
|
|
/* This is a minimal /bin/ps, designed to be smaller than the old ps
|
|
diff --git a/contrib/tmp-junk.c b/contrib/tmp-junk.c
|
|
index db011b1..06f4da8 100644
|
|
--- a/contrib/tmp-junk.c
|
|
+++ b/contrib/tmp-junk.c
|
|
@@ -1,13 +1,28 @@
|
|
/*
|
|
- * w.c v1.4
|
|
- *
|
|
- * An alternative "w" program for Linux.
|
|
- * Shows users and their processes.
|
|
+ * w.c - show logged users and what they are doing
|
|
*
|
|
* Copyright (c) Dec 1993, Oct 1994 Steve "Mr. Bassman" Bryant
|
|
* bassman@hpbbi30.bbn.hp.com (Old address)
|
|
* 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:
|
|
* I starting writing as an improvement of the w program included
|
|
* with linux. The idea was to add in some extra functionality to the
|
|
diff --git a/contrib/utmp.c b/contrib/utmp.c
|
|
index 936a7f6..933a31e 100644
|
|
--- a/contrib/utmp.c
|
|
+++ b/contrib/utmp.c
|
|
@@ -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 <stdlib.h>
|
|
#include <string.h>
|
|
diff --git a/free.c b/free.c
|
|
index 5a618d3..7df8563 100644
|
|
--- a/free.c
|
|
+++ b/free.c
|
|
@@ -2,14 +2,28 @@
|
|
* free.c - free(1)
|
|
* procps-ng utility to display free memory information
|
|
*
|
|
+ * Copyright (C) 1992-2012
|
|
+ *
|
|
* Mostly new, Sami Kerola <kerolasa@iki.fi> 15 Apr 2011
|
|
* All new, Robert Love <rml@tech9.net> 18 Nov 2002
|
|
* 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 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"
|
|
diff --git a/lib/strutils.c b/lib/strutils.c
|
|
index 325e18c..2d63b87 100644
|
|
--- a/lib/strutils.c
|
|
+++ b/lib/strutils.c
|
|
@@ -1,5 +1,23 @@
|
|
/*
|
|
+ * strutils.c - various string routines shared by commands
|
|
* 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>
|
|
diff --git a/pgrep.c b/pgrep.c
|
|
index b9e6fe2..239120c 100644
|
|
--- a/pgrep.c
|
|
+++ b/pgrep.c
|
|
@@ -1,17 +1,24 @@
|
|
-/* emacs settings: -*- c-basic-offset: 8 tab-width: 8 -*-
|
|
- *
|
|
+/*
|
|
* pgrep/pkill -- utilities to filter the process table
|
|
*
|
|
* Copyright 2000 Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
|
|
+ * Changes by Albert Cahalan, 2002,2006.
|
|
*
|
|
- * May be distributed under the conditions of the
|
|
- * GNU General Public License; a copy is in COPYING
|
|
+ * 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.
|
|
*
|
|
- * Changes by Albert Cahalan, 2002,2006.
|
|
- *
|
|
+ * 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 <stdlib.h>
|
|
#include <limits.h>
|
|
diff --git a/pmap.c b/pmap.c
|
|
index 88f1bf1..1f8b0a0 100644
|
|
--- a/pmap.c
|
|
+++ b/pmap.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 2002 by Albert Cahalan; all rights reserved.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * pmap.c - print process memory mapping
|
|
+ * Copyright 2002 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 Library General Public License for more details.
|
|
+ * 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 <ctype.h>
|
|
diff --git a/proc/alloc.c b/proc/alloc.c
|
|
index 21185cc..671d752 100644
|
|
--- a/proc/alloc.c
|
|
+++ b/proc/alloc.c
|
|
@@ -1,9 +1,22 @@
|
|
-// Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
|
|
-// Copyright 2002 Albert Cahalan
|
|
-//
|
|
-// This file is placed under the conditions of the GNU Library
|
|
-// General Public License, version 2, or any later version.
|
|
-// See file COPYING for information on distribution conditions.
|
|
+/*
|
|
+ * alloc.c - memory allocation functions
|
|
+ * Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
|
|
+ * Copyright 2002 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 <stdarg.h>
|
|
#include <stdio.h>
|
|
diff --git a/proc/devname.c b/proc/devname.c
|
|
index fa96523..f9f1a37 100644
|
|
--- a/proc/devname.c
|
|
+++ b/proc/devname.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2002 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * devname - device name functions
|
|
+ * Copyright 1998-2002 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 Library General Public License for more details.
|
|
+ * 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>
|
|
diff --git a/proc/escape.c b/proc/escape.c
|
|
index ca73198..1b1ca97 100644
|
|
--- a/proc/escape.c
|
|
+++ b/proc/escape.c
|
|
@@ -1,13 +1,22 @@
|
|
/*
|
|
- * Copyright 1998-2002 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * escape.c - printing handling
|
|
+ * Copyright 1998-2002 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 Library General Public License for more details.
|
|
- */
|
|
+ * 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 <sys/types.h>
|
|
#include <string.h>
|
|
diff --git a/proc/ksym.c b/proc/ksym.c
|
|
index b99a8a6..fe8ff4e 100644
|
|
--- a/proc/ksym.c
|
|
+++ b/proc/ksym.c
|
|
@@ -1,13 +1,22 @@
|
|
/*
|
|
- * Copyright 1998-2003 by Albert Cahalan; all rights reserved.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * ksym.c - kernel symbol handling
|
|
+ * Copyright 1998-2003 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 Library General Public License for more details.
|
|
+ * 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 <stdlib.h>
|
|
#include <string.h>
|
|
diff --git a/proc/pwcache.c b/proc/pwcache.c
|
|
index 4b6c455..e20ba66 100644
|
|
--- a/proc/pwcache.c
|
|
+++ b/proc/pwcache.c
|
|
@@ -1,11 +1,25 @@
|
|
-// Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
|
|
-// Note: most likely none of his code remains
|
|
-//
|
|
-// Copyright 2002, Albert Cahalan
|
|
-//
|
|
-// This file is placed under the conditions of the GNU Library
|
|
-// General Public License, version 2, or any later version.
|
|
-// See file COPYING for information on distribution conditions.
|
|
+/*
|
|
+ * pwcache.c - memory cache passwd file handling
|
|
+ *
|
|
+ * Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
|
|
+ * Note: most likely none of his code remains
|
|
+ *
|
|
+ * Copyright 2002, 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 <string.h>
|
|
diff --git a/proc/readproc.c b/proc/readproc.c
|
|
index c0345d7..36658d9 100644
|
|
--- a/proc/readproc.c
|
|
+++ b/proc/readproc.c
|
|
@@ -3,8 +3,20 @@
|
|
* Copyright (C) 1996 Charles L. Blake.
|
|
* Copyright (C) 1998 Michael K. Johnson
|
|
* 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"
|
|
diff --git a/proc/sig.c b/proc/sig.c
|
|
index b427e01..9fc91f7 100644
|
|
--- a/proc/sig.c
|
|
+++ b/proc/sig.c
|
|
@@ -1,13 +1,22 @@
|
|
/*
|
|
- * Copyright 1998-2003 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * sig.c - signal name, and number, conversions
|
|
+ * Copyright 1998-2003 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 Library General Public License for more details.
|
|
+ * 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 <ctype.h>
|
|
#include <signal.h>
|
|
#include <string.h>
|
|
diff --git a/proc/slab.c b/proc/slab.c
|
|
index c1e8624..b0bccaa 100644
|
|
--- a/proc/slab.c
|
|
+++ b/proc/slab.c
|
|
@@ -4,10 +4,22 @@
|
|
* Chris Rivera <cmrivera@ufl.edu>
|
|
* Robert Love <rml@tech9.net>
|
|
*
|
|
- * This program is licensed under the GNU Library General Public License, v2
|
|
- *
|
|
* Copyright (C) 2003 Chris Rivera
|
|
* 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>
|
|
diff --git a/proc/sysinfo.c b/proc/sysinfo.c
|
|
index 1d7b797..3851ff7 100644
|
|
--- a/proc/sysinfo.c
|
|
+++ b/proc/sysinfo.c
|
|
@@ -1,13 +1,23 @@
|
|
-// Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
|
|
-// Copyright 1998-2003 Albert Cahalan
|
|
-//
|
|
-// This file is placed under the conditions of the GNU Library
|
|
-// General Public License, version 2, or any later version.
|
|
-// See file COPYING for information on distribution conditions.
|
|
-//
|
|
-// File for parsing top-level /proc entities. */
|
|
-//
|
|
-// June 2003, Fabian Frederick, disk and slab info
|
|
+/*
|
|
+ * File for parsing top-level /proc entities.
|
|
+ * Copyright (C) 1992-1998 by Michael K. Johnson, johnsonm@redhat.com
|
|
+ * Copyright 1998-2003 Albert Cahalan
|
|
+ * June 2003, Fabian Frederick, disk and slab info
|
|
+ *
|
|
+ * 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 <stdlib.h>
|
|
diff --git a/proc/version.c b/proc/version.c
|
|
index 593f4f4..e0dca3c 100644
|
|
--- a/proc/version.c
|
|
+++ b/proc/version.c
|
|
@@ -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>
|
|
* Ammended by cblake to only export the function symbol.
|
|
*
|
|
* Modified by Albert Cahalan, ????-2003
|
|
*
|
|
- * Redistributable under the terms of the
|
|
- * GNU Library General Public License; see 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 <stdio.h>
|
|
diff --git a/proc/whattime.c b/proc/whattime.c
|
|
index 5064cec..9d6abb3 100644
|
|
--- a/proc/whattime.c
|
|
+++ b/proc/whattime.c
|
|
@@ -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
|
|
* program --- use it at your own risk. (as if there were any.. ;-)
|
|
* -michaelkjohnson (johnsonm@sunsite.unc.edu)
|
|
@@ -11,6 +12,19 @@
|
|
* Modified by J. Cowley to add printing the uptime message to a
|
|
* 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>
|
|
diff --git a/ps/display.c b/ps/display.c
|
|
index 1676426..3038600 100644
|
|
--- a/ps/display.c
|
|
+++ b/ps/display.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2003 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * display.c - display ps output
|
|
+ * Copyright 1998-2003 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 Library General Public License for more details.
|
|
+ * 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 <grp.h>
|
|
diff --git a/ps/global.c b/ps/global.c
|
|
index 4a625df..70f26fa 100644
|
|
--- a/ps/global.c
|
|
+++ b/ps/global.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2002 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * global.c - generic ps symbols and functions
|
|
+ * Copyright 1998-2002 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 Library General Public License for more details.
|
|
+ * 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 <fcntl.h>
|
|
diff --git a/ps/help.c b/ps/help.c
|
|
index 9ce9e76..028d186 100644
|
|
--- a/ps/help.c
|
|
+++ b/ps/help.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2004 by Albert Cahalan; all rights reserved.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * help.c - ps help output
|
|
+ * Copyright 1998-2004 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 Library General Public License for more details.
|
|
+ * 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>
|
|
diff --git a/ps/output.c b/ps/output.c
|
|
index 58d0cf6..f97fa63 100644
|
|
--- a/ps/output.c
|
|
+++ b/ps/output.c
|
|
@@ -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
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * 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 Library General Public License for more details.
|
|
+ * 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
|
|
*/
|
|
|
|
/*
|
|
diff --git a/ps/parser.c b/ps/parser.c
|
|
index 13329b9..2c3ec03 100644
|
|
--- a/ps/parser.c
|
|
+++ b/ps/parser.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2003 by Albert Cahalan; all rights reserved.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * parser.c - ps command options parser
|
|
+ * Copyright 1998-2003 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 Library General Public License for more details.
|
|
+ * 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
|
|
*/
|
|
|
|
/* Ought to have debug print stuff like this:
|
|
diff --git a/ps/select.c b/ps/select.c
|
|
index 524544d..619d895 100644
|
|
--- a/ps/select.c
|
|
+++ b/ps/select.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2002 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * select.c - ps process selection
|
|
+ * Copyright 1998-2002 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 Library General Public License for more details.
|
|
+ * 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>
|
|
diff --git a/ps/sortformat.c b/ps/sortformat.c
|
|
index 06335cc..eeec7e9 100644
|
|
--- a/ps/sortformat.c
|
|
+++ b/ps/sortformat.c
|
|
@@ -1,12 +1,20 @@
|
|
/*
|
|
- * Copyright 1998-2004 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * sortformat - ps output sorting
|
|
+ * Copyright 1998-2004 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 Library General Public License for more details.
|
|
+ * 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 <grp.h>
|
|
diff --git a/ps/stacktrace.c b/ps/stacktrace.c
|
|
index b831401..a4e2938 100644
|
|
--- a/ps/stacktrace.c
|
|
+++ b/ps/stacktrace.c
|
|
@@ -1,8 +1,23 @@
|
|
/*
|
|
+ * stacktrace.c - ps debugging additions
|
|
* Gnu debugger stack trace code provided by Peter Mattis
|
|
* <petm@CSUA.Berkeley.EDU> on Thu, 2 Nov 1995
|
|
*
|
|
* 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>
|
|
diff --git a/pwdx.c b/pwdx.c
|
|
index 24c7b8d..fa1a47e 100644
|
|
--- a/pwdx.c
|
|
+++ b/pwdx.c
|
|
@@ -1,13 +1,20 @@
|
|
/*
|
|
+ * pwdx.c - print process working directory
|
|
* Copyright 2004 Nicholas Miell
|
|
*
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2 as published by the
|
|
- * Free Software Foundation.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 Library General Public License for more
|
|
- * details.
|
|
+ * 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>
|
|
diff --git a/skill.c b/skill.c
|
|
index 0ea21ca..8fe0639 100644
|
|
--- a/skill.c
|
|
+++ b/skill.c
|
|
@@ -1,13 +1,22 @@
|
|
/*
|
|
- * Copyright 1998-2002 by Albert Cahalan; all rights resered.
|
|
- * This file may be used subject to the terms and conditions of the
|
|
- * GNU Library General Public License Version 2, or any later version
|
|
- * at your option, as published by the Free Software Foundation.
|
|
- * This program is distributed in the hope that it will be useful,
|
|
+ * skill.c - send a signal to process
|
|
+ * Copyright 1998-2002 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 Library General Public License for more details.
|
|
+ * 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 <ctype.h>
|
|
#include <dirent.h>
|
|
#include <errno.h>
|
|
diff --git a/slabtop.c b/slabtop.c
|
|
index 567556a..17c1fcc 100644
|
|
--- a/slabtop.c
|
|
+++ b/slabtop.c
|
|
@@ -4,9 +4,21 @@
|
|
* Chris Rivera <cmrivera@ufl.edu>
|
|
* Robert Love <rml@tech9.net>
|
|
*
|
|
- * This program is licensed under the GNU Library General Public License, v2
|
|
- *
|
|
* 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>
|
|
diff --git a/sysctl.c b/sysctl.c
|
|
index b6f6fc0..a2fa211 100644
|
|
--- a/sysctl.c
|
|
+++ b/sysctl.c
|
|
@@ -2,12 +2,20 @@
|
|
* Sysctl 1.01 - A utility to read and manipulate the sysctl parameters
|
|
*
|
|
* "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
|
|
- * published by the Free Software Foundation. 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."
|
|
+ *
|
|
+ * 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.
|
|
*
|
|
* Changelog:
|
|
* v1.01:
|
|
diff --git a/tload.c b/tload.c
|
|
index b21ddd8..151ab46 100644
|
|
--- a/tload.c
|
|
+++ b/tload.c
|
|
@@ -8,7 +8,22 @@
|
|
* Copyright (c) 1992 Branko Lankester
|
|
* /proc changes by David Engel (david@ods.com)
|
|
* 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/sysinfo.h"
|
|
#include "c.h"
|
|
diff --git a/uptime.c b/uptime.c
|
|
index 557b08c..a865856 100644
|
|
--- a/uptime.c
|
|
+++ b/uptime.c
|
|
@@ -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 <getopt.h>
|
|
#include <stdlib.h>
|
|
diff --git a/vmstat.c b/vmstat.c
|
|
index a28395a..2b1e9a9 100644
|
|
--- a/vmstat.c
|
|
+++ b/vmstat.c
|
|
@@ -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
|
|
*
|
|
* 27/05/2003 (Fabian Frederick) : Add unit conversion + interface
|
|
@@ -11,6 +12,20 @@
|
|
* July 2003 (Fabian) : Adding disk partition output
|
|
* Adding disk table
|
|
* 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>
|
|
diff --git a/w.c b/w.c
|
|
index 40c9bee..ceb18c1 100644
|
|
--- a/w.c
|
|
+++ b/w.c
|
|
@@ -7,6 +7,20 @@
|
|
* Michael K. Johnson.
|
|
*
|
|
* 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"
|
|
diff --git a/watch.c b/watch.c
|
|
index aae4632..e9ce7c0 100644
|
|
--- a/watch.c
|
|
+++ b/watch.c
|
|
@@ -11,6 +11,20 @@
|
|
* Changes by Albert Cahalan, 2002-2003.
|
|
* stderr handling, exec, and beep option added by Morty Abzug, 2008
|
|
* 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"
|
|
--
|
|
1.7.6
|
|
|