|
|
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: 6175 (0x181f)
Names: »setitimer.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat2/setitimer.2«
0x0000…0020 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_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆ 0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 69 74 69 6d 65 72 28 32 29 0a 0a 0a 0a ┆s setitimer(2) ┆ 0x0060…0080 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 ┆ 0x0080…00a0 20 20 73 65 74 69 74 69 6d 65 72 20 2d 20 73 65 74 20 76 61 6c 75 65 20 6f 66 20 69 6e 74 65 72 ┆ setitimer - set value of inter┆ 0x00a0…00c0 76 61 6c 20 74 69 6d 65 72 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e ┆val timer S S S SY Y Y YN N N N┆ 0x00c0…00e0 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 08 23 ┆T T T TA A A AX X X X # # #┆ 0x00e0…0100 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 75 08 ┆ #i i i in n n nc c c cl l l lu ┆ 0x0100…0120 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 08 73 ┆u u ud d d de e e e < < < <s s s┆ 0x0120…0140 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 69 08 ┆ sy y y ys s s s/ / / /t t t ti ┆ 0x0140…0160 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 ┆i i im m m me e e e. . . .h h h ┆ 0x0160…0180 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 ┆h> > > > s s s se e e et t┆ 0x0180…01a0 08 74 08 74 69 08 69 08 69 08 69 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d ┆ t ti i i it t t ti i i im m m m┆ 0x01a0…01c0 65 08 65 08 65 08 65 72 08 72 08 72 08 72 28 08 28 08 28 08 28 77 08 77 08 77 08 77 68 08 68 08 ┆e e e er r r r( ( ( (w w w wh h ┆ 0x01c0…01e0 68 08 68 69 08 69 08 69 08 69 63 08 63 08 63 08 63 68 08 68 08 68 08 68 2c 08 2c 08 2c 08 2c 20 ┆h hi i i ic c c ch h h h, , , , ┆ 0x01e0…0200 76 08 76 08 76 08 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 65 08 65 08 ┆v v v va a a al l l lu u u ue e ┆ 0x0200…0220 65 08 65 2c 08 2c 08 2c 08 2c 20 6f 08 6f 08 6f 08 6f 76 08 76 08 76 08 76 61 08 61 08 61 08 61 ┆e e, , , , o o o ov v v va a a a┆ 0x0220…0240 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 65 08 65 08 65 08 65 29 08 29 08 29 08 29 0a 20 20 20 ┆l l l lu u u ue e e e) ) ) ) ┆ 0x0240…0260 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 77 08 77 08 77 08 77 68 ┆ i i i in n n nt t t t w w w wh┆ 0x0260…0280 08 68 08 68 08 68 69 08 69 08 69 08 69 63 08 63 08 63 08 63 68 08 68 08 68 08 68 3b 08 3b 08 3b ┆ h h hi i i ic c c ch h h h; ; ;┆ 0x0280…02a0 08 3b 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 ┆ ; s s s st t t tr r r ru u┆ 0x02a0…02c0 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 69 08 69 08 69 08 69 74 08 74 08 74 08 ┆ u uc c c ct t t t i i i it t t ┆ 0x02c0…02e0 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 72 08 72 08 72 08 72 76 08 76 ┆ti i i im m m me e e er r r rv v┆ 0x02e0…0300 08 76 08 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 20 2a 08 2a 08 2a 08 2a 76 08 76 08 76 08 ┆ v va a a al l l l * * * *v v v ┆ 0x0300…0320 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 65 08 65 08 65 08 65 2c 08 2c ┆va a a al l l lu u u ue e e e, ,┆ 0x0320…0340 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 6f 08 6f 08 6f 08 6f 76 08 76 08 76 08 76 61 08 61 08 61 08 ┆ , , * * * *o o o ov v v va a a ┆ 0x0340…0360 61 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 44 ┆al l l lu u u ue e e e; ; ; ; D┆ 0x0360…0380 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 52 ┆ D D DE E E ES S S SC C C CR R R┆ 0x0380…03a0 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 08 ┆ RI I I IP P P PT T T TI I I IO ┆ 0x03a0…03c0 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 73 79 73 74 65 6d 20 70 72 6f ┆O O ON N N N The system pro┆ 0x03c0…03e0 76 69 64 65 73 20 34 20 69 6e 74 65 72 76 61 6c 20 74 69 6d 65 72 73 20 70 65 72 20 70 72 6f 63 ┆vides 4 interval timers per proc┆ 0x03e0…0400 65 73 73 2c 20 61 73 0a 20 20 20 20 20 64 65 66 69 6e 65 64 20 69 6e 20 3c 73 79 73 2f 74 69 6d ┆ess, as defined in <sys/tim┆ 0x0400…0420 65 2e 68 3e 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 73 5f 08 65 5f 08 74 5f 08 69 5f 08 74 5f ┆e.h>. The _ s_ e_ t_ i_ t_┆ 0x0420…0440 08 69 5f 08 6d 5f 08 65 5f 08 72 20 63 61 6c 6c 20 73 65 74 73 20 74 68 65 20 76 61 6c 75 65 20 ┆ i_ m_ e_ r call sets the value ┆ 0x0440…0460 6f 66 20 61 20 74 69 6d 65 72 20 5f 08 77 5f 08 68 5f 08 69 5f 08 63 5f 08 68 20 28 6f 70 74 69 ┆of a timer _ w_ h_ i_ c_ h (opti┆ 0x0460…0480 6f 6e 2d 0a 20 20 20 20 20 61 6c 6c 79 20 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 70 72 65 76 ┆on- ally returning the prev┆ 0x0480…04a0 69 6f 75 73 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 74 69 6d 65 72 29 2e 0a 0a 20 20 20 20 20 ┆ious value of the timer). ┆ 0x04a0…04c0 77 08 77 08 77 08 77 68 08 68 08 68 08 68 69 08 69 08 69 08 69 63 08 63 08 63 08 63 68 08 68 08 ┆w w w wh h h hi i i ic c c ch h ┆ 0x04c0…04e0 68 08 68 0a 20 20 20 20 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 69 6e 74 65 ┆h h Specifies the inte┆ 0x04e0…0500 72 76 61 6c 20 74 69 6d 65 72 20 74 6f 20 63 68 61 6e 67 65 2e 20 20 49 74 20 69 73 20 6f 6e 65 ┆rval timer to change. It is one┆ 0x0500…0520 20 6f 66 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 49 54 49 4d 45 52 5f 52 45 41 4c 0a 20 20 20 20 ┆ of: ITIMER_REAL ┆ 0x0520…0540 20 20 20 20 20 20 20 20 20 20 20 64 65 63 72 65 6d 65 6e 74 73 20 69 6e 20 72 65 61 6c 20 74 69 ┆ decrements in real ti┆ 0x0540…0560 6d 65 2e 20 20 54 68 65 20 53 49 47 41 4c 52 4d 20 73 69 67 6e 61 6c 20 69 73 0a 20 20 20 20 20 ┆me. The SIGALRM signal is ┆ 0x0560…0580 20 20 20 20 20 20 20 20 20 20 64 65 6c 69 76 65 72 65 64 20 77 68 65 6e 20 74 68 65 20 74 69 6d ┆ delivered when the tim┆ 0x0580…05a0 65 72 20 65 78 70 69 72 65 73 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 49 54 49 4d 45 52 5f 56 49 ┆er expires. ITIMER_VI┆ 0x05a0…05c0 52 54 55 41 4c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 63 72 65 6d 65 6e 74 73 20 ┆RTUAL decrements ┆ 0x05c0…05e0 69 6e 20 70 72 6f 63 65 73 73 20 76 69 72 74 75 61 6c 20 74 69 6d 65 2c 20 74 68 61 74 20 69 73 ┆in process virtual time, that is┆ 0x05e0…0600 2c 20 6f 6e 6c 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20 74 68 65 20 ┆, only while the ┆ 0x0600…0620 70 72 6f 67 72 61 6d 20 63 6f 64 65 20 69 73 20 65 78 65 63 75 74 69 6e 67 2e 20 20 54 68 65 0a ┆program code is executing. The ┆ 0x0620…0640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 49 47 56 54 41 4c 52 4d 20 73 69 67 6e 61 6c 20 ┆ SIGVTALRM signal ┆ 0x0640…0660 69 73 20 64 65 6c 69 76 65 72 65 64 20 77 68 65 6e 20 74 68 65 20 74 69 6d 65 72 0a 20 20 20 20 ┆is delivered when the timer ┆ 0x0660…0680 20 20 20 20 20 20 20 20 20 20 20 65 78 70 69 72 65 73 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 49 ┆ expires. I┆ 0x0680…06a0 54 49 4d 45 52 5f 50 52 4f 46 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 63 72 65 6d ┆TIMER_PROF decrem┆ 0x06a0…06c0 65 6e 74 73 20 62 6f 74 68 20 69 6e 20 70 72 6f 63 65 73 73 20 76 69 72 74 75 61 6c 20 74 69 6d ┆ents both in process virtual tim┆ 0x06c0…06e0 65 20 61 6e 64 20 77 68 69 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 73 ┆e and while the s┆ 0x06e0…0700 79 73 74 65 6d 20 65 78 65 63 75 74 65 73 20 6f 6e 20 62 65 68 61 6c 66 20 6f 66 20 74 68 65 20 ┆ystem executes on behalf of the ┆ 0x0700…0720 70 72 6f 63 65 73 73 2e 20 20 54 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6d ┆process. The tim┆ 0x0720…0740 65 72 20 69 73 20 75 73 65 64 20 62 79 20 69 6e 74 65 72 70 72 65 74 65 72 73 20 66 6f 72 20 70 ┆er is used by interpreters for p┆ 0x0740…0760 72 6f 66 69 6c 65 20 73 74 61 74 69 73 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 ┆rofile statis- ti┆ 0x0760…0780 63 73 20 6f 66 20 69 6e 74 65 72 70 72 65 74 65 64 20 70 72 6f 67 72 61 6d 73 2e 20 20 46 6f 72 ┆cs of interpreted programs. For┆ 0x0780…07a0 20 65 61 63 68 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 54 49 4d 45 52 5f 50 52 4f 46 ┆ each ITIMER_PROF┆ 0x07a0…07c0 20 74 69 6d 65 72 20 65 78 70 69 72 61 74 69 6f 6e 2c 20 74 68 65 20 53 49 47 50 52 4f 46 20 73 ┆ timer expiration, the SIGPROF s┆ 0x07c0…07e0 69 67 6e 61 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 20 64 65 6c 69 76 65 72 65 ┆ignal is delivere┆ 0x07e0…0800 64 2e 20 20 42 65 63 61 75 73 65 20 74 68 69 73 20 73 69 67 6e 61 6c 20 6d 61 79 20 69 6e 74 65 ┆d. Because this signal may inte┆ 0x0800…0820 72 72 75 70 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 2d 70 72 6f 63 65 73 73 20 ┆rrupt in-process ┆ 0x0820…0840 73 79 73 74 65 6d 20 63 61 6c 6c 73 2c 20 70 72 6f 67 72 61 6d 73 20 75 73 69 6e 67 20 74 68 69 ┆system calls, programs using thi┆ 0x0840…0860 73 20 74 69 6d 65 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 75 73 74 20 72 65 73 74 ┆s timer must rest┆ 0x0860…0880 61 72 74 20 69 6e 74 65 72 72 75 70 74 65 64 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 2c 20 77 68 ┆art interrupted system calls, wh┆ 0x0880…08a0 69 63 68 20 61 72 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 6f 74 20 61 75 74 6f 6d ┆ich are not autom┆ 0x08a0…08c0 61 74 69 63 61 6c 6c 79 20 72 65 73 74 61 72 74 65 64 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 49 ┆atically restarted. I┆ 0x08c0…08e0 54 49 4d 45 52 5f 54 49 4d 45 4f 55 54 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 63 ┆TIMER_TIMEOUT dec┆ 0x08e0…0900 72 65 6d 65 6e 74 73 20 64 75 72 69 6e 67 20 49 2f 4f 20 77 61 69 74 73 2e 20 20 54 68 65 73 65 ┆rements during I/O waits. These┆ 0x0900…0920 20 69 6e 63 6c 75 64 65 20 77 61 69 74 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f ┆ include waits to┆ 0x0920…0940 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 2c 20 5f 08 77 5f 08 72 5f 08 69 5f 08 74 5f 08 65 20 6f ┆ _ r_ e_ a_ d, _ w_ r_ i_ t_ e o┆ 0x0940…0960 72 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 61 20 66 69 6c 65 2e 20 20 41 6c 73 6f 20 69 6e 63 ┆r _ o_ p_ e_ n a file. Also inc┆ 0x0960…0980 6c 75 64 65 64 20 61 72 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 61 69 74 73 20 74 ┆luded are waits t┆ 0x0980…09a0 6f 20 6f 62 74 61 69 6e 20 61 20 6c 6f 63 6b 20 77 69 74 68 20 5f 08 6d 5f 08 62 5f 08 6c 5f 08 ┆o obtain a lock with _ m_ b_ l_ ┆ 0x09a0…09c0 6f 5f 08 63 5f 08 6b 20 6f 72 20 5f 08 66 5f 08 6c 5f 08 6f 5f 08 63 5f 08 6b 2e 20 20 54 68 69 ┆o_ c_ k or _ f_ l_ o_ c_ k. Thi┆ 0x09c0…09e0 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 76 6f 69 64 73 20 70 72 6f 63 65 73 73 20 ┆s avoids process ┆ 0x09e0…0a00 68 61 6e 67 73 20 64 75 65 20 74 6f 20 72 65 73 6f 75 72 63 65 20 75 6e 61 76 61 69 6c 61 62 69 ┆hangs due to resource unavailabi┆ 0x0a00…0a20 6c 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 74 79 20 28 66 6f 72 20 65 78 61 6d 70 ┆l- ity (for examp┆ 0x0a20…0a40 6c 65 2c 20 68 61 6e 64 6c 69 6e 67 20 64 65 61 64 6c 6f 63 6b 73 20 74 68 61 74 20 73 70 61 6e ┆le, handling deadlocks that span┆ 0x0a40…0a60 20 32 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 72 20 6d 6f 72 65 20 50 55 73 20 64 75 ┆ 2 or more PUs du┆ 0x0a60…0a80 72 69 6e 67 20 61 20 74 72 61 6e 73 61 63 74 69 6f 6e 29 2e 20 20 54 68 65 20 74 69 6d 65 72 0a ┆ring a transaction). The timer ┆ 0x0a80…0aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 63 74 69 76 61 74 65 73 20 6f 6e 20 61 20 70 65 ┆ activates on a pe┆ 0x0aa0…0ac0 72 2d 73 79 73 74 65 6d 2d 63 61 6c 6c 20 62 61 73 69 73 20 61 6e 64 20 70 65 72 6d 69 74 73 0a ┆r-system-call basis and permits ┆ 0x0ac0…0ae0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 61 69 74 73 20 75 70 20 74 6f 20 74 68 65 20 73 ┆ waits up to the s┆ 0x0ae0…0b00 70 65 63 69 66 69 65 64 20 74 69 6d 65 20 66 6f 72 20 65 61 63 68 20 73 79 73 74 65 6d 0a 20 20 ┆pecified time for each system ┆ 0x0b00…0b20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6c 6c 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ call. ┆ 0x0b20…0b40 20 20 54 68 65 20 53 49 47 41 42 4f 52 54 20 73 69 67 6e 61 6c 20 69 73 20 64 65 6c 69 76 65 72 ┆ The SIGABORT signal is deliver┆ 0x0b40…0b60 65 64 20 77 69 74 68 20 61 20 54 52 5f 54 49 4d 45 4f 55 54 0a 20 20 20 20 20 20 20 20 20 20 20 ┆ed with a TR_TIMEOUT ┆ 0x0b60…0b80 20 20 20 20 63 6f 64 65 2c 20 69 66 20 74 69 6d 65 6f 75 74 20 6f 63 63 75 72 73 20 77 68 65 6e ┆ code, if timeout occurs when┆ 0x0b80…0ba0 20 74 68 65 20 70 72 6f 63 65 73 73 20 69 73 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ the process is in ┆ 0x0ba0…0bc0 20 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 6d 6f 64 65 2e 20 20 49 66 20 74 68 65 20 74 69 6d 65 ┆ transaction mode. If the time┆ 0x0bc0…0be0 6f 75 74 20 6f 63 63 75 72 73 20 6f 75 74 73 69 64 65 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 ┆out occurs outside a ┆ 0x0be0…0c00 20 20 20 20 74 72 61 6e 73 61 63 74 69 6f 6e 2c 20 61 20 53 49 47 45 52 52 20 73 69 67 6e 61 6c ┆ transaction, a SIGERR signal┆ 0x0c00…0c20 20 69 73 20 64 65 6c 69 76 65 72 65 64 20 77 69 74 68 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 ┆ is delivered with the ┆ 0x0c20…0c40 20 20 20 20 20 20 45 54 49 4d 45 4f 55 54 20 63 6f 64 65 2e 20 20 54 68 65 20 77 61 69 74 69 6e ┆ ETIMEOUT code. The waitin┆ 0x0c40…0c60 67 20 73 79 73 74 65 6d 20 63 61 6c 6c 20 72 65 74 75 72 6e 73 20 61 6e 0a 20 20 20 20 20 20 20 ┆g system call returns an ┆ 0x0c60…0c80 20 20 20 20 20 20 20 20 65 72 72 6f 72 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 57 68 ┆ error. Wh┆ 0x0c80…0ca0 65 6e 20 49 54 49 4d 45 52 5f 54 49 4d 45 4f 55 54 20 69 73 20 62 65 69 6e 67 20 73 65 74 2c 20 ┆en ITIMER_TIMEOUT is being set, ┆ 0x0ca0…0cc0 62 6f 74 68 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 74 5f 69 6e 74 65 72 ┆both the it_inter┆ 0x0cc0…0ce0 76 61 6c 20 61 6e 64 20 74 68 65 20 69 74 5f 76 61 6c 75 65 20 66 69 65 6c 64 73 20 69 6e 20 74 ┆val and the it_value fields in t┆ 0x0ce0…0d00 68 65 20 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 ┆he _ v_ a_ l_ u_ e ┆ 0x0d00…0d20 20 20 20 20 20 20 20 20 70 61 72 61 6d 65 74 65 72 20 73 68 6f 75 6c 64 20 62 65 20 65 71 75 61 ┆ parameter should be equa┆ 0x0d20…0d40 6c 2e 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 75 08 ┆l. v v v va a a al l l lu ┆ 0x0d40…0d60 75 08 75 08 75 65 08 65 08 65 08 65 0a 20 20 20 20 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 ┆u u ue e e e Specifies┆ 0x0d60…0d80 20 74 68 65 20 6e 65 77 20 74 69 6d 65 72 20 73 65 74 74 69 6e 67 20 69 6e 20 74 68 65 20 74 69 ┆ the new timer setting in the ti┆ 0x0d80…0da0 6d 65 76 61 6c 20 73 74 72 75 63 2d 0a 20 20 20 20 20 20 20 20 20 20 74 75 72 65 2e 20 20 54 68 ┆meval struc- ture. Th┆ 0x0da0…0dc0 65 20 69 74 5f 69 6e 74 65 72 76 61 6c 20 66 69 65 6c 64 20 69 6e 64 69 63 61 74 65 73 20 74 68 ┆e it_interval field indicates th┆ 0x0dc0…0de0 65 20 74 69 6d 65 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 20 20 74 68 61 74 20 77 69 6c 6c ┆e time value that will┆ 0x0de0…0e00 20 62 65 20 72 65 73 74 6f 72 65 64 20 77 68 65 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 74 69 ┆ be restored when the current ti┆ 0x0e00…0e20 6d 65 72 20 74 69 6d 65 73 20 6f 75 74 2e 0a 20 20 20 20 20 20 20 20 20 20 49 66 20 69 74 5f 69 ┆mer times out. If it_i┆ 0x0e20…0e40 6e 74 65 72 76 61 6c 20 69 73 20 30 2c 20 74 68 65 20 74 69 6d 65 72 20 77 69 6c 6c 20 62 65 20 ┆nterval is 0, the timer will be ┆ 0x0e40…0e60 64 69 73 61 62 6c 65 64 20 77 68 65 6e 20 69 74 0a 20 20 20 20 20 20 20 20 20 20 6e 65 78 74 20 ┆disabled when it next ┆ 0x0e60…0e80 74 69 6d 65 73 20 6f 75 74 2e 20 20 54 68 65 20 69 74 5f 76 61 6c 75 65 20 73 70 65 63 69 66 69 ┆times out. The it_value specifi┆ 0x0e80…0ea0 65 73 20 74 68 65 20 76 61 6c 75 65 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20 73 65 74 20 74 68 ┆es the value to set th┆ 0x0ea0…0ec0 65 20 74 69 6d 65 72 20 69 6d 6d 65 64 69 61 74 65 6c 79 2e 20 20 49 66 20 69 74 5f 76 61 6c 75 ┆e timer immediately. If it_valu┆ 0x0ec0…0ee0 65 20 69 73 20 30 2c 20 74 68 65 20 74 69 6d 65 72 0a 20 20 20 20 20 20 20 20 20 20 69 73 20 64 ┆e is 0, the timer is d┆ 0x0ee0…0f00 69 73 61 62 6c 65 64 2e 20 20 54 68 65 20 74 76 5f 75 73 65 63 20 66 69 65 6c 64 20 69 73 20 72 ┆isabled. The tv_usec field is r┆ 0x0f00…0f20 6f 75 6e 64 65 64 20 75 70 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 6e 65 78 74 20 ┆ounded up to the next ┆ 0x0f20…0f40 31 2f 36 30 20 6f 66 20 61 20 73 65 63 6f 6e 64 20 69 6e 20 62 6f 74 68 20 69 74 5f 69 6e 74 65 ┆1/60 of a second in both it_inte┆ 0x0f40…0f60 72 76 61 6c 20 61 6e 64 20 69 74 5f 76 61 6c 75 65 2e 0a 0a 20 20 20 20 20 6f 08 6f 08 6f 08 6f ┆rval and it_value. o o o o┆ 0x0f60…0f80 76 08 76 08 76 08 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 65 08 65 08 ┆v v v va a a al l l lu u u ue e ┆ 0x0f80…0fa0 65 08 65 0a 20 20 20 20 20 20 20 20 20 20 52 65 74 75 72 6e 73 20 74 68 65 20 70 72 65 76 69 6f ┆e e Returns the previo┆ 0x0fa0…0fc0 75 73 6c 79 20 73 65 74 20 69 6e 74 65 72 76 61 6c 2e 0a 0a 20 20 20 20 20 41 20 74 69 6d 65 72 ┆usly set interval. A timer┆ 0x0fc0…0fe0 20 76 61 6c 75 65 20 69 73 20 64 65 66 69 6e 65 64 20 62 79 20 74 68 65 20 69 74 69 6d 65 72 76 ┆ value is defined by the itimerv┆ 0x0fe0…1000 61 6c 20 73 74 72 75 63 74 75 72 65 3a 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 74 08 74 08 74 ┆al structure: i i i it t t┆ 0x1000…1020 08 74 5f 08 5f 08 5f 08 5f 76 08 76 08 76 08 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 75 08 ┆ t_ _ _ _v v v va a a al l l lu ┆ 0x1020…1040 75 08 75 08 75 65 08 65 08 65 08 65 20 20 20 20 20 20 20 49 66 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 ┆u u ue e e e If non-zero, ┆ 0x1040…1060 69 6e 64 69 63 61 74 65 73 20 74 68 65 20 74 69 6d 65 20 75 6e 74 69 6c 20 74 68 65 0a 20 20 20 ┆indicates the time until the ┆ 0x1060…1080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 78 74 20 74 69 6d 65 72 20 65 78 70 69 ┆ next timer expi┆ 0x1080…10a0 72 61 74 69 6f 6e 2e 20 20 49 66 20 7a 65 72 6f 2c 20 74 68 65 20 74 69 6d 65 72 20 69 73 0a 20 ┆ration. If zero, the timer is ┆ 0x10a0…10c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 69 73 61 62 6c 65 64 2e 0a 0a 20 20 ┆ disabled. ┆ 0x10c0…10e0 20 20 20 69 08 69 08 69 08 69 74 08 74 08 74 08 74 5f 08 5f 08 5f 08 5f 69 08 69 08 69 08 69 6e ┆ i i i it t t t_ _ _ _i i i in┆ 0x10e0…1100 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72 76 08 76 08 76 ┆ n n nt t t te e e er r r rv v v┆ 0x1100…1120 08 76 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 20 20 20 20 49 66 20 6e 6f 6e 2d 7a 65 72 6f 2c ┆ va a a al l l l If non-zero,┆ 0x1120…1140 20 73 70 65 63 69 66 69 65 73 20 61 20 76 61 6c 75 65 20 74 6f 20 75 73 65 20 74 6f 0a 20 20 20 ┆ specifies a value to use to ┆ 0x1140…1160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 6c 6f 61 64 20 5f 08 69 5f 08 74 5f 5f ┆ reload _ i_ t__┆ 0x1160…1180 08 76 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 20 77 68 65 6e 20 74 68 65 20 74 69 6d 65 72 20 65 78 ┆ v_ a_ l_ u_ e when the timer ex┆ 0x1180…11a0 70 69 72 65 73 2e 20 20 49 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5f ┆pires. If _┆ 0x11a0…11c0 08 69 5f 08 74 5f 5f 08 69 5f 08 6e 5f 08 74 5f 08 65 5f 08 72 5f 08 76 5f 08 61 5f 08 6c 20 69 ┆ i_ t__ i_ n_ t_ e_ r_ v_ a_ l i┆ 0x11c0…11e0 73 20 7a 65 72 6f 20 77 68 69 6c 65 20 5f 08 69 5f 08 74 5f 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 ┆s zero while _ i_ t__ v_ a_ l_ u┆ 0x11e0…1200 5f 08 65 20 69 73 20 6e 6f 6e 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆_ e is non- ┆ 0x1200…1220 7a 65 72 6f 2c 20 74 68 65 20 74 69 6d 65 72 20 69 73 20 64 69 73 61 62 6c 65 64 20 61 66 74 65 ┆zero, the timer is disabled afte┆ 0x1220…1240 72 20 69 74 73 20 6e 65 78 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 ┆r its next e┆ 0x1240…1260 78 70 69 72 61 74 69 6f 6e 2e 0a 0a 20 20 20 20 20 57 68 65 6e 20 49 54 49 4d 45 52 5f 54 49 4d ┆xpiration. When ITIMER_TIM┆ 0x1260…1280 45 4f 55 54 20 74 69 6d 65 72 20 69 73 20 62 65 69 6e 67 20 73 65 74 2c 20 62 6f 74 68 20 74 68 ┆EOUT timer is being set, both th┆ 0x1280…12a0 65 20 69 74 5f 69 6e 74 65 72 76 61 6c 0a 20 20 20 20 20 61 6e 64 20 74 68 65 20 69 74 5f 76 61 ┆e it_interval and the it_va┆ 0x12a0…12c0 6c 75 65 20 66 69 65 6c 64 73 20 69 6e 20 74 68 65 20 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 5f 08 ┆lue fields in the _ v_ a_ l_ u_ ┆ 0x12c0…12e0 65 20 70 61 72 61 6d 65 74 65 72 20 73 68 6f 75 6c 64 20 62 65 0a 20 20 20 20 20 65 71 75 61 6c ┆e parameter should be equal┆ 0x12e0…1300 2e 0a 0a 20 20 20 20 20 54 69 6d 65 20 76 61 6c 75 65 73 20 73 6d 61 6c 6c 65 72 20 74 68 61 6e ┆. Time values smaller than┆ 0x1300…1320 20 74 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 66 20 74 68 65 20 73 79 73 74 65 6d 20 63 6c ┆ the resolution of the system cl┆ 0x1320…1340 6f 63 6b 0a 20 20 20 20 20 61 72 65 20 72 6f 75 6e 64 65 64 20 75 70 20 74 6f 20 74 68 69 73 20 ┆ock are rounded up to this ┆ 0x1340…1360 72 65 73 6f 6c 75 74 69 6f 6e 20 28 6f 6e 20 74 68 65 20 52 43 39 30 30 30 2c 20 31 36 2e 36 20 ┆resolution (on the RC9000, 16.6 ┆ 0x1360…1380 6d 69 6c 2d 0a 20 20 20 20 20 6c 69 73 65 63 6f 6e 64 73 29 2e 20 20 54 68 65 20 74 69 6d 65 76 ┆mil- liseconds). The timev┆ 0x1380…13a0 61 6c 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 72 65 74 75 72 6e 65 64 20 62 79 20 5f 08 ┆al information is returned by _ ┆ 0x13a0…13c0 67 5f 08 65 5f 08 74 5f 08 69 5f 08 74 5f 08 69 5f 08 2d 0a 20 20 20 20 20 5f 08 6d 5f 08 65 5f ┆g_ e_ t_ i_ t_ i_ - _ m_ e_┆ 0x13c0…13e0 08 72 2e 0a 0a 20 20 20 20 20 4e 08 4e 08 4e 08 4e 6f 08 6f 08 6f 08 6f 74 08 74 08 74 08 74 65 ┆ r. N N N No o o ot t t te┆ 0x13e0…1400 08 65 08 65 08 65 73 08 73 08 73 08 73 0a 20 20 20 20 20 33 20 6d 61 63 72 6f 73 20 66 6f 72 20 ┆ e e es s s s 3 macros for ┆ 0x1400…1420 6d 61 6e 69 70 75 6c 61 74 69 6e 67 20 74 69 6d 65 20 76 61 6c 75 65 73 20 61 72 65 20 64 65 66 ┆manipulating time values are def┆ 0x1420…1440 69 6e 65 64 20 69 6e 0a 20 20 20 20 20 3c 73 79 73 2f 74 69 6d 65 2e 68 3e 3a 0a 0a 20 20 20 20 ┆ined in <sys/time.h>: ┆ 0x1440…1460 20 74 69 6d 65 72 63 6c 65 61 72 0a 20 20 20 20 20 20 20 20 20 20 73 65 74 73 20 61 20 74 69 6d ┆ timerclear sets a tim┆ 0x1460…1480 65 20 76 61 6c 75 65 20 74 6f 20 7a 65 72 6f 0a 0a 20 20 20 20 20 74 69 6d 65 72 69 73 73 65 74 ┆e value to zero timerisset┆ 0x1480…14a0 0a 20 20 20 20 20 20 20 20 20 20 74 65 73 74 73 20 69 66 20 61 20 74 69 6d 65 20 76 61 6c 75 65 ┆ tests if a time value┆ 0x14a0…14c0 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2e 0a 0a 20 20 20 20 20 74 69 6d 65 72 63 6d 70 0a 20 20 20 ┆ is non-zero. timercmp ┆ 0x14c0…14e0 20 20 20 20 20 20 20 63 6f 6d 70 61 72 65 73 20 32 20 74 69 6d 65 20 76 61 6c 75 65 73 3b 20 68 ┆ compares 2 time values; h┆ 0x14e0…1500 6f 77 65 76 65 72 2c 20 62 65 20 61 77 61 72 65 20 74 68 61 74 20 3e 3d 20 61 6e 64 0a 20 20 20 ┆owever, be aware that >= and ┆ 0x1500…1520 20 20 20 20 20 20 20 3c 3d 20 64 6f 20 6e 6f 74 20 77 6f 72 6b 20 77 69 74 68 20 74 68 69 73 20 ┆ <= do not work with this ┆ 0x1520…1540 6d 61 63 72 6f 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 ┆macro. R R R RE E E ET T T TU U┆ 0x1540…1560 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 ┆ U UR R R RN N N N V V V VA A A ┆ 0x1560…1580 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 49 66 20 74 ┆AL L L LU U U UE E E E If t┆ 0x1580…15a0 68 65 20 63 61 6c 6c 73 20 73 75 63 63 65 65 64 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 30 20 69 ┆he calls succeed, a value of 0 i┆ 0x15a0…15c0 73 20 72 65 74 75 72 6e 65 64 2e 20 20 49 66 20 61 6e 20 65 72 72 6f 72 0a 20 20 20 20 20 6f 63 ┆s returned. If an error oc┆ 0x15c0…15e0 63 75 72 73 2c 20 74 68 65 20 76 61 6c 75 65 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 2c 20 ┆curs, the value -1 is returned, ┆ 0x15e0…1600 61 6e 64 20 61 20 6d 6f 72 65 20 70 72 65 63 69 73 65 20 65 72 72 6f 72 0a 20 20 20 20 20 63 6f ┆and a more precise error co┆ 0x1600…1620 64 65 20 69 73 20 70 6c 61 63 65 64 20 69 6e 20 74 68 65 20 67 6c 6f 62 61 6c 20 76 61 72 69 61 ┆de is placed in the global varia┆ 0x1620…1640 62 6c 65 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 ┆ble _ e_ r_ r_ n_ o. E E E ER R┆ 0x1640…1660 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 ┆ R RR R R RO O O OR R R RS S S S┆ 0x1660…1680 0a 20 20 20 20 20 54 68 65 20 70 6f 73 73 69 62 6c 65 20 65 72 72 6f 72 73 20 61 72 65 3a 0a 0a ┆ The possible errors are: ┆ 0x1680…16a0 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 20 54 68 65 20 5f 08 76 5f 08 61 5f 08 ┆ [EFAULT] The _ v_ a_ ┆ 0x16a0…16c0 6c 5f 08 75 5f 08 65 20 73 74 72 75 63 74 75 72 65 20 73 70 65 63 69 66 69 65 64 20 61 20 62 61 ┆l_ u_ e structure specified a ba┆ 0x16c0…16e0 64 20 61 64 64 72 65 73 73 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 20 ┆d address. [EINVAL] ┆ 0x16e0…1700 20 20 20 20 20 20 41 20 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 20 73 74 72 75 63 74 75 72 ┆ A _ v_ a_ l_ u_ e structur┆ 0x1700…1720 65 20 73 70 65 63 69 66 69 65 64 20 61 20 74 69 6d 65 20 74 68 61 74 20 77 61 73 0a 20 20 20 20 ┆e specified a time that was ┆ 0x1720…1740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 6f 20 6c 61 72 67 65 2e 0a 0a 53 08 53 08 ┆ too large. S S ┆ 0x1740…1760 53 08 53 45 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 ┆S SE E E EE E E E A A A AL L L L┆ 0x1760…1780 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 ┆S S S SO O O O System Calls┆ 0x1780…17a0 20 28 32 29 3a 20 20 67 65 74 69 74 69 6d 65 72 2c 20 67 65 74 74 69 6d 65 6f 66 64 61 79 2c 20 ┆ (2): getitimer, gettimeofday, ┆ 0x17a0…17c0 73 69 67 76 65 63 0a 0a 41 75 67 75 73 74 20 31 39 39 31 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆sigvec August 1991 ┆ 0x17c0…17e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 ┆ TX Programmer's ┆ 0x17e0…1800 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆Reference ┆ 0x1800…181f 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆