|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: s
Length: 2657 (0xa61)
Names: »syslog.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/syslog.3«
└─⟦this⟧ »./usr/man/cat3/syslog.3«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 79 73 6c 6f 67 28 33 29 0a 0a 0a 0a ┆ions syslog(3) ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x080…0a0 20 20 73 79 73 6c 6f 67 2c 20 6f 70 65 6e 6c 6f 67 2c 20 63 6c 6f 73 65 6c 6f 67 20 2d 20 63 6f ┆ syslog, openlog, closelog - co┆
0x0a0…0c0 6e 74 72 6f 6c 20 73 79 73 74 65 6d 20 6c 6f 67 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 ┆ntrol system log S S S SY Y Y Y┆
0x0c0…0e0 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 ┆N N N NT T T TA A A AX X X X ┆
0x0e0…100 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 ┆ # # # #i i i in n n nc c c cl ┆
0x100…120 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c ┆l l lu u u ud d d de e e e < < <┆
0x120…140 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 6c 08 6c 08 6c 08 6c 6f 08 ┆ <s s s sy y y ys s s sl l l lo ┆
0x140…160 6f 08 6f 08 6f 67 08 67 08 67 08 67 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 ┆o o og g g g. . . .h h h h> > > ┆
0x160…180 3e 0a 0a 20 20 20 20 20 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 6e 08 6e ┆> o o o op p p pe e e en n┆
0x180…1a0 08 6e 08 6e 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 67 08 67 08 67 08 67 28 08 28 08 28 08 28 ┆ n nl l l lo o o og g g g( ( ( (┆
0x1a0…1c0 69 08 69 08 69 08 69 64 08 64 08 64 08 64 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 ┆i i i id d d de e e en n n nt t ┆
0x1c0…1e0 74 08 74 2c 08 2c 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 67 08 67 08 67 08 67 ┆t t, , , , l l l lo o o og g g g┆
0x1e0…200 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61 08 61 74 08 74 08 74 08 74 29 08 29 08 ┆s s s st t t ta a a at t t t) ) ┆
0x200…220 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 ┆) ) c c c ch h h ha a a ar ┆
0x220…240 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 69 08 69 08 69 08 69 64 08 64 08 64 08 64 65 08 65 08 65 ┆r r r * * * *i i i id d d de e e┆
0x240…260 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 ┆ en n n nt t t t; ; ; ; s ┆
0x260…280 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 ┆s s sy y y ys s s sl l l lo o o ┆
0x280…2a0 6f 67 08 67 08 67 08 67 28 08 28 08 28 08 28 70 08 70 08 70 08 70 72 08 72 08 72 08 72 69 08 69 ┆og g g g( ( ( (p p p pr r r ri i┆
0x2a0…2c0 08 69 08 69 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 69 08 69 08 69 08 69 74 08 74 08 74 08 74 ┆ i io o o or r r ri i i it t t t┆
0x2c0…2e0 79 08 79 08 79 08 79 2c 08 2c 08 2c 08 2c 20 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 73 08 73 ┆y y y y, , , , m m m me e e es s┆
0x2e0…300 08 73 08 73 73 08 73 08 73 08 73 61 08 61 08 61 08 61 67 08 67 08 67 08 67 65 08 65 08 65 08 65 ┆ s ss s s sa a a ag g g ge e e e┆
0x300…320 2c 08 2c 08 2c 08 2c 20 70 08 70 08 70 08 70 61 08 61 08 61 08 61 72 08 72 08 72 08 72 61 08 61 ┆, , , , p p p pa a a ar r r ra a┆
0x320…340 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 74 08 74 08 74 08 74 65 08 65 08 65 08 65 ┆ a am m m me e e et t t te e e e┆
0x340…360 72 08 72 08 72 08 72 73 08 73 08 73 08 73 20 2e 08 2e 08 2e 08 2e 2e 08 2e 08 2e 08 2e 2e 08 2e ┆r r r rs s s s . . . .. . . .. .┆
0x360…380 08 2e 08 2e 20 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 ┆ . . ) ) ) ) c c c ch h h h┆
0x380…3a0 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 6d 08 6d 08 6d 08 6d 65 08 65 ┆a a a ar r r r * * * *m m m me e┆
0x3a0…3c0 08 65 08 65 73 08 73 08 73 08 73 73 08 73 08 73 08 73 61 08 61 08 61 08 61 67 08 67 08 67 08 67 ┆ e es s s ss s s sa a a ag g g g┆
0x3c0…3e0 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 63 08 63 08 63 08 63 6c 08 6c 08 ┆e e e e; ; ; ; c c c cl l ┆
0x3e0…400 6c 08 6c 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 6f ┆l lo o o os s s se e e el l l lo┆
0x400…420 08 6f 08 6f 08 6f 67 08 67 08 67 08 67 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 44 08 44 ┆ o o og g g g( ( ( () ) ) ) D D┆
0x420…440 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 ┆ D DE E E ES S S SC C C CR R R R┆
0x440…460 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 ┆I I I IP P P PT T T TI I I IO O ┆
0x460…480 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 73 5f 08 79 5f 08 73 5f 08 6c 5f 08 6f 5f ┆O ON N N N _ s_ y_ s_ l_ o_┆
0x480…4a0 08 67 20 61 72 72 61 6e 67 65 73 20 74 6f 20 77 72 69 74 65 20 74 68 65 20 5f 08 6d 5f 08 65 5f ┆ g arranges to write the _ m_ e_┆
0x4a0…4c0 08 73 5f 08 73 5f 08 61 5f 08 67 5f 08 65 20 6f 6e 74 6f 20 74 68 65 20 73 79 73 74 65 6d 20 6c ┆ s_ s_ a_ g_ e onto the system l┆
0x4c0…4e0 6f 67 0a 20 20 20 20 20 6d 61 69 6e 74 61 69 6e 65 64 20 62 79 20 5f 08 73 5f 08 79 5f 08 73 5f ┆og maintained by _ s_ y_ s_┆
0x4e0…500 08 6c 5f 08 6f 5f 08 67 28 38 29 2e 20 20 54 68 65 20 6d 65 73 73 61 67 65 20 69 73 20 74 61 67 ┆ l_ o_ g(8). The message is tag┆
0x500…520 67 65 64 20 77 69 74 68 20 5f 08 70 5f 08 72 5f 08 69 5f 08 6f 5f 08 72 5f 08 2d 0a 20 20 20 20 ┆ged with _ p_ r_ i_ o_ r_ - ┆
0x520…540 20 5f 08 69 5f 08 74 5f 08 79 2e 20 20 54 68 65 20 6d 65 73 73 61 67 65 20 6c 6f 6f 6b 73 20 6c ┆ _ i_ t_ y. The message looks l┆
0x540…560 69 6b 65 20 61 20 5f 08 70 5f 08 72 5f 08 69 5f 08 6e 5f 08 74 5f 08 66 28 33 29 20 73 74 72 69 ┆ike a _ p_ r_ i_ n_ t_ f(3) stri┆
0x560…580 6e 67 20 65 78 63 65 70 74 20 74 68 61 74 0a 20 20 20 20 20 25 08 25 08 25 08 25 6d 08 6d 08 6d ┆ng except that % % % %m m m┆
0x580…5a0 08 6d 20 69 73 20 72 65 70 6c 61 63 65 64 20 62 79 20 74 68 65 20 63 75 72 72 65 6e 74 20 65 72 ┆ m is replaced by the current er┆
0x5a0…5c0 72 6f 72 20 6d 65 73 73 61 67 65 20 28 63 6f 6c 6c 65 63 74 65 64 20 66 72 6f 6d 0a 20 20 20 20 ┆ror message (collected from ┆
0x5c0…5e0 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 29 2e 20 20 41 20 74 72 61 69 6c 69 6e 67 20 6e ┆ _ e_ r_ r_ n_ o). A trailing n┆
0x5e0…600 65 77 6c 69 6e 65 20 69 73 20 61 64 64 65 64 20 69 66 20 6e 65 65 64 65 64 2e 20 20 54 68 69 73 ┆ewline is added if needed. This┆
0x600…620 20 6d 65 73 2d 0a 20 20 20 20 20 73 61 67 65 20 77 69 6c 6c 20 62 65 20 72 65 61 64 20 62 79 20 ┆ mes- sage will be read by ┆
0x620…640 5f 08 73 5f 08 79 5f 08 73 5f 08 6c 5f 08 6f 5f 08 67 28 38 29 20 61 6e 64 20 6f 75 74 70 75 74 ┆_ s_ y_ s_ l_ o_ g(8) and output┆
0x640…660 20 74 6f 20 74 68 65 20 73 79 73 74 65 6d 20 63 6f 6e 2d 0a 20 20 20 20 20 73 6f 6c 65 20 6f 72 ┆ to the system con- sole or┆
0x660…680 20 66 69 6c 65 73 20 61 73 20 61 70 70 72 6f 70 72 69 61 74 65 2e 0a 0a 20 20 20 20 20 49 66 20 ┆ files as appropriate. If ┆
0x680…6a0 73 70 65 63 69 61 6c 20 70 72 6f 63 65 73 73 69 6e 67 20 69 73 20 6e 65 65 64 65 64 2c 20 5f 08 ┆special processing is needed, _ ┆
0x6a0…6c0 6f 5f 08 70 5f 08 65 5f 08 6e 5f 08 6c 5f 08 6f 5f 08 67 20 63 61 6e 20 62 65 20 63 61 6c 6c 65 ┆o_ p_ e_ n_ l_ o_ g can be calle┆
0x6c0…6e0 64 20 74 6f 0a 20 20 20 20 20 69 6e 69 74 69 61 6c 69 7a 65 20 74 68 65 20 6c 6f 67 20 66 69 6c ┆d to initialize the log fil┆
0x6e0…700 65 2e 20 20 50 61 72 61 6d 65 74 65 72 73 20 61 72 65 20 5f 08 69 5f 08 64 5f 08 65 5f 08 6e 5f ┆e. Parameters are _ i_ d_ e_ n_┆
0x700…720 08 74 20 77 68 69 63 68 20 69 73 0a 20 20 20 20 20 70 72 65 70 65 6e 64 65 64 20 74 6f 20 65 76 ┆ t which is prepended to ev┆
0x720…740 65 72 79 20 6d 65 73 73 61 67 65 2c 20 61 6e 64 20 5f 08 6c 5f 08 6f 5f 08 67 5f 08 73 5f 08 74 ┆ery message, and _ l_ o_ g_ s_ t┆
0x740…760 5f 08 61 5f 08 74 20 77 68 69 63 68 20 69 73 20 61 20 62 69 74 20 66 69 65 6c 64 0a 20 20 20 20 ┆_ a_ t which is a bit field ┆
0x760…780 20 69 6e 64 69 63 61 74 69 6e 67 20 73 70 65 63 69 61 6c 20 73 74 61 74 75 73 3b 20 63 75 72 72 ┆ indicating special status; curr┆
0x780…7a0 65 6e 74 20 76 61 6c 75 65 73 20 61 72 65 3a 0a 0a 20 20 20 20 20 4c 4f 47 5f 50 49 44 20 20 20 ┆ent values are: LOG_PID ┆
0x7a0…7c0 6c 6f 67 20 74 68 65 20 70 72 6f 63 65 73 73 20 69 64 20 77 69 74 68 20 65 61 63 68 20 6d 65 73 ┆log the process id with each mes┆
0x7c0…7e0 73 61 67 65 3a 20 75 73 65 66 75 6c 20 66 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆sage: useful for ┆
0x7e0…800 69 64 65 6e 74 69 66 79 69 6e 67 20 69 6e 73 74 61 6e 74 69 61 74 69 6f 6e 73 20 6f 66 20 64 61 ┆identifying instantiations of da┆
0x800…820 65 6d 6f 6e 73 2e 0a 0a 20 20 20 20 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 5f 08 6c 5f 08 6f 5f ┆emons. _ o_ p_ e_ n_ l_ o_┆
0x820…840 08 67 20 72 65 74 75 72 6e 73 20 7a 65 72 6f 20 6f 6e 20 73 75 63 63 65 73 73 2e 20 20 49 66 20 ┆ g returns zero on success. If ┆
0x840…860 69 74 20 63 61 6e 6e 6f 74 20 6f 70 65 6e 20 74 68 65 20 66 69 6c 65 0a 20 20 20 20 20 2f 64 65 ┆it cannot open the file /de┆
0x860…880 76 2f 73 79 73 6c 6f 67 2c 20 69 74 20 77 72 69 74 65 73 20 6f 6e 20 2f 64 65 76 2f 63 6f 6e 73 ┆v/syslog, it writes on /dev/cons┆
0x880…8a0 6f 6c 65 20 69 6e 73 74 65 61 64 20 61 6e 64 20 72 65 74 75 72 6e 73 0a 20 20 20 20 20 2d 31 2e ┆ole instead and returns -1.┆
0x8a0…8c0 0a 0a 20 20 20 20 20 5f 08 63 5f 08 6c 5f 08 6f 5f 08 73 5f 08 65 5f 08 6c 5f 08 6f 5f 08 67 20 ┆ _ c_ l_ o_ s_ e_ l_ o_ g ┆
0x8c0…8e0 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 63 6c 6f 73 65 20 74 68 65 20 6c 6f 67 20 66 69 6c ┆can be used to close the log fil┆
0x8e0…900 65 2e 0a 0a 45 08 45 08 45 08 45 58 08 58 08 58 08 58 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d ┆e. E E E EX X X XA A A AM M M M┆
0x900…920 50 08 50 08 50 08 50 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 ┆P P P PL L L LE E E ES S S S ┆
0x920…940 20 20 73 79 73 6c 6f 67 28 4c 4f 47 5f 53 41 4c 45 52 54 2c 20 22 77 68 6f 3a 20 69 6e 74 65 72 ┆ syslog(LOG_SALERT, "who: inter┆
0x940…960 6e 61 6c 20 65 72 72 6f 72 20 32 33 22 29 3b 0a 0a 20 20 20 20 20 6f 70 65 6e 6c 6f 67 28 22 73 ┆nal error 23"); openlog("s┆
0x960…980 65 72 76 65 72 66 74 70 22 2c 20 4c 4f 47 5f 50 49 44 29 3b 0a 20 20 20 20 20 73 79 73 6c 6f 67 ┆erverftp", LOG_PID); syslog┆
0x980…9a0 28 4c 4f 47 5f 49 4e 46 4f 2c 20 22 43 6f 6e 6e 65 63 74 69 6f 6e 20 66 72 6f 6d 20 68 6f 73 74 ┆(LOG_INFO, "Connection from host┆
0x9a0…9c0 20 25 64 22 2c 20 43 61 6c 6c 69 6e 67 48 6f 73 74 29 3b 0a 0a 53 08 53 08 53 08 53 45 08 45 08 ┆ %d", CallingHost); S S S SE E ┆
0x9c0…9e0 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 ┆E EE E E E A A A AL L L LS S S S┆
0x9e0…a00 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 4d 61 6e 61 67 65 72 20 43 6f 6d 6d ┆O O O O System Manager Comm┆
0xa00…a20 61 6e 64 73 20 28 38 29 3a 20 20 73 79 73 6c 6f 67 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 ┆ands (8): syslog March 1989 ┆
0xa20…a40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 ┆ TX Pr┆
0xa40…a60 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ogrammer's Reference ┆
0xa60…a61 0a ┆ ┆