on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
-
+
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
* GNU Library General Public License for more details.
*/
-#include <stdlib.h>
+#include <grp.h>
+#include <locale.h>
+#include <pwd.h>
+#include <signal.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#if (__GNU_LIBRARY__ >= 6)
-# include <locale.h>
-#endif
-
-/* username lookups */
-#include <sys/types.h>
-#include <pwd.h>
-#include <grp.h>
-
-/* major/minor number */
#include <sys/sysmacros.h>
+#include <sys/types.h>
-#include <signal.h> /* catch signals */
-
-#include "common.h"
#include "../proc/alloc.h"
-#include "../proc/wchan.h"
-#include "../proc/version.h"
#include "../proc/readproc.h"
-#include "../proc/sysinfo.h"
#include "../proc/sig.h"
+#include "../proc/sysinfo.h"
+#include "../proc/version.h"
+#include "../proc/wchan.h"
+
+#include "common.h"
#ifndef SIGCHLD
#define SIGCHLD SIGCLD
/***** no comment */
int main(int argc, char *argv[]){
-#if (__GNU_LIBRARY__ >= 6)
setlocale (LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
-#endif
#ifdef DEBUG
init_stack_trace(argv[0]);
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*/
+
+#include <fcntl.h>
+#include <grp.h>
+#include <pwd.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <termios.h>
-#include <stdio.h>
#include <unistd.h>
+
#include <sys/ioctl.h>
-#include <sys/types.h>
-#include <pwd.h>
-#include <grp.h>
-#include <string.h>
#include <sys/stat.h>
-#include <fcntl.h>
-
-#include "common.h"
-
#include <sys/sysmacros.h>
+#include <sys/types.h>
+
#include "../proc/wchan.h"
#include "../proc/version.h"
#include "../proc/sysinfo.h"
+#include "common.h"
#ifndef __GNU_LIBRARY__
#define __GNU_LIBRARY__ -1
* For example, Digital prints the real-time signals.
*/
-
/*
* Data table idea:
*
*/
#include <ctype.h>
+#include <dlfcn.h>
#include <fcntl.h>
#include <grp.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
+#include <unistd.h>
+
#include <sys/ioctl.h>
+#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/types.h>
-#include <sys/mman.h>
-#include <time.h>
-#include <unistd.h>
-#include <dlfcn.h>
#include "../proc/readproc.h"
#include "../proc/sysinfo.h"
#include "../proc/procps.h"
#include "../proc/devname.h"
#include "../proc/escape.h"
+
#include "common.h"
/* TODO:
* #define Print(fmt, args...) printf("Debug: " fmt, ## args)
*/
-#include <stdlib.h>
+#include <grp.h>
+#include <pwd.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-
-/* username lookups */
-#include <sys/types.h>
-#include <pwd.h>
-#include <grp.h>
+#include <unistd.h>
#include <sys/stat.h>
-#include <unistd.h>
+#include <sys/types.h>
-#include "common.h"
#include "../proc/alloc.h"
#include "../proc/version.h"
+#include "common.h"
+
#define ARG_GNU 0
#define ARG_END 1
#define ARG_PGRP 2
return 0;
}
-static int parse_usage_section(const char *opt)
-{
+static int parse_usage_section(const char *opt){
if (!strcmp(opt, "s") || !strcmp(opt, "selection"))
return USAGE_SELECTION;
if (!strcmp(opt, "l") || !strcmp(opt, "list"))
scheduling class of the process. (alias
.BR policy , \ cls ).
Field's possible values are:
-.IP "" 2
+.IP "" 2
\- not reported
.br
TS SCHED_OTHER
/*
- * Copyright 1998-2002 by Albert Cahalan; all rights resered.
+ * 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
+ * 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,
* 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.
- */
+ */
-#include <string.h>
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
-#include "common.h"
-#include "../proc/readproc.h"
#include "../proc/procps.h"
+#include "../proc/readproc.h"
+
+#include "common.h"
//#define process_group_leader(p) ((p)->pgid == (p)->tgid)
//#define some_other_user(p) ((p)->euid != cached_euid)
* GNU Library General Public License for more details.
*/
-#include <stdlib.h>
+#include <grp.h>
+#include <pwd.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-/* username lookups */
#include <sys/types.h>
-#include <pwd.h>
-#include <grp.h>
#include "../proc/readproc.h"
#include "../proc/sysinfo.h"
+
#include "common.h"
static sf_node *sf_list = NULL; /* deferred sorting and formatting */
* Modified for easy use by Albert Cahalan.
*/
-#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
+
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <sys/time.h>
#include "common.h"