Updated with Tizen:Base source codes
[external/procps.git] / packaging / procps-3.2.3-FAQ.patch
1 --- procps-3.2.6/proc/version.h.FAQ     2002-12-15 01:08:32.000000000 +0100
2 +++ procps-3.2.6/proc/version.h 2005-10-31 20:29:18.000000000 +0100
3 @@ -16,6 +16,7 @@
4  
5  extern void display_version(void);     /* display suite version */
6  extern const char procps_version[];            /* global buf for suite version */
7 +extern const char procps_number_version[];     /* global buf for suite number version */
8  
9  extern int linux_version_code;         /* runtime version of LINUX_VERSION_CODE
10                                            in /usr/include/linux/version.h */
11 --- procps-3.2.6/proc/version.c.FAQ     2003-01-29 02:11:43.000000000 +0100
12 +++ procps-3.2.6/proc/version.c 2005-10-31 20:29:18.000000000 +0100
13 @@ -16,8 +16,10 @@
14  
15  #ifdef MINORVERSION
16  const char procps_version[] = "procps version " VERSION "." SUBVERSION "." MINORVERSION;
17 +const char procps_number_version[] = VERSION "." SUBVERSION "." MINORVERSION;
18  #else
19 -const char procps_version[] = "procps version " VERSION "." SUBVERSION;
20 +const char procps_version[] = "procps version " VERSION "." SUBVERSION;
21 +const char procps_number_version[] = VERSION "." SUBVERSION;
22  #endif
23  
24  void display_version(void) {
25 --- procps-3.2.6/proc/library.map.FAQ   2005-03-14 05:32:40.000000000 +0100
26 +++ procps-3.2.6/proc/library.map       2005-10-31 20:32:39.000000000 +0100
27 @@ -9,7 +9,7 @@
28    escape_str; escape_strlist;
29    openproc; closeproc;
30    tty_to_dev; dev_to_tty; open_psdb_message; open_psdb; lookup_wchan;
31 -  display_version; procps_version; linux_version_code;
32 +  display_version; procps_version; procps_number_version; linux_version_code;
33    Hertz; smp_num_cpus; have_privs;
34    sprint_uptime; uptime; user_from_uid; print_uptime; loadavg;
35    pretty_print_signals; print_given_signals; unix_print_signals; signal_name_to_number; signal_number_to_name;
36 --- procps-3.2.6/ps/parser.c.FAQ        2005-10-31 20:29:18.000000000 +0100
37 +++ procps-3.2.6/ps/parser.c    2005-10-31 20:29:18.000000000 +0100
38 @@ -1238,7 +1238,7 @@
39    // as SysV options... and you're screwed if you've been patching
40    // out the friendly warning. Cut-over is likely to be in 2005.
41    if(!(personality & PER_FORCE_BSD))
42 -    fprintf(stderr, "Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html\n");
43 +    fprintf(stderr, "Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-%s/FAQ\n",procps_number_version);
44    // Remember: contact albert@users.sf.net or procps-feedback@lists.sf.net
45    // if you should feel tempted. Be damn sure you understand all
46    // the issues. The same goes for other stuff too, BTW. Please ask.