DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: c

⟦fa7232df4⟧

    Length: 1975 (0x7b7)
    Names: »ctermid.3«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat3/ctermid.3« 

Default Hex Dump

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 63 74 65 72 6d 69 64 28 33 29 0a 0a 0a 0a   ┆ions              ctermid(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 63 74 65 72 6d 69 64 20 2d 20 67 65 6e 65 72 61 74 65 20 66 69 6c 65 20 6e 61 6d 65 20 66   ┆  ctermid - generate file name f┆
0x0a0…0c0 6f 72 20 74 65 72 6d 69 6e 61 6c 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e   ┆or terminal  S S S SY Y Y YN N N┆
0x0c0…0e0 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 20 20 23 08 23   ┆ NT T T TA A A AX X X X      # #┆
0x0e0…100 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 6c 08 6c 08 6c   ┆ # #i i i in n n nc c c cl l l l┆
0x100…120 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 08 3c 73 08 73   ┆u u u ud d d de e e e < < < <s s┆
0x120…140 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f   ┆ s st t t td d d di i i io o o o┆
0x140…160 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 63 08 63 08   ┆. . . .h h h h> > > >       c c ┆
0x160…180 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a   ┆c ch h h ha a a ar r r r * * * *┆
0x180…1a0 63 08 63 08 63 08 63 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08   ┆c c c ct t t te e e er r r rm m ┆
0x1a0…1c0 6d 08 6d 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28 08 28 08 28 73 08 73 08 73 08 73 29   ┆m mi i i id d d d( ( ( (s s s s)┆
0x1c0…1e0 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 61 08 61 08 61 08   ┆ ) ) )      c c c ch h h ha a a ┆
0x1e0…200 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 0a   ┆ar r r r * * * *s s s s; ; ; ;  ┆
0x200…220 44 08 44 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   ┆D D D DE E E ES S S SC C C CR R ┆
0x220…240 52 08 52 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   ┆R RI I I IP P P PT T T TI I I IO┆
0x240…260 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 63 5f 08 74 5f 08 65 5f 08 72 5f   ┆ O O ON N N N      _ c_ t_ e_ r_┆
0x260…280 08 6d 5f 08 69 5f 08 64 20 67 65 6e 65 72 61 74 65 73 20 74 68 65 20 70 61 74 68 20 6e 61 6d 65   ┆ m_ i_ d generates the path name┆
0x280…2a0 20 6f 66 20 74 68 65 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67 20 74 65 72 6d 69 6e 61 6c 0a 20 20 20   ┆ of the controlling terminal    ┆
0x2a0…2c0 20 20 66 6f 72 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 72 6f 63 65 73 73 2c 20 61 6e 64 20 73   ┆  for the current process, and s┆
0x2c0…2e0 74 6f 72 65 73 20 69 74 20 69 6e 20 61 20 73 74 72 69 6e 67 2e 0a 0a 20 20 20 20 20 49 66 20 5f   ┆tores it in a string.       If _┆
0x2e0…300 08 73 20 69 73 20 61 20 4e 55 4c 4c 20 70 6f 69 6e 74 65 72 2c 20 74 68 65 20 73 74 72 69 6e 67   ┆ s is a NULL pointer, the string┆
0x300…320 20 69 73 20 73 74 6f 72 65 64 20 69 6e 20 61 6e 20 69 6e 74 65 72 6e 61 6c 0a 20 20 20 20 20 73   ┆ is stored in an internal      s┆
0x320…340 74 61 74 69 63 20 61 72 65 61 2c 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 77 68 69 63   ┆tatic area, the contents of whic┆
0x340…360 68 20 61 72 65 20 6f 76 65 72 77 72 69 74 74 65 6e 20 61 74 20 74 68 65 0a 20 20 20 20 20 6e 65   ┆h are overwritten at the      ne┆
0x360…380 78 74 20 63 61 6c 6c 20 74 6f 20 5f 08 63 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 64   ┆xt call to _ c_ t_ e_ r_ m_ i_ d┆
0x380…3a0 2c 20 61 6e 64 20 74 68 65 20 61 64 64 72 65 73 73 20 6f 66 20 77 68 69 63 68 20 69 73 20 72 65   ┆, and the address of which is re┆
0x3a0…3c0 74 75 72 6e 65 64 2e 0a 20 20 20 20 20 4f 74 68 65 72 77 69 73 65 2c 20 5f 08 73 20 69 73 20 61   ┆turned.      Otherwise, _ s is a┆
0x3c0…3e0 73 73 75 6d 65 64 20 74 6f 20 70 6f 69 6e 74 20 74 6f 20 61 20 63 68 61 72 61 63 74 65 72 20 61   ┆ssumed to point to a character a┆
0x3e0…400 72 72 61 79 20 6f 66 20 61 74 0a 20 20 20 20 20 6c 65 61 73 74 20 7b 4c 5f 63 74 65 72 6d 69 64   ┆rray of at      least {L_ctermid┆
0x400…420 7d 20 65 6c 65 6d 65 6e 74 73 3b 20 74 68 65 20 70 61 74 68 20 6e 61 6d 65 20 69 73 20 70 6c 61   ┆} elements; the path name is pla┆
0x420…440 63 65 64 20 69 6e 20 74 68 69 73 0a 20 20 20 20 20 61 72 72 61 79 20 61 6e 64 20 74 68 65 20 76   ┆ced in this      array and the v┆
0x440…460 61 6c 75 65 20 6f 66 20 5f 08 73 20 69 73 20 72 65 74 75 72 6e 65 64 2e 20 20 54 68 65 20 63 6f   ┆alue of _ s is returned.  The co┆
0x460…480 6e 73 74 61 6e 74 0a 20 20 20 20 20 7b 4c 5f 63 74 65 72 6d 69 64 7d 20 69 73 20 64 65 66 69 6e   ┆nstant      {L_ctermid} is defin┆
0x480…4a0 65 64 20 69 6e 20 74 68 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64   ┆ed in the < < < <s s s st t t td┆
0x4a0…4c0 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 2e 08 2e 08 2e 08 2e 68 08 68 08 68   ┆ d d di i i io o o o. . . .h h h┆
0x4c0…4e0 08 68 3e 08 3e 08 3e 08 3e 20 68 65 61 64 65 72 20 66 69 6c 65 2e 0a 0a 53 08 53 08 53 08 53 45   ┆ h> > > > header file.  S S S SE┆
0x4e0…500 08 45 08 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   ┆ E E EE E E E A A A AL L L LS S ┆
0x500…520 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e   ┆S SO O O O      Library Function┆
0x520…540 73 20 28 33 29 3a 20 74 74 79 6e 61 6d 65 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 54 08   ┆s (3): ttyname  N N N NO O O OT ┆
0x540…560 54 08 54 08 54 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 64 69 66   ┆T T TE E E ES S S S      The dif┆
0x560…580 66 65 72 65 6e 63 65 20 62 65 74 77 65 65 6e 20 5f 08 63 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f   ┆ference between _ c_ t_ e_ r_ m_┆
0x580…5a0 08 69 5f 08 64 20 61 6e 64 20 5f 08 74 5f 08 74 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20   ┆ i_ d and _ t_ t_ y_ n_ a_ m_ e ┆
0x5a0…5c0 69 73 20 74 68 61 74 20 5f 08 74 5f 08 74 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 0a 20 20   ┆is that _ t_ t_ y_ n_ a_ m_ e   ┆
0x5c0…5e0 20 20 20 6d 75 73 74 20 62 65 20 68 61 6e 64 65 64 20 61 20 66 69 6c 65 20 64 65 73 63 72 69 70   ┆   must be handed a file descrip┆
0x5e0…600 74 6f 72 20 61 6e 64 20 72 65 74 75 72 6e 73 20 74 68 65 20 61 63 74 75 61 6c 20 6e 61 6d 65 0a   ┆tor and returns the actual name ┆
0x600…620 20 20 20 20 20 6f 66 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 61 73 73 6f 63 69 61 74 65 64 20   ┆     of the terminal associated ┆
0x620…640 77 69 74 68 20 74 68 61 74 20 66 69 6c 65 20 64 65 73 63 72 69 70 74 6f 72 2c 20 77 68 69 6c 65   ┆with that file descriptor, while┆
0x640…660 0a 20 20 20 20 20 5f 08 63 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 69 5f 08 64 20 72 65 74 75   ┆      _ c_ t_ e_ r_ m_ i_ d retu┆
0x660…680 72 6e 73 20 61 20 73 74 72 69 6e 67 20 28 2f 08 2f 08 2f 08 2f 64 08 64 08 64 08 64 65 08 65 08   ┆rns a string (/ / / /d d d de e ┆
0x680…6a0 65 08 65 76 08 76 08 76 08 76 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 74 08 74 08 74 08 74 79   ┆e ev v v v/ / / /t t t tt t t ty┆
0x6a0…6c0 08 79 08 79 08 79 29 20 74 68 61 74 20 77 69 6c 6c 20 72 65 66 65 72 20 74 6f 20 74 68 65 0a 20   ┆ y y y) that will refer to the  ┆
0x6c0…6e0 20 20 20 20 74 65 72 6d 69 6e 61 6c 20 69 66 20 75 73 65 64 20 61 73 20 61 20 66 69 6c 65 20 6e   ┆    terminal if used as a file n┆
0x6e0…700 61 6d 65 2e 20 20 54 68 75 73 20 5f 08 74 5f 08 74 5f 08 79 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65   ┆ame.  Thus _ t_ t_ y_ n_ a_ m_ e┆
0x700…720 20 69 73 20 75 73 65 66 75 6c 0a 20 20 20 20 20 6f 6e 6c 79 20 69 66 20 74 68 65 20 70 72 6f 63   ┆ is useful      only if the proc┆
0x720…740 65 73 73 20 61 6c 72 65 61 64 79 20 68 61 73 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 66 69 6c   ┆ess already has at least one fil┆
0x740…760 65 20 6f 70 65 6e 20 74 6f 20 61 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 2e 0a 0a 44 65 63 65   ┆e open to a      terminal.  Dece┆
0x760…780 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆mber 1990                       ┆
0x780…7a0 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a   ┆    TX Programmer's Reference   ┆
0x7a0…7b7 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                              ┆                       ┆