DELTA 265251 0 91 SVNJ,=!<ync M[^;l!+IrZK #include #include #include #include #include #include #include "commands.h"#include "machinestatic int str_adderr(char *str, int len, int err); static int str_addarg(char *str, int len, char *arg, int first); /* * show_help() - display the help screen; invoked in response to * either 'h' or '?'. */ voidintatic intatic intintintvoidENDREP DELTA SVNlnll/* * Top users/processes display for Unix * Version 3 * * This program may be freely redistributed, * but this entire comment MUST remain intact. * * Copyright (c) 1984, 1989, William LeFebvre, Rice University * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University * Copyright (c) 2016, Randy Westlund * * $FreeBSD$ */ #ifndef COMMANDS_H #define COMMANDS_H void show_errors(void); int error_count(void); void show_help(void); #endif /* COMMANDS_H */ ENDREP DELTA 237656 0 378 SVN2<,:[M/ZT7- c%oH9Z+1zVx[M'W`~E`5\Rt\E {>(8}zgv~\Jt =\SprB3* #include #include #include #include mwKYptENDREP DELTA 265249 0 63 SVNPC0OxNRNs.#ifndef MACHINE_H #define MACHINE_H #include "top.h" *format_header(); char *format_next_process(); void toggle_pcpustats(void); void get_system_info(struct system_info *si); int machine_init(struct statics *statics, char do_unames); int proc_owner(int pid *printable(); #endif /* MACHINE_H */ ENDREP DELTA 210023 54 27 SVNFa=$<Syd \4eYp4 J?0#voidvoidvoidvoidvoidvoidintvoidvoidENDREP DELTA 24139 54790 512 SVN_I}N{{void putstdout(char ch); int clear_eol(int len); void standout(char *msg); void clear(void); void go_home(void); void reinit_screen(void); void get_screensize(void); void init_termcap(int interactive); void end_screen(void); void init_screen(void); ENDREP DELTA 265250 0 58 SVN}#x"hWVKeaG1LNx^mMn >J7*DG $Pży}KT(>yuiʖauؒ轱Ovn\4AFYCI?$EsbIZ(>ϧbFFo@dz6[`@&զ%%Q] 8[rfSaŖ3*H~ĮYrM%3ܰtd }wu^ک ^o֐.6XCėENDREP DELTA 214857 151 26 SVN!R 0 p3n/#ifndef TOP_H #define TOP_H #endif /* TOP_H */ ENDREP DELTA 200979 0 214 SVNh #"5  f/X1V #include #include #include #include #include "top.local.h" #include "utils.h" #include "username voidint uid; ENDREP DELTA SVN@R@@x^}Rn0@=<xCVJvCzv3Gu Ec E l]rm`#~1{FgeAXt0{ -d gh8qWrd2]U\|Z3 xukP8!ӧدi [*K⩟8` Kg=O>uBW:4hS-lYP6J^WIЧ\Ia./#3&׭Wf_#d B8o0g>dvE1;^J^Hq}TrH`?ENDREP DELTA 206056 0 39 SVN/^0//int string_index(char *string, char **array); ENDREP DELTA 24139 74958 348 SVN0  :Y/ #include ENDREP id: w-24139.b-24140.r300395/4081 type: file pred: w-24139.b-24140.r265251/116 count: 21 text: 300395 0 490 11436 3d71d70aafe0f78d8496c73fd6963833 ecf7a138487ced5b14d5b837753e348aee811c03 300394-6g3u/_4 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/commands.c copyroot: 24140 /head/contrib/top/commands.c id: 5-300395.0.r300395/4419 type: file count: 0 text: 300395 515 509 492 3831a0bec889a57ff2cd7a6a3c6247ce 8c8329ba640c69435a8ee668a196ff411142fa77 300394-6g3u/_6 props: 179448 45543 103 0 bb58aa814bbdf5f7c1ab04a05656f5a5 cpath: /head/contrib/top/commands.h copyroot: 0 / id: y-24139.c-24140.r300395/4691 type: file pred: y-24139.c-24140.r237656/1796 count: 19 text: 300395 1037 631 27420 88f0b17e8b9837997c05bf45df1a279d 973fc3794eb70ffb71def888fc148d4e8f9073b3 300394-6g3u/_7 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/display.c copyroot: 24140 /head/contrib/top/display.c id: 10-24139.d-24140.r300395/5031 type: file pred: 10-24139.d-24140.r24140/4408 count: 2 text: 300395 1694 379 1216 99f66066e2e82759ff63371ba5e543d0 4ed249046f75d3b648de53cbd1f1fbfe54fa0eff 300394-6g3u/_8 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/display.h copyroot: 24140 /head/contrib/top/display.h id: 1e-24139.k-24140.r300395/5370 type: file pred: 1e-24139.k-24140.r265249/1447 count: 15 text: 300395 2102 335 2115 d49d4789ae674736e2315091128668a0 67a2fc1f8c6757d52ce577f70615b0527c347d60 300394-6g3u/_9 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/machine.h copyroot: 24140 /head/contrib/top/machine.h id: 1o-24139.p-24140.r300395/5711 type: file pred: 1o-24139.p-24140.r210386/3605 count: 5 text: 300395 2462 108 9825 10cea1c4afd95aa6d5f17ac3e5a65fef 1845d5a7869797de5392a4bd6c3c7dd160a747a4 300394-6g3u/_a props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/screen.c copyroot: 24140 /head/contrib/top/screen.c id: 1q-24139.q-24140.r300395/6049 type: file pred: 1q-24139.q-24140.r24140/8835 count: 2 text: 300395 2596 273 1225 75254f50aaff4dfa687eb6db10f4d247 d4414e7dad3af40ec0b19d4a9946bf73a962334c 300394-6g3u/_b props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/screen.h copyroot: 24140 /head/contrib/top/screen.h id: 1w-24139.t-24140.r300395/6386 type: file pred: 1w-24139.t-24140.r265250/86 count: 37 text: 300395 2898 297 26510 cb60e35c7e27a42a25db4fc25ce8d596 07b3c0de4a8503e3e0c1f34f667edc501d8fc5a3 300394-6g3u/_c props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/top.c copyroot: 24140 /head/contrib/top/top.c id: 1y-24139.u-24140.r300395/6718 type: file pred: 1y-24139.u-24140.r244180/0 count: 9 text: 300395 3220 69 978 12ce185b851781d30d0ce361af2cfe6c 7df31cff0640f3e0962fc725344f619d56deab5a 300394-6g3u/_d props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/top.h copyroot: 24140 /head/contrib/top/top.h id: 22-24139.w-24140.r300395/7045 type: file pred: 22-24139.w-24140.r200979/238 count: 5 text: 300395 3316 202 5129 1b8be45ae595dba691af4d1d64837b74 476c61c92171284c37efa429b7c58a94c3f7b72f 300394-6g3u/_e props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/username.c copyroot: 24140 /head/contrib/top/username.c id: f-300395.0.r300395/7386 type: file count: 0 text: 300395 3544 353 576 6a9ef8d694d5be72c08a557876294898 fc1f03432b2064572d30d6c64700bdaee8396ad6 300394-6g3u/_g props: 179448 45543 103 0 bb58aa814bbdf5f7c1ab04a05656f5a5 cpath: /head/contrib/top/username.h copyroot: 0 / id: 26-24139.y-24140.r300395/7659 type: file pred: 26-24139.y-24140.r206056/66 count: 4 text: 300395 3910 65 606 184bce7f5836868f2332490eea3705ae 6d02ad09fa3bdaf50f34411e92979831b67d3ff1 300394-6g3u/_h props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/utils.h copyroot: 24140 /head/contrib/top/utils.h id: 28-24139.z-24140.r300395/7991 type: file pred: 28-24139.z-24140.r24140/11908 count: 2 text: 300395 4000 52 560 246ab2dad5ecea471566fc011ba4fda7 22dc01a3cf1da2ff75f3cd5678c800ab1a23a7e6 300394-6g3u/_i props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/contrib/top/version.c copyroot: 24140 /head/contrib/top/version.c PLAIN K 13 ADVERTISEMENT V 29 file 9-24139.0-89751.r89751/0 K 7 Changes V 31 file c-24139.1-89751.r89751/341 K 9 Configure V 31 file e-24139.2-89751.r89751/677 K 10 DISCLAIMER V 32 file g-24139.3-89751.r89751/1018 K 3 FAQ V 32 file i-24139.4-89751.r89751/1360 K 7 INSTALL V 32 file k-24139.5-89751.r89751/1690 K 11 Make.desc.X V 32 file m-24139.6-89751.r89751/2026 K 10 Makefile.X V 32 file o-24139.7-89751.r89751/2369 K 7 Porting V 32 file q-24139.8-89751.r89751/2711 K 6 README V 32 file s-24139.9-89751.r89751/3046 K 3 Y2K V 32 file g-89750.a-89751.r89751/3380 K 9 boolean.h V 32 file u-24139.a-24140.r24140/3383 K 10 commands.c V 33 file w-24139.b-24140.r300395/4081 K 10 commands.h V 28 file 5-300395.0.r300395/4419 K 9 display.c V 33 file y-24139.c-24140.r300395/4691 K 9 display.h V 34 file 10-24139.d-24140.r300395/5031 K 6 getans V 33 file 12-24139.b-89751.r89751/3708 K 8 getopt.c V 33 file 14-24139.f-24140.r24140/5087 K 10 install-sh V 38 file 16-24139.0-189618.r276479/1684215 K 8 layout.h V 34 file 18-24139.h-24140.r237656/2132 K 9 loadavg.h V 33 file 1a-24139.i-24140.r292110/199 K 10 m-template V 33 file 1c-24139.j-24140.r24140/6449 K 9 machine.h V 34 file 1e-24139.k-24140.r300395/5370 K 7 metatop V 33 file 1g-24139.l-24140.r24140/7138 K 4 os.h V 33 file 1i-24139.c-89751.r89751/4044 K 12 patchlevel.h V 33 file 1k-24139.d-89751.r89751/4377 K 7 prime.c V 33 file 1m-24139.e-89751.r89751/4723 K 8 screen.c V 34 file 1o-24139.p-24140.r300395/5711 K 8 screen.h V 34 file 1q-24139.q-24140.r300395/6049 K 11 sigconv.awk V 33 file 1s-24139.r-24140.r164784/777 K 5 top.c V 34 file 1w-24139.t-24140.r300395/6386 K 5 top.h V 34 file 1y-24139.u-24140.r300395/6718 K 12 top.local.hs V 33 file 20-24139.0-284165.r284165/73 K 6 top.xs V 34 file 1u-24139.1-284165.r284165/418 K 10 username.c V 34 file 22-24139.w-24140.r300395/7045 K 10 username.h V 28 file f-300395.0.r300395/7386 K 7 utils.c V 33 file 24-24139.x-24140.r278560/121 K 7 utils.h V 34 file 26-24139.y-24140.r300395/7659 K 9 version.c V 34 file 28-24139.z-24140.r300395/7991 END ENDREP id: 2-24140.0.r300395/10385 type: dir pred: 2-24140.0.r292110/2479 count: 96 text: 300395 8329 2043 0 ecddacebbb5a8d796f17d3304cd907f0 props: 290494 94810 475 0 c0fa1736977641d2e176b19e9ae8ec8b cpath: /head/contrib/top copyroot: 0 / minfo-cnt: 2 minfo-here: y PLAIN K 3 amd V 27 dir 2-38495.0.r296417/11506 K 3 apr V 35 dir 3-251875.0-251886.r290494/17355 K 8 apr-util V 35 dir 3-251876.1-251886.r276479/23108 K 3 atf V 34 dir 3-240116.0-240120.r299496/5338 K 8 binutils V 28 dir 2-33966.0.r300333/148163 K 5 bmake V 35 dir 4-236769.0-241146.r300313/26612 K 5 bsnmp V 27 dir 2-122395.0.r300167/2501 K 5 byacc V 35 dir 7i-234949.0-235723.r297276/8674 K 5 bzip2 V 27 dir 2-78557.0.r276479/26167 K 7 com_err V 27 dir 2-50765.0.r276479/26560 K 11 compiler-rt V 36 dir 3-214150.0-215125.r296417/155270 K 6 dialog V 28 dir 4-217309.0.r276479/27795 K 4 diff V 26 dir 2-30840.0.r283869/2162 K 3 dma V 35 dir 3-262266.0-262282.r290494/22745 K 3 dtc V 35 dir 3-204431.0-204488.r290494/23599 K 2 ee V 36 dir 2-192830.0-192850.r280031/118592 K 12 elftoolchain V 34 dir 3-260697.0-261246.r300374/4447 K 5 expat V 28 dir 2-104350.0.r290494/32904 K 4 file V 27 dir 2-68350.0.r299736/27943 K 4 flex V 32 dir 3-2258.0-250873.r250879/2248 K 3 gcc V 27 dir 2-18335.0.r300319/33378 K 7 gcclibs V 27 dir 2-169696.0.r286699/2703 K 3 gdb V 27 dir 2-19371.0.r298358/32889 K 5 gdtoa V 28 dir 2-112159.0.r276479/33439 K 5 gperf V 27 dir 2-18215.0.r279519/75324 K 5 groff V 26 dir 2-18100.0.r300041/7540 K 6 hyperv V 26 dir 2-271493.0.r293653/779 K 8 ipfilter V 33 dir 2-22515.0-288683.r300179/5129 K 8 jemalloc V 27 dir 2-234370.0.r299700/4798 K 4 ldns V 27 dir 2-246827.0.r282088/6298 K 9 ldns-host V 34 dir 6-254939.0-255403.r255403/1562 K 4 less V 28 dir 2-60787.0.r296417/165754 K 10 libarchive V 35 dir 3-228753.0-228761.r299896/18677 K 10 libbegemot V 27 dir 2-135769.0.r165010/1261 K 6 libc++ V 34 dir 3-227825.0-287679.r297322/6612 K 12 libc-pwcache V 34 dir 4-241233.0-241731.r241731/1560 K 8 libc-vis V 35 dir 4-241236.0-244401.r276479/47500 K 8 libcxxrt V 35 dir 7n-227825.0-299143.r299144/2807 K 11 libexecinfo V 33 dir 4-254661.0-254688.r292629/877 K 11 libgnuregex V 28 dir 5-1.0-251436.r251437/830 K 7 libpcap V 27 dir 2-17684.0.r297983/11663 K 11 libreadline V 26 dir 2-21309.0.r257642/4444 K 9 libstdc++ V 27 dir 2-51921.0.r276479/50000 K 6 libucl V 35 dir 3-262395.0-262398.r298166/25776 K 5 libxo V 28 dir 2-273562.0.r298083/40538 K 4 llvm V 34 dir 2-193323.0-208954.r300314/7229 K 6 mdocml V 37 dir 3-241675.0-241754.r296417/1934794 K 5 mknod V 31 dir 4-244543.0-244562.r244562/0 K 5 mtree V 37 dir 4-244541.1-244562.r276479/1673552 K 7 ncurses V 27 dir 2-50277.0.r299289/14866 K 12 netbsd-tests V 35 dir 4-272343.0-272458.r300303/12144 K 6 netcat V 28 dir 2-141262.0.r290494/87142 K 5 ngatm V 28 dir 2-121331.0.r208483/14248 K 3 ntp V 28 dir 2-54360.0.r298695/129914 K 3 nvi V 27 dir 2-19305.0.r281373/58277 K 4 ofed V 27 dir 3-219820.0.r297266/5839 K 12 one-true-awk V 29 dir 2-85588.0.r276479/1676217 K 7 openbsm V 27 dir 2-155132.0.r292433/2502 K 7 openpam V 27 dir 2-91095.0.r290494/88847 K 10 openresolv V 37 dir 3-219732.0-219736.r296417/1936245 K 4 opie V 26 dir 2-22348.0.r269811/2704 K 11 pam_modules V 26 dir 2-93788.0.r254960/1850 K 2 pf V 27 dir 2-126354.0.r299354/1106 K 9 pjdfstest V 34 dir 3-271294.0-272057.r296766/6654 K 7 pnpinfo V 25 dir 2-29616.0.r228672/611 K 8 sendmail V 26 dir 2-38033.0.r291235/7573 K 4 serf V 35 dir 3-251877.2-251886.r290494/91335 K 5 smbfs V 26 dir 2-87867.0.r295118/1812 K 7 sqlite3 V 34 dir 3-251883.3-251886.r298161/7575 K 10 subversion V 34 dir 3-251881.4-251886.r298996/7152 K 12 tcp_wrappers V 26 dir 2-44744.0.r272950/3522 K 7 tcpdump V 29 dir 2-17681.0.r296417/1938090 K 4 tcsh V 29 dir 2-59244.0.r276479/1683000 K 6 telnet V 26 dir 2-29089.0.r274364/9537 K 5 tnftp V 36 dir 2-79972.0-223308.r276479/1683589 K 3 top V 27 dir 2-24140.0.r300395/10385 K 10 traceroute V 26 dir 2-18580.0.r283820/1459 K 6 tzcode V 28 dir 2-204301.0.r290494/96497 K 6 tzdata V 33 dir 2t-1639.0-204298.r290697/3641 K 7 unbound V 27 dir 2-249140.0.r296659/4119 K 5 unvis V 33 dir 6-247131.0-248303.r248303/241 K 3 vis V 34 dir 7-247128.1-248303.r276641/1603 K 3 wpa V 34 dir 3-189251.0-189261.r291368/3726 K 2 xz V 35 dir 3-207753.0-207842.r291125/17465 END ENDREP id: 1-16755.0.r300395/14674 type: dir pred: 1-16755.0.r300374/8789 count: 5713 text: 300395 10646 4015 0 e473e4878d5fc6dc4bcd221339f678bb cpath: /head/contrib copyroot: 0 / minfo-cnt: 74 PLAIN K 10 .arcconfig V 26 file 1-265842.0.r298387/42 K 8 .arclint V 27 file 1-266959.0.r281789/766 K 9 COPYRIGHT V 25 file 1-2656.0.r292983/104 K 5 LOCKS V 27 file 1-146890.0.r255635/270 K 11 MAINTAINERS V 26 file 1-94742.0.r298107/462 K 8 Makefile V 31 file 3-1594.0-1595.r300119/3650 K 13 Makefile.inc1 V 27 file 5-38666.0.r300354/1978 K 18 Makefile.libcompat V 32 file 5-38666.0-296709.r298079/76 K 17 ObsoleteFiles.inc V 27 file 4-148330.0.r300316/313 K 6 README V 25 file 1-21173.0.r300137/48 K 8 UPDATING V 26 file 1-41806.0.r300303/850 K 3 bin V 22 dir 1-5.0.r300340/3012 K 4 cddl V 27 dir 1-168404.0.r300226/1806 K 7 contrib V 27 dir 1-16755.0.r300395/14674 K 6 crypto V 27 dir 1-25405.0.r299495/17747 K 3 etc V 23 dir 1-38.0.r300356/5654 K 3 gnu V 22 dir 1-3.0.r300347/3733 K 7 include V 24 dir 1-697.0.r300346/5467 K 9 kerberos5 V 27 dir 4q-29815.0.r297434/6711 K 3 lib V 23 dir 6-5.0.r300389/12449 K 7 libexec V 22 dir c-5.0.r299585/3064 K 7 release V 25 dir 1-3027.0.r299557/2810 K 6 rescue V 29 dir 7-117035.0.r298107/316629 K 4 sbin V 24 dir fa-4.0.r300207/82575 K 6 secure V 27 dir r-1553.0.r299481/116196 K 5 share V 22 dir e-3.0.r300355/6445 K 3 sys V 23 dir g-5.0.r300394/17860 K 7 targets V 33 dir 2-242818.1-284345.r300138/615 K 5 tests V 27 dir g-257097.0.r299508/2607 K 5 tools V 27 dir 43-1590.0.r300354/22891 K 7 usr.bin V 23 dir m-3.0.r300327/19858 K 8 usr.sbin V 23 dir q-3.0.r300356/17662 END ENDREP id: 5-1.0.r300395/16290 type: dir pred: 5-1.0.r300394/19523 count: 203678 text: 300395 14862 1415 0 90cd59499eec96a7be3f7f80c3dc2f39 props: 299094 481944 2563 0 e15819dcaabbbcbc99454074dbe6cbd8 cpath: /head copyroot: 0 / minfo-cnt: 96 minfo-here: y PLAIN K 11 ROADMAP.txt V 26 file 0-179453.0.r285589/70 K 4 head V 23 dir 5-1.0.r300395/16290 K 8 projects V 22 dir 6-1.0.r300381/5759 K 7 release V 22 dir 7-1.0.r297553/3094 K 6 releng V 23 dir 8-1.0.r300088/24226 K 6 stable V 23 dir 9-1.0.r300379/70575 K 8 svnadmin V 27 dir 0-179447.0.r300162/1311 K 4 user V 25 dir a-1.0.r300380/1193039 K 6 vendor V 22 dir b-1.0.r300310/9104 K 13 vendor-crypto V 25 dir 0-1575.0.r298994/4420 K 10 vendor-sys V 26 dir 0-12116.0.r299453/9750 END ENDREP id: 0.0.r300395/17028 type: dir pred: 0.0.r300394/20261 count: 300395 text: 300395 16540 475 0 38bbf785efc37683108f55c63fad8ae7 props: 289270 0 4229 0 20f578acc837c5e58fc64b9eaa493aea cpath: / copyroot: 0 / minfo-cnt: 44098 w-24139.b-24140.t300394-6g3u modify-file true false /head/contrib/top/commands.c _5.0.t300394-6g3u add-file true true /head/contrib/top/commands.h y-24139.c-24140.t300394-6g3u modify-file true false /head/contrib/top/display.c 10-24139.d-24140.t300394-6g3u modify-file true false /head/contrib/top/display.h 1e-24139.k-24140.t300394-6g3u modify-file true false /head/contrib/top/machine.h 1o-24139.p-24140.t300394-6g3u modify-file true false /head/contrib/top/screen.c 1q-24139.q-24140.t300394-6g3u modify-file true false /head/contrib/top/screen.h 1w-24139.t-24140.t300394-6g3u modify-file true false /head/contrib/top/top.c 1y-24139.u-24140.t300394-6g3u modify-file true false /head/contrib/top/top.h 22-24139.w-24140.t300394-6g3u modify-file true false /head/contrib/top/username.c _f.0.t300394-6g3u add-file true true /head/contrib/top/username.h 26-24139.y-24140.t300394-6g3u modify-file true false /head/contrib/top/utils.h 28-24139.z-24140.t300394-6g3u modify-file true false /head/contrib/top/version.c 17028 17253