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: s

⟦28ca81b0d⟧

    Length: 5648 (0x1610)
    Names: »setrlimit.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/setrlimit.2« 
        └─⟦this⟧ »./usr/man/cat2/setrlimit.2« 

Default Hex Dump

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 72 6c 69 6d 69 74 28 32 29 0a 0a 0a 0a   ┆s               setrlimit(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 72 6c 69 6d 69 74 20 2d 20 73 65 74 73 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 6c   ┆  setrlimit - sets the maximum l┆
0x00a0…00c0 69 6d 69 74 73 20 66 6f 72 20 73 79 73 74 65 6d 20 72 65 73 6f 75 72 63 65 0a 20 20 20 20 20 75   ┆imits for system resource      u┆
0x00c0…00e0 73 61 67 65 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54   ┆sage  S S S SY Y Y YN N N NT T T┆
0x00e0…0100 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 08 23 69 08 69   ┆ TA A A AX X X X      # # # #i i┆
0x0100…0120 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 75 08 75 08 75   ┆ i in n n nc c c cl l l lu u u u┆
0x0120…0140 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 08 73 79 08 79   ┆d d d de e e e < < < <s s s sy y┆
0x0140…0160 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 69 08 69 08 69   ┆ y ys s s s/ / / /t t t ti i i i┆
0x0160…0180 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 68 3e 08 3e 08   ┆m m m me e e e. . . .h h h h> > ┆
0x0180…01a0 3e 08 3e 0a 20 20 20 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   ┆> >      # # # #i i i in n n nc ┆
0x01a0…01c0 63 08 63 08 63 6c 08 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   ┆c c cl l l lu u u ud d d de e e ┆
0x01c0…01e0 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08   ┆e < < < <s s s sy y y ys s s s/ ┆
0x01e0…0200 2f 08 2f 08 2f 72 08 72 08 72 08 72 65 08 65 08 65 08 65 73 08 73 08 73 08 73 6f 08 6f 08 6f 08   ┆/ / /r r r re e e es s s so o o ┆
0x0200…0220 6f 75 08 75 08 75 08 75 72 08 72 08 72 08 72 63 08 63 08 63 08 63 65 08 65 08 65 08 65 2e 08 2e   ┆ou u u ur r r rc c c ce e e e. .┆
0x0220…0240 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 73 08 73 08 73 08 73   ┆ . .h h h h> > > >       s s s s┆
0x0240…0260 65 08 65 08 65 08 65 74 08 74 08 74 08 74 72 08 72 08 72 08 72 6c 08 6c 08 6c 08 6c 69 08 69 08   ┆e e e et t t tr r r rl l l li i ┆
0x0260…0280 69 08 69 6d 08 6d 08 6d 08 6d 69 08 69 08 69 08 69 74 08 74 08 74 08 74 28 08 28 08 28 08 28 72   ┆i im m m mi i i it t t t( ( ( (r┆
0x0280…02a0 08 72 08 72 08 72 65 08 65 08 65 08 65 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 75 08 75 08 75   ┆ r r re e e es s s so o o ou u u┆
0x02a0…02c0 08 75 72 08 72 08 72 08 72 63 08 63 08 63 08 63 65 08 65 08 65 08 65 2c 08 2c 08 2c 08 2c 20 72   ┆ ur r r rc c c ce e e e, , , , r┆
0x02c0…02e0 08 72 08 72 08 72 6c 08 6c 08 6c 08 6c 70 08 70 08 70 08 70 29 08 29 08 29 08 29 0a 20 20 20 20   ┆ r r rl l l lp p p p) ) ) )     ┆
0x02e0…0300 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 72 08 72 08 72 08 72 65 08   ┆ i i i in n n nt t t t r r r re ┆
0x0300…0320 65 08 65 08 65 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 72 08 72 08 72 08   ┆e e es s s so o o ou u u ur r r ┆
0x0320…0340 72 63 08 63 08 63 08 63 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 08   ┆rc c c ce e e e; ; ; ;      s s ┆
0x0340…0360 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74   ┆s st t t tr r r ru u u uc c c ct┆
0x0360…0380 08 74 08 74 08 74 20 72 08 72 08 72 08 72 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6d 08 6d 08   ┆ t t t r r r rl l l li i i im m ┆
0x0380…03a0 6d 08 6d 69 08 69 08 69 08 69 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 72 08 72 08 72 08 72   ┆m mi i i it t t t * * * *r r r r┆
0x03a0…03c0 6c 08 6c 08 6c 08 6c 70 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08   ┆l l l lp p p p; ; ; ;  D D D DE ┆
0x03c0…03e0 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 49 08 49 08 49 08   ┆E E ES S S SC C C CR R R RI I I ┆
0x03e0…0400 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 4f 08 4f 4e 08 4e   ┆IP P P PT T T TI I I IO O O ON N┆
0x0400…0420 08 4e 08 4e 0a 20 20 20 20 20 53 65 74 73 20 6c 69 6d 69 74 73 20 6f 6e 20 74 68 65 20 75 73 65   ┆ N N      Sets limits on the use┆
0x0420…0440 20 6f 66 20 73 79 73 74 65 6d 20 72 65 73 6f 75 72 63 65 73 20 62 79 20 74 68 65 20 63 75 72 72   ┆ of system resources by the curr┆
0x0440…0460 65 6e 74 0a 20 20 20 20 20 70 72 6f 63 65 73 73 20 61 6e 64 20 65 61 63 68 20 70 72 6f 63 65 73   ┆ent      process and each proces┆
0x0460…0480 73 20 74 68 61 74 20 69 74 20 63 72 65 61 74 65 73 2e 0a 0a 20 20 20 20 20 54 68 69 73 20 69 6e   ┆s that it creates.       This in┆
0x0480…04a0 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 73 74 6f 72 65 64 20 69 6e 20 74 68 65 20 70 65 72 2d 70   ┆formation is stored in the per-p┆
0x04a0…04c0 72 6f 63 65 73 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 2e 0a 20 20 20 20 20 49 66 20 74 68 69 73   ┆rocess information.      If this┆
0x04c0…04e0 20 63 61 6c 6c 20 69 73 20 74 6f 20 73 65 74 20 6c 69 6d 69 74 73 20 66 6f 72 20 61 6c 6c 20 73   ┆ call is to set limits for all s┆
0x04e0…0500 68 65 6c 6c 20 70 72 6f 63 65 73 73 65 73 2c 20 74 68 65 0a 20 20 20 20 20 63 61 6c 6c 20 6d 75   ┆hell processes, the      call mu┆
0x0500…0520 73 74 20 62 65 20 65 78 65 63 75 74 65 64 20 64 69 72 65 63 74 6c 79 20 62 79 20 74 68 65 20 73   ┆st be executed directly by the s┆
0x0520…0540 68 65 6c 6c 2e 20 20 54 68 65 72 65 66 6f 72 65 2c 20 74 68 65 0a 20 20 20 20 20 5f 08 6c 5f 08   ┆hell.  Therefore, the      _ l_ ┆
0x0540…0560 69 5f 08 6d 5f 08 69 5f 08 74 20 63 6f 6d 6d 61 6e 64 20 69 73 20 6f 6e 65 20 6f 66 20 74 68 65   ┆i_ m_ i_ t command is one of the┆
0x0560…0580 20 5f 08 63 5f 08 73 5f 08 68 20 60 60 62 75 69 6c 74 2d 69 6e 20 63 6f 6d 6d 61 6e 64 73 27 27   ┆ _ c_ s_ h ``built-in commands''┆
0x0580…05a0 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 72 5f 08 65 5f 08 73 5f 08 6f 5f 08 75 5f 08 72 5f 08   ┆.       The _ r_ e_ s_ o_ u_ r_ ┆
0x05a0…05c0 63 5f 08 65 20 70 61 72 61 6d 65 74 65 72 20 69 73 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c   ┆c_ e parameter is one of the fol┆
0x05c0…05e0 6c 6f 77 69 6e 67 3a 0a 0a 20 20 20 20 20 52 4c 49 4d 49 54 5f 43 50 55 20 20 20 20 20 20 20 74   ┆lowing:       RLIMIT_CPU       t┆
0x05e0…0600 68 65 20 6d 61 78 69 6d 75 6d 20 61 6d 6f 75 6e 74 20 6f 66 20 63 70 75 20 74 69 6d 65 20 28 69   ┆he maximum amount of cpu time (i┆
0x0600…0620 6e 20 6d 69 6c 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 69 73   ┆n mil-                       lis┆
0x0620…0640 65 63 6f 6e 64 73 29 20 74 6f 20 62 65 20 75 73 65 64 20 62 79 20 65 61 63 68 20 70 72 6f 63 65   ┆econds) to be used by each proce┆
0x0640…0660 73 73 2e 20 20 54 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70   ┆ss.  The                       p┆
0x0660…0680 72 6f 63 65 73 73 20 69 73 20 61 62 6f 72 74 65 64 20 77 68 65 6e 20 74 68 69 73 20 6c 69 6d 69   ┆rocess is aborted when this limi┆
0x0680…06a0 74 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 63 65 65   ┆t is                       excee┆
0x06a0…06c0 64 65 64 2e 0a 0a 20 20 20 20 20 52 4c 49 4d 49 54 5f 46 53 49 5a 45 20 20 20 20 20 74 68 65 20   ┆ded.       RLIMIT_FSIZE     the ┆
0x06c0…06e0 6c 61 72 67 65 73 74 20 73 69 7a 65 2c 20 69 6e 20 62 79 74 65 73 2c 20 6f 66 20 61 6e 79 20 73   ┆largest size, in bytes, of any s┆
0x06e0…0700 69 6e 67 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 6c 65   ┆ingle                       file┆
0x0700…0720 20 77 68 69 63 68 20 6d 61 79 20 62 65 20 63 72 65 61 74 65 64 2e 20 20 54 68 65 20 70 72 6f 63   ┆ which may be created.  The proc┆
0x0720…0740 65 73 73 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 62 6f   ┆ess is                       abo┆
0x0740…0760 72 74 65 64 20 77 68 65 6e 20 74 68 69 73 20 6c 69 6d 69 74 20 69 73 20 65 78 63 65 65 64 65 64   ┆rted when this limit is exceeded┆
0x0760…0780 2e 20 20 48 6f 77 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 76   ┆.  How-                       ev┆
0x0780…07a0 65 72 2c 20 74 68 65 20 73 79 73 74 65 6d 20 73 65 6e 64 73 20 61 20 53 49 47 58 46 53 5a 20 73   ┆er, the system sends a SIGXFSZ s┆
0x07a0…07c0 69 67 6e 61 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 65 66 6f   ┆ignal                       befo┆
0x07c0…07e0 72 65 20 74 68 65 20 70 72 6f 63 65 73 73 20 69 73 20 74 65 72 6d 69 6e 61 74 65 64 2e 20 20 54   ┆re the process is terminated.  T┆
0x07e0…0800 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 62 6c 65 6d   ┆he                       problem┆
0x0800…0820 20 6d 61 79 20 62 65 20 63 6f 72 72 65 63 74 65 64 20 61 74 20 74 68 61 74 20 74 69 6d 65 2e 0a   ┆ may be corrected at that time. ┆
0x0820…0840 0a 20 20 20 20 20 52 4c 49 4d 49 54 5f 44 41 54 41 20 20 20 20 20 20 74 68 65 20 6d 61 78 69 6d   ┆      RLIMIT_DATA      the maxim┆
0x0840…0860 75 6d 20 73 69 7a 65 2c 20 69 6e 20 62 79 74 65 73 2c 20 6f 66 20 74 68 65 20 64 61 74 61 0a 20   ┆um size, in bytes, of the data  ┆
0x0860…0880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 67 6d 65 6e 74 20 66 6f 72   ┆                     segment for┆
0x0880…08a0 20 61 20 70 72 6f 63 65 73 73 3b 20 74 68 69 73 20 64 65 66 69 6e 65 73 20 68 6f 77 20 66 61 72   ┆ a process; this defines how far┆
0x08a0…08c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 20 70 72 6f 67 72 61 6d   ┆                       a program┆
0x08c0…08e0 20 6d 61 79 20 65 78 74 65 6e 64 20 69 74 73 20 62 72 65 61 6b 20 77 69 74 68 20 74 68 65 20 5f   ┆ may extend its break with the _┆
0x08e0…0900 08 62 5f 08 72 5f 08 6b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73   ┆ b_ r_ k                       s┆
0x0900…0920 79 73 74 65 6d 20 63 61 6c 6c 2e 20 20 54 68 65 20 73 79 73 74 65 6d 20 64 6f 65 73 20 6e 6f 74   ┆ystem call.  The system does not┆
0x0920…0940 20 70 65 72 6d 69 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68   ┆ permit                       th┆
0x0940…0960 69 73 20 6c 69 6d 69 74 20 74 6f 20 62 65 20 65 78 63 65 65 64 65 64 2e 0a 0a 20 20 20 20 20 52   ┆is limit to be exceeded.       R┆
0x0960…0980 4c 49 4d 49 54 5f 53 54 41 43 4b 20 20 20 20 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 73 69 7a 65   ┆LIMIT_STACK     the maximum size┆
0x0980…09a0 2c 20 69 6e 20 62 79 74 65 73 2c 20 6f 66 20 74 68 65 20 73 74 61 63 6b 0a 20 20 20 20 20 20 20   ┆, in bytes, of the stack        ┆
0x09a0…09c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 67 6d 65 6e 74 20 66 6f 72 20 61 20 70 72 6f   ┆               segment for a pro┆
0x09c0…09e0 63 65 73 73 3b 20 74 68 69 73 20 64 65 66 69 6e 65 73 20 68 6f 77 20 66 61 72 0a 20 20 20 20 20   ┆cess; this defines how far      ┆
0x09e0…0a00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 20 70 72 6f 67 72 61 6d 27 73 20 73 74 61   ┆                 a program's sta┆
0x0a00…0a20 63 6b 20 73 65 67 6d 65 6e 74 20 6d 61 79 20 62 65 20 65 78 74 65 6e 64 65 64 2c 0a 20 20 20 20   ┆ck segment may be extended,     ┆
0x0a20…0a40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 69 74 68 65 72 20 61 75 74 6f 6d 61 74   ┆                  either automat┆
0x0a40…0a60 69 63 61 6c 6c 79 20 62 79 20 74 68 65 20 73 79 73 74 65 6d 2c 20 6f 72 0a 20 20 20 20 20 20 20   ┆ically by the system, or        ┆
0x0a60…0a80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 70 6c 69 63 69 74 6c 79 20 62 79 20 61 20 75   ┆               explicitly by a u┆
0x0a80…0aa0 73 65 72 20 77 69 74 68 20 74 68 65 20 5f 08 73 5f 08 62 5f 08 72 5f 08 6b 20 73 79 73 74 65 6d   ┆ser with the _ s_ b_ r_ k system┆
0x0aa0…0ac0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6c 6c 2e 20 20 54 68   ┆                       call.  Th┆
0x0ac0…0ae0 65 20 70 72 6f 63 65 73 73 20 69 73 20 61 62 6f 72 74 65 64 20 77 68 65 6e 20 74 68 69 73 0a 20   ┆e process is aborted when this  ┆
0x0ae0…0b00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 69 6d 69 74 20 69 73 20 65 78   ┆                     limit is ex┆
0x0b00…0b20 63 65 65 64 65 64 2e 0a 0a 20 20 20 20 20 52 4c 49 4d 49 54 5f 43 4f 52 45 20 20 20 20 20 20 74   ┆ceeded.       RLIMIT_CORE      t┆
0x0b20…0b40 68 65 20 6c 61 72 67 65 73 74 20 73 69 7a 65 2c 20 69 6e 20 62 79 74 65 73 2c 20 6f 66 20 61 20   ┆he largest size, in bytes, of a ┆
0x0b40…0b60 5f 08 63 5f 08 6f 5f 08 72 5f 08 65 20 66 69 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆_ c_ o_ r_ e file               ┆
0x0b60…0b80 20 20 20 20 20 20 20 20 77 68 69 63 68 20 6d 61 79 20 62 65 20 63 72 65 61 74 65 64 2e 20 20 54   ┆        which may be created.  T┆
0x0b80…0ba0 68 65 20 73 79 73 74 65 6d 20 64 6f 65 73 20 6e 6f 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆he system does not              ┆
0x0ba0…0bc0 20 20 20 20 20 20 20 20 20 70 65 72 6d 69 74 20 74 68 69 73 20 6c 69 6d 69 74 20 74 6f 20 62 65   ┆         permit this limit to be┆
0x0bc0…0be0 20 65 78 63 65 65 64 65 64 2e 0a 0a 20 20 20 20 20 52 4c 49 4d 49 54 5f 52 53 53 20 20 20 20 20   ┆ exceeded.       RLIMIT_RSS     ┆
0x0be0…0c00 20 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 73 69 7a 65 2c 20 69 6e 20 62 79 74 65 73 2c 20 66 6f   ┆  the maximum size, in bytes, fo┆
0x0c00…0c20 72 20 61 20 70 72 6f 63 65 73 73 27 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆r a process's                   ┆
0x0c20…0c40 20 20 20 20 72 65 73 69 64 65 6e 74 2d 73 65 74 2d 73 69 7a 65 2e 20 20 54 68 69 73 20 69 6d 70   ┆    resident-set-size.  This imp┆
0x0c40…0c60 6f 73 65 73 20 61 20 6c 69 6d 69 74 20 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆oses a limit on                 ┆
0x0c60…0c80 20 20 20 20 20 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 70 68 79 73 69 63 61 6c 20 6d 65 6d   ┆      the amount of physical mem┆
0x0c80…0ca0 6f 72 79 20 61 20 70 72 6f 63 65 73 73 20 63 61 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ory a process can               ┆
0x0ca0…0cc0 20 20 20 20 20 20 20 20 68 61 76 65 2e 20 20 49 66 20 6e 6f 74 20 6d 75 63 68 20 6d 65 6d 6f 72   ┆        have.  If not much memor┆
0x0cc0…0ce0 79 20 69 73 20 61 76 61 69 6c 61 62 6c 65 2c 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆y is available, the             ┆
0x0ce0…0d00 20 20 20 20 20 20 20 20 20 20 73 79 73 74 65 6d 20 74 61 6b 65 73 20 6d 65 6d 6f 72 79 20 66 72   ┆          system takes memory fr┆
0x0d00…0d20 6f 6d 20 70 72 6f 63 65 73 73 65 73 20 74 68 61 74 20 61 72 65 0a 20 20 20 20 20 20 20 20 20 20   ┆om processes that are           ┆
0x0d20…0d40 20 20 20 20 20 20 20 20 20 20 20 20 65 78 63 65 65 64 20 74 68 65 20 72 65 73 69 64 65 6e 74 2d   ┆            exceed the resident-┆
0x0d40…0d60 73 65 74 2d 73 69 7a 65 2e 20 20 54 68 65 20 73 79 73 74 65 6d 0a 0a 0a 0a 0a 0a 0a 20 20 20 20   ┆set-size.  The system           ┆
0x0d60…0d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 6f 65 73 20 6e 6f 74 20 70 65 72 6d 69   ┆                  does not permi┆
0x0d80…0da0 74 20 74 68 69 73 20 6c 69 6d 69 74 20 74 6f 20 62 65 20 65 78 63 65 65 64 65 64 2e 0a 0a 20 20   ┆t this limit to be exceeded.    ┆
0x0da0…0dc0 20 20 20 52 4c 49 4d 49 54 5f 41 42 4f 52 54 53 20 20 20 20 74 68 65 20 6d 61 78 69 6d 75 6d 20   ┆   RLIMIT_ABORTS    the maximum ┆
0x0dc0…0de0 6e 75 6d 62 65 72 20 6f 66 20 74 69 6d 65 73 20 61 6e 20 69 6d 61 67 65 64 20 70 72 6f 2d 0a 20   ┆number of times an imaged pro-  ┆
0x0de0…0e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 65 73 73 20 63 61 6e 20 62 65   ┆                     cess can be┆
0x0e00…0e20 20 72 65 73 74 61 72 74 65 64 20 64 75 65 20 74 6f 20 74 72 61 6e 73 61 63 74 69 6f 6e 0a 20 20   ┆ restarted due to transaction   ┆
0x0e20…0e40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 62 6f 72 74 73 2e 20 20 49 66 20   ┆                    aborts.  If ┆
0x0e40…0e60 74 68 69 73 20 6c 69 6d 69 74 20 69 73 20 65 78 63 65 65 64 65 64 2c 20 65 76 65 6e 20 61 0a 20   ┆this limit is exceeded, even a  ┆
0x0e60…0e80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 6f 75 73 2d   ┆                     continuous-┆
0x0e80…0ea0 6d 6f 64 65 20 20 70 72 6f 63 65 73 73 20 69 73 20 61 62 6f 72 74 65 64 2e 0a 0a 20 20 20 20 20   ┆mode  process is aborted.       ┆
0x0ea0…0ec0 48 08 48 08 48 08 48 61 08 61 08 61 08 61 72 08 72 08 72 08 72 64 08 64 08 64 08 64 20 61 08 61   ┆H H H Ha a a ar r r rd d d d a a┆
0x0ec0…0ee0 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 20 53 08 53 08 53 08 53 6f 08 6f 08 6f 08   ┆ a an n n nd d d d S S S So o o ┆
0x0ee0…0f00 6f 66 08 66 08 66 08 66 74 08 74 08 74 08 74 20 4c 08 4c 08 4c 08 4c 69 08 69 08 69 08 69 6d 08   ┆of f f ft t t t L L L Li i i im ┆
0x0f00…0f20 6d 08 6d 08 6d 69 08 69 08 69 08 69 74 08 74 08 74 08 74 73 08 73 08 73 08 73 0a 20 20 20 20 20   ┆m m mi i i it t t ts s s s      ┆
0x0f20…0f40 41 20 72 65 73 6f 75 72 63 65 20 6c 69 6d 69 74 20 69 73 20 73 70 65 63 69 66 69 65 64 20 61 73   ┆A resource limit is specified as┆
0x0f40…0f60 20 61 20 73 6f 66 74 20 6c 69 6d 69 74 20 61 6e 64 20 61 20 68 61 72 64 0a 20 20 20 20 20 6c 69   ┆ a soft limit and a hard      li┆
0x0f60…0f80 6d 69 74 2e 0a 20 20 20 20 20 4f 6e 6c 79 20 74 68 65 20 73 6f 66 74 20 6c 69 6d 69 74 20 66 6f   ┆mit.      Only the soft limit fo┆
0x0f80…0fa0 72 20 74 68 65 20 52 4c 49 4d 49 54 5f 43 50 55 20 63 61 6e 20 62 65 20 65 78 63 65 65 64 65 64   ┆r the RLIMIT_CPU can be exceeded┆
0x0fa0…0fc0 2e 20 20 54 68 65 0a 20 20 20 20 20 73 79 73 74 65 6d 20 73 65 6e 64 73 20 61 20 53 49 47 58 43   ┆.  The      system sends a SIGXC┆
0x0fc0…0fe0 50 55 20 73 69 67 6e 61 6c 20 74 6f 20 74 68 65 20 70 72 6f 63 65 73 73 2c 20 77 69 74 68 6f 75   ┆PU signal to the process, withou┆
0x0fe0…1000 74 0a 20 20 20 20 20 66 75 72 74 68 65 72 20 61 63 74 69 6f 6e 2e 0a 20 20 20 20 20 57 68 65 6e   ┆t      further action.      When┆
0x1000…1020 20 74 68 65 20 68 61 72 64 20 6c 69 6d 69 74 20 66 6f 72 20 61 20 72 65 73 6f 75 72 63 65 20 69   ┆ the hard limit for a resource i┆
0x1020…1040 73 20 65 78 63 65 65 64 65 64 2c 20 74 68 65 20 61 63 74 69 6f 6e 0a 20 20 20 20 20 74 61 6b 65   ┆s exceeded, the action      take┆
0x1040…1060 6e 20 64 65 70 65 6e 64 73 20 6f 6e 20 74 68 65 20 72 65 73 6f 75 72 63 65 2e 0a 0a 20 20 20 20   ┆n depends on the resource.      ┆
0x1060…1080 20 54 68 65 20 72 6c 69 6d 69 74 20 73 74 72 75 63 74 75 72 65 20 69 73 20 75 73 65 64 20 74 6f   ┆ The rlimit structure is used to┆
0x1080…10a0 20 73 70 65 63 69 66 79 20 74 68 65 20 68 61 72 64 20 61 6e 64 20 73 6f 66 74 0a 20 20 20 20 20   ┆ specify the hard and soft      ┆
0x10a0…10c0 6c 69 6d 69 74 73 20 6f 6e 20 61 20 72 65 73 6f 75 72 63 65 2e 0a 0a 20 20 20 20 20 20 20 20 20   ┆limits on a resource.           ┆
0x10c0…10e0 20 73 74 72 75 63 74 20 72 6c 69 6d 69 74 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ struct rlimit {                ┆
0x10e0…1100 69 6e 74 20 20 72 6c 69 6d 5f 63 75 72 3b 20 2f 2a 20 63 75 72 72 65 6e 74 20 28 73 6f 66 74 29   ┆int  rlim_cur; /* current (soft)┆
0x1100…1120 20 6c 69 6d 69 74 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 72 6c   ┆ limit */                int  rl┆
0x1120…1140 69 6d 5f 6d 61 78 3b 20 2f 2a 20 68 61 72 64 20 6c 69 6d 69 74 20 2a 2f 0a 20 20 20 20 20 20 20   ┆im_max; /* hard limit */        ┆
0x1140…1160 20 20 20 7d 3b 0a 0a 20 20 20 20 20 4f 6e 6c 79 20 74 68 65 20 73 75 70 65 72 2d 75 73 65 72 20   ┆   };       Only the super-user ┆
0x1160…1180 6d 61 79 20 72 61 69 73 65 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 6c 69 6d 69 74 73 2e 20 20 4f   ┆may raise the maximum limits.  O┆
0x1180…11a0 74 68 65 72 0a 20 20 20 20 20 75 73 65 72 73 20 6d 61 79 20 6f 6e 6c 79 20 61 6c 74 65 72 20 72   ┆ther      users may only alter r┆
0x11a0…11c0 6c 69 6d 5f 63 75 72 20 77 69 74 68 69 6e 20 74 68 65 20 72 61 6e 67 65 20 66 72 6f 6d 20 30 20   ┆lim_cur within the range from 0 ┆
0x11c0…11e0 74 6f 0a 20 20 20 20 20 72 6c 69 6d 5f 6d 61 78 20 6f 72 20 28 69 72 72 65 76 65 72 73 69 62 6c   ┆to      rlim_max or (irreversibl┆
0x11e0…1200 79 29 20 6c 6f 77 65 72 20 72 6c 69 6d 5f 6d 61 78 2e 0a 0a 20 20 20 20 20 49 08 49 08 49 08 49   ┆y) lower rlim_max.       I I I I┆
0x1200…1220 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 69 08 69 08   ┆n n n nf f f fi i i in n n ni i ┆
0x1220…1240 69 08 69 74 08 74 08 74 08 74 65 08 65 08 65 08 65 20 4c 08 4c 08 4c 08 4c 69 08 69 08 69 08 69   ┆i it t t te e e e L L L Li i i i┆
0x1240…1260 6d 08 6d 08 6d 08 6d 69 08 69 08 69 08 69 74 08 74 08 74 08 74 0a 20 20 20 20 20 41 6e 20 22 69   ┆m m m mi i i it t t t      An "i┆
0x1260…1280 6e 66 69 6e 69 74 65 22 20 76 61 6c 75 65 20 66 6f 72 20 61 20 6c 69 6d 69 74 20 69 73 20 64 65   ┆nfinite" value for a limit is de┆
0x1280…12a0 66 69 6e 65 64 20 61 73 0a 20 20 20 20 20 52 4c 49 4d 49 54 5f 49 4e 46 49 4e 49 54 59 20 28 30   ┆fined as      RLIMIT_INFINITY (0┆
0x12a0…12c0 78 37 66 66 66 66 66 66 66 29 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54   ┆x7fffffff).  R R R RE E E ET T T┆
0x12c0…12e0 08 54 55 08 55 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   ┆ TU U U UR R R RN N N N V V V VA┆
0x12e0…1300 08 41 08 41 08 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   ┆ A A AL L L LU U U UE E E E     ┆
0x1300…1320 20 41 20 30 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 69 6e 64 69 63 61 74 65 73 20 74 68 61 74   ┆ A 0 return value indicates that┆
0x1320…1340 20 74 68 65 20 63 61 6c 6c 20 73 75 63 63 65 65 64 65 64 2c 20 65 69 74 68 65 72 0a 20 20 20 20   ┆ the call succeeded, either     ┆
0x1340…1360 20 63 68 61 6e 67 69 6e 67 20 6f 72 20 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 72 65 73 6f 75   ┆ changing or returning the resou┆
0x1360…1380 72 63 65 20 6c 69 6d 69 74 2e 20 20 20 41 20 72 65 74 75 72 6e 20 76 61 6c 75 65 0a 20 20 20 20   ┆rce limit.   A return value     ┆
0x1380…13a0 20 6f 66 20 2d 31 20 69 6e 64 69 63 61 74 65 73 20 74 68 61 74 20 61 6e 20 65 72 72 6f 72 20 6f   ┆ of -1 indicates that an error o┆
0x13a0…13c0 63 63 75 72 72 65 64 2c 20 61 6e 64 20 61 6e 20 65 72 72 6f 72 20 63 6f 64 65 20 69 73 0a 20 20   ┆ccurred, and an error code is   ┆
0x13c0…13e0 20 20 20 73 74 6f 72 65 64 20 69 6e 20 74 68 65 20 67 6c 6f 62 61 6c 20 6c 6f 63 61 74 69 6f 6e   ┆   stored in the global location┆
0x13e0…1400 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 08 52 08   ┆ _ e_ r_ r_ n_ o.  E E E ER R R ┆
0x1400…1420 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 0a 20 20   ┆RR R R RO O O OR R R RS S S S   ┆
0x1420…1440 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 20 20 20   ┆   The possible errors are:     ┆
0x1440…1460 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 20 54 68 65 20 61 64 64 72 65 73 73 20 73 70 65   ┆  [EFAULT]       The address spe┆
0x1460…1480 63 69 66 69 65 64 20 66 6f 72 20 5f 08 72 5f 08 6c 5f 08 70 20 69 73 20 69 6e 76 61 6c 69 64 2e   ┆cified for _ r_ l_ p is invalid.┆
0x1480…14a0 0a 0a 20 20 20 20 20 5b 45 50 45 52 4d 5d 20 20 20 20 20 20 20 20 54 68 65 20 6c 69 6d 69 74 20   ┆       [EPERM]        The limit ┆
0x14a0…14c0 73 70 65 63 69 66 69 65 64 20 74 6f 20 5f 08 73 5f 08 65 5f 08 74 5f 08 72 5f 08 6c 5f 08 69 5f   ┆specified to _ s_ e_ t_ r_ l_ i_┆
0x14c0…14e0 08 6d 5f 08 69 5f 08 74 20 77 6f 75 6c 64 20 68 61 76 65 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆ m_ i_ t would have             ┆
0x14e0…1500 20 20 20 20 20 20 20 20 72 61 69 73 65 64 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 6c 69 6d 69 74   ┆        raised the maximum limit┆
0x1500…1520 20 76 61 6c 75 65 2c 20 61 6e 64 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ value, and the                 ┆
0x1520…1540 20 20 20 20 63 61 6c 6c 65 72 20 69 73 20 6e 6f 74 20 74 68 65 20 73 75 70 65 72 2d 75 73 65 72   ┆    caller is not the super-user┆
0x1540…1560 2e 0a 0a 53 08 53 08 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   ┆.  S S S SE E E EE E E E A A A A┆
0x1560…1580 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20   ┆L L L LS S S SO O O O      User ┆
0x1580…15a0 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 63 73 68 20 28 6c 69 6d 69 74 29 0a 20 20 20 20 20   ┆Commands (1):  csh (limit)      ┆
0x15a0…15c0 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 73 69 67 76 65 63 2c 20 67 65 74 72 6c   ┆System Calls (2):  sigvec, getrl┆
0x15c0…15e0 69 6d 69 74 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆imit  March 1989                ┆
0x15e0…1600 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 52 65   ┆              TX Programmer's Re┆
0x1600…1610 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                   ┆ference         ┆