⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utmp.5

📁 Unix操作系统minix 2.0源码
💻 5
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:09:58 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne   { exch newdict 3 1 roll put }   { pop pop } % Ignore FID   ifelse} forallnewdict begin/Encoding  tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval  cvn load  def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(UTMP)S1008(\()S1050(5)S1108(\))S2696(Eighth)S(Edition)296 2989 A4839(UTMP)S5127(\()S5169(5)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(utmp,)S1336(wtmp)S10 R-11590(-)S10 R(logged)273 1672 A1970(in)S2073(users,)S2330(login)S2561(and)S(logout)256 2731 A3012(history)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(#include)S1482(<sys/types.h>)S1488 V1080(#include)S1482(<utmp.h>)S1656 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1776 V10 R1080(The)S1263(\256les)S10 B1457(/etc/utmp)S10 R1893(and)S10 B2064(/usr/adm/wtmp)S10 R2751(respectively)S3264(contain)S3586(the)S3735(currently)S(logged)273 4125 A4424(in)S4529(users,)S4788(and)S4960(the)S5110(his-)S1896 V1080(tory)S1267(of)S1376(logins)S1646(and)S(logouts.)320 1816 A2064 V1080(Each)S1307(\256le)S1461(is)S1553(an)S1673(array)S1906(of)S2015(the)S2163(following)S2579(structure)S2957(de\256ned)S3278(in)S3381(<utmp.h>:)S2232 V1080(struct)S1329(utmp)S1560({)S2352 V1330(char)S2080(ut_user[8];)S2830(/*)S2933(user)S3126(name)S3369(*/)S2472 V1330(char)S2080(ut_line[12];)S2830(/*)S2933(terminal)S3294(name)S3537(*/)S2592 V1330(char)S(ut_host[16];)491 2080 A2830(/*)S2933(host)S3125(name,)S3393(when)S3636(remote)S3941(*/)S2712 V1330(time_t)S2080(ut_time;)S2830(/*)S(login/logout)490 2933 A3448(time)S3652(*/)S2832 V1080(};)S3000 V1080(#de\256ne)S1401(ut_name)S1772(ut_user/*)S2171(for)S(compatibility)536 2314 A2875(with)S3079(other)S3311(systems)S3654(*/)S3168 V1080(The)S1263(structure)S1642(contains)S2003(more)S2236(\256elds)S2480(than)S2679(those)S2917(listed,)S3186(but)S3340(they)S3539(are)S3689(only)S3893(of)S4003(interest)S4326(to)S10 B4431(init)S10 R4604(and)S10 B4776(login)S10 R4988(.)S5065(Note)S3288 V1080(that)S1256(the)S10 B1404(ut_name)S10 R1804(\256eld)S2008(is)S2100(a)S(compatibility)536 2170 A2731(alias)S2941(for)S10 B3084(ut_user)S10 R3409(,)S3459(it)S3540(is)S3632(actually)S3976(better)S4231(to)S4334(use)S4493(it.)S3456 V1080(A)S1187(login)S1427(entry)S1668(is)S1769(completely)S2250(speci\256ed.)S2692(A)S(logout)256 2799 A3089(entry)S3330(has)S3498(a)S3577(null)S3767(string)S4031(for)S10 B4184(ut_name)S10 R4559(.)S4644(A)S4752(shutdown)S5177(or)S3576 V(reboot)257 1080 A1366(entry)S1602(has)S1765(an)S10 B1889(ut_line)S10 R2215(\256eld)S2423(containing)S2876(a)S2950("\304")S(\(tilde\).)272 3095 A3421(The)S10 B3606(ut_name)S10 R4009(\256eld)S4216(is)S4311(usually)S4629(the)S4780(name)S5026(of)S5138(the)S3696 V1080(program)S1447(that)S1624(did)S1778(the)S1927(shutdown,)S2368(or)S("reboot")339 2479 A2845(at)S(reboot.)282 2945 A3279(This)S3485(is)S3579(a)S3651(bit)S3784(confusing,)S4232(but)S4387(note)S4587(that)S4765(there)S(should)267 4994 A3816 V1080(always)S1386(be)S1507(two)S1684(such)S1894(entries.)S2239(If)S(you)150 2332 A2507(see)S2661(just)S2831(one)S3001(entry)S3233(then)S3431(the)S3579(system)S3883(has)S4042(crashed,)S4400(if)S(you)150 4487 A4662(see)S4816(two)S4992(entries)S3936 V1080(then)S1278(the)S1426(system)S1730(was)S1912(properly)S2278(shut)S2470(down)S2718(and)S2888(later)S(rebooted.)377 3093 A4104 V9 R720(F)S722(FI)S774(IL)S807(LE)S865(ES)S923(S)S4224 V10 B1080(/etc/utmp)S10 R2330(Currently)S(logged)273 2741 A3039(in)S3142(users.)S4392 V10 B1080(/usr/adm/wtmp)S10 R2330(History)S2657(of)S2766(logins)S3036(and)S(logouts.)320 3206 A4560 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S4680 V10 B1080(who)S10 R1259(\(1\),)S10 B1427(ttyslot)S10 R1696(\(3\).)S4848 V9 R720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S4968 V10 R1080(Kees)S1307(J.)S1396(Bot)S1566(\(kjb@cs.vu.nl\))S7903 V720(Page)S941(1)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold%%Pages: 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -