BOOK.PS
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2328k
源码类别:
操作系统开发
开发平台:
C/C++
- (seg_bytes;)420 1446 A
- 2370(/*)S
- (how)126 2496 A
- (big)126 2664 A
- 2832(is)S
- (the)126 2958 A
- (segment)294 3126 A
- 3462(*/)S
- 1080 V
- (17502)210 648 A
- 1026({)S
- 1170 V
- (17503)210 648 A
- 1026(/*)S
- (Read)168 1152 A
- 1362(in)S
- (text)168 1488 A
- 1698(or)S
- (data)168 1824 A
- (from)168 2034 A
- (the)126 2244 A
- (exec)168 2412 A
- (file)168 2622 A
- (and)126 2832 A
- (copy)168 3000 A
- 3210(to)S
- (the)126 3336 A
- (new)126 3504 A
- (core)168 3672 A
- (image.)252 3882 A
- 1260 V
- (17504)210 648 A
- 1068(*)S
- (This)168 1152 A
- (procedure)378 1362 A
- 1782(is)S
- 1908(a)S
- (little)252 1992 A
- (bit)126 2286 A
- (tricky.)294 2454 A
- (The)126 2832 A
- (logical)294 3000 A
- (way)126 3336 A
- 3504(to)S
- (load)168 3630 A
- 3840(a)S
- (segment)294 3924 A
- 1350 V
- (17505)210 648 A
- 1068(*)S
- (would)210 1152 A
- 1404(be)S
- 1530(to)S
- (read)168 1656 A
- 1866(it)S
- (block)210 1992 A
- 2244(by)S
- (block)210 2370 A
- (and)126 2622 A
- (copy)168 2790 A
- (each)168 3000 A
- (block)210 3210 A
- 3462(to)S
- (the)126 3588 A
- (user)168 3756 A
- (space)210 3966 A
- 1440 V
- (17506)210 648 A
- 1068(*)S
- (one)126 1152 A
- 1320(at)S
- 1446(a)S
- (time.)210 1530 A
- (This)168 1824 A
- 2034(is)S
- (too)126 2160 A
- (slow,)210 2328 A
- 2580(so)S
- 2706(we)S
- 2832(do)S
- (something)378 2958 A
- (dirty)210 3378 A
- (here,)210 3630 A
- (namely)252 3882 A
- 1530 V
- (17507)210 648 A
- 1068(*)S
- (send)168 1152 A
- (the)126 1362 A
- (user)168 1530 A
- (space)210 1740 A
- (and)126 1992 A
- (virtual)294 2160 A
- (address)294 2496 A
- 2832(to)S
- (the)126 2958 A
- (file)168 3126 A
- (system)252 3336 A
- 3630(in)S
- (the)126 3756 A
- (upper)210 3924 A
- 1620 V
- (17508)210 648 A
- 1068(*)S
- 1152(10)S
- (bits)168 1278 A
- 1488(of)S
- (the)126 1614 A
- (file)168 1782 A
- (descriptor,)462 1992 A
- (and)126 2496 A
- (pass)168 2664 A
- 2874(it)S
- (the)126 3000 A
- (user)168 3168 A
- (virtual)294 3378 A
- (address)294 3714 A
- 1710 V
- (17509)210 648 A
- 1068(*)S
- (instead)294 1152 A
- 1488(of)S
- 1614(a)S
- 1698(MM)S
- (address.)336 1824 A
- (The)126 2244 A
- (file)168 2412 A
- (system)252 2622 A
- (extracts)336 2916 A
- (these)210 3294 A
- (parameters)420 3546 A
- (when)168 4008 A
- 1800 V
- (17510)210 648 A
- 1068(*)S
- (gets)168 1152 A
- 1362(a)S
- (read)168 1446 A
- (call)168 1656 A
- (from)168 1866 A
- (the)126 2076 A
- (memory)252 2244 A
- (manager,)336 2538 A
- (which)210 2916 A
- 3168(is)S
- (the)126 3294 A
- (only)168 3462 A
- (process)294 3672 A
- (that)168 4008 A
- 1890 V
- (17511)210 648 A
- 1068(*)S
- 1152(is)S
- (permitted)378 1278 A
- 1698(to)S
- (use)126 1824 A
- (this)168 1992 A
- (trick.)252 2202 A
- (The)126 2538 A
- (file)168 2706 A
- (system)252 2916 A
- (then)168 3210 A
- (copies)252 3420 A
- (the)126 3714 A
- (whole)210 3882 A
- 1980 V
- (17512)210 648 A
- 1068(*)S
- (segment)294 1152 A
- (directly)336 1488 A
- 1866(to)S
- (user)168 1992 A
- (space,)252 2202 A
- (bypassing)378 2496 A
- 2916(MM)S
- (completely.)462 3042 A
- 2070 V
- (17513)210 648 A
- 1068(*/)S
- 2160 V
- (17514)210 648 A
- 2250 V
- (17515)210 648 A
- (int)126 1110 A
- (new_fd,)294 1278 A
- (bytes;)252 1614 A
- 2340 V
- (17516)210 648 A
- (char)168 1110 A
- (*ubuf_ptr;)420 1320 A
- 2430 V
- (17517)210 648 A
- 2520 V
- (17518)210 648 A
- (new_fd)252 1110 A
- 1404(=)S
- ((who)168 1488 A
- 1698(<<)S
- 1824(8))S
- 1950(|)S
- ((seg)168 2034 A
- 2244(<<)S
- 2370(6))S
- 2496(|)S
- (fd;)126 2580 A
- 2610 V
- (17519)210 648 A
- (ubuf_ptr)336 1110 A
- 1488(=)S
- ((char)210 1572 A
- 1824(*))S
- (((vir_bytes)mp->mp_seg[seg].mem_vir)1470 1950 A
- 3462(<<)S
- (CLICK_SHIFT);)546 3588 A
- 2700 V
- (17520)210 648 A
- (while)210 1110 A
- ((seg_bytes)420 1362 A
- 1824(!=)S
- 1950(0))S
- 2076({)S
- 2790 V
- (17521)210 648 A
- (bytes)210 1362 A
- 1614(=)S
- ((INT_MAX)336 1698 A
- 2076(/)S
- (BLOCK_SIZE))462 2160 A
- 2664(*)S
- (BLOCK_SIZE;)462 2748 A
- 2880 V
- (17522)210 648 A
- 1362(if)S
- ((seg_bytes)420 1488 A
- 1950(<)S
- (bytes))252 2034 A
- 2970 V
- (17523)210 648 A
- (bytes)210 1698 A
- 1950(=)S
- ((int)seg_bytes;)630 2034 A
- 3060 V
- (17524)210 648 A
- 1362(if)S
- ((read(new_fd,)546 1488 A
- (ubuf_ptr,)378 2076 A
- (bytes))252 2496 A
- 2790(!=)S
- (bytes))252 2916 A
- 3150 V
- (17525)210 648 A
- (break;)252 1698 A
- 2370(/*)S
- (error)210 2496 A
- 2748(*/)S
- 3240 V
- (17526)210 648 A
- (ubuf_ptr)336 1362 A
- 1740(+=)S
- (bytes;)252 1866 A
- 3330 V
- (17527)210 648 A
- (seg_bytes)378 1362 A
- 1782(-=)S
- (bytes;)252 1908 A
- 3420 V
- (17528)210 648 A
- 1110(})S
- 3510 V
- (17529)210 648 A
- 1026(})S
- 3780 V
- (17532)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3870 V
- (17533)210 648 A
- 1068(*)S
- (find_share)420 2370 A
- 4260(*)S
- 3960 V
- (17534)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4050 V
- (17535)210 648 A
- (PUBLIC)252 1026 A
- (struct)252 1320 A
- (mproc)210 1614 A
- (*find_share(mp_ign,)798 1866 A
- (ino,)168 2706 A
- (dev,)168 2916 A
- (ctime))252 3126 A
- 4140 V
- (17536)210 648 A
- (struct)252 1026 A
- (mproc)210 1320 A
- (*mp_ign;)336 1572 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (should)252 3042 A
- (not)126 3336 A
- 3504(be)S
- (looked)252 3630 A
- 3924(at)S
- 4050(*/)S
- 4230 V
- (17537)210 648 A
- (ino_t)210 1026 A
- (ino;)168 1278 A
- 2370(/*)S
- (parameters)420 2496 A
- (that)168 2958 A
- (uniquely)336 3168 A
- (identify)336 3546 A
- 3924(a)S
- (file)168 4008 A
- 4218(*/)S
- 4320 V
- (17538)210 648 A
- (dev_t)210 1026 A
- (dev;)168 1278 A
- 4410 V
- (17539)210 648 A
- (time_t)252 1026 A
- (ctime;)252 1320 A
- 4500 V
- (17540)210 648 A
- 1026({)S
- 4590 V
- (17541)210 648 A
- 1026(/*)S
- (Look)168 1152 A
- (for)126 1362 A
- 1530(a)S
- (process)294 1614 A
- (that)168 1950 A
- 2160(is)S
- (the)126 2286 A
- (file)168 2454 A
- (<ino,)210 2664 A
- (dev,)168 2916 A
- (ctime>)252 3126 A
- 3420(in)S
- (execution.)420 3546 A
- (Don't)210 4050 A
- 4680 V
- (17542)210 648 A
- 1068(*)S
- (accidentally)504 1152 A
- ("find")252 1698 A
- (mp_ign,)294 1992 A
- (because)294 2328 A
- 2664(it)S
- 2790(is)S
- (the)126 2916 A
- (process)294 3084 A
- 3420(on)S
- (whose)210 3546 A
- (behalf)252 3798 A
- (this)168 4092 A
- 4770 V
- (17543)210 648 A
- 1068(*)S
- (call)168 1152 A
- 1362(is)S
- (made.)210 1488 A
- 4860 V
- (17544)210 648 A
- 1068(*/)S
- 4950 V
- (17545)210 648 A
- (struct)252 1110 A
- (mproc)210 1404 A
- (*sh_mp;)294 1656 A
- 5040 V
- (17546)210 648 A
- 5130 V
- (17547)210 648 A
- (for)126 1110 A
- ((sh_mp)252 1278 A
- 1572(=)S
- (&mproc[INIT_PROC_NR];)882 1656 A
- (sh_mp)210 2580 A
- 2832(<)S
- (&mproc[NR_PROCS];)714 2916 A
- (sh_mp++))336 3672 A
- 4050({)S
- 5220 V
- (17548)210 648 A
- 1362(if)S
- (((sh_mp->mp_flags)714 1488 A
- 2244(&)S
- ((IN_USE)294 2328 A
- 2664(|)S
- (HANGING)294 2748 A
- 3084(|)S
- (SEPARATE)))420 3168 A
- 5310 V
- (17549)210 648 A
- 2706(!=)S
- ((IN_USE)294 2832 A
- 3168(|)S
- (SEPARATE)))420 3252 A
- (continue;)378 3714 A
- 5400 V
- (17550)210 648 A
- 1362(if)S
- ((sh_mp)252 1488 A
- 1782(==)S
- (mp_ign))294 1908 A
- (continue;)378 2244 A
- 5490 V
- (17551)210 648 A
- 1362(if)S
- ((sh_mp->mp_ino)588 1488 A
- 2118(!=)S
- (ino))168 2244 A
- (continue;)378 2454 A
- 5580 V
- (17552)210 648 A
- 1362(if)S
- ((sh_mp->mp_dev)588 1488 A
- 2118(!=)S
- (dev))168 2244 A
- (continue;)378 2454 A
- 5670 V
- (17553)210 648 A
- 1362(if)S
- ((sh_mp->mp_ctime)672 1488 A
- 2202(!=)S
- (ctime))252 2328 A
- (continue;)378 2622 A
- 5760 V
- (17554)210 648 A
- (return)252 1362 A
- (sh_mp;)252 1656 A
- 5850 V
- (17555)210 648 A
- 1110(})S
- 5940 V
- (17556)210 648 A
- (return(NULL);)546 1110 A
- 6030 V
- (17557)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 244 244
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (244)180 648 A
- 11 R
- 2077(File:)S
- 2310(src/mm/break.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 990 V
- 7 LST
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1080 V
- (src/mm/break.c)588 2034 A
- 1170 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1350 V
- (17600)210 648 A
- 1026(/*)S
- (The)126 1152 A
- (MINIX)210 1320 A
- (model)210 1572 A
- 1824(of)S
- (memory)252 1950 A
- (allocation)420 2244 A
- (reserves)336 2706 A
- 3084(a)S
- (fixed)210 3168 A
- (amount)252 3420 A
- 3714(of)S
- (memory)252 3840 A
- (for)126 4134 A
- 1440 V
- (17601)210 648 A
- 1068(*)S
- (the)126 1152 A
- (combined)336 1320 A
- (text,)210 1698 A
- (data,)210 1950 A
- (and)126 2202 A
- (stack)210 2370 A
- (segments.)378 2622 A
- (The)126 3084 A
- (amount)252 3252 A
- (used)168 3546 A
- (for)126 3756 A
- 3924(a)S
- (child)210 4008 A
- 1530 V
- (17602)210 648 A
- 1068(*)S
- (process)294 1152 A
- (created)294 1488 A
- 1824(by)S
- (FORK)168 1950 A
- 2160(is)S
- (the)126 2286 A
- (same)168 2454 A
- 2664(as)S
- (the)126 2790 A
- (parent)252 2958 A
- (had.)168 3252 A
- 3504(If)S
- (the)126 3630 A
- (child)210 3798 A
- (does)168 4050 A
- 1620 V
- (17603)210 648 A
- 1068(*)S
- 1152(an)S
- (EXEC)168 1278 A
- (later,)252 1488 A
- (the)126 1782 A
- (new)126 1950 A
- (size)168 2118 A
- 2328(is)S
- (taken)210 2454 A
- (from)168 2706 A
- (the)126 2916 A
- (header)252 3084 A
- 3378(of)S
- (the)126 3504 A
- (file)168 3672 A
- (EXEC'ed.)336 3882 A
- 1710 V
- (17604)210 648 A
- 1068(*)S
- 1800 V
- (17605)210 648 A
- 1068(*)S
- (The)126 1152 A
- (layout)252 1320 A
- 1614(in)S
- (memory)252 1740 A
- (consists)336 2034 A
- 2412(of)S
- (the)126 2538 A
- (text)168 2706 A
- (segment,)336 2916 A
- (followed)336 3294 A
- 3672(by)S
- (the)126 3798 A
- (data)168 3966 A
- 1890 V
- (17606)210 648 A
- 1068(*)S
- (segment,)336 1152 A
- (followed)336 1530 A
- 1908(by)S
- 2034(a)S
- (gap)126 2118 A
- ((unused)294 2286 A
- (memory),)336 2622 A
- (followed)336 3000 A
- 3378(by)S
- (the)126 3504 A
- (stack)210 3672 A
- (segment.)336 3924 A
- 1980 V
- (17607)210 648 A
- 1068(*)S
- (The)126 1152 A
- (data)168 1320 A
- (segment)294 1530 A
- (grows)210 1866 A
- (upward)252 2118 A
- (and)126 2412 A
- (the)126 2580 A
- (stack)210 2748 A
- (grows)210 3000 A
- (downward,)378 3252 A
- 3672(so)S
- (each)168 3798 A
- (can)126 4008 A
- 2070 V
- (17608)210 648 A
- 1068(*)S
- (take)168 1152 A
- (memory)252 1362 A
- (from)168 1656 A
- (the)126 1866 A
- (gap.)168 2034 A
- 2286(If)S
- (they)168 2412 A
- (meet,)210 2622 A
- (the)126 2874 A
- (process)294 3042 A
- (must)168 3378 A
- 3588(be)S
- (killed.)294 3714 A
- (The)126 4092 A
- 2160 V
- (17609)210 648 A
- 1068(*)S
- (procedures)420 1152 A
- 1614(in)S
- (this)168 1740 A
- (file)168 1950 A
- (deal)168 2160 A
- (with)168 2370 A
- (the)126 2580 A
- (growth)252 2748 A
- 3042(of)S
- (the)126 3168 A
- (data)168 3336 A
- (and)126 3546 A
- (stack)210 3714 A
- (segments.)378 3966 A
- 2250 V
- (17610)210 648 A
- 1068(*)S
- 2340 V
- (17611)210 648 A
- 1068(*)S
- (The)126 1152 A
- (entry)210 1320 A
- (points)252 1572 A
- (into)168 1866 A
- (this)168 2076 A
- (file)168 2286 A
- (are:)168 2496 A
- 2430 V
- (17612)210 648 A
- 1068(*)S
- (do_brk:)294 1236 A
- (BRK/SBRK)336 1782 A
- (system)252 2160 A
- (calls)210 2454 A
- 2706(to)S
- (grow)168 2832 A
- 3042(or)S
- (shrink)252 3168 A
- (the)126 3462 A
- (data)168 3630 A
- (segment)294 3840 A
- 2520 V
- (17613)210 648 A
- 1068(*)S
- (adjust:)294 1236 A
- (see)126 1782 A
- 1950(if)S
- 2076(a)S
- (proposed)336 2160 A
- (segment)294 2538 A
- (adjustment)420 2874 A
- 3336(is)S
- (allowed)294 3462 A
- 2610 V
- (17614)210 648 A
- 1068(*)S
- (size_ok:)336 1236 A
- (see)126 1782 A
- 1950(if)S
- (the)126 2076 A
- (segment)294 2244 A
- (sizes)210 2580 A
- (are)126 2832 A
- (feasible)336 3000 A
- 2700 V
- (17615)210 648 A
- 1068(*/)S
- 2790 V
- (17616)210 648 A
- 2880 V
- (17617)210 648 A
- (#include)336 1026 A
- ("mm.h")252 1404 A
- 2970 V
- (17618)210 648 A
- (#include)336 1026 A
- (<signal.h>)420 1404 A
- 3060 V
- (17619)210 648 A
- (#include)336 1026 A
- ("mproc.h")378 1404 A
- 3150 V
- (17620)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 3240 V
- (17621)210 648 A
- 3330 V
- (17622)210 648 A
- (#define)294 1026 A
- (DATA_CHANGED)504 1362 A
- 2160(1)S
- 2370(/*)S
- (flag)168 2496 A
- (value)210 2706 A
- (when)168 2958 A
- (data)168 3168 A
- (segment)294 3378 A
- (size)168 3714 A
- (changed)294 3924 A
- 4260(*/)S
- 3420 V
- (17623)210 648 A
- (#define)294 1026 A
- (STACK_CHANGED)546 1362 A
- 2160(2)S
- 2370(/*)S
- (flag)168 2496 A
- (value)210 2706 A
- (when)168 2958 A
- (stack)210 3168 A
- (size)168 3420 A
- (changed)294 3630 A
- 3966(*/)S
- 3510 V
- (17624)210 648 A
- 3600 V
- (17625)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3690 V
- (17626)210 648 A
- 1068(*)S
- (do_brk)252 2370 A
- 4260(*)S
- 3780 V
- (17627)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3870 V
- (17628)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_brk())336 1488 A
- 3960 V
- (17629)210 648 A
- 1026({)S
- 4050 V
- (17630)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (brk(addr))378 1656 A
- (system)252 2076 A
- (call.)210 2370 A
- 4140 V
- (17631)210 648 A
- 1068(*)S
- 4230 V
- (17632)210 648 A
- 1068(*)S
- (The)126 1152 A
- (call)168 1320 A
- 1530(is)S
- (complicated)462 1656 A
- 2160(by)S
- (the)126 2286 A
- (fact)168 2454 A
- (that)168 2664 A
- 2874(on)S
- (some)168 3000 A
- (machines)336 3210 A
- ((e.g.,)252 3588 A
- (8088),)252 3882 A
- 4320 V
- (17633)210 648 A
- 1068(*)S
- (the)126 1152 A
- (stack)210 1320 A
- (pointer)294 1572 A
- (can)126 1908 A
- (grow)168 2076 A
- (beyond)252 2286 A
- (the)126 2580 A
- (base)168 2748 A
- 2958(of)S
- (the)126 3084 A
- (stack)210 3252 A
- (segment)294 3504 A
- (without)294 3840 A
- 4410 V
- (17634)210 648 A
- 1068(*)S
- (anybody)294 1152 A
- (noticing)336 1488 A
- (it.)126 1866 A
- 4500 V
- (17635)210 648 A
- 1068(*)S
- (The)126 1152 A
- (parameter,)420 1320 A
- ('addr')252 1782 A
- 2076(is)S
- (the)126 2202 A
- (new)126 2370 A
- (virtual)294 2538 A
- (address)294 2874 A
- 3210(in)S
- 3336(D)S
- (space.)252 3420 A
- 4590 V
- (17636)210 648 A
- 1068(*/)S
- 4680 V
- (17637)210 648 A
- 4770 V
- (17638)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp;)210 2034 A
- 4860 V
- (17639)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 4950 V
- (17640)210 648 A
- (vir_bytes)378 1110 A
- 1530(v,)S
- (new_sp;)294 1656 A
- 5040 V
- (17641)210 648 A
- (vir_clicks)420 1110 A
- (new_clicks;)462 1572 A
- 5130 V
- (17642)210 648 A
- 5220 V
- (17643)210 648 A
- (rmp)126 1110 A
- 1278(=)S
- (mp;)126 1362 A
- 5310 V
- (17644)210 648 A
- 1110(v)S
- 1194(=)S
- ((vir_bytes))462 1278 A
- (addr;)210 1782 A
- 5400 V
- (17645)210 648 A
- (new_clicks)420 1110 A
- 1572(=)S
- ((vir_clicks))504 1656 A
- 2202(()S
- (((long))294 2286 A
- 2622(v)S
- 2706(+)S
- (CLICK_SIZE)420 2790 A
- 3252(-)S
- 3336(1))S
- 3462(>>)S
- (CLICK_SHIFT);)546 3588 A
- 5490 V
- (17646)210 648 A
- 1110(if)S
- ((new_clicks)462 1236 A
- 1740(<)S
- (rmp->mp_seg[D].mem_vir))966 1824 A
- 2832({)S
- 5580 V
- (17647)210 648 A
- (res_ptr)294 1362 A
- 1698(=)S
- ((char)210 1782 A
- 2034(*))S
- (-1;)126 2160 A
- 5670 V
- (17648)210 648 A
- (return(ENOMEM);)630 1362 A
- 5760 V
- (17649)210 648 A
- 1110(})S
- 5850 V
- (17650)210 648 A
- (new_clicks)420 1110 A
- 1572(-=)S
- (rmp->mp_seg[D].mem_vir;)966 1698 A
- 5940 V
- (17651)210 648 A
- (sys_getsp(who,)588 1110 A
- (&new_sp);)378 1740 A
- 2370(/*)S
- (ask)126 2496 A
- (kernel)252 2664 A
- (for)126 2958 A
- (current)294 3126 A
- 3462(sp)S
- (value)210 3588 A
- 3840(*/)S
- 6030 V
- (17652)210 648 A
- 1110(r)S
- 1194(=)S
- (adjust(rmp,)462 1278 A
- (new_clicks,)462 1782 A
- (new_sp);)336 2286 A
- 6120 V
- (17653)210 648 A
- (res_ptr)294 1110 A
- 1446(=)S
- 1530((r)S
- 1656(==)S
- 1782(OK)S
- 1908(?)S
- (addr)168 1992 A
- 2202(:)S
- ((char)210 2286 A
- 2538(*))S
- (-1);)168 2664 A
- 6210 V
- (17654)210 648 A
- (return(r);)420 1110 A
- 2370(/*)S
- (return)252 2496 A
- (new)126 2790 A
- (address)294 2958 A
- 3294(or)S
- 3420(-1)S
- 3546(*/)S
- 8418 V
- EP
- %%Page: 245 245
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2077(File:)S
- 2310(src/mm/break.c)S
- 12 B
- (245)180 4248 A
- 900 V
- 7 LST
- (17655)210 648 A
- 1026(})S
- 1170 V
- (17658)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1260 V
- (17659)210 648 A
- 1068(*)S
- (adjust)252 2370 A
- 4260(*)S
- 1350 V
- (17660)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1440 V
- (17661)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (adjust(rmp,)462 1488 A
- (data_clicks,)504 1992 A
- (sp))126 2538 A
- 1530 V
- (17662)210 648 A
- (register)336 1026 A
- (struct)252 1404 A
- (mproc)210 1698 A
- (*rmp;)210 1950 A
- 2370(/*)S
- (whose)210 2496 A
- (memory)252 2748 A
- 3042(is)S
- (being)210 3168 A
- (adjusted?)378 3420 A
- 3840(*/)S
- 1620 V
- (17663)210 648 A
- (vir_clicks)420 1026 A
- (data_clicks;)504 1488 A
- 2370(/*)S
- (how)126 2496 A
- (big)126 2664 A
- 2832(is)S
- (data)168 2958 A
- (segment)294 3168 A
- 3504(to)S
- (become?)294 3630 A
- 3966(*/)S
- 1710 V
- (17664)210 648 A
- (vir_bytes)378 1026 A
- (sp;)126 1446 A
- 2370(/*)S
- (new)126 2496 A
- (value)210 2664 A
- 2916(of)S
- 3042(sp)S
- 3168(*/)S
- 1800 V
- (17665)210 648 A
- 1026({)S
- 1890 V
- (17666)210 648 A
- 1026(/*)S
- (See)126 1152 A
- 1320(if)S
- (data)168 1446 A
- (and)126 1656 A
- (stack)210 1824 A
- (segments)336 2076 A
- (can)126 2454 A
- (coexist,)336 2622 A
- (adjusting)378 3000 A
- (them)168 3420 A
- 3630(if)S
- (need)168 3756 A
- (be.)126 3966 A
- 1980 V
- (17667)210 648 A
- 1068(*)S
- (Memory)252 1152 A
- 1446(is)S
- (never)210 1572 A
- (allocated)378 1824 A
- 2244(or)S
- (freed.)252 2370 A
- (Instead)294 2706 A
- 3042(it)S
- 3168(is)S
- (added)210 3294 A
- 3546(or)S
- (removed)294 3672 A
- (from)168 4008 A
- (the)126 4218 A
- 2070 V
- (17668)210 648 A
- 1068(*)S
- (gap)126 1152 A
- (between)294 1320 A
- (data)168 1656 A
- (segment)294 1866 A
- (and)126 2202 A
- (stack)210 2370 A
- (segment.)336 2622 A
- 3042(If)S
- (the)126 3168 A
- (gap)126 3336 A
- (size)168 3504 A
- (becomes)294 3714 A
- 2160 V
- (17669)210 648 A
- 1068(*)S
- (negative,)378 1152 A
- (the)126 1572 A
- (adjustment)420 1740 A
- 2202(of)S
- (data)168 2328 A
- 2538(or)S
- (stack)210 2664 A
- (fails)210 2916 A
- (and)126 3168 A
- (ENOMEM)252 3336 A
- 3630(is)S
- (returned.)378 3756 A
- 2250 V
- (17670)210 648 A
- 1068(*/)S
- 2340 V
- (17671)210 648 A
- 2430 V
- (17672)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mem_map)294 1782 A
- (*mem_sp,)336 2118 A
- (*mem_dp;)336 2496 A
- 2520 V
- (17673)210 648 A
- (vir_clicks)420 1110 A
- (sp_click,)378 1572 A
- (gap_base,)378 1992 A
- (lower,)252 2412 A
- (old_clicks;)462 2706 A
- 2610 V
- (17674)210 648 A
- (int)126 1110 A
- (changed,)336 1278 A
- 1656(r,)S
- (ft;)126 1782 A
- 2700 V
- (17675)210 648 A
- (long)168 1110 A
- (base_of_stack,)588 1320 A
- (delta;)252 1950 A
- 2370(/*)S
- (longs)210 2496 A
- (avoid)210 2748 A
- (certain)294 3000 A
- (problems)336 3336 A
- 3714(*/)S
- 2790 V
- (17676)210 648 A
- 2880 V
- (17677)210 648 A
- (mem_dp)252 1110 A
- 1404(=)S
- (&rmp->mp_seg[D];)672 1488 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (data)168 2958 A
- (segment)294 3168 A
- (map)126 3504 A
- 3672(*/)S
- 2970 V
- (17678)210 648 A
- (mem_sp)252 1110 A
- 1404(=)S
- (&rmp->mp_seg[S];)672 1488 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (stack)210 2958 A
- (segment)294 3210 A
- (map)126 3546 A
- 3714(*/)S
- 3060 V
- (17679)210 648 A
- (changed)294 1110 A
- 1446(=)S
- 1530(0;)S
- 2370(/*)S
- (set)126 2496 A
- (when)168 2664 A
- (either)252 2874 A
- (segment)294 3168 A
- (changed)294 3504 A
- 3840(*/)S
- 3150 V
- (17680)210 648 A
- 3240 V
- (17681)210 648 A
- 1110(if)S
- ((mem_sp->mem_len)672 1236 A
- 1950(==)S
- 2076(0))S
- (return(OK);)462 2202 A
- 2706(/*)S
- (don't)210 2832 A
- (bother)252 3084 A
- (init)168 3378 A
- 3588(*/)S
- 3330 V
- (17682)210 648 A
- 3420 V
- (17683)210 648 A
- 1110(/*)S
- (See)126 1236 A
- 1404(if)S
- (stack)210 1530 A
- (size)168 1782 A
- (has)126 1992 A
- (gone)168 2160 A
- (negative)336 2370 A
- ((i.e.,)252 2748 A
- 3042(sp)S
- (too)126 3168 A
- (close)210 3336 A
- 3588(to)S
- (0xFFFF...))420 3714 A
- 4176(*/)S
- 3510 V
- (17684)210 648 A
- (base_of_stack)546 1110 A
- 1698(=)S
- ((long))252 1782 A
- (mem_sp->mem_vir)630 2076 A
- 2748(+)S
- ((long))252 2832 A
- (mem_sp->mem_len;)672 3126 A
- 3600 V
- (17685)210 648 A
- (sp_click)336 1110 A
- 1488(=)S
- 1572(sp)S
- 1698(>>)S
- (CLICK_SHIFT;)504 1824 A
- 2370(/*)S
- (click)210 2496 A
- (containing)420 2748 A
- 3210(sp)S
- 3336(*/)S
- 3690 V
- (17686)210 648 A
- 1110(if)S
- ((sp_click)378 1236 A
- 1656(>=)S
- (base_of_stack))588 1782 A
- (return(ENOMEM);)630 2412 A
- 3378(/*)S
- 3504(sp)S
- (too)126 3630 A
- (high)168 3798 A
- 4008(*/)S
- 3780 V
- (17687)210 648 A
- 3870 V
- (17688)210 648 A
- 1110(/*)S
- (Compute)294 1236 A
- (size)168 1572 A
- 1782(of)S
- (gap)126 1908 A
- (between)294 2076 A
- (stack)210 2412 A
- (and)126 2664 A
- (data)168 2832 A
- (segments.)378 3042 A
- 3462(*/)S
- 3960 V
- (17689)210 648 A
- (delta)210 1110 A
- 1362(=)S
- ((long))252 1446 A
- (mem_sp->mem_vir)630 1740 A
- 2412(-)S
- ((long))252 2496 A
- (sp_click;)378 2790 A
- 4050 V
- (17690)210 648 A
- (lower)210 1110 A
- 1362(=)S
- ((delta)252 1446 A
- 1740(>)S
- 1824(0)S
- 1908(?)S
- (sp_click)336 1992 A
- 2370(:)S
- (mem_sp->mem_vir);)714 2454 A
- 4140 V
- (17691)210 648 A
- 4230 V
- (17692)210 648 A
- 1110(/*)S
- (Add)126 1236 A
- 1404(a)S
- (safety)252 1488 A
- (margin)252 1782 A
- (for)126 2076 A
- (future)252 2244 A
- (stack)210 2538 A
- (growth.)294 2790 A
- (Impossible)420 3126 A
- 3588(to)S
- 3714(do)S
- (right.)252 3840 A
- 4134(*/)S
- 4320 V
- (17693)210 648 A
- (#define)294 1026 A
- (SAFETY_BYTES)504 1362 A
- ((384)168 1950 A
- 2160(*)S
- (sizeof(char)462 2244 A
- (*)))126 2748 A
- 4410 V
- (17694)210 648 A
- (#define)294 1026 A
- (SAFETY_CLICKS)546 1362 A
- (((SAFETY_BYTES)588 1950 A
- 2580(+)S
- (CLICK_SIZE)420 2664 A
- 3126(-)S
- 3210(1))S
- 3336(/)S
- (CLICK_SIZE))462 3420 A
- 4500 V
- (17695)210 648 A
- (gap_base)336 1110 A
- 1488(=)S
- (mem_dp->mem_vir)630 1572 A
- 2244(+)S
- (data_clicks)462 2328 A
- 2832(+)S
- (SAFETY_CLICKS;)588 2916 A
- 4590 V
- (17696)210 648 A
- 1110(if)S
- ((lower)252 1236 A
- 1530(<)S
- (gap_base))378 1614 A
- (return(ENOMEM);)630 2034 A
- 2706(/*)S
- (data)168 2832 A
- (and)126 3042 A
- (stack)210 3210 A
- (collided)336 3462 A
- 3840(*/)S
- 4680 V
- (17697)210 648 A
- 4770 V
- (17698)210 648 A
- 1110(/*)S
- (Update)252 1236 A
- (data)168 1530 A
- (length)252 1740 A
- ((but)168 2034 A
- (not)126 2244 A
- (data)168 2412 A
- (orgin))252 2622 A
- 2916(on)S
- (behalf)252 3042 A
- 3336(of)S
- (brk())210 3462 A
- (system)252 3714 A
- (call.)210 4008 A
- 4260(*/)S
- 4860 V
- (17699)210 648 A
- (old_clicks)420 1110 A
- 1572(=)S
- (mem_dp->mem_len;)672 1656 A
- 4950 V
- (17700)210 648 A
- 1110(if)S
- ((data_clicks)504 1236 A
- 1782(!=)S
- (mem_dp->mem_len))672 1908 A
- 2622({)S
- 5040 V
- (17701)210 648 A
- (mem_dp->mem_len)630 1362 A
- 2034(=)S
- (data_clicks;)504 2118 A
- 5130 V
- (17702)210 648 A
- (changed)294 1362 A
- 1698(|=)S
- (DATA_CHANGED;)546 1824 A
- 5220 V
- (17703)210 648 A
- 1110(})S
- 5310 V
- (17704)210 648 A
- 5400 V
- (17705)210 648 A
- 1110(/*)S
- (Update)252 1236 A
- (stack)210 1530 A
- (length)252 1782 A
- (and)126 2076 A
- (origin)252 2244 A
- (due)126 2538 A
- 2706(to)S
- (change)252 2832 A
- 3126(in)S
- (stack)210 3252 A
- (pointer.)336 3504 A
- 3882(*/)S
- 5490 V
- (17706)210 648 A
- 1110(if)S
- ((delta)252 1236 A
- 1530(>)S
- 1614(0))S
- 1740({)S
- 5580 V
- (17707)210 648 A
- (mem_sp->mem_vir)630 1362 A
- 2034(-=)S
- (delta;)252 2160 A
- 5670 V
- (17708)210 648 A
- (mem_sp->mem_phys)672 1362 A
- 2076(-=)S
- (delta;)252 2202 A
- 5760 V
- (17709)210 648 A
- (mem_sp->mem_len)630 1362 A
- 2034(+=)S
- (delta;)252 2160 A
- 5850 V
- (17710)210 648 A
- (changed)294 1362 A
- 1698(|=)S
- (STACK_CHANGED;)588 1824 A
- 5940 V
- (17711)210 648 A
- 1110(})S
- 6030 V
- (17712)210 648 A
- 6120 V
- (17713)210 648 A
- 1110(/*)S
- 1236(Do)S
- (the)126 1362 A
- (new)126 1530 A
- (data)168 1698 A
- (and)126 1908 A
- (stack)210 2076 A
- (segment)294 2328 A
- (sizes)210 2664 A
- (fit)126 2916 A
- 3084(in)S
- (the)126 3210 A
- (address)294 3378 A
- (space?)252 3714 A
- 4008(*/)S
- 6210 V
- (17714)210 648 A
- 1110(ft)S
- 1236(=)S
- ((rmp->mp_flags)588 1320 A
- 1950(&)S
- (SEPARATE);)420 2034 A
- 8418 V
- EP
- %%Page: 246 246
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (246)180 648 A
- 11 R
- 2077(File:)S
- 2310(src/mm/break.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (17715)210 648 A
- 1110(r)S
- 1194(=)S
- (size_ok(ft,)462 1278 A
- (rmp->mp_seg[T].mem_len,)966 1782 A
- (rmp->mp_seg[D].mem_len,)966 2790 A
- 990 V
- (17716)210 648 A
- (rmp->mp_seg[S].mem_len,)966 1320 A
- (rmp->mp_seg[D].mem_vir,)966 2328 A
- (rmp->mp_seg[S].mem_vir);)1008 3336 A
- 1080 V
- (17717)210 648 A
- 1110(if)S
- 1236((r)S
- 1362(==)S
- (OK))126 1488 A
- 1656({)S
- 1170 V
- (17718)210 648 A
- 1362(if)S
- ((changed))378 1488 A
- (sys_newmap((int)(rmp)840 1908 A
- 2790(-)S
- (mproc),)294 2874 A
- (rmp->mp_seg);)546 3210 A
- 1260 V
- (17719)210 648 A
- (return(OK);)462 1362 A
- 1350 V
- (17720)210 648 A
- 1110(})S
- 1440 V
- (17721)210 648 A
- 1530 V
- (17722)210 648 A
- 1110(/*)S
- (New)126 1236 A
- (sizes)210 1404 A
- (don't)210 1656 A
- (fit)126 1908 A
- 2076(or)S
- (require)294 2202 A
- (too)126 2538 A
- (many)168 2706 A
- (page/segment)504 2916 A
- (registers.)420 3462 A
- (Restore.*/)420 3924 A
- 1620 V
- (17723)210 648 A
- 1110(if)S
- ((changed)336 1236 A
- 1614(&)S
- (DATA_CHANGED))546 1698 A
- (mem_dp->mem_len)630 2286 A
- 2958(=)S
- (old_clicks;)462 3042 A
- 1710 V
- (17724)210 648 A
- 1110(if)S
- ((changed)336 1236 A
- 1614(&)S
- (STACK_CHANGED))588 1698 A
- 2328({)S
- 1800 V
- (17725)210 648 A
- (mem_sp->mem_vir)630 1362 A
- 2034(+=)S
- (delta;)252 2160 A
- 1890 V
- (17726)210 648 A
- (mem_sp->mem_phys)672 1362 A
- 2076(+=)S
- (delta;)252 2202 A
- 1980 V
- (17727)210 648 A
- (mem_sp->mem_len)630 1362 A
- 2034(-=)S
- (delta;)252 2160 A
- 2070 V
- (17728)210 648 A
- 1110(})S
- 2160 V
- (17729)210 648 A
- (return(ENOMEM);)630 1110 A
- 2250 V
- (17730)210 648 A
- 1026(})S
- 2520 V
- (17733)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2610 V
- (17734)210 648 A
- 1068(*)S
- (size_ok)294 2370 A
- 4260(*)S
- 2700 V
- (17735)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2790 V
- (17736)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (size_ok(file_type,)756 1488 A
- (tc,)126 2286 A
- (dc,)126 2454 A
- (sc,)126 2622 A
- (dvir,)210 2790 A
- (s_vir))252 3042 A
- 2880 V
- (17737)210 648 A
- (int)126 1026 A
- (file_type;)420 1194 A
- 2370(/*)S
- (SEPARATE)336 2496 A
- 2874(or)S
- 3000(0)S
- 3084(*/)S
- 2970 V
- (17738)210 648 A
- (vir_clicks)420 1026 A
- (tc;)126 1488 A
- 2370(/*)S
- (text)168 2496 A
- (size)168 2706 A
- 2916(in)S
- (clicks)252 3042 A
- 3336(*/)S
- 3060 V
- (17739)210 648 A
- (vir_clicks)420 1026 A
- (dc;)126 1488 A
- 2370(/*)S
- (data)168 2496 A
- (size)168 2706 A
- 2916(in)S
- (clicks)252 3042 A
- 3336(*/)S
- 3150 V
- (17740)210 648 A
- (vir_clicks)420 1026 A
- (sc;)126 1488 A
- 2370(/*)S
- (stack)210 2496 A
- (size)168 2748 A
- 2958(in)S
- (clicks)252 3084 A
- 3378(*/)S
- 3240 V
- (17741)210 648 A
- (vir_clicks)420 1026 A
- (dvir;)210 1488 A
- 2370(/*)S
- (virtual)294 2496 A
- (address)294 2832 A
- (for)126 3168 A
- (start)210 3336 A
- 3588(of)S
- (data)168 3714 A
- (seg)126 3924 A
- 4092(*/)S
- 3330 V
- (17742)210 648 A
- (vir_clicks)420 1026 A
- (s_vir;)252 1488 A
- 2370(/*)S
- (virtual)294 2496 A
- (address)294 2832 A
- (for)126 3168 A
- (start)210 3336 A
- 3588(of)S
- (stack)210 3714 A
- (seg)126 3966 A
- 4134(*/)S
- 3420 V
- (17743)210 648 A
- 1026({)S
- 3510 V
- (17744)210 648 A
- 1026(/*)S
- (Check)210 1152 A
- 1404(to)S
- (see)126 1530 A
- 1698(if)S
- (the)126 1824 A
- (sizes)210 1992 A
- (are)126 2244 A
- (feasible)336 2412 A
- (and)126 2790 A
- (enough)252 2958 A
- (segmentation)504 3252 A
- (registers)378 3798 A
- 3600 V
- (17745)210 648 A
- 1068(*)S
- (exist.)252 1152 A
- 1488(On)S
- 1614(a)S
- (machine)294 1698 A
- (with)168 2034 A
- (eight)210 2244 A
- 2496(8K)S
- (pages,)252 2622 A
- (text,)210 2916 A
- (data,)210 3168 A
- (stack)210 3420 A
- (sizes)210 3672 A
- 3924(of)S
- 3690 V
- (17746)210 648 A
- 1068(*)S
- ((32K,)210 1152 A
- (16K,)168 1404 A
- (16K))168 1614 A
- (will)168 1824 A
- (fit,)168 2034 A
- (but)126 2244 A
- ((33K,)210 2412 A
- (17K,)168 2664 A
- (13K))168 2874 A
- (will)168 3084 A
- (not,)168 3294 A
- (even)168 3504 A
- (though)252 3714 A
- (the)126 4008 A
- 3780 V
- (17747)210 648 A
- 1068(*)S
- (former)252 1152 A
- 1446(is)S
- (bigger)252 1572 A
- ((64K))210 1866 A
- (than)168 2118 A
- (the)126 2328 A
- (latter)252 2496 A
- ((63K).)252 2790 A
- (Even)168 3126 A
- 3336(on)S
- (the)126 3462 A
- (8088)168 3630 A
- (this)168 3840 A
- (test)168 4050 A
- 3870 V
- (17748)210 648 A
- 1068(*)S
- 1152(is)S
- (needed,)294 1278 A
- (since)210 1614 A
- (the)126 1866 A
- (data)168 2034 A
- (and)126 2244 A
- (stack)210 2412 A
- (may)126 2664 A
- (not)126 2832 A
- (exceed)252 3000 A
- (4096)168 3294 A
- (clicks.)294 3504 A
- 3960 V
- (17749)210 648 A
- 1068(*/)S
- 4050 V
- (17750)210 648 A
- 4140 V
- (17751)210 648 A
- (#if)126 1026 A
- ((CHIP)210 1194 A
- 1446(==)S
- (INTEL)210 1572 A
- 1824(&&)S
- (_WORD_SIZE)420 1950 A
- 2412(==)S
- 2538(2))S
- 4230 V
- (17752)210 648 A
- (int)126 1110 A
- (pt,)126 1278 A
- (pd,)126 1446 A
- (ps;)126 1614 A
- 2370(/*)S
- (segment)294 2496 A
- (sizes)210 2832 A
- 3084(in)S
- (pages)210 3210 A
- 3462(*/)S
- 4320 V
- (17753)210 648 A
- 4410 V
- (17754)210 648 A
- 1110(pt)S
- 1236(=)S
- 1320(()S
- ((tc)126 1404 A
- 1572(<<)S
- (CLICK_SHIFT))504 1698 A
- 2244(+)S
- (PAGE_SIZE)378 2328 A
- 2748(-)S
- (1)/PAGE_SIZE;)546 2832 A
- 4500 V
- (17755)210 648 A
- 1110(pd)S
- 1236(=)S
- 1320(()S
- ((dc)126 1404 A
- 1572(<<)S
- (CLICK_SHIFT))504 1698 A
- 2244(+)S
- (PAGE_SIZE)378 2328 A
- 2748(-)S
- (1)/PAGE_SIZE;)546 2832 A
- 4590 V
- (17756)210 648 A
- 1110(ps)S
- 1236(=)S
- 1320(()S
- ((sc)126 1404 A
- 1572(<<)S
- (CLICK_SHIFT))504 1698 A
- 2244(+)S
- (PAGE_SIZE)378 2328 A
- 2748(-)S
- (1)/PAGE_SIZE;)546 2832 A
- 4680 V
- (17757)210 648 A
- 4770 V
- (17758)210 648 A
- 1110(if)S
- ((file_type)420 1236 A
- 1698(==)S
- (SEPARATE))378 1824 A
- 2244({)S
- 4860 V
- (17759)210 648 A
- 1362(if)S
- ((pt)126 1488 A
- 1656(>)S
- (MAX_PAGES)378 1740 A
- 2160(||)S
- 2286(pd)S
- 2412(+)S
- 2496(ps)S
- 2622(>)S
- (MAX_PAGES))420 2706 A
- (return(ENOMEM);)630 3168 A
- 4950 V
- (17760)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 5040 V
- (17761)210 648 A
- 1362(if)S
- ((pt)126 1488 A
- 1656(+)S
- 1740(pd)S
- 1866(+)S
- 1950(ps)S
- 2076(>)S
- (MAX_PAGES))420 2160 A
- (return(ENOMEM);)630 2622 A
- 5130 V
- (17762)210 648 A
- 1110(})S
- 5220 V
- (17763)210 648 A
- (#endif)252 1026 A
- 5310 V
- (17764)210 648 A
- 5400 V
- (17765)210 648 A
- 1110(if)S
- ((dvir)210 1236 A
- 1488(+)S
- 1572(dc)S
- 1698(>)S
- (s_vir))252 1782 A
- (return(ENOMEM);)630 2076 A
- 5490 V
- (17766)210 648 A
- 5580 V
- (17767)210 648 A
- (return(OK);)462 1110 A
- 5670 V
- (17768)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 247 247
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 12 B
- (247)180 4248 A
- 990 V
- 7 LST
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1080 V
- (src/mm/signal.c)630 2034 A
- 1170 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1350 V
- (17800)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (handles)294 1572 A
- (signals,)336 1908 A
- (which)210 2286 A
- (are)126 2538 A
- (asynchronous)504 2706 A
- (events)252 3252 A
- (and)126 3546 A
- (are)126 3714 A
- (generally)378 3882 A
- 1440 V
- (17801)210 648 A
- 1068(*)S
- 1152(a)S
- (messy)210 1236 A
- (and)126 1488 A
- (unpleasant)420 1656 A
- (business.)378 2118 A
- (Signals)294 2580 A
- (can)126 2916 A
- 3084(be)S
- (generated)378 3210 A
- 3630(by)S
- (the)126 3756 A
- (KILL)168 3924 A
- 1530 V
- (17802)210 648 A
- 1068(*)S
- (system)252 1152 A
- (call,)210 1446 A
- 1698(or)S
- (from)168 1824 A
- (the)126 2034 A
- (keyboard)336 2202 A
- ((SIGINT))336 2580 A
- 2958(or)S
- (from)168 3084 A
- (the)126 3294 A
- (clock)210 3462 A
- ((SIGALRM).)420 3714 A
- 1620 V
- (17803)210 648 A
- 1068(*)S
- 1152(In)S
- (all)126 1278 A
- (cases)210 1446 A
- (control)294 1698 A
- (eventually)420 2034 A
- (passes)252 2496 A
- 2790(to)S
- (check_sig())462 2916 A
- 3420(to)S
- (see)126 3546 A
- (which)210 3714 A
- (processes)378 3966 A
- 1710 V
- (17804)210 648 A
- 1068(*)S
- (can)126 1152 A
- 1320(be)S
- (signaled.)378 1446 A
- (The)126 1908 A
- (actual)252 2076 A
- (signaling)378 2370 A
- 2790(is)S
- (done)168 2916 A
- 3126(by)S
- (sig_proc().)462 3252 A
- 1800 V
- (17805)210 648 A
- 1068(*)S
- 1890 V
- (17806)210 648 A
- 1068(*)S
- (The)126 1152 A
- (entry)210 1320 A
- (points)252 1572 A
- (into)168 1866 A
- (this)168 2076 A
- (file)168 2286 A
- (are:)168 2496 A
- 1980 V
- (17807)210 648 A
- 1068(*)S
- (do_sigaction:)546 1236 A
- (perform)294 1908 A
- (the)126 2244 A
- (SIGACTION)378 2412 A
- (system)252 2832 A
- (call)168 3126 A
- 2070 V
- (17808)210 648 A
- 1068(*)S
- (do_sigpending:)588 1236 A
- (perform)294 1908 A
- (the)126 2244 A
- (SIGPENDING)420 2412 A
- (system)252 2874 A
- (call)168 3168 A
- 2160 V
- (17809)210 648 A
- 1068(*)S
- (do_sigprocmask:)630 1236 A
- (perform)294 1908 A
- (the)126 2244 A
- (SIGPROCMASK)462 2412 A
- (system)252 2916 A
- (call)168 3210 A
- 2250 V
- (17810)210 648 A
- 1068(*)S
- (do_sigreturn:)546 1236 A
- (perform)294 1908 A
- (the)126 2244 A
- (SIGRETURN)378 2412 A
- (system)252 2832 A
- (call)168 3126 A
- 2340 V
- (17811)210 648 A
- 1068(*)S
- (do_sigsuspend:)588 1236 A
- (perform)294 1908 A
- (the)126 2244 A
- (SIGSUSPEND)420 2412 A
- (system)252 2874 A
- (call)168 3168 A
- 2430 V
- (17812)210 648 A
- 1068(*)S
- (do_kill:)336 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (KILL)168 2202 A
- (system)252 2412 A
- (call)168 2706 A
- 2520 V
- (17813)210 648 A
- 1068(*)S
- (do_ksig:)336 1236 A
- (accept)252 1698 A
- 1992(a)S
- (signal)252 2076 A
- (originating)462 2370 A
- 2874(in)S
- (the)126 3000 A
- (kernel)252 3168 A
- ((e.g.,)252 3462 A
- (SIGINT))294 3756 A
- 2610 V
- (17814)210 648 A
- 1068(*)S
- (do_alarm:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (ALARM)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 2958(by)S
- (calling)294 3084 A
- (set_alarm())462 3420 A
- 2700 V
- (17815)210 648 A
- 1068(*)S
- (set_alarm:)420 1236 A
- (tell)168 1698 A
- (the)126 1908 A
- (clock)210 2076 A
- (task)168 2328 A
- 2538(to)S
- (start)210 2664 A
- 2916(or)S
- (stop)168 3042 A
- 3252(a)S
- (timer)210 3336 A
- 2790 V
- (17816)210 648 A
- 1068(*)S
- (do_pause:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (PAUSE)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 2880 V
- (17817)210 648 A
- 1068(*)S
- (do_reboot:)420 1236 A
- (kill)168 1698 A
- (all)126 1908 A
- (processes,)420 2076 A
- (then)168 2538 A
- (reboot)252 2748 A
- (system)252 3042 A
- 2970 V
- (17818)210 648 A
- 1068(*)S
- (sig_proc:)378 1236 A
- (interrupt)378 1698 A
- 2118(or)S
- (terminate)378 2244 A
- 2664(a)S
- (signaled)336 2748 A
- (process)294 3126 A
- 3060 V
- (17819)210 648 A
- 1068(*)S
- (check_sig:)420 1236 A
- (check)210 1698 A
- (which)210 1950 A
- (processes)378 2202 A
- 2622(to)S
- (signal)252 2748 A
- (with)168 3042 A
- (sig_proc())420 3252 A
- 3150 V
- (17820)210 648 A
- 1068(*/)S
- 3240 V
- (17821)210 648 A
- 3330 V
- (17822)210 648 A
- (#include)336 1026 A
- ("mm.h")252 1404 A
- 3420 V
- (17823)210 648 A
- (#include)336 1026 A
- (<sys/stat.h>)504 1404 A
- 3510 V
- (17824)210 648 A
- (#include)336 1026 A
- (<minix/callnr.h>)672 1404 A
- 3600 V
- (17825)210 648 A
- (#include)336 1026 A
- (<minix/com.h>)546 1404 A
- 3690 V
- (17826)210 648 A
- (#include)336 1026 A
- (<signal.h>)420 1404 A
- 3780 V
- (17827)210 648 A
- (#include)336 1026 A
- (<sys/sigcontext.h>)756 1404 A
- 3870 V
- (17828)210 648 A
- (#include)336 1026 A
- (<string.h>)420 1404 A
- 3960 V
- (17829)210 648 A
- (#include)336 1026 A
- ("mproc.h")378 1404 A
- 4050 V
- (17830)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 4140 V
- (17831)210 648 A
- 4230 V
- (17832)210 648 A
- (#define)294 1026 A
- (CORE_MODE)378 1362 A
- (0777)168 2034 A
- 2370(/*)S
- (mode)168 2496 A
- 2706(to)S
- (use)126 2832 A
- 3000(on)S
- (core)168 3126 A
- (image)210 3336 A
- (files)210 3588 A
- 3840(*/)S
- 4320 V
- (17833)210 648 A
- (#define)294 1026 A
- (DUMPED)252 1362 A
- (0200)168 2034 A
- 2370(/*)S
- (bit)126 2496 A
- (set)126 2664 A
- 2832(in)S
- (status)252 2958 A
- (when)168 3252 A
- (core)168 3462 A
- (dumped)252 3672 A
- 3966(*/)S
- 4410 V
- (17834)210 648 A
- (#define)294 1026 A
- (DUMP_SIZE)378 1362 A
- (((INT_MAX)378 2034 A
- 2454(/)S
- (BLOCK_SIZE))462 2538 A
- 3042(*)S
- (BLOCK_SIZE))462 3126 A
- 4500 V
- (17835)210 648 A
- 2370(/*)S
- (buffer)252 2496 A
- (size)168 2790 A
- (for)126 3000 A
- (core)168 3168 A
- (dumps)210 3378 A
- 3630(*/)S
- 4590 V
- (17836)210 648 A
- 4680 V
- (17837)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (check_pending,)588 2076 A
- ((void))252 2706 A
- 4050();)S
- 4770 V
- (17838)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (dump_core,)420 2076 A
- ((struct)294 2538 A
- (mproc)210 2874 A
- (*rmp))210 3126 A
- 4050();)S
- 4860 V
- (17839)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (unpause,)336 2076 A
- ((int)168 2454 A
- (pro))168 2664 A
- 4050();)S
- 4950 V
- (17840)210 648 A
- 5040 V
- (17841)210 648 A
- 5130 V
- (17842)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5220 V
- (17843)210 648 A
- 1068(*)S
- (do_sigaction)504 2328 A
- 4260(*)S
- 5310 V
- (17844)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5400 V
- (17845)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_sigaction())588 1488 A
- 5490 V
- (17846)210 648 A
- 1026({)S
- 5580 V
- (17847)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 5670 V
- (17848)210 648 A
- (struct)252 1110 A
- (sigaction)378 1404 A
- (svec;)210 1824 A
- 5760 V
- (17849)210 648 A
- (struct)252 1110 A
- (sigaction)378 1404 A
- (*svp;)210 1824 A
- 5850 V
- (17850)210 648 A
- 5940 V
- (17851)210 648 A
- 1110(if)S
- ((sig_nr)294 1236 A
- 1572(==)S
- (SIGKILL))336 1698 A
- (return(OK);)462 2076 A
- 6030 V
- (17852)210 648 A
- 1110(if)S
- ((sig_nr)294 1236 A
- 1572(<)S
- 1656(1)S
- 1740(||)S
- (sig_nr)252 1866 A
- 2160(>)S
- (_NSIG))252 2244 A
- (return)252 2538 A
- ((EINVAL);)378 2832 A
- 6120 V
- (17853)210 648 A
- (svp)126 1110 A
- 1278(=)S
- (&mp->mp_sigact[sig_nr];)966 1362 A
- 6210 V
- (17854)210 648 A
- 1110(if)S
- (((struct)336 1236 A
- (sigaction)378 1614 A
- 2034(*))S
- (sig_osa)294 2160 A
- 2496(!=)S
- ((struct)294 2622 A
- (sigaction)378 2958 A
- 3378(*))S
- (NULL))210 3504 A
- 3756({)S
- 8418 V
- EP
- %%Page: 248 248
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (248)180 648 A
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (17855)210 648 A
- 1362(r)S
- 1446(=)S
- (sys_copy(MM_PROC_NR,D,)924 1530 A
- ((phys_bytes))504 2496 A
- (svp,)168 3042 A
- 990 V
- (17856)210 648 A
- (who,)168 1698 A
- 1908(D,)S
- ((phys_bytes))504 2034 A
- (sig_osa,)336 2580 A
- ((phys_bytes))504 2958 A
- (sizeof(svec));)588 3504 A
- 1080 V
- (17857)210 648 A
- 1362(if)S
- 1488((r)S
- 1614(!=)S
- (OK))126 1740 A
- (return(r);)420 1908 A
- 1170 V
- (17858)210 648 A
- 1110(})S
- 1260 V
- (17859)210 648 A
- 1350 V
- (17860)210 648 A
- 1110(if)S
- (((struct)336 1236 A
- (sigaction)378 1614 A
- 2034(*))S
- (sig_nsa)294 2160 A
- 2496(==)S
- ((struct)294 2622 A
- (sigaction)378 2958 A
- 3378(*))S
- (NULL))210 3504 A
- (return(OK);)462 3756 A
- 1440 V
- (17861)210 648 A
- 1530 V
- (17862)210 648 A
- 1110(/*)S
- (Read)168 1236 A
- 1446(in)S
- (the)126 1572 A
- (sigaction)378 1740 A
- (structure.)420 2160 A
- 2622(*/)S
- 1620 V
- (17863)210 648 A
- 1110(r)S
- 1194(=)S
- (sys_copy(who,)546 1278 A
- 1866(D,)S
- ((phys_bytes))504 1992 A
- (sig_nsa,)336 2538 A
- 1710 V
- (17864)210 648 A
- (MM_PROC_NR,)462 1698 A
- 2202(D,)S
- ((phys_bytes))504 2328 A
- (&svec,)252 2874 A
- ((phys_bytes))504 3168 A
- (sizeof(svec));)588 3714 A
- 1800 V
- (17865)210 648 A
- 1110(if)S
- 1236((r)S
- 1362(!=)S
- (OK))126 1488 A
- (return(r);)420 1656 A
- 1890 V
- (17866)210 648 A
- 1980 V
- (17867)210 648 A
- 1110(if)S
- ((svec.sa_handler)672 1236 A
- 1950(==)S
- (SIG_IGN))336 2076 A
- 2454({)S
- 2070 V
- (17868)210 648 A
- (sigaddset(&mp->mp_ignore,)1050 1362 A
- (sig_nr);)336 2454 A
- 2160 V
- (17869)210 648 A
- (sigdelset(&mp->mp_sigpending,)1218 1362 A
- (sig_nr);)336 2622 A
- 2250 V
- (17870)210 648 A
- (sigdelset(&mp->mp_catch,)1008 1362 A
- (sig_nr);)336 2412 A
- 2340 V
- (17871)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 2430 V
- (17872)210 648 A
- (sigdelset(&mp->mp_ignore,)1050 1362 A
- (sig_nr);)336 2454 A
- 2520 V
- (17873)210 648 A
- 1362(if)S
- ((svec.sa_handler)672 1488 A
- 2202(==)S
- (SIG_DFL))336 2328 A
- 2610 V
- (17874)210 648 A
- (sigdelset(&mp->mp_catch,)1008 1698 A
- (sig_nr);)336 2748 A
- 2700 V
- (17875)210 648 A
- (else)168 1362 A
- 2790 V
- (17876)210 648 A
- (sigaddset(&mp->mp_catch,)1008 1698 A
- (sig_nr);)336 2748 A
- 2880 V
- (17877)210 648 A
- 1110(})S
- 2970 V
- (17878)210 648 A
- (mp->mp_sigact[sig_nr].sa_handler)1344 1110 A
- 2496(=)S
- (svec.sa_handler;)672 2580 A
- 3060 V
- (17879)210 648 A
- (sigdelset(&svec.sa_mask,)1008 1110 A
- (SIGKILL);)378 2160 A
- 3150 V
- (17880)210 648 A
- (mp->mp_sigact[sig_nr].sa_mask)1218 1110 A
- 2370(=)S
- (svec.sa_mask;)546 2454 A
- 3240 V
- (17881)210 648 A
- (mp->mp_sigact[sig_nr].sa_flags)1260 1110 A
- 2412(=)S
- (svec.sa_flags;)588 2496 A
- 3330 V
- (17882)210 648 A
- (mp->mp_sigreturn)672 1110 A
- 1824(=)S
- ((vir_bytes))462 1908 A
- (sig_ret;)336 2412 A
- 3420 V
- (17883)210 648 A
- (return(OK);)462 1110 A
- 3510 V
- (17884)210 648 A
- 1026(})S
- 3690 V
- (17886)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3780 V
- (17887)210 648 A
- 1068(*)S
- (do_sigpending)546 2286 A
- 4260(*)S
- 3870 V
- (17888)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3960 V
- (17889)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_sigpending())630 1488 A
- 4050 V
- (17890)210 648 A
- 1026({)S
- 4140 V
- (17891)210 648 A
- (ret_mask)336 1110 A
- 1488(=)S
- ((long))252 1572 A
- (mp->mp_sigpending;)756 1866 A
- 4230 V
- (17892)210 648 A
- (return)252 1110 A
- (OK;)126 1404 A
- 4320 V
- (17893)210 648 A
- 1026(})S
- 4500 V
- (17895)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4590 V
- (17896)210 648 A
- 1068(*)S
- (do_sigprocmask)588 2286 A
- 4260(*)S
- 4680 V
- (17897)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4770 V
- (17898)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_sigprocmask())672 1488 A
- 4860 V
- (17899)210 648 A
- 1026({)S
- 4950 V
- (17900)210 648 A
- 1026(/*)S
- (Note)168 1152 A
- (that)168 1362 A
- (the)126 1572 A
- (library)294 1740 A
- (interface)378 2076 A
- (passes)252 2496 A
- (the)126 2790 A
- (actual)252 2958 A
- (mask)168 3252 A
- 3462(in)S
- (sigmask_set,)504 3588 A
- 5040 V
- (17901)210 648 A
- 1068(*)S
- (not)126 1152 A
- 1320(a)S
- (pointer)294 1404 A
- 1740(to)S
- (the)126 1866 A
- (mask,)210 2034 A
- 2286(in)S
- (order)210 2412 A
- 2664(to)S
- (save)168 2790 A
- 3000(a)S
- (sys_copy.)378 3084 A
- (Similarly,)420 3546 A
- 5130 V
- (17902)210 648 A
- 1068(*)S
- (the)126 1152 A
- (old)126 1320 A
- (mask)168 1488 A
- 1698(is)S
- (placed)252 1824 A
- 2118(in)S
- (the)126 2244 A
- (return)252 2412 A
- (message)294 2706 A
- (which)210 3042 A
- (the)126 3294 A
- (library)294 3462 A
- 5220 V
- (17903)210 648 A
- 1068(*)S
- (interface)378 1152 A
- (copies)252 1572 A
- ((if)126 1866 A
- (requested))420 2034 A
- 2496(to)S
- (the)126 2622 A
- (user)168 2790 A
- (specified)378 3000 A
- (address.)336 3420 A
- 5310 V
- (17904)210 648 A
- 1068(*)S
- 5400 V
- (17905)210 648 A
- 1068(*)S
- (The)126 1152 A
- (library)294 1320 A
- (interface)378 1656 A
- (must)168 2076 A
- (set)126 2286 A
- (SIG_INQUIRE)462 2454 A
- 2958(if)S
- (the)126 3084 A
- ('act')210 3252 A
- (argument)336 3504 A
- 5490 V
- (17906)210 648 A
- 1068(*)S
- 1152(is)S
- (NULL.)210 1278 A
- 5580 V
- (17907)210 648 A
- 1068(*/)S
- 5670 V
- (17908)210 648 A
- 5760 V
- (17909)210 648 A
- (int)126 1110 A
- 1278(i;)S
- 5850 V
- (17910)210 648 A
- 5940 V
- (17911)210 648 A
- (ret_mask)336 1110 A
- 1488(=)S
- ((long))252 1572 A
- (mp->mp_sigmask;)630 1866 A
- 6030 V
- (17912)210 648 A
- 6120 V
- (17913)210 648 A
- (switch)252 1110 A
- ((sig_how))378 1404 A
- 1824({)S
- 6210 V
- (17914)210 648 A
- (case)168 1278 A
- (SIG_BLOCK:)420 1488 A
- 8418 V
- EP
- %%Page: 249 249
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 12 B
- (249)180 4248 A
- 900 V
- 7 LST
- (17915)210 648 A
- (sigdelset((sigset_t)798 1362 A
- (*)&sig_set,)462 2202 A
- (SIGKILL);)378 2706 A
- 990 V
- (17916)210 648 A
- (for)126 1362 A
- 1530((i)S
- 1656(=)S
- 1740(1;)S
- 1866(i)S
- 1950(<)S
- (_NSIG;)252 2034 A
- (i++))168 2328 A
- 2538({)S
- 1080 V
- (17917)210 648 A
- 1698(if)S
- ((sigismember((sigset_t)924 1824 A
- (*)&sig_set,)462 2790 A
- (i)))126 3294 A
- 1170 V
- (17918)210 648 A
- (sigaddset(&mp->mp_sigmask,)1092 2034 A
- (i);)126 3168 A
- 1260 V
- (17919)210 648 A
- 1362(})S
- 1350 V
- (17920)210 648 A
- (break;)252 1362 A
- 1440 V
- (17921)210 648 A
- 1530 V
- (17922)210 648 A
- (case)168 1278 A
- (SIG_UNBLOCK:)504 1488 A
- 1620 V
- (17923)210 648 A
- (for)126 1362 A
- 1530((i)S
- 1656(=)S
- 1740(1;)S
- 1866(i)S
- 1950(<)S
- (_NSIG;)252 2034 A
- (i++))168 2328 A
- 2538({)S
- 1710 V
- (17924)210 648 A
- 1698(if)S
- ((sigismember((sigset_t)924 1824 A
- (*)&sig_set,)462 2790 A
- (i)))126 3294 A
- 1800 V
- (17925)210 648 A
- (sigdelset(&mp->mp_sigmask,)1092 2034 A
- (i);)126 3168 A
- 1890 V
- (17926)210 648 A
- 1362(})S
- 1980 V
- (17927)210 648 A
- (check_pending();)672 1362 A
- 2070 V
- (17928)210 648 A
- (break;)252 1362 A
- 2160 V
- (17929)210 648 A
- 2250 V
- (17930)210 648 A
- (case)168 1278 A
- (SIG_SETMASK:)504 1488 A
- 2340 V
- (17931)210 648 A
- (sigdelset((sigset_t)798 1362 A
- (*)&sig_set,)462 2202 A
- (SIGKILL);)378 2706 A
- 2430 V
- (17932)210 648 A
- (mp->mp_sigmask)588 1362 A
- 1992(=)S
- ((sigset_t)sig_set;)756 2076 A
- 2520 V
- (17933)210 648 A
- (check_pending();)672 1362 A
- 2610 V
- (17934)210 648 A
- (break;)252 1362 A
- 2700 V
- (17935)210 648 A
- 2790 V
- (17936)210 648 A
- (case)168 1278 A
- (SIG_INQUIRE:)504 1488 A
- 2880 V
- (17937)210 648 A
- (break;)252 1362 A
- 2970 V
- (17938)210 648 A
- 3060 V
- (17939)210 648 A
- (default:)336 1278 A
- 3150 V
- (17940)210 648 A
- (return(EINVAL);)630 1362 A
- 3240 V
- (17941)210 648 A
- (break;)252 1362 A
- 3330 V
- (17942)210 648 A
- 1110(})S
- 3420 V
- (17943)210 648 A
- (return)252 1110 A
- (OK;)126 1404 A
- 3510 V
- (17944)210 648 A
- 1026(})S
- 3690 V
- (17946)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3780 V
- (17947)210 648 A
- 1068(*)S
- (do_sigsuspend)546 2286 A
- 4260(*)S
- 3870 V
- (17948)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3960 V
- (17949)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_sigsuspend())630 1488 A
- 4050 V
- (17950)210 648 A
- 1026({)S
- 4140 V
- (17951)210 648 A
- (mp->mp_sigmask2)630 1110 A
- 1782(=)S
- (mp->mp_sigmask;)630 1866 A
- 2706(/*)S
- (save)168 2832 A
- (the)126 3042 A
- (old)126 3210 A
- (mask)168 3378 A
- 3588(*/)S
- 4230 V
- (17952)210 648 A
- (mp->mp_sigmask)588 1110 A
- 1740(=)S
- ((sigset_t))420 1824 A
- (sig_set;)336 2286 A
- 4320 V
- (17953)210 648 A
- (sigdelset(&mp->mp_sigmask,)1092 1110 A
- (SIGKILL);)378 2244 A
- 4410 V
- (17954)210 648 A
- (mp->mp_flags)504 1110 A
- 1656(|=)S
- (SIGSUSPENDED;)546 1782 A
- 4500 V
- (17955)210 648 A
- (dont_reply)420 1110 A
- 1572(=)S
- (TRUE;)210 1656 A
- 4590 V
- (17956)210 648 A
- (check_pending();)672 1110 A
- 4680 V
- (17957)210 648 A
- (return)252 1110 A
- (OK;)126 1404 A
- 4770 V
- (17958)210 648 A
- 1026(})S
- 5040 V
- (17961)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5130 V
- (17962)210 648 A
- 1068(*)S
- (do_sigreturn)504 2412 A
- 4260(*)S
- 5220 V
- (17963)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5310 V
- (17964)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_sigreturn())588 1488 A
- 5400 V
- (17965)210 648 A
- 1026({)S
- 5490 V
- (17966)210 648 A
- 1026(/*)S
- 1152(A)S
- (user)168 1236 A
- (signal)252 1446 A
- (handler)294 1740 A
- 2076(is)S
- (done.)210 2202 A
- (Restore)294 2496 A
- (context)294 2832 A
- (and)126 3168 A
- (check)210 3336 A
- (for)126 3588 A
- 5580 V
- (17967)210 648 A
- 1068(*)S
- (pending)294 1152 A
- (unblocked)378 1488 A
- (signals.)336 1908 A
- 5670 V
- (17968)210 648 A
- 1068(*/)S
- 5760 V
- (17969)210 648 A
- 5850 V
- (17970)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 5940 V
- (17971)210 648 A
- 6030 V
- (17972)210 648 A
- (mp->mp_sigmask)588 1110 A
- 1740(=)S
- ((sigset_t))420 1824 A
- (sig_set;)336 2286 A
- 6120 V
- (17973)210 648 A
- (sigdelset(&mp->mp_sigmask,)1092 1110 A
- (SIGKILL);)378 2244 A
- 6210 V
- (17974)210 648 A
- 8418 V
- EP
- %%Page: 250 250
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (250)180 648 A
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (17975)210 648 A
- 1110(r)S
- 1194(=)S
- (sys_sigreturn(who,)756 1278 A
- ((vir_bytes)sig_context,)966 2076 A
- (sig_flags);)462 3084 A
- 990 V
- (17976)210 648 A
- (check_pending();)672 1110 A
- 1080 V
- (17977)210 648 A
- (return(r);)420 1110 A
- 1170 V
- (17978)210 648 A
- 1026(})S
- 1350 V
- (17980)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1440 V
- (17981)210 648 A
- 1068(*)S
- (do_kill)294 2370 A
- 4260(*)S
- 1530 V
- (17982)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1620 V
- (17983)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_kill())378 1488 A
- 1710 V
- (17984)210 648 A
- 1026({)S
- 1800 V
- (17985)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (kill(pid,)378 1656 A
- (signo))252 2076 A
- (system)252 2370 A
- (call.)210 2664 A
- 2916(*/)S
- 1890 V
- (17986)210 648 A
- 1980 V
- (17987)210 648 A
- (return)252 1110 A
- (check_sig(pid,)588 1404 A
- (sig_nr);)336 2034 A
- 2070 V
- (17988)210 648 A
- 1026(})S
- 2340 V
- (17991)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2430 V
- (17992)210 648 A
- 1068(*)S
- (do_ksig)294 2370 A
- 4260(*)S
- 2520 V
- (17993)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2610 V
- (17994)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_ksig())378 1488 A
- 2700 V
- (17995)210 648 A
- 1026({)S
- 2790 V
- (17996)210 648 A
- 1026(/*)S
- (Certain)294 1152 A
- (signals,)336 1488 A
- (such)168 1866 A
- 2076(as)S
- (segmentation)504 2202 A
- (violations)420 2748 A
- (and)126 3210 A
- (DEL,)168 3378 A
- (originate)378 3588 A
- 4008(in)S
- (the)126 4134 A
- 2880 V
- (17997)210 648 A
- 1068(*)S
- (kernel.)294 1152 A
- (When)168 1530 A
- (the)126 1740 A
- (kernel)252 1908 A
- (detects)294 2202 A
- (such)168 2538 A
- (signals,)336 2748 A
- 3126(it)S
- (sets)168 3252 A
- (bits)168 3462 A
- 3672(in)S
- 3798(a)S
- (bit)126 3882 A
- (map.)168 4050 A
- 2970 V
- (17998)210 648 A
- 1068(*)S
- 1152(As)S
- (soon)168 1278 A
- 1488(as)S
- 1614(MM)S
- 1740(is)S
- (awaiting)336 1866 A
- (new)126 2244 A
- (work,)210 2412 A
- (the)126 2664 A
- (kernel)252 2832 A
- (sends)210 3126 A
- 3378(MM)S
- 3504(a)S
- (message)294 3588 A
- (containing)420 3924 A
- 3060 V
- (17999)210 648 A
- 1068(*)S
- (the)126 1152 A
- (process)294 1320 A
- (slot)168 1656 A
- (and)126 1866 A
- (bit)126 2034 A
- (map.)168 2202 A
- (That)168 2454 A
- (message)294 2664 A
- (comes)210 3000 A
- (here.)210 3252 A
- (The)126 3546 A
- (File)168 3714 A
- (System)252 3924 A
- 3150 V
- (18000)210 648 A
- 1068(*)S
- (also)168 1152 A
- (uses)168 1362 A
- (this)168 1572 A
- (mechanism)378 1782 A
- 2202(to)S
- (signal)252 2328 A
- (writing)294 2622 A
- 2958(on)S
- (broken)252 3084 A
- (pipes)210 3378 A
- ((SIGPIPE).)420 3630 A
- 3240 V
- (18001)210 648 A
- 1068(*/)S
- 3330 V
- (18002)210 648 A
- 3420 V
- (18003)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp;)210 2034 A
- 3510 V
- (18004)210 648 A
- (int)126 1110 A
- 1278(i,)S
- (proc_nr;)336 1404 A
- 3600 V
- (18005)210 648 A
- (pid_t)210 1110 A
- (proc_id,)336 1362 A
- (id;)126 1740 A
- 3690 V
- (18006)210 648 A
- (sigset_t)336 1110 A
- (sig_map;)336 1488 A
- 3780 V
- (18007)210 648 A
- 3870 V
- (18008)210 648 A
- 1110(/*)S
- (Only)168 1236 A
- (kernel)252 1446 A
- (may)126 1740 A
- (make)168 1908 A
- (this)168 2118 A
- (call.)210 2328 A
- 2580(*/)S
- 3960 V
- (18009)210 648 A
- 1110(if)S
- ((who)168 1236 A
- 1446(!=)S
- (HARDWARE))378 1572 A
- (return(EPERM);)588 1992 A
- 4050 V
- (18010)210 648 A
- (dont_reply)420 1110 A
- 1572(=)S
- (TRUE;)210 1656 A
- 2370(/*)S
- (don't)210 2496 A
- (reply)210 2748 A
- 3000(to)S
- (the)126 3126 A
- (kernel)252 3294 A
- 3588(*/)S
- 4140 V
- (18011)210 648 A
- (proc_nr)294 1110 A
- 1446(=)S
- (mm_in.SIG_PROC;)630 1530 A
- 4230 V
- (18012)210 648 A
- (rmp)126 1110 A
- 1278(=)S
- (&mproc[proc_nr];)672 1362 A
- 4320 V
- (18013)210 648 A
- 1110(if)S
- 1236(()S
- ((rmp->mp_flags)588 1320 A
- 1950(&)S
- (IN_USE))294 2034 A
- 2370(==)S
- 2496(0)S
- 2580(||)S
- ((rmp->mp_flags)588 2706 A
- 3336(&)S
- (HANGING))336 3420 A
- 3798())S
- (return(OK);)462 3882 A
- 4410 V
- (18014)210 648 A
- (proc_id)294 1110 A
- 1446(=)S
- (rmp->mp_pid;)504 1530 A
- 4500 V
- (18015)210 648 A
- (sig_map)294 1110 A
- 1446(=)S
- ((sigset_t))420 1530 A
- (mm_in.SIG_MAP;)588 1992 A
- 4590 V
- (18016)210 648 A
- 1110(mp)S
- 1236(=)S
- (&mproc[0];)420 1320 A
- 2370(/*)S
- (pretend)294 2496 A
- (kernel)252 2832 A
- (signals)294 3126 A
- (are)126 3462 A
- (from)168 3630 A
- 3840(MM)S
- 3966(*/)S
- 4680 V
- (18017)210 648 A
- (mp->mp_procgrp)588 1110 A
- 1740(=)S
- (rmp->mp_procgrp;)672 1824 A
- 2706(/*)S
- (get)126 2832 A
- (process)294 3000 A
- (group)210 3336 A
- (right)210 3588 A
- 3840(*/)S
- 4770 V
- (18018)210 648 A
- 4860 V
- (18019)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- (each)168 1488 A
- (bit)126 1698 A
- 1866(in)S
- (turn)168 1992 A
- 2202(to)S
- (see)126 2328 A
- 2496(if)S
- 2622(a)S
- (signal)252 2706 A
- 3000(is)S
- 3126(to)S
- 3252(be)S
- (sent.)210 3378 A
- (Unlike)252 3672 A
- 4950 V
- (18020)210 648 A
- 1152(*)S
- (kill(),)294 1236 A
- (the)126 1572 A
- (kernel)252 1740 A
- (may)126 2034 A
- (collect)294 2202 A
- (several)294 2538 A
- (unrelated)378 2874 A
- (signals)294 3294 A
- (for)126 3630 A
- 3798(a)S
- 5040 V
- (18021)210 648 A
- 1152(*)S
- (process)294 1236 A
- (and)126 1572 A
- (pass)168 1740 A
- (them)168 1950 A
- 2160(to)S
- 2286(MM)S
- 2412(in)S
- (one)126 2538 A
- (blow.)210 2706 A
- (Thus)168 3000 A
- (loop)168 3210 A
- 3420(on)S
- (the)126 3546 A
- (bit)126 3714 A
- 5130 V
- (18022)210 648 A
- 1152(*)S
- (map.)168 1236 A
- (For)126 1446 A
- (SIGINT)252 1614 A
- (and)126 1908 A
- (SIGQUIT,)336 2076 A
- (use)126 2454 A
- (proc_id)294 2622 A
- 2958(0)S
- 3042(to)S
- (indicate)336 3168 A
- 3546(a)S
- (broadcast)378 3630 A
- 5220 V
- (18023)210 648 A
- 1152(*)S
- 1236(to)S
- (the)126 1362 A
- (recipient's)462 1530 A
- (process)294 2034 A
- (group.)252 2370 A
- (For)126 2706 A
- (SIGKILL,)336 2874 A
- (use)126 3252 A
- (proc_id)294 3420 A
- 3756(-1)S
- 3882(to)S
- 5310 V
- (18024)210 648 A
- 1152(*)S
- (indicate)336 1236 A
- 1614(a)S
- (systemwide)420 1698 A
- (broadcast.)420 2160 A
- 5400 V
- (18025)210 648 A
- 1152(*/)S
- 5490 V
- (18026)210 648 A
- (for)126 1110 A
- 1278((i)S
- 1404(=)S
- 1488(1;)S
- 1614(i)S
- 1698(<=)S
- (_NSIG;)252 1824 A
- (i++))168 2118 A
- 2328({)S
- 5580 V
- (18027)210 648 A
- 1362(if)S
- ((!sigismember(&sig_map,)966 1488 A
- (i)))126 2496 A
- (continue;)378 2664 A
- 5670 V
- (18028)210 648 A
- (switch)252 1362 A
- ((i))126 1656 A
- 1824({)S
- 5760 V
- (18029)210 648 A
- (case)168 1530 A
- (SIGINT:)294 1740 A
- 5850 V
- (18030)210 648 A
- (case)168 1530 A
- (SIGQUIT:)336 1740 A
- 5940 V
- (18031)210 648 A
- 1698(id)S
- 1824(=)S
- 1908(0;)S
- (break;)252 2034 A
- 2370(/*)S
- (broadcast)378 2496 A
- 2916(to)S
- (process)294 3042 A
- (group)210 3378 A
- 3630(*/)S
- 6030 V
- (18032)210 648 A
- (case)168 1530 A
- (SIGKILL:)336 1740 A
- 6120 V
- (18033)210 648 A
- 1698(id)S
- 1824(=)S
- (-1;)126 1908 A
- (break;)252 2076 A
- 2370(/*)S
- (broadcast)378 2496 A
- 2916(to)S
- (all)126 3042 A
- (except)252 3210 A
- (INIT)168 3504 A
- 3714(*/)S
- 6210 V
- (18034)210 648 A
- (case)168 1530 A
- (SIGALRM:)336 1740 A
- 8418 V
- EP
- %%Page: 251 251
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 12 B
- (251)180 4248 A
- 900 V
- 7 LST
- (18035)210 648 A
- 1698(/*)S
- (Disregard)378 1824 A
- (SIGALRM)294 2244 A
- (when)168 2580 A
- (the)126 2790 A
- (target)252 2958 A
- (process)294 3252 A
- (has)126 3588 A
- (not)126 3756 A
- 990 V
- (18036)210 648 A
- 1740(*)S
- (requested)378 1824 A
- 2244(an)S
- (alarm.)252 2370 A
- (This)168 2706 A
- (only)168 2916 A
- (applies)294 3126 A
- (for)126 3462 A
- 3630(a)S
- (KERNEL)252 3714 A
- 1080 V
- (18037)210 648 A
- 1740(*)S
- (generated)378 1824 A
- (signal.)294 2244 A
- 1170 V
- (18038)210 648 A
- 1740(*/)S
- 1260 V
- (18039)210 648 A
- 1698(if)S
- (((rmp->mp_flags)630 1824 A
- 2496(&)S
- (ALARM_ON))378 2580 A
- 3000(==)S
- 3126(0))S
- (continue;)378 3252 A
- 1350 V
- (18040)210 648 A
- (rmp->mp_flags)546 1698 A
- 2286(&=)S
- (304ALARM_ON;)420 2412 A
- 1440 V
- (18041)210 648 A
- 1698(/*)S
- (fall)168 1824 A
- (through)294 2034 A
- 2370(*/)S
- 1530 V
- (18042)210 648 A
- (default:)336 1530 A
- 1620 V
- (18043)210 648 A
- 1698(id)S
- 1824(=)S
- (proc_id;)336 1908 A
- 1710 V
- (18044)210 648 A
- (break;)252 1698 A
- 1800 V
- (18045)210 648 A
- 1362(})S
- 1890 V
- (18046)210 648 A
- (check_sig(id,)546 1362 A
- (i);)126 1950 A
- 1980 V
- (18047)210 648 A
- (sys_endsig(proc_nr);)840 1362 A
- 2370(/*)S
- (tell)168 2496 A
- (kernel)252 2706 A
- (it's)168 3000 A
- (done)168 3210 A
- 3420(*/)S
- 2070 V
- (18048)210 648 A
- 1110(})S
- 2160 V
- (18049)210 648 A
- (return(OK);)462 1110 A
- 2250 V
- (18050)210 648 A
- 1026(})S
- 2520 V
- (18053)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2610 V
- (18054)210 648 A
- 1068(*)S
- (do_alarm)336 2370 A
- 4260(*)S
- 2700 V
- (18055)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2790 V
- (18056)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_alarm())420 1488 A
- 2880 V
- (18057)210 648 A
- 1026({)S
- 2970 V
- (18058)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (alarm(seconds))588 1656 A
- (system)252 2286 A
- (call.)210 2580 A
- 2832(*/)S
- 3060 V
- (18059)210 648 A
- 3150 V
- (18060)210 648 A
- (return(set_alarm(who,)882 1110 A
- (seconds));)420 2034 A
- 3240 V
- (18061)210 648 A
- 1026(})S
- 3510 V
- (18064)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3600 V
- (18065)210 648 A
- 1068(*)S
- (set_alarm)378 2370 A
- 4260(*)S
- 3690 V
- (18066)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3780 V
- (18067)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (set_alarm(proc_nr,)756 1488 A
- (sec))168 2286 A
- 3870 V
- (18068)210 648 A
- (int)126 1026 A
- (proc_nr;)336 1194 A
- 2370(/*)S
- (process)294 2496 A
- (that)168 2832 A
- (wants)210 3042 A
- (the)126 3294 A
- (alarm)210 3462 A
- 3714(*/)S
- 3960 V
- (18069)210 648 A
- (int)126 1026 A
- (sec;)168 1194 A
- 2370(/*)S
- (how)126 2496 A
- (many)168 2664 A
- (seconds)294 2874 A
- (delay)210 3210 A
- (before)252 3462 A
- (the)126 3756 A
- (signal)252 3924 A
- 4218(*/)S
- 4050 V
- (18070)210 648 A
- 1026({)S
- 4140 V
- (18071)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (routine)294 1362 A
- 1698(is)S
- (used)168 1824 A
- 2034(by)S
- (do_alarm())420 2160 A
- 2622(to)S
- (set)126 2748 A
- (the)126 2916 A
- (alarm)210 3084 A
- (timer.)252 3336 A
- 3672(It)S
- 3798(is)S
- (also)168 3924 A
- (used)168 4134 A
- 4230 V
- (18072)210 648 A
- 1068(*)S
- 1152(to)S
- (turn)168 1278 A
- (the)126 1488 A
- (timer)210 1656 A
- (off)126 1908 A
- (when)168 2076 A
- 2286(a)S
- (process)294 2370 A
- (exits)210 2706 A
- (with)168 2958 A
- (the)126 3168 A
- (timer)210 3336 A
- (still)210 3588 A
- (on.)126 3840 A
- 4320 V
- (18073)210 648 A
- 1068(*/)S
- 4410 V
- (18074)210 648 A
- 4500 V
- (18075)210 648 A
- (message)294 1110 A
- (m_sig;)252 1446 A
- 4590 V
- (18076)210 648 A
- (int)126 1110 A
- (remaining;)420 1278 A
- 4680 V
- (18077)210 648 A
- 4770 V
- (18078)210 648 A
- 1110(if)S
- ((sec)168 1236 A
- 1446(!=)S
- 1572(0))S
- 4860 V
- (18079)210 648 A
- (mproc[proc_nr].mp_flags)966 1362 A
- 2370(|=)S
- (ALARM_ON;)378 2496 A
- 4950 V
- (18080)210 648 A
- (else)168 1110 A
- 5040 V
- (18081)210 648 A
- (mproc[proc_nr].mp_flags)966 1362 A
- 2370(&=)S
- (304ALARM_ON;)420 2496 A
- 5130 V
- (18082)210 648 A
- 5220 V
- (18083)210 648 A
- 1110(/*)S
- (Tell)168 1236 A
- (the)126 1446 A
- (clock)210 1614 A
- (task)168 1866 A
- 2076(to)S
- (provide)294 2202 A
- 2538(a)S
- (signal)252 2622 A
- (message)294 2916 A
- (when)168 3252 A
- (the)126 3462 A
- (time)168 3630 A
- (comes.)252 3840 A
- 5310 V
- (18084)210 648 A
- 1152(*)S
- 5400 V
- (18085)210 648 A
- 1152(*)S
- (Large)210 1236 A
- (delays)252 1488 A
- (cause)210 1782 A
- 2034(a)S
- (lot)126 2118 A
- 2286(of)S
- (problems.)378 2412 A
- (First,)252 2874 A
- (the)126 3168 A
- (alarm)210 3336 A
- (system)252 3588 A
- (call)168 3882 A
- 5490 V
- (18086)210 648 A
- 1152(*)S
- (takes)210 1236 A
- 1488(an)S
- (unsigned)336 1614 A
- (seconds)294 1992 A
- (count)210 2328 A
- (and)126 2580 A
- (the)126 2748 A
- (library)294 2916 A
- (has)126 3252 A
- (cast)168 3420 A
- 3630(it)S
- 3756(to)S
- 3882(an)S
- (int.)168 4008 A
- 5580 V
- (18087)210 648 A
- 1152(*)S
- (That)168 1236 A
- (probably)336 1446 A
- (works,)252 1824 A
- (but)126 2118 A
- 2286(on)S
- (return)252 2412 A
- (the)126 2706 A
- (library)294 2874 A
- (will)168 3210 A
- (convert)294 3420 A
- ("negative")420 3756 A
- 5670 V
- (18088)210 648 A
- 1152(*)S
- (unsigneds)378 1236 A
- 1656(to)S
- (errors.)294 1782 A
- (Presumably)420 2160 A
- 2622(no)S
- (one)126 2748 A
- (checks)252 2916 A
- (for)126 3210 A
- (these)210 3378 A
- (errors,)294 3630 A
- 3966(so)S
- 5760 V
- (18089)210 648 A
- 1152(*)S
- (force)210 1236 A
- (this)168 1488 A
- (call)168 1698 A
- (through.)336 1908 A
- (Second,)294 2328 A
- 2664(If)S
- (unsigned)336 2790 A
- (and)126 3168 A
- (long)168 3336 A
- (have)168 3546 A
- (the)126 3756 A
- (same)168 3924 A
- 5850 V
- (18090)210 648 A
- 1152(*)S
- (size,)210 1236 A
- (converting)420 1488 A
- (from)168 1950 A
- (seconds)294 2160 A
- 2496(to)S
- (ticks)210 2622 A
- (can)126 2874 A
- (easily)252 3042 A
- (overflow.)378 3336 A
- (Finally,)336 3798 A
- 5940 V
- (18091)210 648 A
- 1152(*)S
- (the)126 1236 A
- (kernel)252 1404 A
- (has)126 1698 A
- (similar)294 1866 A
- (overflow)336 2202 A
- (bugs)168 2580 A
- (adding)252 2790 A
- (ticks.)252 3084 A
- 6030 V
- (18092)210 648 A
- 1152(*)S
- 6120 V
- (18093)210 648 A
- 1152(*)S
- (Fixing)252 1236 A
- (this)168 1530 A
- (requires)336 1740 A
- 2118(a)S
- (lot)126 2202 A
- 2370(of)S
- (ugly)168 2496 A
- (casts)210 2706 A
- 2958(to)S
- (fit)126 3084 A
- (the)126 3252 A
- (wrong)210 3420 A
- (interface)378 3672 A
- 6210 V
- (18094)210 648 A
- 1152(*)S
- (types)210 1236 A
- (and)126 1488 A
- 1656(to)S
- (avoid)210 1782 A
- (overflow)336 2034 A
- (traps.)252 2412 A
- (DELTA_TICKS)462 2748 A
- (has)126 3252 A
- (the)126 3420 A
- (right)210 3588 A
- (type)168 3840 A
- 8418 V
- EP
- %%Page: 252 252
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (252)180 648 A
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (18095)210 648 A
- 1152(*)S
- ((clock_t))378 1236 A
- (although)336 1656 A
- 2034(it)S
- 2160(is)S
- (declared)336 2286 A
- 2664(as)S
- (long.)210 2790 A
- (How)126 3084 A
- (can)126 3252 A
- (variables)378 3420 A
- (like)168 3840 A
- 990 V
- (18096)210 648 A
- 1152(*)S
- (this)168 1236 A
- 1446(be)S
- (declared)336 1572 A
- (properly)336 1950 A
- (without)294 2328 A
- (combinatorial)546 2664 A
- (explosion)378 3252 A
- 3672(of)S
- (message)294 3798 A
- 1080 V
- (18097)210 648 A
- 1152(*)S
- (types?)252 1236 A
- 1170 V
- (18098)210 648 A
- 1152(*/)S
- 1260 V
- (18099)210 648 A
- (m_sig.m_type)504 1110 A
- 1656(=)S
- (SET_ALARM;)420 1740 A
- 1350 V
- (18100)210 648 A
- (m_sig.CLOCK_PROC_NR)798 1110 A
- 1950(=)S
- (proc_nr;)336 2034 A
- 1440 V
- (18101)210 648 A
- (m_sig.DELTA_TICKS)714 1110 A
- 1866(=)S
- ((clock_t))378 1950 A
- ((HZ)126 2370 A
- 2538(*)S
- ((unsigned)378 2622 A
- (long))210 3042 A
- ((unsigned))420 3294 A
- (sec);)210 3756 A
- 1530 V
- (18102)210 648 A
- 1110(if)S
- 1236(()S
- ((unsigned)378 1320 A
- (long))210 1740 A
- (m_sig.DELTA_TICKS)714 1992 A
- 2748(/)S
- 2832(HZ)S
- 2958(!=)S
- ((unsigned))420 3084 A
- (sec))168 3546 A
- 1620 V
- (18103)210 648 A
- (m_sig.DELTA_TICKS)714 1362 A
- 2118(=)S
- (LONG_MAX;)378 2202 A
- 2706(/*)S
- (eternity)336 2832 A
- ((really)294 3210 A
- (CLOCK_T_MAX))504 3546 A
- 4092(*/)S
- 1710 V
- (18104)210 648 A
- 1110(if)S
- ((sendrec(CLOCK,)630 1236 A
- (&m_sig))294 1908 A
- 2244(!=)S
- (OK))126 2370 A
- (panic("alarm)504 2538 A
- (er",)168 3084 A
- (NO_NUM);)336 3294 A
- 1800 V
- (18105)210 648 A
- (remaining)378 1110 A
- 1530(=)S
- ((int))210 1614 A
- (m_sig.SECONDS_LEFT;)798 1866 A
- 1890 V
- (18106)210 648 A
- 1110(if)S
- ((remaining)420 1236 A
- 1698(!=)S
- (m_sig.SECONDS_LEFT)756 1824 A
- 2622(||)S
- (remaining)378 2748 A
- 3168(<)S
- 3252(0))S
- 1980 V
- (18107)210 648 A
- (remaining)378 1362 A
- 1782(=)S
- (INT_MAX;)336 1866 A
- 2370(/*)S
- (true)168 2496 A
- (value)210 2706 A
- 2958(is)S
- (not)126 3084 A
- (representable)546 3252 A
- 3840(*/)S
- 2070 V
- (18108)210 648 A
- (return(remaining);)756 1110 A
- 2160 V
- (18109)210 648 A
- 1026(})S
- 2430 V
- (18112)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2520 V
- (18113)210 648 A
- 1068(*)S
- (do_pause)336 2370 A
- 4260(*)S
- 2610 V
- (18114)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2700 V
- (18115)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_pause())420 1488 A
- 2790 V
- (18116)210 648 A
- 1026({)S
- 2880 V
- (18117)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (pause())294 1656 A
- (system)252 1992 A
- (call.)210 2286 A
- 2538(*/)S
- 2970 V
- (18118)210 648 A
- 3060 V
- (18119)210 648 A
- (mp->mp_flags)504 1110 A
- 1656(|=)S
- (PAUSED;)294 1782 A
- 3150 V
- (18120)210 648 A
- (dont_reply)420 1110 A
- 1572(=)S
- (TRUE;)210 1656 A
- 3240 V
- (18121)210 648 A
- (return(OK);)462 1110 A
- 3330 V
- (18122)210 648 A
- 1026(})S
- 3600 V
- (18125)210 648 A
- (/*=====================================================================*)3024 1026 A
- 3690 V
- (18126)210 648 A
- 1068(*)S
- (do_reboot)378 2202 A
- 4008(*)S
- 3780 V
- (18127)210 648 A
- (*=====================================================================*/)3024 1068 A
- 3870 V
- (18128)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_reboot())462 1488 A
- 3960 V
- (18129)210 648 A
- 1026({)S
- 4050 V
- (18130)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp)168 2034 A
- 2244(=)S
- (mp;)126 2328 A
- 4140 V
- (18131)210 648 A
- (char)168 1110 A
- (monitor_code[64];)714 1320 A
- 4230 V
- (18132)210 648 A
- 4320 V
- (18133)210 648 A
- 1110(if)S
- ((rmp->mp_effuid)630 1236 A
- 1908(!=)S
- (SUPER_USER))462 2034 A
- (return)252 2622 A
- (EPERM;)252 2916 A
- 4410 V
- (18134)210 648 A
- 4500 V
- (18135)210 648 A
- (switch)252 1110 A
- ((reboot_flag))546 1404 A
- 1992({)S
- 4590 V
- (18136)210 648 A
- (case)168 1110 A
- (RBT_HALT:)378 1320 A
- 4680 V
- (18137)210 648 A
- (case)168 1110 A
- (RBT_REBOOT:)462 1320 A
- 4770 V
- (18138)210 648 A
- (case)168 1110 A
- (RBT_PANIC:)420 1320 A
- 4860 V
- (18139)210 648 A
- (case)168 1110 A
- (RBT_RESET:)420 1320 A
- 4950 V
- (18140)210 648 A
- (break;)252 1362 A
- 5040 V
- (18141)210 648 A
- (case)168 1110 A
- (RBT_MONITOR:)504 1320 A
- 5130 V
- (18142)210 648 A
- 1362(if)S
- ((reboot_size)504 1488 A
- 2034(>)S
- (sizeof(monitor_code)))882 2118 A
- (return)252 3042 A
- (EINVAL;)294 3336 A
- 5220 V
- (18143)210 648 A
- (memset(monitor_code,)840 1362 A
- 2244(0,)S
- (sizeof(monitor_code));)924 2370 A
- 5310 V
- (18144)210 648 A
- 1362(if)S
- ((sys_copy(who,)588 1488 A
- 2118(D,)S
- ((phys_bytes))504 2244 A
- (reboot_code,)504 2790 A
- 5400 V
- (18145)210 648 A
- (MM_PROC_NR,)462 1698 A
- 2202(D,)S
- ((phys_bytes))504 2328 A
- (monitor_code,)546 2874 A
- 5490 V
- (18146)210 648 A
- ((phys_bytes))504 1698 A
- (reboot_size))504 2244 A
- 2790(!=)S
- (OK))126 2916 A
- (return)252 3084 A
- (EFAULT;)294 3378 A
- 5580 V
- (18147)210 648 A
- 1362(if)S
- ((monitor_code[sizeof(monitor_code)-1])1554 1488 A
- 3084(!=)S
- 3210(0))S
- (return)252 3336 A
- (EINVAL;)294 3630 A
- 5670 V
- (18148)210 648 A
- (break;)252 1362 A
- 5760 V
- (18149)210 648 A
- (default:)336 1110 A
- 5850 V
- (18150)210 648 A
- (return)252 1362 A
- (EINVAL;)294 1656 A
- 5940 V
- (18151)210 648 A
- 1110(})S
- 6030 V
- (18152)210 648 A
- 6120 V
- (18153)210 648 A
- 1110(/*)S
- (Kill)168 1236 A
- (all)126 1446 A
- (processes)378 1614 A
- (except)252 2034 A
- (init.)210 2328 A
- 2580(*/)S
- 6210 V
- (18154)210 648 A
- (check_sig(-1,)546 1110 A
- (SIGKILL);)378 1698 A
- 8418 V
- EP
- %%Page: 253 253
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 12 B
- (253)180 4248 A
- 900 V
- 7 LST
- (18155)210 648 A
- 990 V
- (18156)210 648 A
- (tell_fs(EXIT,)546 1110 A
- (INIT_PROC_NR,)546 1698 A
- 2286(0,)S
- (0);)126 2412 A
- 2706(/*)S
- (cleanup)294 2832 A
- (init)168 3168 A
- 3378(*/)S
- 1080 V
- (18157)210 648 A
- 1170 V
- (18158)210 648 A
- (tell_fs(SYNC,0,0,0);)840 1110 A
- 1260 V
- (18159)210 648 A
- 1350 V
- (18160)210 648 A
- (sys_abort(reboot_flag,)924 1110 A
- (monitor_code);)588 2076 A
- 1440 V
- (18161)210 648 A
- 1110(/*)S
- (NOTREACHED)420 1236 A
- 1698(*/)S
- 1530 V
- (18162)210 648 A
- 1026(})S
- 1800 V
- (18165)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1890 V
- (18166)210 648 A
- 1068(*)S
- (sig_proc)336 2370 A
- 4260(*)S
- 1980 V
- (18167)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2070 V
- (18168)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (sig_proc(rmp,)546 1530 A
- (signo))252 2118 A
- 2160 V
- (18169)210 648 A
- (register)336 1026 A
- (struct)252 1404 A
- (mproc)210 1698 A
- (*rmp;)210 1950 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (the)126 2958 A
- (process)294 3126 A
- 3462(to)S
- 3588(be)S
- (signaled)336 3714 A
- 4092(*/)S
- 2250 V
- (18170)210 648 A
- (int)126 1026 A
- (signo;)252 1194 A
- 2370(/*)S
- (signal)252 2496 A
- 2790(to)S
- (send)168 2916 A
- 3126(to)S
- (process)294 3252 A
- 3588((1)S
- 3714(to)S
- (_NSIG))252 3840 A
- 4134(*/)S
- 2340 V
- (18171)210 648 A
- 1026({)S
- 2430 V
- (18172)210 648 A
- 1026(/*)S
- (Send)168 1152 A
- 1362(a)S
- (signal)252 1446 A
- 1740(to)S
- 1866(a)S
- (process.)336 1950 A
- (Check)210 2370 A
- 2622(to)S
- (see)126 2748 A
- 2916(if)S
- (the)126 3042 A
- (signal)252 3210 A
- 3504(is)S
- 3630(to)S
- 3756(be)S
- (caught,)294 3882 A
- 2520 V
- (18173)210 648 A
- 1068(*)S
- (ignored,)336 1152 A
- 1530(or)S
- (blocked.)336 1656 A
- 2076(If)S
- (the)126 2202 A
- (signal)252 2370 A
- 2664(is)S
- 2790(to)S
- 2916(be)S
- (caught,)294 3042 A
- (coordinate)420 3378 A
- (with)168 3840 A
- 2610 V
- (18174)210 648 A
- 1068(*)S
- (KERNEL)252 1152 A
- 1446(to)S
- (push)168 1572 A
- 1782(a)S
- (sigcontext)420 1866 A
- (structure)378 2328 A
- (and)126 2748 A
- 2916(a)S
- (sigframe)336 3000 A
- (structure)378 3378 A
- (onto)168 3798 A
- 2700 V
- (18175)210 648 A
- 1068(*)S
- (the)126 1152 A
- (catcher's)378 1320 A
- (stack.)252 1740 A
- (Also,)210 2076 A
- (KERNEL)252 2328 A
- (will)168 2622 A
- (reset)210 2832 A
- (the)126 3084 A
- (program)294 3252 A
- (counter)294 3588 A
- (and)126 3924 A
- 2790 V
- (18176)210 648 A
- 1068(*)S
- (stack)210 1152 A
- (pointer,)336 1404 A
- 1782(so)S
- (that)168 1908 A
- (when)168 2118 A
- (the)126 2328 A
- (process)294 2496 A
- (next)168 2832 A
- (runs,)210 3042 A
- 3294(it)S
- (will)168 3420 A
- 3630(be)S
- (executing)378 3756 A
- 2880 V
- (18177)210 648 A
- 1068(*)S
- (the)126 1152 A
- (signal)252 1320 A
- (handler.)336 1614 A
- (When)168 2034 A
- (the)126 2244 A
- (signal)252 2412 A
- (handler)294 2706 A
- (returns,)336 3042 A
- (sigreturn(2))504 3462 A
- 2970 V
- (18178)210 648 A
- 1068(*)S
- (will)168 1152 A
- 1362(be)S
- (called.)294 1488 A
- (Then)168 1866 A
- (KERNEL)252 2076 A
- (will)168 2370 A
- (restore)294 2580 A
- (the)126 2916 A
- (signal)252 3084 A
- (context)294 3378 A
- (from)168 3714 A
- (the)126 3924 A
- 3060 V
- (18179)210 648 A
- 1068(*)S
- (sigcontext)420 1152 A
- (structure.)420 1614 A
- 3150 V
- (18180)210 648 A
- 1068(*)S
- 3240 V
- (18181)210 648 A
- 1068(*)S
- 1152(If)S
- (there)210 1278 A
- 1530(is)S
- (insufficient)504 1656 A
- (stack)210 2202 A
- (space,)252 2454 A
- (kill)168 2748 A
- (the)126 2958 A
- (process.)336 3126 A
- 3330 V
- (18182)210 648 A
- 1068(*/)S
- 3420 V
- (18183)210 648 A
- 3510 V
- (18184)210 648 A
- (vir_bytes)378 1110 A
- (new_sp;)294 1530 A
- 3600 V
- (18185)210 648 A
- (int)126 1110 A
- (slot;)210 1278 A
- 3690 V
- (18186)210 648 A
- (int)126 1110 A
- (sigflags;)378 1278 A
- 3780 V
- (18187)210 648 A
- (struct)252 1110 A
- (sigmsg)252 1404 A
- (sm;)126 1698 A
- 3870 V
- (18188)210 648 A
- 3960 V
- (18189)210 648 A
- (slot)168 1110 A
- 1320(=)S
- ((int))210 1404 A
- ((rmp)168 1656 A
- 1866(-)S
- (mproc);)294 1950 A
- 4050 V
- (18190)210 648 A
- 1110(if)S
- ((!(rmp->mp_flags)672 1236 A
- 1950(&)S
- (IN_USE)))336 2034 A
- 2412({)S
- 4140 V
- (18191)210 648 A
- (printf("MM:)462 1362 A
- (signal)252 1866 A
- 2160(%d)S
- (sent)168 2286 A
- 2496(to)S
- (dead)168 2622 A
- (process)294 2832 A
- (%d\n",)252 3168 A
- (signo,)252 3462 A
- (slot);)252 3756 A
- 4230 V
- (18192)210 648 A
- (panic("",)378 1362 A
- (NO_NUM);)336 1782 A
- 4320 V
- (18193)210 648 A
- 1110(})S
- 4410 V
- (18194)210 648 A
- 1110(if)S
- ((rmp->mp_flags)588 1236 A
- 1866(&)S
- (HANGING))336 1950 A
- 2328({)S
- 4500 V
- (18195)210 648 A
- (printf("MM:)462 1362 A
- (signal)252 1866 A
- 2160(%d)S
- (sent)168 2286 A
- 2496(to)S
- (HANGING)294 2622 A
- (process)294 2958 A
- (%d\n",)252 3294 A
- (signo,)252 3588 A
- (slot);)252 3882 A
- 4590 V
- (18196)210 648 A
- (panic("",)378 1362 A
- (NO_NUM);)336 1782 A
- 4680 V
- (18197)210 648 A
- 1110(})S
- 4770 V
- (18198)210 648 A
- 1110(if)S
- ((rmp->mp_flags)588 1236 A
- 1866(&)S
- (TRACED)252 1950 A
- 2244(&&)S
- (signo)210 2370 A
- 2622(!=)S
- (SIGKILL))336 2748 A
- 3126({)S
- 4860 V
- (18199)210 648 A
- 1362(/*)S
- 1488(A)S
- (traced)252 1572 A
- (process)294 1866 A
- (has)126 2202 A
- (special)294 2370 A
- (handling.)378 2706 A
- 3126(*/)S
- 4950 V
- (18200)210 648 A
- (unpause(slot);)588 1362 A
- 5040 V
- (18201)210 648 A
- (stop_proc(rmp,)588 1362 A
- (signo);)294 1992 A
- 2370(/*)S
- 2496(a)S
- (signal)252 2580 A
- (causes)252 2874 A
- 3168(it)S
- 3294(to)S
- (stop)168 3420 A
- 3630(*/)S
- 5130 V
- (18202)210 648 A
- (return;)294 1362 A
- 5220 V
- (18203)210 648 A
- 1110(})S
- 5310 V
- (18204)210 648 A
- 1110(/*)S
- (Some)168 1236 A
- (signals)294 1446 A
- (are)126 1782 A
- (ignored)294 1950 A
- 2286(by)S
- (default.)336 2412 A
- 2790(*/)S
- 5400 V
- (18205)210 648 A
- 1110(if)S
- ((sigismember(&rmp->mp_ignore,)1218 1236 A
- (signo)))294 2496 A
- (return;)294 2832 A
- 5490 V
- (18206)210 648 A
- 5580 V
- (18207)210 648 A
- 1110(if)S
- ((sigismember(&rmp->mp_sigmask,)1260 1236 A
- (signo)))294 2538 A
- 2874({)S
- 5670 V
- (18208)210 648 A
- 1362(/*)S
- (Signal)252 1488 A
- (should)252 1782 A
- 2076(be)S
- (blocked.)336 2202 A
- 2580(*/)S
- 5760 V
- (18209)210 648 A
- (sigaddset(&rmp->mp_sigpending,)1260 1362 A
- (signo);)294 2664 A
- 5850 V
- (18210)210 648 A
- (return;)294 1362 A
- 5940 V
- (18211)210 648 A
- 1110(})S
- 6030 V
- (18212)210 648 A
- (sigflags)336 1110 A
- 1488(=)S
- (rmp->mp_sigact[signo].sa_flags;)1302 1572 A
- 6120 V
- (18213)210 648 A
- 1110(if)S
- ((sigismember(&rmp->mp_catch,)1176 1236 A
- (signo)))294 2454 A
- 2790({)S
- 6210 V
- (18214)210 648 A
- 1362(if)S
- ((rmp->mp_flags)588 1488 A
- 2118(&)S
- (SIGSUSPENDED))546 2202 A
- 8418 V
- EP
- %%Page: 254 254
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (254)180 648 A
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (18215)210 648 A
- (sm.sm_mask)420 1698 A
- 2160(=)S
- (rmp->mp_sigmask2;)714 2244 A
- 990 V
- (18216)210 648 A
- (else)168 1362 A
- 1080 V
- (18217)210 648 A
- (sm.sm_mask)420 1698 A
- 2160(=)S
- (rmp->mp_sigmask;)672 2244 A
- 1170 V
- (18218)210 648 A
- (sm.sm_signo)462 1362 A
- 1866(=)S
- (signo;)252 1950 A
- 1260 V
- (18219)210 648 A
- (sm.sm_sighandler)672 1362 A
- 2076(=)S
- ((vir_bytes))462 2160 A
- (rmp->mp_sigact[signo].sa_handler;)1386 2664 A
- 1350 V
- (18220)210 648 A
- (sm.sm_sigreturn)630 1362 A
- 2034(=)S
- (rmp->mp_sigreturn;)756 2118 A
- 1440 V
- (18221)210 648 A
- (sys_getsp(slot,)630 1362 A
- (&new_sp);)378 2034 A
- 1530 V
- (18222)210 648 A
- (sm.sm_stkptr)504 1362 A
- 1908(=)S
- (new_sp;)294 1992 A
- 1620 V
- (18223)210 648 A
- 1710 V
- (18224)210 648 A
- 1362(/*)S
- (Make)168 1488 A
- (room)168 1698 A
- (for)126 1908 A
- (the)126 2076 A
- (sigcontext)420 2244 A
- (and)126 2706 A
- (sigframe)336 2874 A
- (struct.)294 3252 A
- 3588(*/)S
- 1800 V
- (18225)210 648 A
- (new_sp)252 1362 A
- 1656(-=)S
- (sizeof(struct)546 1782 A
- (sigcontext))462 2370 A
- 1890 V
- (18226)210 648 A
- 2412(+)S
- 2496(3)S
- 2580(*)S
- (sizeof(char)462 2664 A
- 3168(*))S
- 3294(+)S
- 3378(2)S
- 3462(*)S
- (sizeof(int);)504 3546 A
- 1980 V
- (18227)210 648 A
- 2070 V
- (18228)210 648 A
- 1362(if)S
- ((adjust(rmp,)504 1488 A
- (rmp->mp_seg[D].mem_len,)966 2034 A
- (new_sp))294 3042 A
- 3378(!=)S
- (OK))126 3504 A
- 2160 V
- (18229)210 648 A
- (goto)168 1698 A
- (doterminate;)504 1908 A
- 2250 V
- (18230)210 648 A
- 2340 V
- (18231)210 648 A
- (rmp->mp_sigmask)630 1362 A
- 2034(|=)S
- (rmp->mp_sigact[signo].sa_mask;)1260 2160 A
- 2430 V
- (18232)210 648 A
- 1362(if)S
- ((sigflags)378 1488 A
- 1908(&)S
- (SA_NODEFER))462 1992 A
- 2520 V
- (18233)210 648 A
- (sigdelset(&rmp->mp_sigmask,)1134 1698 A
- (signo);)294 2874 A
- 2610 V
- (18234)210 648 A
- (else)168 1362 A
- 2700 V
- (18235)210 648 A
- (sigaddset(&rmp->mp_sigmask,)1134 1698 A
- (signo);)294 2874 A
- 2790 V
- (18236)210 648 A
- 2880 V
- (18237)210 648 A
- 1362(if)S
- ((sigflags)378 1488 A
- 1908(&)S
- (SA_RESETHAND))546 1992 A
- 2580({)S
- 2970 V
- (18238)210 648 A
- (sigdelset(&rmp->mp_catch,)1050 1698 A
- (signo);)294 2790 A
- 3060 V
- (18239)210 648 A
- (rmp->mp_sigact[signo].sa_handler)1344 1698 A
- 3084(=)S
- (SIG_DFL;)336 3168 A
- 3150 V
- (18240)210 648 A
- 1362(})S
- 3240 V
- (18241)210 648 A
- 3330 V
- (18242)210 648 A
- (sys_sendsig(slot,)714 1362 A
- (&sm);)210 2118 A
- 3420 V
- (18243)210 648 A
- (sigdelset(&rmp->mp_sigpending,)1260 1362 A
- (signo);)294 2664 A
- 3510 V
- (18244)210 648 A
- 1362(/*)S
- 1488(If)S
- (process)294 1614 A
- 1950(is)S
- (hanging)294 2076 A
- 2412(on)S
- (PAUSE,)252 2538 A
- (WAIT,)210 2832 A
- (SIGSUSPEND,)462 3084 A
- (tty,)168 3588 A
- (pipe,)210 3798 A
- (etc.,)210 4050 A
- 3600 V
- (18245)210 648 A
- 1404(*)S
- (release)294 1488 A
- (it.)126 1824 A
- 3690 V
- (18246)210 648 A
- 1404(*/)S
- 3780 V
- (18247)210 648 A
- (unpause(slot);)588 1362 A
- 3870 V
- (18248)210 648 A
- (return;)294 1362 A
- 3960 V
- (18249)210 648 A
- 1110(})S
- 4050 V
- (18250)210 648 A
- (doterminate:)504 1026 A
- 4140 V
- (18251)210 648 A
- 1110(/*)S
- (Signal)252 1236 A
- (should)252 1530 A
- (not)126 1824 A
- 1992(or)S
- (cannot)252 2118 A
- 2412(be)S
- (caught.)294 2538 A
- (Terminate)378 2916 A
- (the)126 3336 A
- (process.)336 3504 A
- 3882(*/)S
- 4230 V
- (18252)210 648 A
- (rmp->mp_sigstatus)714 1110 A
- 1866(=)S
- ((char))252 1950 A
- (signo;)252 2244 A
- 4320 V
- (18253)210 648 A
- 1110(if)S
- ((sigismember(&core_sset,)1008 1236 A
- (signo)))294 2286 A
- 2622({)S
- 4410 V
- (18254)210 648 A
- 1362(/*)S
- (Switch)252 1488 A
- 1782(to)S
- (the)126 1908 A
- (user's)252 2076 A
- 2370(FS)S
- (environment)462 2496 A
- (and)126 3000 A
- (dump)168 3168 A
- (core.)210 3378 A
- 3630(*/)S
- 4500 V
- (18255)210 648 A
- (tell_fs(CHDIR,)588 1362 A
- (slot,)210 1992 A
- (FALSE,)252 2244 A
- (0);)126 2538 A
- 4590 V
- (18256)210 648 A
- (dump_core(rmp);)630 1362 A
- 4680 V
- (18257)210 648 A
- 1110(})S
- 4770 V
- (18258)210 648 A
- (mm_exit(rmp,)504 1110 A
- (0);)126 1656 A
- 2370(/*)S
- (terminate)378 2496 A
- (process)294 2916 A
- 3252(*/)S
- 4860 V
- (18259)210 648 A
- 1026(})S
- 5130 V
- (18262)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5220 V
- (18263)210 648 A
- 1068(*)S
- (check_sig)378 2370 A
- 4260(*)S
- 5310 V
- (18264)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5400 V
- (18265)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (check_sig(proc_id,)756 1488 A
- (signo))252 2286 A
- 5490 V
- (18266)210 648 A
- (pid_t)210 1026 A
- (proc_id;)336 1278 A
- 2370(/*)S
- (pid)126 2496 A
- 2664(of)S
- (proc)168 2790 A
- 3000(to)S
- (sig,)168 3126 A
- 3336(or)S
- 3462(0)S
- 3546(or)S
- (-1,)126 3672 A
- 3840(or)S
- (-pgrp)210 3966 A
- 4218(*/)S
- 5580 V
- (18267)210 648 A
- (int)126 1026 A
- (signo;)252 1194 A
- 2370(/*)S
- (signal)252 2496 A
- 2790(to)S
- (send)168 2916 A
- 3126(to)S
- (process)294 3252 A
- 3588((0)S
- 3714(to)S
- (_NSIG))252 3840 A
- 4134(*/)S
- 5670 V
- (18268)210 648 A
- 1026({)S
- 5760 V
- (18269)210 648 A
- 1026(/*)S
- (Check)210 1152 A
- 1404(to)S
- (see)126 1530 A
- 1698(if)S
- 1824(it)S
- 1950(is)S
- (possible)336 2076 A
- 2454(to)S
- (send)168 2580 A
- 2790(a)S
- (signal.)294 2874 A
- (The)126 3252 A
- (signal)252 3420 A
- (may)126 3714 A
- (have)168 3882 A
- 4092(to)S
- 4218(be)S
- 5850 V
- (18270)210 648 A
- 1068(*)S
- (sent)168 1152 A
- 1362(to)S
- 1488(a)S
- (group)210 1572 A
- 1824(of)S
- (processes.)420 1950 A
- (This)168 2454 A
- (routine)294 2664 A
- 3000(is)S
- (invoked)294 3126 A
- 3462(by)S
- (the)126 3588 A
- (KILL)168 3756 A
- (system)252 3966 A
- 5940 V
- (18271)210 648 A
- 1068(*)S
- (call,)210 1152 A
- (and)126 1404 A
- (also)168 1572 A
- (when)168 1782 A
- (the)126 1992 A
- (kernel)252 2160 A
- (catches)294 2454 A
- 2790(a)S
- (DEL)126 2874 A
- 3042(or)S
- (other)210 3168 A
- (signal.)294 3420 A
- 6030 V
- (18272)210 648 A
- 1068(*/)S
- 6120 V
- (18273)210 648 A
- 6210 V
- (18274)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp;)210 2034 A
- 8418 V
- EP
- %%Page: 255 255
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 12 B
- (255)180 4248 A
- 900 V
- 7 LST
- (18275)210 648 A
- (int)126 1110 A
- (count;)252 1278 A
- 2370(/*)S
- (count)210 2496 A
- 2748(#)S
- 2832(of)S
- (signals)294 2958 A
- (sent)168 3294 A
- 3504(*/)S
- 990 V
- (18276)210 648 A
- (int)126 1110 A
- (error_code;)462 1278 A
- 1080 V
- (18277)210 648 A
- 1170 V
- (18278)210 648 A
- 1110(if)S
- ((signo)252 1236 A
- 1530(<)S
- 1614(0)S
- 1698(||)S
- (signo)210 1824 A
- 2076(>)S
- (_NSIG))252 2160 A
- (return(EINVAL);)630 2454 A
- 1260 V
- (18279)210 648 A
- 1350 V
- (18280)210 648 A
- 1110(/*)S
- (Return)252 1236 A
- (EINVAL)252 1530 A
- (for)126 1824 A
- (attempts)336 1992 A
- 2370(to)S
- (send)168 2496 A
- (SIGKILL)294 2706 A
- 3042(to)S
- (INIT)168 3168 A
- (alone.)252 3378 A
- 3672(*/)S
- 1440 V
- (18281)210 648 A
- 1110(if)S
- ((proc_id)336 1236 A
- 1614(==)S
- (INIT_PID)336 1740 A
- 2118(&&)S
- (signo)210 2244 A
- 2496(==)S
- (SIGKILL))336 2622 A
- (return(EINVAL);)630 3000 A
- 1530 V
- (18282)210 648 A
- 1620 V
- (18283)210 648 A
- 1110(/*)S
- (Search)252 1236 A
- (the)126 1530 A
- (proc)168 1698 A
- (table)210 1908 A
- (for)126 2160 A
- (processes)378 2328 A
- 2748(to)S
- (signal.)294 2874 A
- ((See)168 3252 A
- (forkexit.c)420 3462 A
- (about)210 3924 A
- 1710 V
- (18284)210 648 A
- 1152(*)S
- (pid)126 1236 A
- (magic.))294 1404 A
- 1800 V
- (18285)210 648 A
- 1152(*/)S
- 1890 V
- (18286)210 648 A
- (count)210 1110 A
- 1362(=)S
- 1446(0;)S
- 1980 V
- (18287)210 648 A
- (error_code)420 1110 A
- 1572(=)S
- (ESRCH;)252 1656 A
- 2070 V
- (18288)210 648 A
- (for)126 1110 A
- ((rmp)168 1278 A
- 1488(=)S
- (&mproc[INIT_PROC_NR];)882 1572 A
- (rmp)126 2496 A
- 2664(<)S
- (&mproc[NR_PROCS];)714 2748 A
- (rmp++))252 3504 A
- 3798({)S
- 2160 V
- (18289)210 648 A
- 1362(if)S
- 1488(()S
- ((rmp->mp_flags)588 1572 A
- 2202(&)S
- (IN_USE))294 2286 A
- 2622(==)S
- 2748(0))S
- (continue;)378 2874 A
- 2250 V
- (18290)210 648 A
- 1362(if)S
- ((rmp->mp_flags)588 1488 A
- 2118(&)S
- (HANGING)294 2202 A
- 2538(&&)S
- (signo)210 2664 A
- 2916(!=)S
- 3042(0))S
- (continue;)378 3168 A
- 2340 V
- (18291)210 648 A
- 2430 V
- (18292)210 648 A
- 1362(/*)S
- (Check)210 1488 A
- (for)126 1740 A
- (selection.)420 1908 A
- 2370(*/)S
- 2520 V
- (18293)210 648 A
- 1362(if)S
- ((proc_id)336 1488 A
- 1866(>)S
- 1950(0)S
- 2034(&&)S
- (proc_id)294 2160 A
- 2496(!=)S
- (rmp->mp_pid))504 2622 A
- (continue;)378 3168 A
- 2610 V
- (18294)210 648 A
- 1362(if)S
- ((proc_id)336 1488 A
- 1866(==)S
- 1992(0)S
- 2076(&&)S
- (mp->mp_procgrp)588 2202 A
- 2832(!=)S
- (rmp->mp_procgrp))672 2958 A
- (continue;)378 3672 A
- 2700 V
- (18295)210 648 A
- 1362(if)S
- ((proc_id)336 1488 A
- 1866(==)S
- 1992(-1)S
- 2118(&&)S
- (rmp->mp_pid)462 2244 A
- 2748(==)S
- (INIT_PID))378 2874 A
- (continue;)378 3294 A
- 2790 V
- (18296)210 648 A
- 1362(if)S
- ((proc_id)336 1488 A
- 1866(<)S
- 1950(-1)S
- 2076(&&)S
- (rmp->mp_procgrp)630 2202 A
- 2874(!=)S
- (-proc_id))378 3000 A
- (continue;)378 3420 A
- 2880 V
- (18297)210 648 A
- 2970 V
- (18298)210 648 A
- 1362(/*)S
- (Check)210 1488 A
- (for)126 1740 A
- (permission.)462 1908 A
- 2412(*/)S
- 3060 V
- (18299)210 648 A
- 1362(if)S
- ((mp->mp_effuid)588 1488 A
- 2118(!=)S
- (SUPER_USER)420 2244 A
- 3150 V
- (18300)210 648 A
- 1530(&&)S
- (mp->mp_realuid)588 1656 A
- 2286(!=)S
- (rmp->mp_realuid)630 2412 A
- 3240 V
- (18301)210 648 A
- 1530(&&)S
- (mp->mp_effuid)546 1656 A
- 2244(!=)S
- (rmp->mp_realuid)630 2370 A
- 3330 V
- (18302)210 648 A
- 1530(&&)S
- (mp->mp_realuid)588 1656 A
- 2286(!=)S
- (rmp->mp_effuid)588 2412 A
- 3420 V
- (18303)210 648 A
- 1530(&&)S
- (mp->mp_effuid)546 1656 A
- 2244(!=)S
- (rmp->mp_effuid))630 2370 A
- 3042({)S
- 3510 V
- (18304)210 648 A
- (error_code)420 1698 A
- 2160(=)S
- (EPERM;)252 2244 A
- 3600 V
- (18305)210 648 A
- (continue;)378 1698 A
- 3690 V
- (18306)210 648 A
- 1362(})S
- 3780 V
- (18307)210 648 A
- 3870 V
- (18308)210 648 A
- (count++;)336 1362 A
- 3960 V
- (18309)210 648 A
- 1362(if)S
- ((signo)252 1488 A
- 1782(==)S
- 1908(0))S
- (continue;)378 2034 A
- 4050 V
- (18310)210 648 A
- 4140 V
- (18311)210 648 A
- 1362(/*)S
- ('sig_proc')420 1488 A
- (will)168 1950 A
- (handle)252 2160 A
- (the)126 2454 A
- (disposition)462 2622 A
- 3126(of)S
- (the)126 3252 A
- (signal.)294 3420 A
- (The)126 3798 A
- 4230 V
- (18312)210 648 A
- 1404(*)S
- (signal)252 1488 A
- (may)126 1782 A
- 1950(be)S
- (caught,)294 2076 A
- (blocked,)336 2412 A
- (ignored,)336 2790 A
- 3168(or)S
- (cause)210 3294 A
- (process)294 3546 A
- 4320 V
- (18313)210 648 A
- 1404(*)S
- (termination,)504 1488 A
- (possibly)336 2034 A
- (with)168 2412 A
- (core)168 2622 A
- (dump.)210 2832 A
- 4410 V
- (18314)210 648 A
- 1404(*/)S
- 4500 V
- (18315)210 648 A
- (sig_proc(rmp,)546 1362 A
- (signo);)294 1950 A
- 4590 V
- (18316)210 648 A
- 4680 V
- (18317)210 648 A
- 1362(if)S
- ((proc_id)336 1488 A
- 1866(>)S
- 1950(0))S
- (break;)252 2076 A
- 2370(/*)S
- (only)168 2496 A
- (one)126 2706 A
- (process)294 2874 A
- (being)210 3210 A
- (signaled)336 3462 A
- 3840(*/)S
- 4770 V
- (18318)210 648 A
- 1110(})S
- 4860 V
- (18319)210 648 A
- 4950 V
- (18320)210 648 A
- 1110(/*)S
- 1236(If)S
- (the)126 1362 A
- (calling)294 1530 A
- (process)294 1866 A
- (has)126 2202 A
- (killed)252 2370 A
- (itself,)294 2664 A
- (don't)210 3000 A
- (reply.)252 3252 A
- 3546(*/)S
- 5040 V
- (18321)210 648 A
- 1110(if)S
- (((mp->mp_flags)588 1236 A
- 1866(&)S
- (IN_USE))294 1950 A
- 2286(==)S
- 2412(0)S
- 2496(||)S
- ((mp->mp_flags)546 2622 A
- 3210(&)S
- (HANGING)))378 3294 A
- 5130 V
- (18322)210 648 A
- (dont_reply)420 1362 A
- 1824(=)S
- (TRUE;)210 1908 A
- 5220 V
- (18323)210 648 A
- (return(count)504 1110 A
- 1656(>)S
- 1740(0)S
- 1824(?)S
- 1908(OK)S
- 2034(:)S
- (error_code);)504 2118 A
- 5310 V
- (18324)210 648 A
- 1026(})S
- 5580 V
- (18327)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5670 V
- (18328)210 648 A
- 1068(*)S
- (check_pending)546 2412 A
- 4260(*)S
- 5760 V
- (18329)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5850 V
- (18330)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (check_pending())630 1572 A
- 5940 V
- (18331)210 648 A
- 1026({)S
- 6030 V
- (18332)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- (any)126 1908 A
- (pending)294 2076 A
- (signals)294 2412 A
- (have)168 2748 A
- (been)168 2958 A
- (unblocked.)420 3168 A
- (The)126 3672 A
- 6120 V
- (18333)210 648 A
- 1152(*)S
- (first)210 1236 A
- (such)168 1488 A
- (signal)252 1698 A
- (found)210 1992 A
- 2244(is)S
- (delivered.)420 2370 A
- 6210 V
- (18334)210 648 A
- 1152(*)S
- 8418 V
- EP
- %%Page: 256 256
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (256)180 648 A
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (18335)210 648 A
- 1152(*)S
- 1236(If)S
- (multiple)336 1362 A
- (pending)294 1740 A
- (unmasked)336 2076 A
- (signals)294 2454 A
- (are)126 2790 A
- (found,)252 2958 A
- (they)168 3252 A
- (will)168 3462 A
- 3672(be)S
- 990 V
- (18336)210 648 A
- 1152(*)S
- (delivered)378 1236 A
- (sequentially.)546 1656 A
- 1080 V
- (18337)210 648 A
- 1152(*)S
- 1170 V
- (18338)210 648 A
- 1152(*)S
- (There)210 1236 A
- (are)126 1488 A
- (several)294 1656 A
- (places)252 1992 A
- 2286(in)S
- (this)168 2412 A
- (file)168 2622 A
- (where)210 2832 A
- (the)126 3084 A
- (signal)252 3252 A
- (mask)168 3546 A
- 3756(is)S
- 1260 V
- (18339)210 648 A
- 1152(*)S
- (changed.)336 1236 A
- 1656(At)S
- (each)168 1782 A
- (such)168 1992 A
- (place,)252 2202 A
- (check_pending())630 2496 A
- (should)252 3168 A
- 3462(be)S
- (called)252 3588 A
- 3882(to)S
- 1350 V
- (18340)210 648 A
- 1152(*)S
- (check)210 1236 A
- (for)126 1488 A
- (newly)210 1656 A
- (unblocked)378 1908 A
- (signals.)336 2328 A
- 1440 V
- (18341)210 648 A
- 1152(*/)S
- 1530 V
- (18342)210 648 A
- 1620 V
- (18343)210 648 A
- (int)126 1110 A
- 1278(i;)S
- 1710 V
- (18344)210 648 A
- 1800 V
- (18345)210 648 A
- (for)126 1110 A
- 1278((i)S
- 1404(=)S
- 1488(1;)S
- 1614(i)S
- 1698(<)S
- (_NSIG;)252 1782 A
- (i++))168 2076 A
- 2286({)S
- 1890 V
- (18346)210 648 A
- 1362(if)S
- ((sigismember(&mp->mp_sigpending,)1344 1488 A
- 2874(i))S
- 3000(&&)S
- 1980 V
- (18347)210 648 A
- (!sigismember(&mp->mp_sigmask,)1218 1698 A
- (i)))126 2958 A
- 3126({)S
- 2070 V
- (18348)210 648 A
- (sigdelset(&mp->mp_sigpending,)1218 1698 A
- (i);)126 2958 A
- 2160 V
- (18349)210 648 A
- (sig_proc(mp,)504 1698 A
- (i);)126 2244 A
- 2250 V
- (18350)210 648 A
- (break;)252 1698 A
- 2340 V
- (18351)210 648 A
- 1362(})S
- 2430 V
- (18352)210 648 A
- 1110(})S
- 2520 V
- (18353)210 648 A
- 1026(})S
- 2790 V
- (18356)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2880 V
- (18357)210 648 A
- 1068(*)S
- (unpause)294 2370 A
- 4260(*)S
- 2970 V
- (18358)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3060 V
- (18359)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (unpause(pro))504 1572 A
- 3150 V
- (18360)210 648 A
- (int)126 1026 A
- (pro;)168 1194 A
- 2370(/*)S
- (which)210 2496 A
- (process)294 2748 A
- (number)252 3084 A
- 3378(*/)S
- 3240 V
- (18361)210 648 A
- 1026({)S
- 3330 V
- (18362)210 648 A
- 1026(/*)S
- 1152(A)S
- (signal)252 1236 A
- 1530(is)S
- 1656(to)S
- 1782(be)S
- (sent)168 1908 A
- 2118(to)S
- 2244(a)S
- (process.)336 2328 A
- 2748(If)S
- (that)168 2874 A
- (process)294 3084 A
- 3420(is)S
- (hanging)294 3546 A
- 3882(on)S
- 4008(a)S
- 3420 V
- (18363)210 648 A
- 1068(*)S
- (system)252 1152 A
- (call,)210 1446 A
- (the)126 1698 A
- (system)252 1866 A
- (call)168 2160 A
- (must)168 2370 A
- 2580(be)S
- (terminated)420 2706 A
- (with)168 3168 A
- (EINTR.)252 3378 A
- (Possible)336 3714 A
- 3510 V
- (18364)210 648 A
- 1068(*)S
- (calls)210 1152 A
- (are)126 1404 A
- (PAUSE,)252 1572 A
- (WAIT,)210 1866 A
- (READ)168 2118 A
- (and)126 2328 A
- (WRITE,)252 2496 A
- (the)126 2790 A
- (latter)252 2958 A
- (two)126 3252 A
- (for)126 3420 A
- (pipes)210 3588 A
- (and)126 3840 A
- (ttys.)210 4008 A
- 3600 V
- (18365)210 648 A
- 1068(*)S
- (First)210 1152 A
- (check)210 1404 A
- 1656(if)S
- (the)126 1782 A
- (process)294 1950 A
- 2286(is)S
- (hanging)294 2412 A
- 2748(on)S
- 2874(an)S
- 3000(MM)S
- (call.)210 3126 A
- 3420(If)S
- (not,)168 3546 A
- (tell)168 3756 A
- (FS,)126 3966 A
- 3690 V
- (18366)210 648 A
- 1068(*)S
- 1152(so)S
- 1278(it)S
- (can)126 1404 A
- (check)210 1572 A
- (for)126 1824 A
- (READs)210 1992 A
- (and)126 2244 A
- (WRITEs)252 2412 A
- (from)168 2706 A
- (pipes,)252 2916 A
- (ttys)168 3210 A
- (and)126 3420 A
- (the)126 3588 A
- (like.)210 3756 A
- 3780 V
- (18367)210 648 A
- 1068(*/)S
- 3870 V
- (18368)210 648 A
- 3960 V
- (18369)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp;)210 2034 A
- 4050 V
- (18370)210 648 A
- 4140 V
- (18371)210 648 A
- (rmp)126 1110 A
- 1278(=)S
- (&mproc[pro];)504 1362 A
- 4230 V
- (18372)210 648 A
- 4320 V
- (18373)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- (process)294 1908 A
- 2244(is)S
- (hanging)294 2370 A
- 2706(on)S
- 2832(a)S
- (PAUSE)210 2916 A
- (call.)210 3168 A
- 3420(*/)S
- 4410 V
- (18374)210 648 A
- 1110(if)S
- 1236(()S
- ((rmp->mp_flags)588 1320 A
- 1950(&)S
- (PAUSED))294 2034 A
- 2370(&&)S
- ((rmp->mp_flags)588 2496 A
- 3126(&)S
- (HANGING))336 3210 A
- 3588(==)S
- 3714(0))S
- 3840({)S
- 4500 V
- (18375)210 648 A
- (rmp->mp_flags)546 1362 A
- 1950(&=)S
- (304PAUSED;)336 2076 A
- 4590 V
- (18376)210 648 A
- (reply(pro,)420 1362 A
- (EINTR,)252 1824 A
- 2118(0,)S
- (NIL_PTR);)378 2244 A
- 4680 V
- (18377)210 648 A
- (return;)294 1362 A
- 4770 V
- (18378)210 648 A
- 1110(})S
- 4860 V
- (18379)210 648 A
- 4950 V
- (18380)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- (process)294 1908 A
- 2244(is)S
- (hanging)294 2370 A
- 2706(on)S
- 2832(a)S
- (WAIT)168 2916 A
- (call.)210 3126 A
- 3378(*/)S
- 5040 V
- (18381)210 648 A
- 1110(if)S
- 1236(()S
- ((rmp->mp_flags)588 1320 A
- 1950(&)S
- (WAITING))336 2034 A
- 2412(&&)S
- ((rmp->mp_flags)588 2538 A
- 3168(&)S
- (HANGING))336 3252 A
- 3630(==)S
- 3756(0))S
- 3882({)S
- 5130 V
- (18382)210 648 A
- (rmp->mp_flags)546 1362 A
- 1950(&=)S
- (304WAITING;)378 2076 A
- 5220 V
- (18383)210 648 A
- (reply(pro,)420 1362 A
- (EINTR,)252 1824 A
- 2118(0,)S
- (NIL_PTR);)378 2244 A
- 5310 V
- (18384)210 648 A
- (return;)294 1362 A
- 5400 V
- (18385)210 648 A
- 1110(})S
- 5490 V
- (18386)210 648 A
- 5580 V
- (18387)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- (process)294 1908 A
- 2244(is)S
- (hanging)294 2370 A
- 2706(on)S
- 2832(a)S
- (SIGSUSPEND)420 2916 A
- (call.)210 3378 A
- 3630(*/)S
- 5670 V
- (18388)210 648 A
- 1110(if)S
- (((rmp->mp_flags)630 1236 A
- 1908(&)S
- (SIGSUSPENDED))546 1992 A
- 2580(&&)S
- ((rmp->mp_flags)588 2706 A
- 3336(&)S
- (HANGING))336 3420 A
- 3798(==)S
- 3924(0))S
- 4050({)S
- 5760 V
- (18389)210 648 A
- (rmp->mp_flags)546 1362 A
- 1950(&=)S
- (304SIGSUSPENDED;)588 2076 A
- 5850 V
- (18390)210 648 A
- (reply(pro,)420 1362 A
- (EINTR,)252 1824 A
- 2118(0,)S
- (NIL_PTR);)378 2244 A
- 5940 V
- (18391)210 648 A
- (return;)294 1362 A
- 6030 V
- (18392)210 648 A
- 1110(})S
- 6120 V
- (18393)210 648 A
- 6210 V
- (18394)210 648 A
- 1110(/*)S
- (Process)294 1236 A
- 1572(is)S
- (not)126 1698 A
- (hanging)294 1866 A
- 2202(on)S
- 2328(an)S
- 2454(MM)S
- (call.)210 2580 A
- (Ask)126 2874 A
- 3042(FS)S
- 3168(to)S
- (take)168 3294 A
- 3504(a)S
- (look.)210 3588 A
- 3840(*/)S
- 8418 V
- EP
- %%Page: 257 257
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 12 B
- (257)180 4248 A
- 900 V
- 7 LST
- (18395)210 648 A
- (tell_fs(UNPAUSE,)672 1362 A
- (pro,)168 2076 A
- 2286(0,)S
- (0);)126 2412 A
- 990 V
- (18396)210 648 A
- 1026(})S
- 1260 V
- (18399)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1350 V
- (18400)210 648 A
- 1068(*)S
- (dump_core)378 2370 A
- 4260(*)S
- 1440 V
- (18401)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1530 V
- (18402)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (dump_core(rmp))588 1572 A
- 1620 V
- (18403)210 648 A
- (register)336 1026 A
- (struct)252 1404 A
- (mproc)210 1698 A
- (*rmp;)210 1950 A
- 2370(/*)S
- (whose)210 2496 A
- (core)168 2748 A
- 2958(is)S
- 3084(to)S
- 3210(be)S
- (dumped)252 3336 A
- 3630(*/)S
- 1710 V
- (18404)210 648 A
- 1026({)S
- 1800 V
- (18405)210 648 A
- 1026(/*)S
- (Make)168 1152 A
- 1362(a)S
- (core)168 1446 A
- (dump)168 1656 A
- 1866(on)S
- (the)126 1992 A
- (file)168 2160 A
- ("core",)294 2370 A
- 2706(if)S
- (possible.)378 2832 A
- 3252(*/)S
- 1890 V
- (18406)210 648 A
- 1980 V
- (18407)210 648 A
- (int)126 1110 A
- (fd,)126 1278 A
- (fake_fd,)336 1446 A
- (nr_written,)462 1824 A
- (seg,)168 2328 A
- (slot;)210 2538 A
- 2070 V
- (18408)210 648 A
- (char)168 1110 A
- (*buf;)210 1320 A
- 2160 V
- (18409)210 648 A
- (vir_bytes)378 1110 A
- (current_sp;)462 1530 A
- 2250 V
- (18410)210 648 A
- (phys_bytes)420 1110 A
- (left;)210 1572 A
- 2370(/*)S
- (careful;)336 2496 A
- (64K)126 2874 A
- (might)210 3042 A
- (overflow)336 3294 A
- (vir_bytes)378 3672 A
- 4092(*/)S
- 2340 V
- (18411)210 648 A
- (unsigned)336 1110 A
- (nr_to_write;)504 1488 A
- 2370(/*)S
- (unsigned)336 2496 A
- (for)126 2874 A
- (arg)126 3042 A
- 3210(to)S
- (write())294 3336 A
- (but)126 3672 A
- 3840(<)S
- (INT_MAX)294 3924 A
- 4260(*/)S
- 2430 V
- (18412)210 648 A
- (long)168 1110 A
- (trace_data,)462 1320 A
- (trace_off;)420 1824 A
- 2520 V
- (18413)210 648 A
- 2610 V
- (18414)210 648 A
- (slot)168 1110 A
- 1320(=)S
- ((int))210 1404 A
- ((rmp)168 1656 A
- 1866(-)S
- (mproc);)294 1950 A
- 2700 V
- (18415)210 648 A
- 2790 V
- (18416)210 648 A
- 1110(/*)S
- (Can)126 1236 A
- (core)168 1404 A
- (file)168 1614 A
- 1824(be)S
- (written?)336 1950 A
- 2370(We)S
- (are)126 2496 A
- (operating)378 2664 A
- 3084(in)S
- (the)126 3210 A
- (user's)252 3378 A
- 3672(FS)S
- (environment,)504 3798 A
- 2880 V
- (18417)210 648 A
- 1152(*)S
- 1236(so)S
- 1362(no)S
- (special)294 1488 A
- (permission)420 1824 A
- (checks)252 2286 A
- (are)126 2580 A
- (needed.)294 2748 A
- 2970 V
- (18418)210 648 A
- 1152(*/)S
- 3060 V
- (18419)210 648 A
- 1110(if)S
- ((rmp->mp_realuid)672 1236 A
- 1950(!=)S
- (rmp->mp_effuid))630 2076 A
- (return;)294 2748 A
- 3150 V
- (18420)210 648 A
- 1110(if)S
- 1236(()S
- ((fd)126 1320 A
- 1488(=)S
- (creat(core_name,)672 1572 A
- (CORE_MODE)))462 2286 A
- 2790(<)S
- 2874(0))S
- (return;)294 3000 A
- 3240 V
- (18421)210 648 A
- (rmp->mp_sigstatus)714 1110 A
- 1866(|=)S
- (DUMPED;)294 1992 A
- 3330 V
- (18422)210 648 A
- 3420 V
- (18423)210 648 A
- 1110(/*)S
- (Make)168 1236 A
- (sure)168 1446 A
- (the)126 1656 A
- (stack)210 1824 A
- (segment)294 2076 A
- 2412(is)S
- 2538(up)S
- 2664(to)S
- (date.)210 2790 A
- 3510 V
- (18424)210 648 A
- 1152(*)S
- 1236(We)S
- (don't)210 1362 A
- (want)168 1614 A
- (adjust())336 1824 A
- 2202(to)S
- (fail)168 2328 A
- (unless)252 2538 A
- (current_sp)420 2832 A
- 3294(is)S
- (preposterous,)546 3420 A
- 3600 V
- (18425)210 648 A
- 1152(*)S
- (but)126 1236 A
- 1404(it)S
- (might)210 1530 A
- (fail)168 1782 A
- (due)126 1992 A
- 2160(to)S
- (safety)252 2286 A
- (checking.)378 2580 A
- (Also,)210 3042 A
- 3294(we)S
- (don't)210 3420 A
- (really)252 3672 A
- (want)168 3966 A
- 3690 V
- (18426)210 648 A
- 1152(*)S
- (the)126 1236 A
- (adjust())336 1404 A
- (for)126 1782 A
- (sending)294 1950 A
- 2286(a)S
- (signal)252 2370 A
- 2664(to)S
- (fail)168 2790 A
- (due)126 3000 A
- 3168(to)S
- (safety)252 3294 A
- (checking.)378 3588 A
- 3780 V
- (18427)210 648 A
- 1152(*)S
- (Maybe)210 1236 A
- (make)168 1488 A
- (SAFETY_BYTES)504 1698 A
- 2244(a)S
- (parameter.)420 2328 A
- 3870 V
- (18428)210 648 A
- 1152(*/)S
- 3960 V
- (18429)210 648 A
- (sys_getsp(slot,)630 1110 A
- (¤t_sp);)546 1782 A
- 4050 V
- (18430)210 648 A
- (adjust(rmp,)462 1110 A
- (rmp->mp_seg[D].mem_len,)966 1614 A
- (current_sp);)504 2622 A
- 4140 V
- (18431)210 648 A
- 4230 V
- (18432)210 648 A
- 1110(/*)S
- (Write)210 1236 A
- (the)126 1488 A
- (memory)252 1656 A
- (map)126 1950 A
- 2118(of)S
- (all)126 2244 A
- (segments)336 2412 A
- 2790(to)S
- (begin)210 2916 A
- (the)126 3168 A
- (core)168 3336 A
- (file.)210 3546 A
- 3798(*/)S
- 4320 V
- (18433)210 648 A
- 1110(if)S
- ((write(fd,)420 1236 A
- ((char)210 1698 A
- 1950(*))S
- (rmp->mp_seg,)504 2076 A
- ((unsigned))420 2622 A
- (sizeof)252 3084 A
- (rmp->mp_seg))504 3378 A
- 4410 V
- (18434)210 648 A
- 1278(!=)S
- ((unsigned))420 1404 A
- (sizeof)252 1866 A
- (rmp->mp_seg))504 2160 A
- 2706({)S
- 4500 V
- (18435)210 648 A
- (close(fd);)420 1362 A
- 4590 V
- (18436)210 648 A
- (return;)294 1362 A
- 4680 V
- (18437)210 648 A
- 1110(})S
- 4770 V
- (18438)210 648 A
- 4860 V
- (18439)210 648 A
- 1110(/*)S
- (Write)210 1236 A
- (out)126 1488 A
- (the)126 1656 A
- (whole)210 1824 A
- (kernel)252 2076 A
- (process)294 2370 A
- (table)210 2706 A
- (entry)210 2958 A
- 3210(to)S
- (get)126 3336 A
- (the)126 3504 A
- (regs.)210 3672 A
- 3924(*/)S
- 4950 V
- (18440)210 648 A
- (trace_off)378 1110 A
- 1530(=)S
- 1614(0;)S
- 5040 V
- (18441)210 648 A
- (while)210 1110 A
- ((sys_trace(3,)546 1362 A
- (slot,)210 1950 A
- (trace_off,)420 2202 A
- (&trace_data))504 2664 A
- 3210(==)S
- (OK))126 3336 A
- 3504({)S
- 5130 V
- (18442)210 648 A
- 1362(if)S
- ((write(fd,)420 1488 A
- ((char)210 1950 A
- 2202(*))S
- (&trace_data,)504 2328 A
- ((unsigned))420 2874 A
- (sizeof)252 3336 A
- ((long)))294 3630 A
- 5220 V
- (18443)210 648 A
- 1530(!=)S
- ((unsigned))420 1656 A
- (sizeof)252 2118 A
- ((long)))294 2412 A
- 2748({)S
- 5310 V
- (18444)210 648 A
- (close(fd);)420 1698 A
- 5400 V
- (18445)210 648 A
- (return;)294 1698 A
- 5490 V
- (18446)210 648 A
- 1362(})S
- 5580 V
- (18447)210 648 A
- (trace_off)378 1362 A
- 1782(+=)S
- (sizeof)252 1908 A
- ((long);)294 2202 A
- 5670 V
- (18448)210 648 A
- 1110(})S
- 5760 V
- (18449)210 648 A
- 5850 V
- (18450)210 648 A
- 1110(/*)S
- (Loop)168 1236 A
- (through)294 1446 A
- (segments)336 1782 A
- (and)126 2160 A
- (write)210 2328 A
- (the)126 2580 A
- (segments)336 2748 A
- (themselves)420 3126 A
- (out.)168 3588 A
- 3798(*/)S
- 5940 V
- (18451)210 648 A
- (for)126 1110 A
- ((seg)168 1278 A
- 1488(=)S
- 1572(0;)S
- (seg)126 1698 A
- 1866(<)S
- (NR_SEGS;)336 1950 A
- (seg++))252 2328 A
- 2622({)S
- 6030 V
- (18452)210 648 A
- (buf)126 1362 A
- 1530(=)S
- ((char)210 1614 A
- 1866(*))S
- (((vir_bytes))504 1992 A
- (rmp->mp_seg[seg].mem_vir)1008 2538 A
- 3588(<<)S
- (CLICK_SHIFT);)546 3714 A
- 6120 V
- (18453)210 648 A
- (left)168 1362 A
- 1572(=)S
- ((phys_bytes))504 1656 A
- (rmp->mp_seg[seg].mem_len)1008 2202 A
- 3252(<<)S
- (CLICK_SHIFT;)504 3378 A
- 6210 V
- (18454)210 648 A
- (fake_fd)294 1362 A
- 1698(=)S
- ((slot)210 1782 A
- 2034(<<)S
- 2160(8))S
- 2286(|)S
- ((seg)168 2370 A
- 2580(<<)S
- 2706(6))S
- 2832(|)S
- (fd;)126 2916 A
- 8418 V
- EP
- %%Page: 258 258
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (258)180 648 A
- 11 R
- 2068(File:)S
- 2301(src/mm/signal.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (18455)210 648 A
- 990 V
- (18456)210 648 A
- 1362(/*)S
- (Loop)168 1488 A
- (through)294 1698 A
- 2034(a)S
- (segment,)336 2118 A
- (dumping)294 2496 A
- (it.)126 2832 A
- 3000(*/)S
- 1080 V
- (18457)210 648 A
- (while)210 1362 A
- ((left)210 1614 A
- 1866(!=)S
- 1992(0))S
- 2118({)S
- 1170 V
- (18458)210 648 A
- (nr_to_write)462 1698 A
- 2202(=)S
- ((unsigned))420 2286 A
- (MIN(left,)378 2748 A
- (DUMP_SIZE);)462 3168 A
- 1260 V
- (18459)210 648 A
- 1698(if)S
- 1824(()S
- ((nr_written)462 1908 A
- 2412(=)S
- (write(fake_fd,)588 2496 A
- (buf,)168 3126 A
- (nr_to_write)))546 3336 A
- 3924(<)S
- 4008(0))S
- 4134({)S
- 1350 V
- (18460)210 648 A
- (close(fd);)420 2034 A
- 1440 V
- (18461)210 648 A
- (return;)294 2034 A
- 1530 V
- (18462)210 648 A
- 1698(})S
- 1620 V
- (18463)210 648 A
- (buf)126 1698 A
- 1866(+=)S
- (nr_written;)462 1992 A
- 1710 V
- (18464)210 648 A
- (left)168 1698 A
- 1908(-=)S
- (nr_written;)462 2034 A
- 1800 V
- (18465)210 648 A
- 1362(})S
- 1890 V
- (18466)210 648 A
- 1110(})S
- 1980 V
- (18467)210 648 A
- (close(fd);)420 1110 A
- 2070 V
- (18468)210 648 A
- 1026(})S
- 2340 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2430 V
- (src/mm/getset.c)630 2034 A
- 2520 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2700 V
- (18500)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (handles)294 1572 A
- (the)126 1908 A
- 2076(4)S
- (system)252 2160 A
- (calls)210 2454 A
- (that)168 2706 A
- (get)126 2916 A
- (and)126 3084 A
- (set)126 3252 A
- (uids)168 3420 A
- (and)126 3630 A
- (gids.)210 3798 A
- 2790 V
- (18501)210 648 A
- 1068(*)S
- 1152(It)S
- (also)168 1278 A
- (handles)294 1488 A
- (getpid(),)378 1824 A
- (setsid(),)378 2244 A
- (and)126 2664 A
- (getpgrp().)420 2832 A
- (The)126 3336 A
- (code)168 3504 A
- (for)126 3714 A
- (each)168 3882 A
- 2880 V
- (18502)210 648 A
- 1068(*)S
- (one)126 1152 A
- 1320(is)S
- 1446(so)S
- (tiny)168 1572 A
- (that)168 1782 A
- 1992(it)S
- (hardly)252 2118 A
- (seemed)252 2412 A
- (worthwhile)420 2706 A
- 3168(to)S
- (make)168 3294 A
- (each)168 3504 A
- 3714(a)S
- (separate)336 3798 A
- 2970 V
- (18503)210 648 A
- 1068(*)S
- (function.)378 1152 A
- 3060 V
- (18504)210 648 A
- 1068(*/)S
- 3150 V
- (18505)210 648 A
- 3240 V
- (18506)210 648 A
- (#include)336 1026 A
- ("mm.h")252 1404 A
- 3330 V
- (18507)210 648 A
- (#include)336 1026 A
- (<minix/callnr.h>)672 1404 A
- 3420 V
- (18508)210 648 A
- (#include)336 1026 A
- (<signal.h>)420 1404 A
- 3510 V
- (18509)210 648 A
- (#include)336 1026 A
- ("mproc.h")378 1404 A
- 3600 V
- (18510)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 3690 V
- (18511)210 648 A
- 3780 V
- (18512)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3870 V
- (18513)210 648 A
- 1068(*)S
- (do_getset)378 2370 A
- 4260(*)S
- 3960 V
- (18514)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4050 V
- (18515)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_getset())462 1488 A
- 4140 V
- (18516)210 648 A
- 1026({)S
- 4230 V
- (18517)210 648 A
- 1026(/*)S
- (Handle)252 1152 A
- (GETUID,)294 1446 A
- (GETGID,)294 1782 A
- (GETPID,)294 2118 A
- (GETPGRP,)336 2454 A
- (SETUID,)294 2832 A
- (SETGID,)294 3168 A
- (SETSID.)294 3504 A
- (The)126 3882 A
- (four)168 4050 A
- 4320 V
- (18518)210 648 A
- 1068(*)S
- (GETs)168 1152 A
- (and)126 1362 A
- (SETSID)252 1530 A
- (return)252 1824 A
- (their)210 2118 A
- (primary)294 2370 A
- (results)294 2706 A
- 3042(in)S
- ('r'.)168 3168 A
- (GETUID,)294 3420 A
- (GETGID,)294 3756 A
- (and)126 4092 A
- 4410 V
- (18519)210 648 A
- 1068(*)S
- (GETPID)252 1152 A
- (also)168 1446 A
- (return)252 1656 A
- (secondary)378 1950 A
- (results)294 2370 A
- ((the)168 2706 A
- (effective)378 2916 A
- (IDs,)168 3336 A
- 3546(or)S
- (the)126 3672 A
- (parent)252 3840 A
- 4500 V
- (18520)210 648 A
- 1068(*)S
- (process)294 1152 A
- (ID))126 1488 A
- 1656(in)S
- ('result2',)420 1782 A
- (which)210 2244 A
- 2496(is)S
- (returned)336 2622 A
- 3000(to)S
- (the)126 3126 A
- (user.)210 3294 A
- 4590 V
- (18521)210 648 A
- 1068(*/)S
- 4680 V
- (18522)210 648 A
- 4770 V
- (18523)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp)168 2034 A
- 2244(=)S
- (mp;)126 2328 A
- 4860 V
- (18524)210 648 A
- (register)336 1110 A
- (int)126 1488 A
- 1656(r;)S
- 4950 V
- (18525)210 648 A
- 5040 V
- (18526)210 648 A
- (switch(mm_call))630 1110 A
- 1782({)S
- 5130 V
- (18527)210 648 A
- (case)168 1362 A
- (GETUID:)294 1572 A
- 5220 V
- (18528)210 648 A
- 1698(r)S
- 1782(=)S
- (rmp->mp_realuid;)672 1866 A
- 5310 V
- (18529)210 648 A
- (result2)294 1698 A
- 2034(=)S
- (rmp->mp_effuid;)630 2118 A
- 5400 V
- (18530)210 648 A
- (break;)252 1698 A
- 5490 V
- (18531)210 648 A
- 5580 V
- (18532)210 648 A
- (case)168 1362 A
- (GETGID:)294 1572 A
- 5670 V
- (18533)210 648 A
- 1698(r)S
- 1782(=)S
- (rmp->mp_realgid;)672 1866 A
- 5760 V
- (18534)210 648 A
- (result2)294 1698 A
- 2034(=)S
- (rmp->mp_effgid;)630 2118 A
- 5850 V
- (18535)210 648 A
- (break;)252 1698 A
- 5940 V
- (18536)210 648 A
- 6030 V
- (18537)210 648 A
- (case)168 1362 A
- (GETPID:)294 1572 A
- 6120 V
- (18538)210 648 A
- 1698(r)S
- 1782(=)S
- (mproc[who].mp_pid;)756 1866 A
- 6210 V
- (18539)210 648 A
- (result2)294 1698 A
- 2034(=)S
- (mproc[rmp->mp_parent].mp_pid;)1218 2118 A
- 8418 V
- EP
- %%Page: 259 259
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2070(File:)S
- 2303(src/mm/getset.c)S
- 12 B
- (259)180 4248 A
- 900 V
- 7 LST
- (18540)210 648 A
- (break;)252 1698 A
- 990 V
- (18541)210 648 A
- 1080 V
- (18542)210 648 A
- (case)168 1362 A
- (SETUID:)294 1572 A
- 1170 V
- (18543)210 648 A
- 1698(if)S
- ((rmp->mp_realuid)672 1824 A
- 2538(!=)S
- (usr_id)252 2664 A
- 2958(&&)S
- (rmp->mp_effuid)588 3084 A
- 3714(!=)S
- (SUPER_USER))462 3840 A
- 1260 V
- (18544)210 648 A
- (return(EPERM);)588 2034 A
- 1350 V
- (18545)210 648 A
- (rmp->mp_realuid)630 1698 A
- 2370(=)S
- (usr_id;)294 2454 A
- 1440 V
- (18546)210 648 A
- (rmp->mp_effuid)588 1698 A
- 2328(=)S
- (usr_id;)294 2412 A
- 1530 V
- (18547)210 648 A
- (tell_fs(SETUID,)630 1698 A
- (who,)168 2370 A
- (usr_id,)294 2580 A
- (usr_id);)336 2916 A
- 1620 V
- (18548)210 648 A
- 1698(r)S
- 1782(=)S
- (OK;)126 1866 A
- 1710 V
- (18549)210 648 A
- (break;)252 1698 A
- 1800 V
- (18550)210 648 A
- 1890 V
- (18551)210 648 A
- (case)168 1362 A
- (SETGID:)294 1572 A
- 1980 V
- (18552)210 648 A
- 1698(if)S
- ((rmp->mp_realgid)672 1824 A
- 2538(!=)S
- (grpid)210 2664 A
- 2916(&&)S
- (rmp->mp_effuid)588 3042 A
- 3672(!=)S
- (SUPER_USER))462 3798 A
- 2070 V
- (18553)210 648 A
- (return(EPERM);)588 2034 A
- 2160 V
- (18554)210 648 A
- (rmp->mp_realgid)630 1698 A
- 2370(=)S
- (grpid;)252 2454 A
- 2250 V
- (18555)210 648 A
- (rmp->mp_effgid)588 1698 A
- 2328(=)S
- (grpid;)252 2412 A
- 2340 V
- (18556)210 648 A
- (tell_fs(SETGID,)630 1698 A
- (who,)168 2370 A
- (grpid,)252 2580 A
- (grpid);)294 2874 A
- 2430 V
- (18557)210 648 A
- 1698(r)S
- 1782(=)S
- (OK;)126 1866 A
- 2520 V
- (18558)210 648 A
- (break;)252 1698 A
- 2610 V
- (18559)210 648 A
- 2700 V
- (18560)210 648 A
- (case)168 1362 A
- (SETSID:)294 1572 A
- 2790 V
- (18561)210 648 A
- 1698(if)S
- ((rmp->mp_procgrp)672 1824 A
- 2538(==)S
- (rmp->mp_pid))504 2664 A
- (return(EPERM);)588 3210 A
- 2880 V
- (18562)210 648 A
- (rmp->mp_procgrp)630 1698 A
- 2370(=)S
- (rmp->mp_pid;)504 2454 A
- 2970 V
- (18563)210 648 A
- (tell_fs(SETSID,)630 1698 A
- (who,)168 2370 A
- 2580(0,)S
- (0);)126 2706 A
- 3060 V
- (18564)210 648 A
- (/*FALL)252 1698 A
- (THROUGH*/)378 1992 A
- 3150 V
- (18565)210 648 A
- 3240 V
- (18566)210 648 A
- (case)168 1362 A
- (GETPGRP:)336 1572 A
- 3330 V
- (18567)210 648 A
- 1698(r)S
- 1782(=)S
- (rmp->mp_procgrp;)672 1866 A
- 3420 V
- (18568)210 648 A
- (break;)252 1698 A
- 3510 V
- (18569)210 648 A
- 3600 V
- (18570)210 648 A
- (default:)336 1362 A
- 3690 V
- (18571)210 648 A
- 1698(r)S
- 1782(=)S
- (EINVAL;)294 1866 A
- 3780 V
- (18572)210 648 A
- (break;)252 1698 A
- 3870 V
- (18573)210 648 A
- 1110(})S
- 3960 V
- (18574)210 648 A
- (return(r);)420 1110 A
- 4050 V
- (18575)210 648 A
- 1026(})S
- 4590 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4680 V
- (src/mm/trace.c)588 2034 A
- 4770 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4950 V
- (18600)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (handles)294 1572 A
- (the)126 1908 A
- (memory)252 2076 A
- (manager's)378 2370 A
- (part)168 2790 A
- 3000(of)S
- (debugging,)420 3126 A
- (using)210 3588 A
- (the)126 3840 A
- 5040 V
- (18601)210 648 A
- 1068(*)S
- (ptrace)252 1152 A
- (system)252 1446 A
- (call.)210 1740 A
- (Most)168 1992 A
- 2202(of)S
- (the)126 2328 A
- (commands)336 2496 A
- (are)126 2874 A
- (passed)252 3042 A
- 3336(on)S
- 3462(to)S
- (the)126 3588 A
- (system)252 3756 A
- 5130 V
- (18602)210 648 A
- 1068(*)S
- (task)168 1152 A
- (for)126 1362 A
- (completion.)462 1530 A
- 5220 V
- (18603)210 648 A
- 1068(*)S
- 5310 V
- (18604)210 648 A
- 1068(*)S
- (The)126 1152 A
- (debugging)378 1320 A
- (commands)336 1740 A
- (available)378 2118 A
- (are:)168 2538 A
- 5400 V
- (18605)210 648 A
- 1068(*)S
- (T_STOP)252 1152 A
- (stop)168 1698 A
- (the)126 1908 A
- (process)294 2076 A
- 5490 V
- (18606)210 648 A
- 1068(*)S
- (T_OK)168 1152 A
- (enable)252 1698 A
- (tracing)294 1992 A
- 2328(by)S
- (parent)252 2454 A
- (for)126 2748 A
- (this)168 2916 A
- (process)294 3126 A
- 5580 V
- (18607)210 648 A
- 1068(*)S
- (T_GETINS)336 1152 A
- (return)252 1698 A
- (value)210 1992 A
- (from)168 2244 A
- (instruction)462 2454 A
- (space)210 2958 A
- 5670 V
- (18608)210 648 A
- 1068(*)S
- (T_GETDATA)378 1152 A
- (return)252 1698 A
- (value)210 1992 A
- (from)168 2244 A
- (data)168 2454 A
- (space)210 2664 A
- 5760 V
- (18609)210 648 A
- 1068(*)S
- (T_GETUSER)378 1152 A
- (return)252 1698 A
- (value)210 1992 A
- (from)168 2244 A
- (user)168 2454 A
- (process)294 2664 A
- (table)210 3000 A
- 5850 V
- (18610)210 648 A
- 1068(*)S
- (T_SETINS)336 1152 A
- (set)126 1698 A
- (value)210 1866 A
- 2118(in)S
- (instruction)462 2244 A
- (space)210 2748 A
- 5940 V
- (18611)210 648 A
- 1068(*)S
- (T_SETDATA)378 1152 A
- (set)126 1698 A
- (value)210 1866 A
- 2118(in)S
- (data)168 2244 A
- (space)210 2454 A
- 6030 V
- (18612)210 648 A
- 1068(*)S
- (T_SETUSER)378 1152 A
- (set)126 1698 A
- (value)210 1866 A
- 2118(in)S
- (user)168 2244 A
- (process)294 2454 A
- (table)210 2790 A
- 6120 V
- (18613)210 648 A
- 1068(*)S
- (T_RESUME)336 1152 A
- (resume)252 1698 A
- (execution)378 1992 A
- 6210 V
- (18614)210 648 A
- 1068(*)S
- (T_EXIT)252 1152 A
- (exit)168 1698 A
- 8418 V
- EP
- %%Page: 260 260
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (260)180 648 A
- 11 R
- 2091(File:)S
- (src/mm/trace.c)660 2324 A
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (18615)210 648 A
- 1068(*)S
- (T_STEP)252 1152 A
- (set)126 1698 A
- (trace)210 1866 A
- (bit)126 2118 A
- 990 V
- (18616)210 648 A
- 1068(*)S
- 1080 V
- (18617)210 648 A
- 1068(*)S
- (The)126 1152 A
- (T_OK)168 1320 A
- (and)126 1530 A
- (T_EXIT)252 1698 A
- (commands)336 1992 A
- (are)126 2370 A
- (handled)294 2538 A
- (here,)210 2874 A
- (and)126 3126 A
- (the)126 3294 A
- (T_RESUME)336 3462 A
- (and)126 3840 A
- 1170 V
- (18618)210 648 A
- 1068(*)S
- (T_STEP)252 1152 A
- (commands)336 1446 A
- (are)126 1824 A
- (partially)378 1992 A
- (handled)294 2412 A
- (here)168 2748 A
- (and)126 2958 A
- (completed)378 3126 A
- 3546(by)S
- (the)126 3672 A
- (system)252 3840 A
- 1260 V
- (18619)210 648 A
- 1068(*)S
- (task.)210 1152 A
- (The)126 1404 A
- (rest)168 1572 A
- (are)126 1782 A
- (handled)294 1950 A
- (entirely)336 2286 A
- 2664(by)S
- (the)126 2790 A
- (system)252 2958 A
- (task.)210 3252 A
- 1350 V
- (18620)210 648 A
- 1068(*/)S
- 1440 V
- (18621)210 648 A
- 1530 V
- (18622)210 648 A
- (#include)336 1026 A
- ("mm.h")252 1404 A
- 1620 V
- (18623)210 648 A
- (#include)336 1026 A
- (<sys/ptrace.h>)588 1404 A
- 1710 V
- (18624)210 648 A
- (#include)336 1026 A
- (<signal.h>)420 1404 A
- 1800 V
- (18625)210 648 A
- (#include)336 1026 A
- ("mproc.h")378 1404 A
- 1890 V
- (18626)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 1980 V
- (18627)210 648 A
- 2070 V
- (18628)210 648 A
- (#define)294 1026 A
- (NIL_MPROC)378 1362 A
- (((struct)336 2034 A
- (mproc)210 2412 A
- 2664(*))S
- 2790(0))S
- 2160 V
- (18629)210 648 A
- 2250 V
- (18630)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (struct)252 1866 A
- (mproc)210 2160 A
- (*findproc,)420 2412 A
- ((pid_t)252 2874 A
- (lpid))210 3168 A
- 3420();)S
- 2340 V
- (18631)210 648 A
- 2430 V
- (18632)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2520 V
- (18633)210 648 A
- 1068(*)S
- (do_trace)336 2370 A
- 4260(*)S
- 2610 V
- (18634)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2700 V
- (18635)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_trace())420 1488 A
- 2790 V
- (18636)210 648 A
- 1026({)S
- 2880 V
- (18637)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*child;)294 2034 A
- 2970 V
- (18638)210 648 A
- 3060 V
- (18639)210 648 A
- 1110(/*)S
- (the)126 1236 A
- (T_OK)168 1404 A
- (call)168 1614 A
- 1824(is)S
- (made)168 1950 A
- 2160(by)S
- (the)126 2286 A
- (child)210 2454 A
- (fork)168 2706 A
- 2916(of)S
- (the)126 3042 A
- (debugger)336 3210 A
- (before)252 3588 A
- 3882(it)S
- (execs)210 4008 A
- 3150 V
- (18640)210 648 A
- 1152(*)S
- (the)126 1236 A
- (process)294 1404 A
- 1740(to)S
- 1866(be)S
- (traced)252 1992 A
- 3240 V
- (18641)210 648 A
- 1152(*/)S
- 3330 V
- (18642)210 648 A
- 1110(if)S
- ((request)336 1236 A
- 1614(==)S
- (T_OK))210 1740 A
- ({/*)126 1992 A
- (enable)252 2160 A
- (tracing)294 2454 A
- 2790(by)S
- (parent)252 2916 A
- (for)126 3210 A
- (this)168 3378 A
- (process)294 3588 A
- 3924(*/)S
- 3420 V
- (18643)210 648 A
- (mp->mp_flags)504 1362 A
- 1908(|=)S
- (TRACED;)294 2034 A
- 3510 V
- (18644)210 648 A
- (mm_out.m2_l2)504 1362 A
- 1908(=)S
- 1992(0;)S
- 3600 V
- (18645)210 648 A
- (return(OK);)462 1362 A
- 3690 V
- (18646)210 648 A
- 1110(})S
- 3780 V
- (18647)210 648 A
- 1110(if)S
- (((child)294 1236 A
- 1572(=)S
- (findproc(pid)))588 1656 A
- 2286(==)S
- (NIL_MPROC)378 2412 A
- 2832(||)S
- (!(child->mp_flags)714 2958 A
- 3714(&)S
- (STOPPED)))378 3798 A
- 4218({)S
- 3870 V
- (18648)210 648 A
- (return(ESRCH);)588 1362 A
- 3960 V
- (18649)210 648 A
- 1110(})S
- 4050 V
- (18650)210 648 A
- 1110(/*)S
- (all)126 1236 A
- (the)126 1404 A
- (other)210 1572 A
- (calls)210 1824 A
- (are)126 2076 A
- (made)168 2244 A
- 2454(by)S
- (the)126 2580 A
- (parent)252 2748 A
- (fork)168 3042 A
- 3252(of)S
- (the)126 3378 A
- (debugger)336 3546 A
- 3924(to)S
- 4140 V
- (18651)210 648 A
- 1152(*)S
- (control)294 1236 A
- (execution)378 1572 A
- 1992(of)S
- (the)126 2118 A
- (child)210 2286 A
- 4230 V
- (18652)210 648 A
- 1152(*/)S
- 4320 V
- (18653)210 648 A
- (switch)252 1110 A
- ((request))378 1404 A
- 1824({)S
- 4410 V
- (18654)210 648 A
- (case)168 1110 A
- (T_EXIT:)294 1320 A
- 2034(/*)S
- (exit)168 2160 A
- 2370(*/)S
- 4500 V
- (18655)210 648 A
- (mm_exit(child,)588 1362 A
- ((int)data);)462 1992 A
- 4590 V
- (18656)210 648 A
- (mm_out.m2_l2)504 1362 A
- 1908(=)S
- 1992(0;)S
- 4680 V
- (18657)210 648 A
- (return(OK);)462 1362 A
- 4770 V
- (18658)210 648 A
- (case)168 1110 A
- (T_RESUME:)378 1320 A
- 4860 V
- (18659)210 648 A
- (case)168 1110 A
- (T_STEP:)294 1320 A
- 2034(/*)S
- (resume)252 2160 A
- (execution)378 2454 A
- 2874(*/)S
- 4950 V
- (18660)210 648 A
- 1362(if)S
- ((data)210 1488 A
- 1740(<)S
- 1824(0)S
- 1908(||)S
- (data)168 2034 A
- 2244(>)S
- (_NSIG))252 2328 A
- (return(EIO);)504 2622 A
- 5040 V
- (18661)210 648 A
- 1362(if)S
- ((data)210 1488 A
- 1740(>)S
- 1824(0))S
- 1950({)S
- 2370(/*)S
- (issue)210 2496 A
- (signal)252 2748 A
- 3042(*/)S
- 5130 V
- (18662)210 648 A
- (child->mp_flags)630 1698 A
- 2370(&=)S
- (304TRACED;)336 2496 A
- 2916(/*)S
- 3042(so)S
- (signal)252 3168 A
- 3462(is)S
- (not)126 3588 A
- (diverted)336 3756 A
- 4134(*/)S
- 5220 V
- (18663)210 648 A
- (sig_proc(child,)630 1698 A
- ((int))210 2370 A
- (data);)252 2622 A
- 5310 V
- (18664)210 648 A
- (child->mp_flags)630 1698 A
- 2370(|=)S
- (TRACED;)294 2496 A
- 5400 V
- (18665)210 648 A
- 1362(})S
- 5490 V
- (18666)210 648 A
- (child->mp_flags)630 1362 A
- 2034(&=)S
- (304STOPPED;)378 2160 A
- 5580 V
- (18667)210 648 A
- (break;)252 1362 A
- 5670 V
- (18668)210 648 A
- 1110(})S
- 5760 V
- (18669)210 648 A
- 1110(if)S
- ((sys_trace(request,)798 1236 A
- ((int))210 2076 A
- ((child)252 2328 A
- 2622(-)S
- (mproc),)294 2706 A
- (taddr,)252 3042 A
- (&data))252 3336 A
- 3630(!=)S
- (OK))126 3756 A
- 5850 V
- (18670)210 648 A
- (return(-errno);)630 1362 A
- 5940 V
- (18671)210 648 A
- (mm_out.m2_l2)504 1110 A
- 1656(=)S
- (data;)210 1740 A
- 6030 V
- (18672)210 648 A
- (return(OK);)462 1110 A
- 6120 V
- (18673)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 261 261
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2091(File:)S
- (src/mm/trace.c)660 2324 A
- 12 B
- (261)180 4248 A
- 900 V
- 7 LST
- (18675)210 648 A
- (/*===========================================================================*)3276 1026 A
- 990 V
- (18676)210 648 A
- 1068(*)S
- (findproc)336 2370 A
- 4260(*)S
- 1080 V
- (18677)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1170 V
- (18678)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (mproc)210 1656 A
- (*findproc(lpid))630 1908 A
- 1260 V
- (18679)210 648 A
- (pid_t)210 1026 A
- (lpid;)210 1278 A
- 1350 V
- (18680)210 648 A
- 1026({)S
- 1440 V
- (18681)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rmp;)210 2034 A
- 1530 V
- (18682)210 648 A
- 1620 V
- (18683)210 648 A
- (for)126 1110 A
- ((rmp)168 1278 A
- 1488(=)S
- (&mproc[INIT_PROC_NR)798 1572 A
- 2412(+)S
- (1];)126 2496 A
- (rmp)126 2664 A
- 2832(<)S
- (&mproc[NR_PROCS];)714 2916 A
- (rmp++))252 3672 A
- 1710 V
- (18684)210 648 A
- 1362(if)S
- ((rmp->mp_flags)588 1488 A
- 2118(&)S
- (IN_USE)252 2202 A
- 2496(&&)S
- (rmp->mp_pid)462 2622 A
- 3126(==)S
- (lpid))210 3252 A
- (return(rmp);)504 3504 A
- 1800 V
- (18685)210 648 A
- (return(NIL_MPROC);)756 1110 A
- 1890 V
- (18686)210 648 A
- 1026(})S
- 2070 V
- (18688)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2160 V
- (18689)210 648 A
- 1068(*)S
- (stop_proc)378 2370 A
- 4260(*)S
- 2250 V
- (18690)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2340 V
- (18691)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (stop_proc(rmp,)588 1530 A
- (signo))252 2160 A
- 2430 V
- (18692)210 648 A
- (register)336 1026 A
- (struct)252 1404 A
- (mproc)210 1698 A
- (*rmp;)210 1950 A
- 2520 V
- (18693)210 648 A
- (int)126 1026 A
- (signo;)252 1194 A
- 2610 V
- (18694)210 648 A
- 1026({)S
- 2700 V
- (18695)210 648 A
- 1026(/*)S
- 1152(A)S
- (traced)252 1236 A
- (process)294 1530 A
- (got)126 1866 A
- 2034(a)S
- (signal)252 2118 A
- 2412(so)S
- (stop)168 2538 A
- (it.)126 2748 A
- 2916(*/)S
- 2790 V
- (18696)210 648 A
- 2880 V
- (18697)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (mproc)210 1782 A
- (*rpmp)210 2034 A
- 2286(=)S
- (mproc)210 2370 A
- 2622(+)S
- (rmp->mp_parent;)630 2706 A
- 2970 V
- (18698)210 648 A
- 3060 V
- (18699)210 648 A
- 1110(if)S
- ((sys_trace(-1,)588 1236 A
- ((int))210 1866 A
- ((rmp)168 2118 A
- 2328(-)S
- (mproc),)294 2412 A
- (0L,)126 2748 A
- ((long)210 2916 A
- 3168(*))S
- 3294(0))S
- 3420(!=)S
- (OK))126 3546 A
- (return;)294 3714 A
- 3150 V
- (18700)210 648 A
- (rmp->mp_flags)546 1110 A
- 1698(|=)S
- (STOPPED;)336 1824 A
- 3240 V
- (18701)210 648 A
- 1110(if)S
- ((rpmp->mp_flags)630 1236 A
- 1908(&)S
- (WAITING))336 1992 A
- 2370({)S
- 3330 V
- (18702)210 648 A
- (rpmp->mp_flags)588 1362 A
- 1992(&=)S
- (304WAITING;)378 2118 A
- 2706(/*)S
- (parent)252 2832 A
- 3126(is)S
- 3252(no)S
- (longer)252 3378 A
- (waiting)294 3672 A
- 4008(*/)S
- 3420 V
- (18703)210 648 A
- (reply(rmp->mp_parent,)882 1362 A
- (rmp->mp_pid,)504 2286 A
- (0177)168 2832 A
- 3042(|)S
- ((signo)252 3126 A
- 3420(<<)S
- (8),)126 3546 A
- (NIL_PTR);)378 3714 A
- 3510 V
- (18704)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 3600 V
- (18705)210 648 A
- (rmp->mp_sigstatus)714 1362 A
- 2118(=)S
- (signo;)252 2202 A
- 3690 V
- (18706)210 648 A
- 1110(})S
- 3780 V
- (18707)210 648 A
- (return;)294 1110 A
- 3870 V
- (18708)210 648 A
- 1026(})S
- 4140 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4230 V
- (src/mm/alloc.c)588 2034 A
- 4320 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4500 V
- (18800)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- 1572(is)S
- (concerned)378 1698 A
- (with)168 2118 A
- (allocating)420 2328 A
- (and)126 2790 A
- (freeing)294 2958 A
- (arbitrary-size)588 3294 A
- (blocks)252 3924 A
- 4218(of)S
- 4590 V
- (18801)210 648 A
- 1068(*)S
- (physical)336 1152 A
- (memory)252 1530 A
- 1824(on)S
- (behalf)252 1950 A
- 2244(of)S
- (the)126 2370 A
- (FORK)168 2538 A
- (and)126 2748 A
- (EXEC)168 2916 A
- (system)252 3126 A
- (calls.)252 3420 A
- (The)126 3756 A
- (key)126 3924 A
- (data)168 4092 A
- 4680 V
- (18802)210 648 A
- 1068(*)S
- (structure)378 1152 A
- (used)168 1572 A
- 1782(is)S
- (the)126 1908 A
- (hole)168 2076 A
- (table,)252 2286 A
- (which)210 2580 A
- (maintains)378 2832 A
- 3252(a)S
- (list)168 3336 A
- 3546(of)S
- (holes)210 3672 A
- 3924(in)S
- (memory.)294 4050 A
- 4770 V
- (18803)210 648 A
- 1068(*)S
- 1152(It)S
- 1278(is)S
- (kept)168 1404 A
- (sorted)252 1614 A
- 1908(in)S
- (order)210 2034 A
- 2286(of)S
- (increasing)420 2412 A
- (memory)252 2874 A
- (address.)336 3168 A
- (The)126 3546 A
- (addresses)378 3714 A
- 4860 V
- (18804)210 648 A
- 1068(*)S
- 1152(it)S
- (contains)336 1278 A
- (refer)210 1656 A
- 1908(to)S
- (physical)336 2034 A
- (memory,)294 2412 A
- (starting)336 2748 A
- 3126(at)S
- (absolute)336 3252 A
- (address)294 3630 A
- 3966(0)S
- 4950 V
- (18805)210 648 A
- 1068(*)S
- ((i.e.,)252 1152 A
- (they)168 1446 A
- (are)126 1656 A
- (not)126 1824 A
- (relative)336 1992 A
- 2370(to)S
- (the)126 2496 A
- (start)210 2664 A
- 2916(of)S
- (MM).)168 3042 A
- (During)252 3294 A
- (system)252 3588 A
- 5040 V
- (18806)210 648 A
- 1068(*)S
- (initialization,)630 1152 A
- (that)168 1824 A
- (part)168 2034 A
- 2244(of)S
- (memory)252 2370 A
- (containing)420 2664 A
- (the)126 3126 A
- (interrupt)378 3294 A
- (vectors,)336 3714 A
- 5130 V
- (18807)210 648 A
- 1068(*)S
- (kernel,)294 1152 A
- (and)126 1488 A
- 1656(MM)S
- (are)126 1782 A
- ("allocated")462 1950 A
- 2454(to)S
- (mark)168 2580 A
- (them)168 2790 A
- 3000(as)S
- (not)126 3126 A
- (available)378 3294 A
- (and)126 3714 A
- 3882(to)S
- 5220 V
- (18808)210 648 A
- 1068(*)S
- (remove)252 1152 A
- (them)168 1446 A
- (from)168 1656 A
- (the)126 1866 A
- (hole)168 2034 A
- (list.)210 2244 A
- 5310 V
- (18809)210 648 A
- 1068(*)S
- 5400 V
- (18810)210 648 A
- 1068(*)S
- (The)126 1152 A
- (entry)210 1320 A
- (points)252 1572 A
- (into)168 1866 A
- (this)168 2076 A
- (file)168 2286 A
- (are:)168 2496 A
- 5490 V
- (18811)210 648 A
- 1068(*)S
- (alloc_mem:)420 1236 A
- (allocate)336 1698 A
- 2076(a)S
- (given)210 2160 A
- (sized)210 2412 A
- (chunk)210 2664 A
- 2916(of)S
- (memory)252 3042 A
- 5580 V
- (18812)210 648 A
- 1068(*)S
- (free_mem:)378 1236 A
- (release)294 1698 A
- 2034(a)S
- (previously)420 2118 A
- (allocated)378 2580 A
- (chunk)210 3000 A
- 3252(of)S
- (memory)252 3378 A
- 5670 V
- (18813)210 648 A
- 1068(*)S
- (mem_init:)378 1236 A
- (initialize)420 1698 A
- (the)126 2160 A
- (tables)252 2328 A
- (when)168 2622 A
- 2832(MM)S
- (start)210 2958 A
- 3210(up)S
- 5760 V
- (18814)210 648 A
- 1068(*)S
- (max_hole:)378 1236 A
- (returns)294 1698 A
- (the)126 2034 A
- (largest)294 2202 A
- (hole)168 2538 A
- (currently)378 2748 A
- (available)378 3168 A
- 5850 V
- (18815)210 648 A
- 1068(*/)S
- 5940 V
- (18816)210 648 A
- 6030 V
- (18817)210 648 A
- (#include)336 1026 A
- ("mm.h")252 1404 A
- 6120 V
- (18818)210 648 A
- (#include)336 1026 A
- (<minix/com.h>)546 1404 A
- 6210 V
- (18819)210 648 A
- 8418 V
- EP
- %%Page: 262 262
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (262)180 648 A
- 11 R
- 2092(File:)S
- 2325(src/mm/alloc.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (18820)210 648 A
- (#define)294 1026 A
- (NR_HOLES)336 1362 A
- (128)126 2076 A
- 2370(/*)S
- (max)126 2496 A
- 2664(#)S
- (entries)294 2748 A
- 3084(in)S
- (hole)168 3210 A
- (table)210 3420 A
- 3672(*/)S
- 990 V
- (18821)210 648 A
- (#define)294 1026 A
- (NIL_HOLE)336 1362 A
- ((struct)294 1740 A
- (hole)168 2076 A
- 2286(*))S
- 2412(0)S
- 1080 V
- (18822)210 648 A
- 1170 V
- (18823)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (hole)168 1656 A
- 1866({)S
- 1260 V
- (18824)210 648 A
- (phys_clicks)462 1110 A
- (h_base;)294 1614 A
- 2370(/*)S
- (where)210 2496 A
- (does)168 2748 A
- (the)126 2958 A
- (hole)168 3126 A
- (begin?)252 3336 A
- 3630(*/)S
- 1350 V
- (18825)210 648 A
- (phys_clicks)462 1110 A
- (h_len;)252 1614 A
- 2370(/*)S
- (how)126 2496 A
- (big)126 2664 A
- 2832(is)S
- (the)126 2958 A
- (hole?)210 3126 A
- 3378(*/)S
- 1440 V
- (18826)210 648 A
- (struct)252 1110 A
- (hole)168 1404 A
- (*h_next;)336 1614 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (next)168 2958 A
- (entry)210 3168 A
- 3420(on)S
- (the)126 3546 A
- (list)168 3714 A
- 3924(*/)S
- 1530 V
- (18827)210 648 A
- 1026(})S
- (hole[NR_HOLES];)630 1110 A
- 1620 V
- (18828)210 648 A
- 1710 V
- (18829)210 648 A
- 1800 V
- (18830)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (hole)168 1656 A
- (*hole_head;)462 1866 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (first)210 2958 A
- (hole)168 3210 A
- 3420(*/)S
- 1890 V
- (18831)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (hole)168 1656 A
- (*free_slots;)504 1866 A
- 2706(/*)S
- (ptr)126 2832 A
- 3000(to)S
- (list)168 3126 A
- 3336(of)S
- (unused)252 3462 A
- (table)210 3756 A
- (slots)210 4008 A
- 4260(*/)S
- 1980 V
- (18832)210 648 A
- 2070 V
- (18833)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (del_slot,)378 2076 A
- ((struct)294 2496 A
- (hole)168 2832 A
- (*prev_ptr,)420 3042 A
- (struct)252 3504 A
- (hole)168 3798 A
- (*hp))168 4008 A
- 4218();)S
- 2160 V
- (18834)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (merge,)252 2076 A
- ((struct)294 2370 A
- (hole)168 2706 A
- (*hp))168 2916 A
- 4218();)S
- 2250 V
- (18835)210 648 A
- 2340 V
- (18836)210 648 A
- 2430 V
- (18837)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2520 V
- (18838)210 648 A
- 1068(*)S
- (alloc_mem)378 2370 A
- 4260(*)S
- 2610 V
- (18839)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2700 V
- (18840)210 648 A
- (PUBLIC)252 1026 A
- (phys_clicks)462 1320 A
- (alloc_mem(clicks))714 1824 A
- 2790 V
- (18841)210 648 A
- (phys_clicks)462 1026 A
- (clicks;)294 1530 A
- 2370(/*)S
- (amount)252 2496 A
- 2790(of)S
- (memory)252 2916 A
- (requested)378 3210 A
- 3630(*/)S
- 2880 V
- (18842)210 648 A
- 1026({)S
- 2970 V
- (18843)210 648 A
- 1026(/*)S
- (Allocate)336 1152 A
- 1530(a)S
- (block)210 1614 A
- 1866(of)S
- (memory)252 1992 A
- (from)168 2286 A
- (the)126 2496 A
- (free)168 2664 A
- (list)168 2874 A
- (using)210 3084 A
- (first)210 3336 A
- (fit.)168 3588 A
- (The)126 3798 A
- (block)210 3966 A
- 3060 V
- (18844)210 648 A
- 1068(*)S
- (consists)336 1152 A
- 1530(of)S
- 1656(a)S
- (sequence)336 1740 A
- 2118(of)S
- (contiguous)420 2244 A
- (bytes,)252 2706 A
- (whose)210 3000 A
- (length)252 3252 A
- 3546(in)S
- (clicks)252 3672 A
- 3966(is)S
- 3150 V
- (18845)210 648 A
- 1068(*)S
- (given)210 1152 A
- 1404(by)S
- ('clicks'.)378 1530 A
- 1992(A)S
- (pointer)294 2076 A
- 2412(to)S
- (the)126 2538 A
- (block)210 2706 A
- 2958(is)S
- (returned.)378 3084 A
- (The)126 3546 A
- (block)210 3714 A
- 3966(is)S
- 3240 V
- (18846)210 648 A
- 1068(*)S
- (always)252 1152 A
- 1446(on)S
- 1572(a)S
- (click)210 1656 A
- (boundary.)378 1908 A
- (This)168 2370 A
- (procedure)378 2580 A
- 3000(is)S
- (called)252 3126 A
- (when)168 3420 A
- (memory)252 3630 A
- 3924(is)S
- 3330 V
- (18847)210 648 A
- 1068(*)S
- (needed)252 1152 A
- (for)126 1446 A
- (FORK)168 1614 A
- 1824(or)S
- (EXEC.)210 1950 A
- 3420 V
- (18848)210 648 A
- 1068(*/)S
- 3510 V
- (18849)210 648 A
- 3600 V
- (18850)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (hole)168 1782 A
- (*hp,)168 1992 A
- (*prev_ptr;)420 2202 A
- 3690 V
- (18851)210 648 A
- (phys_clicks)462 1110 A
- (old_base;)378 1614 A
- 3780 V
- (18852)210 648 A
- 3870 V
- (18853)210 648 A
- 1110(hp)S
- 1236(=)S
- (hole_head;)420 1320 A
- 3960 V
- (18854)210 648 A
- (while)210 1110 A
- ((hp)126 1362 A
- 1530(!=)S
- (NIL_HOLE))378 1656 A
- 2076({)S
- 4050 V
- (18855)210 648 A
- 1362(if)S
- ((hp->h_len)420 1488 A
- 1950(>=)S
- (clicks))294 2076 A
- 2412({)S
- 4140 V
- (18856)210 648 A
- 1698(/*)S
- 1824(We)S
- (found)210 1950 A
- 2202(a)S
- (hole)168 2286 A
- (that)168 2496 A
- 2706(is)S
- (big)126 2832 A
- (enough.)294 3000 A
- (Use)126 3378 A
- (it.)126 3546 A
- 3714(*/)S
- 4230 V
- (18857)210 648 A
- (old_base)336 1698 A
- 2076(=)S
- (hp->h_base;)462 2160 A
- 2706(/*)S
- (remember)336 2832 A
- (where)210 3210 A
- 3462(it)S
- (started)294 3588 A
- 3924(*/)S
- 4320 V
- (18858)210 648 A
- (hp->h_base)420 1698 A
- 2160(+=)S
- (clicks;)294 2286 A
- 2706(/*)S
- (bite)168 2832 A
- 3042(a)S
- (piece)210 3126 A
- (off)126 3378 A
- 3546(*/)S
- 4410 V
- (18859)210 648 A
- (hp->h_len)378 1698 A
- 2118(-=)S
- (clicks;)294 2244 A
- 2706(/*)S
- (ditto)210 2832 A
- 3084(*/)S
- 4500 V
- (18860)210 648 A
- 4590 V
- (18861)210 648 A
- 1698(/*)S
- 1824(If)S
- (hole)168 1950 A
- 2160(is)S
- (only)168 2286 A
- (partly)252 2496 A
- (used,)210 2790 A
- (reduce)252 3042 A
- (size)168 3336 A
- (and)126 3546 A
- (return.)294 3714 A
- 4050(*/)S
- 4680 V
- (18862)210 648 A
- 1698(if)S
- ((hp->h_len)420 1824 A
- 2286(!=)S
- 2412(0))S
- (return(old_base);)714 2538 A
- 4770 V
- (18863)210 648 A
- 4860 V
- (18864)210 648 A
- 1698(/*)S
- (The)126 1824 A
- (entire)252 1992 A
- (hole)168 2286 A
- (has)126 2496 A
- (been)168 2664 A
- (used)168 2874 A
- (up.)126 3084 A
- (Manipulate)420 3294 A
- (free)168 3756 A
- (list.)210 3966 A
- 4218(*/)S
- 4950 V
- (18865)210 648 A
- (del_slot(prev_ptr,)756 1698 A
- (hp);)168 2496 A
- 5040 V
- (18866)210 648 A
- (return(old_base);)714 1698 A
- 5130 V
- (18867)210 648 A
- 1362(})S
- 5220 V
- (18868)210 648 A
- 5310 V
- (18869)210 648 A
- (prev_ptr)336 1362 A
- 1740(=)S
- (hp;)126 1824 A
- 5400 V
- (18870)210 648 A
- 1362(hp)S
- 1488(=)S
- (hp->h_next;)462 1572 A
- 5490 V
- (18871)210 648 A
- 1110(})S
- 5580 V
- (18872)210 648 A
- (return(NO_MEM);)630 1110 A
- 5670 V
- (18873)210 648 A
- 1026(})S
- 5940 V
- (18876)210 648 A
- (/*===========================================================================*)3276 1026 A
- 6030 V
- (18877)210 648 A
- 1068(*)S
- (free_mem)336 2370 A
- 4260(*)S
- 6120 V
- (18878)210 648 A
- (*===========================================================================*/)3276 1068 A
- 6210 V
- (18879)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (free_mem(base,)588 1530 A
- (clicks))294 2160 A
- 8418 V
- EP
- %%Page: 263 263
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2092(File:)S
- 2325(src/mm/alloc.c)S
- 12 B
- (263)180 4248 A
- 900 V
- 7 LST
- (18880)210 648 A
- (phys_clicks)462 1026 A
- (base;)210 1530 A
- 2370(/*)S
- (base)168 2496 A
- (address)294 2706 A
- 3042(of)S
- (block)210 3168 A
- 3420(to)S
- (free)168 3546 A
- 3756(*/)S
- 990 V
- (18881)210 648 A
- (phys_clicks)462 1026 A
- (clicks;)294 1530 A
- 2370(/*)S
- (number)252 2496 A
- 2790(of)S
- (clicks)252 2916 A
- 3210(to)S
- (free)168 3336 A
- 3546(*/)S
- 1080 V
- (18882)210 648 A
- 1026({)S
- 1170 V
- (18883)210 648 A
- 1026(/*)S
- (Return)252 1152 A
- 1446(a)S
- (block)210 1530 A
- 1782(of)S
- (free)168 1908 A
- (memory)252 2118 A
- 2412(to)S
- (the)126 2538 A
- (hole)168 2706 A
- (list.)210 2916 A
- (The)126 3210 A
- (parameters)420 3378 A
- (tell)168 3840 A
- (where)210 4050 A
- 1260 V
- (18884)210 648 A
- 1068(*)S
- (the)126 1152 A
- (block)210 1320 A
- (starts)252 1572 A
- 1866(in)S
- (physical)336 1992 A
- (memory)252 2370 A
- (and)126 2664 A
- (how)126 2832 A
- (big)126 3000 A
- 3168(it)S
- (is.)126 3294 A
- (The)126 3504 A
- (block)210 3672 A
- 3924(is)S
- (added)210 4050 A
- 1350 V
- (18885)210 648 A
- 1068(*)S
- 1152(to)S
- (the)126 1278 A
- (hole)168 1446 A
- (list.)210 1656 A
- 1950(If)S
- 2076(it)S
- 2202(is)S
- (contiguous)420 2328 A
- (with)168 2790 A
- 3000(an)S
- (existing)336 3126 A
- (hole)168 3504 A
- 3714(on)S
- (either)252 3840 A
- (end,)168 4134 A
- 1440 V
- (18886)210 648 A
- 1068(*)S
- 1152(it)S
- 1278(is)S
- (merged)252 1404 A
- (with)168 1698 A
- (the)126 1908 A
- (hole)168 2076 A
- 2286(or)S
- (holes.)252 2412 A
- 1530 V
- (18887)210 648 A
- 1068(*/)S
- 1620 V
- (18888)210 648 A
- 1710 V
- (18889)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (hole)168 1782 A
- (*hp,)168 1992 A
- (*new_ptr,)378 2202 A
- (*prev_ptr;)420 2622 A
- 1800 V
- (18890)210 648 A
- 1890 V
- (18891)210 648 A
- 1110(if)S
- ((clicks)294 1236 A
- 1572(==)S
- 1698(0))S
- (return;)294 1824 A
- 1980 V
- (18892)210 648 A
- 1110(if)S
- 1236(()S
- ((new_ptr)336 1320 A
- 1698(=)S
- (free_slots))462 1782 A
- 2286(==)S
- (NIL_HOLE))378 2412 A
- (panic("Hole)462 2832 A
- (table)210 3336 A
- (full",)252 3588 A
- (NO_NUM);)336 3882 A
- 2070 V
- (18893)210 648 A
- (new_ptr->h_base)630 1110 A
- 1782(=)S
- (base;)210 1866 A
- 2160 V
- (18894)210 648 A
- (new_ptr->h_len)588 1110 A
- 1740(=)S
- (clicks;)294 1824 A
- 2250 V
- (18895)210 648 A
- (free_slots)420 1110 A
- 1572(=)S
- (new_ptr->h_next;)672 1656 A
- 2340 V
- (18896)210 648 A
- 1110(hp)S
- 1236(=)S
- (hole_head;)420 1320 A
- 2430 V
- (18897)210 648 A
- 2520 V
- (18898)210 648 A
- 1110(/*)S
- 1236(If)S
- (this)168 1362 A
- (block's)294 1572 A
- (address)294 1908 A
- 2244(is)S
- (numerically)462 2370 A
- (less)168 2874 A
- (than)168 3084 A
- (the)126 3294 A
- (lowest)252 3462 A
- (hole)168 3756 A
- (currently)378 3966 A
- 2610 V
- (18899)210 648 A
- 1152(*)S
- (available,)420 1236 A
- 1698(or)S
- 1824(if)S
- 1950(no)S
- (holes)210 2076 A
- (are)126 2328 A
- (currently)378 2496 A
- (available,)420 2916 A
- (put)126 3378 A
- (this)168 3546 A
- (hole)168 3756 A
- 3966(on)S
- (the)126 4092 A
- 2700 V
- (18900)210 648 A
- 1152(*)S
- (front)210 1236 A
- 1488(of)S
- (the)126 1614 A
- (hole)168 1782 A
- (list.)210 1992 A
- 2790 V
- (18901)210 648 A
- 1152(*/)S
- 2880 V
- (18902)210 648 A
- 1110(if)S
- ((hp)126 1236 A
- 1404(==)S
- (NIL_HOLE)336 1530 A
- 1908(||)S
- (base)168 2034 A
- 2244(<=)S
- (hp->h_base))462 2370 A