BOOK.PS
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:2328k
- (22112)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 4320 V
- (22113)210 648 A
- (return(EINVAL);)630 1362 A
- 4410 V
- (22114)210 648 A
- 1110(})S
- 4500 V
- (22115)210 648 A
- 4590 V
- (22116)210 648 A
- 1110(/*)S
- 1236(If)S
- (the)126 1362 A
- (super)210 1530 A
- (block)210 1782 A
- (has)126 2034 A
- (the)126 2202 A
- (wrong)210 2370 A
- (byte)168 2622 A
- (order,)252 2832 A
- (swap)168 3126 A
- (the)126 3336 A
- (fields;)294 3504 A
- (the)126 3840 A
- (magic)210 4008 A
- 4680 V
- (22117)210 648 A
- 1152(*)S
- (number)252 1236 A
- (doesn't)294 1530 A
- (need)168 1866 A
- (conversion.)462 2076 A
- 2580(*/)S
- 4770 V
- (22118)210 648 A
- (sp->s_ninodes)546 1110 A
- 1698(=)S
- (conv2(native,)546 2034 A
- ((int))210 2622 A
- (sp->s_ninodes);)630 2874 A
- 4860 V
- (22119)210 648 A
- (sp->s_nzones)504 1110 A
- 1656(=)S
- (conv2(native,)546 2034 A
- ((int))210 2622 A
- (sp->s_nzones);)588 2874 A
- 4950 V
- (22120)210 648 A
- (sp->s_imap_blocks)714 1110 A
- 1866(=)S
- (conv2(native,)546 2034 A
- ((int))210 2622 A
- (sp->s_imap_blocks);)798 2874 A
- 5040 V
- (22121)210 648 A
- (sp->s_zmap_blocks)714 1110 A
- 1866(=)S
- (conv2(native,)546 2034 A
- ((int))210 2622 A
- (sp->s_zmap_blocks);)798 2874 A
- 5130 V
- (22122)210 648 A
- (sp->s_firstdatazone)798 1110 A
- 1950(=)S
- (conv2(native,)546 2034 A
- ((int))210 2622 A
- (sp->s_firstdatazone);)882 2874 A
- 5220 V
- (22123)210 648 A
- (sp->s_log_zone_size)798 1110 A
- 1950(=)S
- (conv2(native,)546 2034 A
- ((int))210 2622 A
- (sp->s_log_zone_size);)882 2874 A
- 5310 V
- (22124)210 648 A
- (sp->s_max_size)588 1110 A
- 1740(=)S
- (conv4(native,)546 2034 A
- (sp->s_max_size);)672 2622 A
- 5400 V
- (22125)210 648 A
- (sp->s_zones)462 1110 A
- 1614(=)S
- (conv4(native,)546 2034 A
- (sp->s_zones);)546 2622 A
- 5490 V
- (22126)210 648 A
- 5580 V
- (22127)210 648 A
- 1110(/*)S
- 1236(In)S
- (V1,)126 1362 A
- (the)126 1530 A
- (device)252 1698 A
- (size)168 1992 A
- (was)126 2202 A
- (kept)168 2370 A
- 2580(in)S
- 2706(a)S
- (short,)252 2790 A
- (s_nzones,)378 3084 A
- (which)210 3504 A
- (limited)294 3756 A
- 5670 V
- (22128)210 648 A
- 1152(*)S
- (devices)294 1236 A
- 1572(to)S
- (32K)126 1698 A
- (zones.)252 1866 A
- (For)126 2202 A
- (V2,)126 2370 A
- 2538(it)S
- (was)126 2664 A
- (decided)294 2832 A
- 3168(to)S
- (keep)168 3294 A
- (the)126 3504 A
- (size)168 3672 A
- 3882(as)S
- 4008(a)S
- 5760 V
- (22129)210 648 A
- 1152(*)S
- (long.)210 1236 A
- (However,)336 1530 A
- (just)168 1908 A
- (changing)336 2118 A
- (s_nzones)336 2496 A
- 2874(to)S
- 3000(a)S
- (long)168 3084 A
- (would)210 3294 A
- (not)126 3546 A
- (work,)210 3714 A
- (since)210 3966 A
- 5850 V
- (22130)210 648 A
- 1152(*)S
- (then)168 1236 A
- (the)126 1446 A
- (position)336 1614 A
- 1992(of)S
- (s_magic)294 2118 A
- 2454(in)S
- (the)126 2580 A
- (super)210 2748 A
- (block)210 3000 A
- (would)210 3252 A
- (not)126 3504 A
- 3672(be)S
- (the)126 3798 A
- (same)168 3966 A
- 5940 V
- (22131)210 648 A
- 1152(*)S
- 1236(in)S
- 1362(V1)S
- (and)126 1488 A
- 1656(V2)S
- (file)168 1782 A
- (systems,)336 1992 A
- (and)126 2370 A
- (there)210 2538 A
- (would)210 2790 A
- 3042(be)S
- 3168(no)S
- (way)126 3294 A
- 3462(to)S
- (tell)168 3588 A
- (whether)294 3798 A
- 6030 V
- (22132)210 648 A
- 1152(*)S
- 1236(a)S
- (newly)210 1320 A
- (mounted)294 1572 A
- (file)168 1908 A
- (system)252 2118 A
- (was)126 2412 A
- 2580(V1)S
- 2706(or)S
- (V2.)126 2832 A
- (The)126 3042 A
- (solution)336 3210 A
- (was)126 3588 A
- 3756(to)S
- (introduce)378 3882 A
- 6120 V
- (22133)210 648 A
- 1152(*)S
- 1236(a)S
- (new)126 1320 A
- (variable,)378 1488 A
- (s_zones,)336 1908 A
- (and)126 2286 A
- (copy)168 2454 A
- (the)126 2664 A
- (size)168 2832 A
- (there.)252 3042 A
- 6210 V
- (22134)210 648 A
- 1152(*)S
- 8418 V
- EP
- %%Page: 301 301
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2126(File:)S
- 2359(src/fs/super.c)S
- 12 B
- (301)180 4248 A
- 900 V
- 7 LST
- (22135)210 648 A
- 1152(*)S
- (Calculate)378 1236 A
- (some)168 1656 A
- (other)210 1866 A
- (numbers)294 2118 A
- (that)168 2454 A
- (depend)252 2664 A
- 2958(on)S
- (the)126 3084 A
- (version)294 3252 A
- (here)168 3588 A
- (too,)168 3798 A
- 4008(to)S
- 990 V
- (22136)210 648 A
- 1152(*)S
- (hide)168 1236 A
- (some)168 1446 A
- 1656(of)S
- (the)126 1782 A
- (differences.)504 1950 A
- 1080 V
- (22137)210 648 A
- 1152(*/)S
- 1170 V
- (22138)210 648 A
- 1110(if)S
- ((version)336 1236 A
- 1614(==)S
- (V1))126 1740 A
- 1908({)S
- 1260 V
- (22139)210 648 A
- (sp->s_zones)462 1362 A
- 1866(=)S
- (sp->s_nzones;)546 1950 A
- 2706(/*)S
- (only)168 2832 A
- 3042(V1)S
- (needs)210 3168 A
- (this)168 3420 A
- (copy)168 3630 A
- 3840(*/)S
- 1350 V
- (22140)210 648 A
- (sp->s_inodes_per_block)924 1362 A
- 2328(=)S
- (V1_INODES_PER_BLOCK;)840 2412 A
- 1440 V
- (22141)210 648 A
- (sp->s_ndzones)546 1362 A
- 1950(=)S
- (V1_NR_DZONES;)546 2034 A
- 1530 V
- (22142)210 648 A
- (sp->s_nindirs)546 1362 A
- 1950(=)S
- (V1_INDIRECTS;)546 2034 A
- 1620 V
- (22143)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 1710 V
- (22144)210 648 A
- (sp->s_inodes_per_block)924 1362 A
- 2328(=)S
- (V2_INODES_PER_BLOCK;)840 2412 A
- 1800 V
- (22145)210 648 A
- (sp->s_ndzones)546 1362 A
- 1950(=)S
- (V2_NR_DZONES;)546 2034 A
- 1890 V
- (22146)210 648 A
- (sp->s_nindirs)546 1362 A
- 1950(=)S
- (V2_INDIRECTS;)546 2034 A
- 1980 V
- (22147)210 648 A
- 1110(})S
- 2070 V
- (22148)210 648 A
- 2160 V
- (22149)210 648 A
- (sp->s_isearch)546 1110 A
- 1698(=)S
- 1782(0;)S
- 2370(/*)S
- (inode)210 2496 A
- (searches)336 2748 A
- (initially)378 3126 A
- (start)210 3546 A
- 3798(at)S
- 3924(0)S
- 4008(*/)S
- 2250 V
- (22150)210 648 A
- (sp->s_zsearch)546 1110 A
- 1698(=)S
- 1782(0;)S
- 2370(/*)S
- (zone)168 2496 A
- (searches)336 2706 A
- (initially)378 3084 A
- (start)210 3504 A
- 3756(at)S
- 3882(0)S
- 3966(*/)S
- 2340 V
- (22151)210 648 A
- (sp->s_version)546 1110 A
- 1698(=)S
- (version;)336 1782 A
- 2430 V
- (22152)210 648 A
- (sp->s_native)504 1110 A
- 1698(=)S
- (native;)294 1782 A
- 2520 V
- (22153)210 648 A
- 2610 V
- (22154)210 648 A
- 1110(/*)S
- (Make)168 1236 A
- 1446(a)S
- (few)126 1530 A
- (basic)210 1698 A
- (checks)252 1950 A
- 2244(to)S
- (see)126 2370 A
- 2538(if)S
- (super)210 2664 A
- (block)210 2916 A
- (looks)210 3168 A
- (reasonable.)462 3420 A
- 3924(*/)S
- 2700 V
- (22155)210 648 A
- 1110(if)S
- ((sp->s_imap_blocks)756 1236 A
- 2034(<)S
- 2118(1)S
- 2202(||)S
- (sp->s_zmap_blocks)714 2328 A
- 3084(<)S
- 3168(1)S
- 2790 V
- (22156)210 648 A
- 2370(||)S
- (sp->s_ninodes)546 2496 A
- 3084(<)S
- 3168(1)S
- 3252(||)S
- (sp->s_zones)462 3378 A
- 3882(<)S
- 3966(1)S
- 2880 V
- (22157)210 648 A
- 2370(||)S
- ((unsigned))420 2496 A
- (sp->s_log_zone_size)798 2958 A
- 3798(>)S
- 3882(4))S
- 4008({)S
- 2970 V
- (22158)210 648 A
- (return(EINVAL);)630 1362 A
- 3060 V
- (22159)210 648 A
- 1110(})S
- 3150 V
- (22160)210 648 A
- (sp->s_dev)378 1110 A
- 1530(=)S
- (dev;)168 1614 A
- 2370(/*)S
- (restore)294 2496 A
- (device)252 2832 A
- (number)252 3126 A
- 3420(*/)S
- 3240 V
- (22161)210 648 A
- (return(OK);)462 1110 A
- 3330 V
- (22162)210 648 A
- 1026(})S
- 3690 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 3780 V
- (src/fs/filedes.c)672 2034 A
- 3870 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4050 V
- (22200)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (procedures)420 2118 A
- (that)168 2580 A
- (manipulate)420 2790 A
- (file)168 3252 A
- (descriptors.)504 3462 A
- 4140 V
- (22201)210 648 A
- 1068(*)S
- 4230 V
- (22202)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)126 2496 A
- 4320 V
- (22203)210 648 A
- 1068(*)S
- (get_fd:)294 1236 A
- (look)168 1698 A
- (for)126 1908 A
- (free)168 2076 A
- (file)168 2286 A
- (descriptor)420 2496 A
- (and)126 2958 A
- (free)168 3126 A
- (filp)168 3336 A
- (slots)210 3546 A
- 4410 V
- (22204)210 648 A
- 1068(*)S
- (get_filp:)378 1236 A
- (look)168 1698 A
- 1908(up)S
- (the)126 2034 A
- (filp)168 2202 A
- (entry)210 2412 A
- (for)126 2664 A
- 2832(a)S
- (given)210 2916 A
- (file)168 3168 A
- (descriptor)420 3378 A
- 4500 V
- (22205)210 648 A
- 1068(*)S
- (find_filp:)420 1236 A
- (find)168 1698 A
- 1908(a)S
- (filp)168 1992 A
- (slot)168 2202 A
- (that)168 2412 A
- (points)252 2622 A
- 2916(to)S
- 3042(a)S
- (given)210 3126 A
- (inode)210 3378 A
- 4590 V
- (22206)210 648 A
- 1068(*/)S
- 4680 V
- (22207)210 648 A
- 4770 V
- (22208)210 648 A
- (#include)336 1026 A
- ("fs.h")252 1404 A
- 4860 V
- (22209)210 648 A
- (#include)336 1026 A
- ("file.h")336 1404 A
- 4950 V
- (22210)210 648 A
- (#include)336 1026 A
- ("fproc.h")378 1404 A
- 5040 V
- (22211)210 648 A
- (#include)336 1026 A
- ("inode.h")378 1404 A
- 5130 V
- (22212)210 648 A
- 5220 V
- (22213)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5310 V
- (22214)210 648 A
- 1068(*)S
- (get_fd)252 2370 A
- 4260(*)S
- 5400 V
- (22215)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5490 V
- (22216)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (get_fd(start,)546 1488 A
- (bits,)210 2076 A
- 2328(k,)S
- (fpt))168 2454 A
- 5580 V
- (22217)210 648 A
- (int)126 1026 A
- (start;)252 1194 A
- 2370(/*)S
- (start)210 2496 A
- 2748(of)S
- (search)252 2874 A
- ((used)210 3168 A
- (for)126 3420 A
- (F_DUPFD))336 3588 A
- 3966(*/)S
- 5670 V
- (22218)210 648 A
- (mode_t)252 1026 A
- (bits;)210 1320 A
- 2370(/*)S
- (mode)168 2496 A
- 2706(of)S
- (the)126 2832 A
- (file)168 3000 A
- 3210(to)S
- 3336(be)S
- (created)294 3462 A
- ((RWX)168 3798 A
- (bits))210 4008 A
- 4260(*/)S
- 5760 V
- (22219)210 648 A
- (int)126 1026 A
- (*k;)126 1194 A
- 2370(/*)S
- (place)210 2496 A
- 2748(to)S
- (return)252 2874 A
- (file)168 3168 A
- (descriptor)420 3378 A
- 3840(*/)S
- 5850 V
- (22220)210 648 A
- (struct)252 1026 A
- (filp)168 1320 A
- (**fpt;)252 1530 A
- 2370(/*)S
- (place)210 2496 A
- 2748(to)S
- (return)252 2874 A
- (filp)168 3168 A
- (slot)168 3378 A
- 3588(*/)S
- 5940 V
- (22221)210 648 A
- 1026({)S
- 6030 V
- (22222)210 648 A
- 1026(/*)S
- (Look)168 1152 A
- (for)126 1362 A
- 1530(a)S
- (free)168 1614 A
- (file)168 1824 A
- (descriptor)420 2034 A
- (and)126 2496 A
- 2664(a)S
- (free)168 2748 A
- (filp)168 2958 A
- (slot.)210 3168 A
- (Fill)168 3462 A
- 3672(in)S
- (the)126 3798 A
- (mode)168 3966 A
- (word)168 4176 A
- 6120 V
- (22223)210 648 A
- 1068(*)S
- 1152(in)S
- (the)126 1278 A
- (latter,)294 1446 A
- (but)126 1782 A
- (don't)210 1950 A
- (claim)210 2202 A
- (either)252 2454 A
- (one)126 2748 A
- (yet,)168 2916 A
- (since)210 3126 A
- (the)126 3378 A
- (open())252 3546 A
- 3840(or)S
- (creat())294 3966 A
- 6210 V
- (22224)210 648 A
- 1068(*)S
- (may)126 1152 A
- (yet)126 1320 A
- (fail.)210 1488 A
- 8418 V
- EP
- %%Page: 302 302
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (302)180 648 A
- 11 R
- 2098(File:)S
- 2331(src/fs/filedes.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22225)210 648 A
- 1068(*/)S
- 990 V
- (22226)210 648 A
- 1080 V
- (22227)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (filp)168 1782 A
- (*f;)126 1992 A
- 1170 V
- (22228)210 648 A
- (register)336 1110 A
- (int)126 1488 A
- 1656(i;)S
- 1260 V
- (22229)210 648 A
- 1350 V
- (22230)210 648 A
- 1110(*k)S
- 1236(=)S
- (-1;)126 1320 A
- 2370(/*)S
- 2496(we)S
- (need)168 2622 A
- 2832(a)S
- (way)126 2916 A
- 3084(to)S
- (tell)168 3210 A
- 3420(if)S
- (file)168 3546 A
- (desc)168 3756 A
- (found)210 3966 A
- 4218(*/)S
- 1440 V
- (22231)210 648 A
- 1530 V
- (22232)210 648 A
- 1110(/*)S
- (Search)252 1236 A
- (the)126 1530 A
- (fproc)210 1698 A
- (fp_filp)294 1950 A
- (table)210 2286 A
- (for)126 2538 A
- 2706(a)S
- (free)168 2790 A
- (file)168 3000 A
- (descriptor.)462 3210 A
- 3714(*/)S
- 1620 V
- (22233)210 648 A
- (for)126 1110 A
- 1278((i)S
- 1404(=)S
- (start;)252 1488 A
- 1782(i)S
- 1866(<)S
- (OPEN_MAX;)378 1950 A
- (i++))168 2370 A
- 2580({)S
- 1710 V
- (22234)210 648 A
- 1362(if)S
- ((fp->fp_filp[i])630 1488 A
- 2160(==)S
- (NIL_FILP))378 2286 A
- 2706({)S
- 1800 V
- (22235)210 648 A
- 1698(/*)S
- 1824(A)S
- (file)168 1908 A
- (descriptor)420 2118 A
- (has)126 2580 A
- (been)168 2748 A
- (located.)336 2958 A
- 3336(*/)S
- 1890 V
- (22236)210 648 A
- 1698(*k)S
- 1824(=)S
- 1908(i;)S
- 1980 V
- (22237)210 648 A
- (break;)252 1698 A
- 2070 V
- (22238)210 648 A
- 1362(})S
- 2160 V
- (22239)210 648 A
- 1110(})S
- 2250 V
- (22240)210 648 A
- 2340 V
- (22241)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- 1908(a)S
- (file)168 1992 A
- (descriptor)420 2202 A
- (has)126 2664 A
- (been)168 2832 A
- (found.)252 3042 A
- 3336(*/)S
- 2430 V
- (22242)210 648 A
- 1110(if)S
- ((*k)126 1236 A
- 1404(<)S
- 1488(0))S
- (return(EMFILE);)630 1614 A
- 2370(/*)S
- (this)168 2496 A
- 2706(is)S
- (why)126 2832 A
- 3000(we)S
- (initialized)462 3126 A
- 3630(k)S
- 3714(to)S
- 3840(-1)S
- 3966(*/)S
- 2520 V
- (22243)210 648 A
- 2610 V
- (22244)210 648 A
- 1110(/*)S
- (Now)126 1236 A
- (that)168 1404 A
- 1614(a)S
- (file)168 1698 A
- (descriptor)420 1908 A
- (has)126 2370 A
- (been)168 2538 A
- (found,)252 2748 A
- (look)168 3042 A
- (for)126 3252 A
- 3420(a)S
- (free)168 3504 A
- (filp)168 3714 A
- (slot.)210 3924 A
- 4176(*/)S
- 2700 V
- (22245)210 648 A
- (for)126 1110 A
- 1278((f)S
- 1404(=)S
- (&filp[0];)378 1488 A
- 1908(f)S
- 1992(<)S
- (&filp[NR_FILPS];)672 2076 A
- (f++))168 2790 A
- 3000({)S
- 2790 V
- (22246)210 648 A
- 1362(if)S
- ((f->filp_count)588 1488 A
- 2118(==)S
- 2244(0))S
- 2370({)S
- 2880 V
- (22247)210 648 A
- (f->filp_mode)504 1698 A
- 2244(=)S
- (bits;)210 2328 A
- 2970 V
- (22248)210 648 A
- (f->filp_pos)462 1698 A
- 2202(=)S
- (0L;)126 2286 A
- 3060 V
- (22249)210 648 A
- (f->filp_flags)546 1698 A
- 2286(=)S
- 2370(0;)S
- 3150 V
- (22250)210 648 A
- (*fpt)168 1698 A
- 1908(=)S
- 1992(f;)S
- 3240 V
- (22251)210 648 A
- (return(OK);)462 1698 A
- 3330 V
- (22252)210 648 A
- 1362(})S
- 3420 V
- (22253)210 648 A
- 1110(})S
- 3510 V
- (22254)210 648 A
- 3600 V
- (22255)210 648 A
- 1110(/*)S
- 1236(If)S
- (control)294 1362 A
- (passes)252 1698 A
- (here,)210 1992 A
- (the)126 2244 A
- (filp)168 2412 A
- (table)210 2622 A
- (must)168 2874 A
- 3084(be)S
- (full.)210 3210 A
- (Report)252 3504 A
- (that)168 3798 A
- (back.)210 4008 A
- 4260(*/)S
- 3690 V
- (22256)210 648 A
- (return(ENFILE);)630 1110 A
- 3780 V
- (22257)210 648 A
- 1026(})S
- 4050 V
- (22260)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4140 V
- (22261)210 648 A
- 1068(*)S
- (get_filp)336 2370 A
- 4260(*)S
- 4230 V
- (22262)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4320 V
- (22263)210 648 A
- (PUBLIC)252 1026 A
- (struct)252 1320 A
- (filp)168 1614 A
- (*get_filp(fild))630 1824 A
- 4410 V
- (22264)210 648 A
- (int)126 1026 A
- (fild;)210 1194 A
- 2370(/*)S
- (file)168 2496 A
- (descriptor)420 2706 A
- 3168(*/)S
- 4500 V
- (22265)210 648 A
- 1026({)S
- 4590 V
- (22266)210 648 A
- 1026(/*)S
- (See)126 1152 A
- 1320(if)S
- ('fild')252 1446 A
- (refers)252 1740 A
- 2034(to)S
- 2160(a)S
- (valid)210 2244 A
- (file)168 2496 A
- (descr.)252 2706 A
- 3042(If)S
- (so,)126 3168 A
- (return)252 3336 A
- (its)126 3630 A
- (filp)168 3798 A
- (ptr.)168 4008 A
- 4218(*/)S
- 4680 V
- (22267)210 648 A
- 4770 V
- (22268)210 648 A
- (err_code)336 1110 A
- 1488(=)S
- (EBADF;)252 1572 A
- 4860 V
- (22269)210 648 A
- 1110(if)S
- ((fild)210 1236 A
- 1488(<)S
- 1572(0)S
- 1656(||)S
- (fild)168 1782 A
- 1992(>=)S
- (OPEN_MAX)336 2118 A
- 2496())S
- (return(NIL_FILP);)714 2580 A
- 4950 V
- (22270)210 648 A
- (return(fp->fp_filp[fild]);)1092 1110 A
- 2370(/*)S
- (may)126 2496 A
- (also)168 2664 A
- 2874(be)S
- (NIL_FILP)336 3000 A
- 3378(*/)S
- 5040 V
- (22271)210 648 A
- 1026(})S
- 5310 V
- (22274)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5400 V
- (22275)210 648 A
- 1068(*)S
- (find_filp)378 2370 A
- 4260(*)S
- 5490 V
- (22276)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5580 V
- (22277)210 648 A
- (PUBLIC)252 1026 A
- (struct)252 1320 A
- (filp)168 1614 A
- (*find_filp(rip,)630 1824 A
- (bits))210 2496 A
- 5670 V
- (22278)210 648 A
- (register)336 1026 A
- (struct)252 1404 A
- (inode)210 1698 A
- (*rip;)210 1950 A
- 2370(/*)S
- (inode)210 2496 A
- (referred)336 2748 A
- 3126(to)S
- 3252(by)S
- (the)126 3378 A
- (filp)168 3546 A
- 3756(to)S
- 3882(be)S
- (found)210 4008 A
- 4260(*/)S
- 5760 V
- (22279)210 648 A
- (Mode_t)252 1026 A
- (bits;)210 1320 A
- 2370(/*)S
- (mode)168 2496 A
- 2706(of)S
- (the)126 2832 A
- (filp)168 3000 A
- 3210(to)S
- 3336(be)S
- (found)210 3462 A
- ((RWX)168 3714 A
- (bits))210 3924 A
- 4176(*/)S
- 5850 V
- (22280)210 648 A
- 1026({)S
- 5940 V
- (22281)210 648 A
- 1026(/*)S
- (Find)168 1152 A
- 1362(a)S
- (filp)168 1446 A
- (slot)168 1656 A
- (that)168 1866 A
- (refers)252 2076 A
- 2370(to)S
- (the)126 2496 A
- (inode)210 2664 A
- ('rip')210 2916 A
- 3168(in)S
- 3294(a)S
- (way)126 3378 A
- 3546(as)S
- (described)378 3672 A
- 6030 V
- (22282)210 648 A
- 1068(*)S
- 1152(by)S
- (the)126 1278 A
- (mode)168 1446 A
- (bit)126 1656 A
- ('bits'.)294 1824 A
- (Used)168 2160 A
- (for)126 2370 A
- (determining)462 2538 A
- (whether)294 3042 A
- (somebody)336 3378 A
- 3756(is)S
- (still)210 3882 A
- 6120 V
- (22283)210 648 A
- 1068(*)S
- (interested)420 1152 A
- 1614(in)S
- (either)252 1740 A
- (end)126 2034 A
- 2202(of)S
- 2328(a)S
- (pipe.)210 2412 A
- (Also)168 2706 A
- (used)168 2916 A
- (when)168 3126 A
- (opening)294 3336 A
- 3672(a)S
- (FIFO)168 3756 A
- 3966(to)S
- 6210 V
- (22284)210 648 A
- 1068(*)S
- (find)168 1152 A
- (partners)336 1362 A
- 1740(to)S
- (share)210 1866 A
- 2118(a)S
- (filp)168 2202 A
- (field)210 2412 A
- (with)168 2664 A
- ((to)126 2874 A
- (shared)252 3042 A
- (the)126 3336 A
- (file)168 3504 A
- (position).)420 3714 A
- 8418 V
- EP
- %%Page: 303 303
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2098(File:)S
- 2331(src/fs/filedes.c)S
- 12 B
- (303)180 4248 A
- 900 V
- 7 LST
- (22285)210 648 A
- 1068(*)S
- (Like)168 1152 A
- ('get_fd')336 1362 A
- 1740(it)S
- (performs)336 1866 A
- (its)126 2244 A
- (job)126 2412 A
- 2580(by)S
- (linear)252 2706 A
- (search)252 3000 A
- (through)294 3294 A
- (the)126 3630 A
- (filp)168 3798 A
- (table.)252 4008 A
- 990 V
- (22286)210 648 A
- 1068(*/)S
- 1080 V
- (22287)210 648 A
- 1170 V
- (22288)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (filp)168 1782 A
- (*f;)126 1992 A
- 1260 V
- (22289)210 648 A
- 1350 V
- (22290)210 648 A
- (for)126 1110 A
- 1278((f)S
- 1404(=)S
- (&filp[0];)378 1488 A
- 1908(f)S
- 1992(<)S
- (&filp[NR_FILPS];)672 2076 A
- (f++))168 2790 A
- 3000({)S
- 1440 V
- (22291)210 648 A
- 1362(if)S
- ((f->filp_count)588 1488 A
- 2118(!=)S
- 2244(0)S
- 2328(&&)S
- (f->filp_ino)462 2454 A
- 2958(==)S
- (rip)126 3084 A
- 3252(&&)S
- ((f->filp_mode)546 3378 A
- 3966(&)S
- (bits)){)294 4050 A
- 1530 V
- (22292)210 648 A
- (return(f);)420 1698 A
- 1620 V
- (22293)210 648 A
- 1362(})S
- 1710 V
- (22294)210 648 A
- 1110(})S
- 1800 V
- (22295)210 648 A
- 1890 V
- (22296)210 648 A
- 1110(/*)S
- 1236(If)S
- (control)294 1362 A
- (passes)252 1698 A
- (here,)210 1992 A
- (the)126 2244 A
- (filp)168 2412 A
- (wasn't)252 2622 A
- (there.)252 2916 A
- (Report)252 3252 A
- (that)168 3546 A
- (back.)210 3756 A
- 4008(*/)S
- 1980 V
- (22297)210 648 A
- (return(NIL_FILP);)714 1110 A
- 2070 V
- (22298)210 648 A
- 1026(})S
- 2340 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2430 V
- (src/fs/lock.c)546 2034 A
- 2520 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2700 V
- (22300)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (handles)294 1572 A
- (advisory)336 1908 A
- (file)168 2286 A
- (locking)294 2496 A
- 2832(as)S
- (required)336 2958 A
- 3336(by)S
- (POSIX.)252 3462 A
- 2790 V
- (22301)210 648 A
- 1068(*)S
- 2880 V
- (22302)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)126 2496 A
- 2970 V
- (22303)210 648 A
- 1068(*)S
- (lock_op:)336 1236 A
- (perform)294 1698 A
- (locking)294 2034 A
- (operations)420 2370 A
- (for)126 2832 A
- (FCNTL)210 3000 A
- (system)252 3252 A
- (call)168 3546 A
- 3060 V
- (22304)210 648 A
- 1068(*)S
- (lock_revive:)504 1236 A
- (revive)252 1782 A
- (processes)378 2076 A
- (when)168 2496 A
- 2706(a)S
- (lock)168 2790 A
- 3000(is)S
- (released)336 3126 A
- 3150 V
- (22305)210 648 A
- 1068(*/)S
- 3240 V
- (22306)210 648 A
- 3330 V
- (22307)210 648 A
- (#include)336 1026 A
- ("fs.h")252 1404 A
- 3420 V
- (22308)210 648 A
- (#include)336 1026 A
- (<fcntl.h>)378 1404 A
- 3510 V
- (22309)210 648 A
- (#include)336 1026 A
- (<unistd.h>)420 1404 A
- 2034(/*)S
- 2160(cc)S
- (runs)168 2286 A
- (out)126 2496 A
- 2664(of)S
- (memory)252 2790 A
- (with)168 3084 A
- (unistd.h)336 3294 A
- (:-()126 3672 A
- 3840(*/)S
- 3600 V
- (22310)210 648 A
- (#include)336 1026 A
- ("file.h")336 1404 A
- 3690 V
- (22311)210 648 A
- (#include)336 1026 A
- ("fproc.h")378 1404 A
- 3780 V
- (22312)210 648 A
- (#include)336 1026 A
- ("inode.h")378 1404 A
- 3870 V
- (22313)210 648 A
- (#include)336 1026 A
- ("lock.h")336 1404 A
- 3960 V
- (22314)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 4050 V
- (22315)210 648 A
- 4140 V
- (22316)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4230 V
- (22317)210 648 A
- 1068(*)S
- (lock_op)294 2370 A
- 4260(*)S
- 4320 V
- (22318)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4410 V
- (22319)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (lock_op(f,)420 1488 A
- (req))168 1950 A
- 4500 V
- (22320)210 648 A
- (struct)252 1026 A
- (filp)168 1320 A
- (*f;)126 1530 A
- 4590 V
- (22321)210 648 A
- (int)126 1026 A
- (req;)168 1194 A
- 2370(/*)S
- (either)252 2496 A
- (F_SETLK)294 2790 A
- 3126(or)S
- (F_SETLKW)336 3252 A
- 3630(*/)S
- 4680 V
- (22322)210 648 A
- 1026({)S
- 4770 V
- (22323)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (advisory)336 1656 A
- (locking)294 2034 A
- (required)336 2370 A
- 2748(by)S
- (POSIX.)252 2874 A
- 3168(*/)S
- 4860 V
- (22324)210 648 A
- 4950 V
- (22325)210 648 A
- (int)126 1110 A
- 1278(r,)S
- (ltype,)252 1404 A
- 1698(i,)S
- (conflict)336 1824 A
- 2202(=)S
- 2286(0,)S
- (unlocking)378 2412 A
- 2832(=)S
- 2916(0;)S
- 5040 V
- (22326)210 648 A
- (mode_t)252 1110 A
- (mo;)126 1404 A
- 5130 V
- (22327)210 648 A
- (off_t)210 1110 A
- (first,)252 1362 A
- (last;)210 1656 A
- 5220 V
- (22328)210 648 A
- (struct)252 1110 A
- (flock)210 1404 A
- (flock;)252 1656 A
- 5310 V
- (22329)210 648 A
- (vir_bytes)378 1110 A
- (user_flock;)462 1530 A
- 5400 V
- (22330)210 648 A
- (struct)252 1110 A
- (file_lock)378 1404 A
- (*flp,)210 1824 A
- (*flp2,)252 2076 A
- (*empty;)294 2370 A
- 5490 V
- (22331)210 648 A
- 5580 V
- (22332)210 648 A
- 1110(/*)S
- (Fetch)210 1236 A
- (the)126 1488 A
- (flock)210 1656 A
- (structure)378 1908 A
- (from)168 2328 A
- (user)168 2538 A
- (space.)252 2748 A
- 3042(*/)S
- 5670 V
- (22333)210 648 A
- (user_flock)420 1110 A
- 1572(=)S
- ((vir_bytes))462 1656 A
- (name1;)252 2160 A
- 5760 V
- (22334)210 648 A
- 1110(r)S
- 1194(=)S
- (sys_copy(who,)546 1278 A
- 1866(D,)S
- ((phys_bytes))504 1992 A
- (user_flock,)462 2538 A
- 5850 V
- (22335)210 648 A
- (FS_PROC_NR,)462 1362 A
- 1866(D,)S
- ((phys_bytes))504 1992 A
- (&flock,)294 2538 A
- ((phys_bytes))504 2874 A
- (sizeof(flock));)630 3420 A
- 5940 V
- (22336)210 648 A
- 1110(if)S
- 1236((r)S
- 1362(!=)S
- (OK))126 1488 A
- (return(EINVAL);)630 1656 A
- 6030 V
- (22337)210 648 A
- 6120 V
- (22338)210 648 A
- 1110(/*)S
- (Make)168 1236 A
- (some)168 1446 A
- (error)210 1656 A
- (checks.)294 1908 A
- 2244(*/)S
- 6210 V
- (22339)210 648 A
- (ltype)210 1110 A
- 1362(=)S
- (flock.l_type;)546 1446 A
- 8418 V
- EP
- %%Page: 304 304
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (304)180 648 A
- 11 R
- 2151(File:)S
- 2384(src/fs/lock.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22340)210 648 A
- 1110(mo)S
- 1236(=)S
- (f->filp_mode;)546 1320 A
- 990 V
- (22341)210 648 A
- 1110(if)S
- ((ltype)252 1236 A
- 1530(!=)S
- (F_UNLCK)294 1656 A
- 1992(&&)S
- (ltype)210 2118 A
- 2370(!=)S
- (F_RDLCK)294 2496 A
- 2832(&&)S
- (ltype)210 2958 A
- 3210(!=)S
- (F_WRLCK))336 3336 A
- (return(EINVAL);)630 3714 A
- 1080 V
- (22342)210 648 A
- 1110(if)S
- ((req)168 1236 A
- 1446(==)S
- (F_GETLK)294 1572 A
- 1908(&&)S
- (ltype)210 2034 A
- 2286(==)S
- (F_UNLCK))336 2412 A
- (return(EINVAL);)630 2790 A
- 1170 V
- (22343)210 648 A
- 1110(if)S
- 1236(()S
- ((f->filp_ino->i_mode)840 1320 A
- 2202(&)S
- (I_TYPE))294 2286 A
- 2622(!=)S
- (I_REGULAR))420 2748 A
- (return(EINVAL);)630 3210 A
- 1260 V
- (22344)210 648 A
- 1110(if)S
- ((req)168 1236 A
- 1446(!=)S
- (F_GETLK)294 1572 A
- 1908(&&)S
- (ltype)210 2034 A
- 2286(==)S
- (F_RDLCK)294 2412 A
- 2748(&&)S
- ((mo)126 2874 A
- 3042(&)S
- (R_BIT))252 3126 A
- 3420(==)S
- 3546(0))S
- (return(EBADF);)588 3672 A
- 1350 V
- (22345)210 648 A
- 1110(if)S
- ((req)168 1236 A
- 1446(!=)S
- (F_GETLK)294 1572 A
- 1908(&&)S
- (ltype)210 2034 A
- 2286(==)S
- (F_WRLCK)294 2412 A
- 2748(&&)S
- ((mo)126 2874 A
- 3042(&)S
- (W_BIT))252 3126 A
- 3420(==)S
- 3546(0))S
- (return(EBADF);)588 3672 A
- 1440 V
- (22346)210 648 A
- 1530 V
- (22347)210 648 A
- 1110(/*)S
- (Compute)294 1236 A
- (the)126 1572 A
- (first)210 1740 A
- (and)126 1992 A
- (last)168 2160 A
- (bytes)210 2370 A
- 2622(in)S
- (the)126 2748 A
- (lock)168 2916 A
- (region.)294 3126 A
- 3462(*/)S
- 1620 V
- (22348)210 648 A
- (switch)252 1110 A
- ((flock.l_whence))672 1404 A
- 2118({)S
- 1710 V
- (22349)210 648 A
- (case)168 1362 A
- (SEEK_SET:)378 1572 A
- (first)210 2034 A
- 2286(=)S
- 2370(0;)S
- (break;)252 2496 A
- 1800 V
- (22350)210 648 A
- (case)168 1362 A
- (SEEK_CUR:)378 1572 A
- (first)210 2034 A
- 2286(=)S
- (f->filp_pos;)504 2370 A
- (break;)252 2916 A
- 1890 V
- (22351)210 648 A
- (case)168 1362 A
- (SEEK_END:)378 1572 A
- (first)210 2034 A
- 2286(=)S
- (f->filp_ino->i_size;)840 2370 A
- (break;)252 3252 A
- 1980 V
- (22352)210 648 A
- (default:)336 1362 A
- (return(EINVAL);)630 2034 A
- 2070 V
- (22353)210 648 A
- 1110(})S
- 2160 V
- (22354)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- (for)126 1488 A
- (overflow.)378 1656 A
- 2076(*/)S
- 2250 V
- (22355)210 648 A
- 1110(if)S
- ((((long)flock.l_start)882 1236 A
- 2160(>)S
- 2244(0))S
- 2370(&&)S
- (((first)294 2496 A
- 2832(+)S
- (flock.l_start))588 2916 A
- 3546(<)S
- (first)))294 3630 A
- 2340 V
- (22356)210 648 A
- (return(EINVAL);)630 1362 A
- 2430 V
- (22357)210 648 A
- 1110(if)S
- ((((long)flock.l_start)882 1236 A
- 2160(<)S
- 2244(0))S
- 2370(&&)S
- (((first)294 2496 A
- 2832(+)S
- (flock.l_start))588 2916 A
- 3546(>)S
- (first)))294 3630 A
- 2520 V
- (22358)210 648 A
- (return(EINVAL);)630 1362 A
- 2610 V
- (22359)210 648 A
- (first)210 1110 A
- 1362(=)S
- (first)210 1446 A
- 1698(+)S
- (flock.l_start;)588 1782 A
- 2700 V
- (22360)210 648 A
- (last)168 1110 A
- 1320(=)S
- (first)210 1404 A
- 1656(+)S
- (flock.l_len)462 1740 A
- 2244(-)S
- 2328(1;)S
- 2790 V
- (22361)210 648 A
- 1110(if)S
- ((flock.l_len)504 1236 A
- 1782(==)S
- 1908(0))S
- (last)168 2034 A
- 2244(=)S
- (MAX_FILE_POS;)546 2328 A
- 2880 V
- (22362)210 648 A
- 1110(if)S
- ((last)210 1236 A
- 1488(<)S
- (first))252 1572 A
- (return(EINVAL);)630 1866 A
- 2970 V
- (22363)210 648 A
- 3060 V
- (22364)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(if)S
- (this)168 1614 A
- (region)252 1824 A
- (conflicts)378 2118 A
- (with)168 2538 A
- (any)126 2748 A
- (existing)336 2916 A
- (lock.)210 3294 A
- 3546(*/)S
- 3150 V
- (22365)210 648 A
- (empty)210 1110 A
- 1362(=)S
- ((struct)294 1446 A
- (file_lock)378 1782 A
- 2202(*))S
- 2328(0;)S
- 3240 V
- (22366)210 648 A
- (for)126 1110 A
- ((flp)168 1278 A
- 1488(=)S
- (&file_lock[0];)588 1572 A
- (flp)126 2202 A
- 2370(<)S
- 2454(&)S
- (file_lock[NR_LOCKS];)840 2538 A
- (flp++))252 3420 A
- 3714({)S
- 3330 V
- (22367)210 648 A
- 1362(if)S
- ((flp->lock_type)630 1488 A
- 2160(==)S
- 2286(0))S
- 2412({)S
- 3420 V
- (22368)210 648 A
- 1698(if)S
- ((empty)252 1824 A
- 2118(==)S
- ((struct)294 2244 A
- (file_lock)378 2580 A
- 3000(*))S
- 3126(0))S
- (empty)210 3252 A
- 3504(=)S
- (flp;)168 3588 A
- 3510 V
- (22369)210 648 A
- (continue;)378 1698 A
- 2370(/*)S
- 2496(0)S
- (means)210 2580 A
- (unused)252 2832 A
- (slot)168 3126 A
- 3336(*/)S
- 3600 V
- (22370)210 648 A
- 1362(})S
- 3690 V
- (22371)210 648 A
- 1362(if)S
- ((flp->lock_inode)672 1488 A
- 2202(!=)S
- (f->filp_ino))504 2328 A
- (continue;)378 2874 A
- 3378(/*)S
- (different)378 3504 A
- (file)168 3924 A
- 4134(*/)S
- 3780 V
- (22372)210 648 A
- 1362(if)S
- ((last)210 1488 A
- 1740(<)S
- (flp->lock_first))672 1824 A
- (continue;)378 2538 A
- 3042(/*)S
- (new)126 3168 A
- (one)126 3336 A
- 3504(is)S
- 3630(in)S
- (front)210 3756 A
- 4008(*/)S
- 3870 V
- (22373)210 648 A
- 1362(if)S
- ((first)252 1488 A
- 1782(>)S
- (flp->lock_last))630 1866 A
- (continue;)378 2538 A
- 3042(/*)S
- (new)126 3168 A
- (one)126 3336 A
- 3504(is)S
- (afterwards)420 3630 A
- 4092(*/)S
- 3960 V
- (22374)210 648 A
- 1362(if)S
- ((ltype)252 1488 A
- 1782(==)S
- (F_RDLCK)294 1908 A
- 2244(&&)S
- (flp->lock_type)588 2370 A
- 3000(==)S
- (F_RDLCK))336 3126 A
- (continue;)378 3504 A
- 4050 V
- (22375)210 648 A
- 1362(if)S
- ((ltype)252 1488 A
- 1782(!=)S
- (F_UNLCK)294 1908 A
- 2244(&&)S
- (flp->lock_pid)546 2370 A
- 2958(==)S
- (fp->fp_pid))462 3084 A
- (continue;)378 3588 A
- 4140 V
- (22376)210 648 A
- 4230 V
- (22377)210 648 A
- 1362(/*)S
- (There)210 1488 A
- (might)210 1740 A
- 1992(be)S
- 2118(a)S
- (conflict.)378 2202 A
- (Process)294 2664 A
- (it.)126 3000 A
- 3168(*/)S
- 4320 V
- (22378)210 648 A
- (conflict)336 1362 A
- 1740(=)S
- 1824(1;)S
- 4410 V
- (22379)210 648 A
- 1362(if)S
- ((req)168 1488 A
- 1698(==)S
- (F_GETLK))336 1824 A
- (break;)252 2202 A
- 4500 V
- (22380)210 648 A
- 4590 V
- (22381)210 648 A
- 1362(/*)S
- 1488(If)S
- 1614(we)S
- (are)126 1740 A
- (trying)252 1908 A
- 2202(to)S
- (set)126 2328 A
- 2496(a)S
- (lock,)210 2580 A
- 2832(it)S
- (just)168 2958 A
- (failed.)294 3168 A
- 3504(*/)S
- 4680 V
- (22382)210 648 A
- 1362(if)S
- ((ltype)252 1488 A
- 1782(==)S
- (F_RDLCK)294 1908 A
- 2244(||)S
- (ltype)210 2370 A
- 2622(==)S
- (F_WRLCK))336 2748 A
- 3126({)S
- 4770 V
- (22383)210 648 A
- 1698(if)S
- ((req)168 1824 A
- 2034(==)S
- (F_SETLK))336 2160 A
- 2538({)S
- 4860 V
- (22384)210 648 A
- 2034(/*)S
- (For)126 2160 A
- (F_SETLK,)336 2328 A
- (just)168 2706 A
- (report)252 2916 A
- (back)168 3210 A
- (failure.)336 3420 A
- 3798(*/)S
- 4950 V
- (22385)210 648 A
- (return(EAGAIN);)630 2034 A
- 5040 V
- (22386)210 648 A
- 1698(})S
- (else)168 1782 A
- 1992({)S
- 5130 V
- (22387)210 648 A
- 2034(/*)S
- (For)126 2160 A
- (F_SETLKW,)378 2328 A
- (suspend)294 2748 A
- (the)126 3084 A
- (process.)336 3252 A
- 3630(*/)S
- 5220 V
- (22388)210 648 A
- (suspend(XLOCK);)630 2034 A
- 5310 V
- (22389)210 648 A
- (return(0);)420 2034 A
- 5400 V
- (22390)210 648 A
- 1698(})S
- 5490 V
- (22391)210 648 A
- 1362(})S
- 5580 V
- (22392)210 648 A
- 5670 V
- (22393)210 648 A
- 1362(/*)S
- 1488(We)S
- (are)126 1614 A
- (clearing)336 1782 A
- 2160(a)S
- (lock)168 2244 A
- (and)126 2454 A
- 2622(we)S
- (found)210 2748 A
- (something)378 3000 A
- (that)168 3420 A
- (overlaps.)378 3630 A
- 4050(*/)S
- 5760 V
- (22394)210 648 A
- (unlocking)378 1362 A
- 1782(=)S
- 1866(1;)S
- 5850 V
- (22395)210 648 A
- 1362(if)S
- ((first)252 1488 A
- 1782(<=)S
- (flp->lock_first)630 1908 A
- 2580(&&)S
- (last)168 2706 A
- 2916(>=)S
- (flp->lock_last))630 3042 A
- 3714({)S
- 5940 V
- (22396)210 648 A
- (flp->lock_type)588 1698 A
- 2328(=)S
- 2412(0;)S
- 2706(/*)S
- (mark)168 2832 A
- (slot)168 3042 A
- 3252(as)S
- (unused)252 3378 A
- 3672(*/)S
- 6030 V
- (22397)210 648 A
- (nr_locks--;)462 1698 A
- 2706(/*)S
- (number)252 2832 A
- 3126(of)S
- (locks)210 3252 A
- 3504(is)S
- (now)126 3630 A
- 3798(1)S
- (less)168 3882 A
- 4092(*/)S
- 6120 V
- (22398)210 648 A
- (continue;)378 1698 A
- 6210 V
- (22399)210 648 A
- 1362(})S
- 8418 V
- EP
- %%Page: 305 305
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2151(File:)S
- 2384(src/fs/lock.c)S
- 12 B
- (305)180 4248 A
- 900 V
- 7 LST
- (22400)210 648 A
- 990 V
- (22401)210 648 A
- 1362(/*)S
- (Part)168 1488 A
- 1698(of)S
- 1824(a)S
- (locked)252 1908 A
- (region)252 2202 A
- (has)126 2496 A
- (been)168 2664 A
- (unlocked.)378 2874 A
- 3294(*/)S
- 1080 V
- (22402)210 648 A
- 1362(if)S
- ((first)252 1488 A
- 1782(<=)S
- (flp->lock_first))672 1908 A
- 2622({)S
- 1170 V
- (22403)210 648 A
- (flp->lock_first)630 1698 A
- 2370(=)S
- (last)168 2454 A
- 2664(+)S
- 2748(1;)S
- 1260 V
- (22404)210 648 A
- (continue;)378 1698 A
- 1350 V
- (22405)210 648 A
- 1362(})S
- 1440 V
- (22406)210 648 A
- 1530 V
- (22407)210 648 A
- 1362(if)S
- ((last)210 1488 A
- 1740(>=)S
- (flp->lock_last))630 1866 A
- 2538({)S
- 1620 V
- (22408)210 648 A
- (flp->lock_last)588 1698 A
- 2328(=)S
- (first)210 2412 A
- 2664(-)S
- 2748(1;)S
- 1710 V
- (22409)210 648 A
- (continue;)378 1698 A
- 1800 V
- (22410)210 648 A
- 1362(})S
- 1890 V
- (22411)210 648 A
- 1980 V
- (22412)210 648 A
- 1362(/*)S
- (Bad)126 1488 A
- (luck.)210 1656 A
- 1908(A)S
- (lock)168 1992 A
- (has)126 2202 A
- (been)168 2370 A
- (split)210 2580 A
- 2832(in)S
- (two)126 2958 A
- 3126(by)S
- (unlocking)378 3252 A
- (the)126 3672 A
- (middle.)294 3840 A
- 4176(*/)S
- 2070 V
- (22413)210 648 A
- 1362(if)S
- ((nr_locks)378 1488 A
- 1908(==)S
- (NR_LOCKS))378 2034 A
- (return(ENOLCK);)630 2454 A
- 2160 V
- (22414)210 648 A
- (for)126 1362 A
- 1530((i)S
- 1656(=)S
- 1740(0;)S
- 1866(i)S
- 1950(<)S
- (NR_LOCKS;)378 2034 A
- (i++))168 2454 A
- 2250 V
- (22415)210 648 A
- 1698(if)S
- ((file_lock[i].lock_type)966 1824 A
- 2832(==)S
- 2958(0))S
- (break;)252 3084 A
- 2340 V
- (22416)210 648 A
- (flp2)168 1362 A
- 1572(=)S
- (&file_lock[i];)588 1656 A
- 2430 V
- (22417)210 648 A
- (flp2->lock_type)630 1362 A
- 2034(=)S
- (flp->lock_type;)630 2118 A
- 2520 V
- (22418)210 648 A
- (flp2->lock_pid)588 1362 A
- 1992(=)S
- (flp->lock_pid;)588 2076 A
- 2610 V
- (22419)210 648 A
- (flp2->lock_inode)672 1362 A
- 2076(=)S
- (flp->lock_inode;)672 2160 A
- 2700 V
- (22420)210 648 A
- (flp2->lock_first)672 1362 A
- 2076(=)S
- (last)168 2160 A
- 2370(+)S
- 2454(1;)S
- 2790 V
- (22421)210 648 A
- (flp2->lock_last)630 1362 A
- 2034(=)S
- (flp->lock_last;)630 2118 A
- 2880 V
- (22422)210 648 A
- (flp->lock_last)588 1362 A
- 1992(=)S
- (first)210 2076 A
- 2328(-)S
- 2412(1;)S
- 2970 V
- (22423)210 648 A
- (nr_locks++;)462 1362 A
- 3060 V
- (22424)210 648 A
- 1110(})S
- 3150 V
- (22425)210 648 A
- 1110(if)S
- ((unlocking))462 1236 A
- (lock_revive();)588 1740 A
- 3240 V
- (22426)210 648 A
- 3330 V
- (22427)210 648 A
- 1110(if)S
- ((req)168 1236 A
- 1446(==)S
- (F_GETLK))336 1572 A
- 1950({)S
- 3420 V
- (22428)210 648 A
- 1362(if)S
- ((conflict))420 1488 A
- 1950({)S
- 3510 V
- (22429)210 648 A
- 1698(/*)S
- (GETLK)210 1824 A
- (and)126 2076 A
- (conflict.)378 2244 A
- (Report)252 2664 A
- 2958(on)S
- (the)126 3084 A
- (conflicting)462 3252 A
- (lock.)210 3756 A
- 4008(*/)S
- 3600 V
- (22430)210 648 A
- (flock.l_type)504 1698 A
- 2244(=)S
- (flp->lock_type;)630 2328 A
- 3690 V
- (22431)210 648 A
- (flock.l_whence)588 1698 A
- 2328(=)S
- (SEEK_SET;)378 2412 A
- 3780 V
- (22432)210 648 A
- (flock.l_start)546 1698 A
- 2286(=)S
- (flp->lock_first;)672 2370 A
- 3870 V
- (22433)210 648 A
- (flock.l_len)462 1698 A
- 2202(=)S
- (flp->lock_last)588 2286 A
- 2916(-)S
- (flp->lock_first)630 3000 A
- 3672(+)S
- 3756(1;)S
- 3960 V
- (22434)210 648 A
- (flock.l_pid)462 1698 A
- 2202(=)S
- (flp->lock_pid;)588 2286 A
- 4050 V
- (22435)210 648 A
- 4140 V
- (22436)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 4230 V
- (22437)210 648 A
- 1698(/*)S
- 1824(It)S
- 1950(is)S
- (GETLK)210 2076 A
- (and)126 2328 A
- (there)210 2496 A
- 2748(is)S
- 2874(no)S
- (conflict.)378 3000 A
- 3420(*/)S
- 4320 V
- (22438)210 648 A
- (flock.l_type)504 1698 A
- 2244(=)S
- (F_UNLCK;)336 2328 A
- 4410 V
- (22439)210 648 A
- 1362(})S
- 4500 V
- (22440)210 648 A
- 4590 V
- (22441)210 648 A
- 1362(/*)S
- (Copy)168 1488 A
- (the)126 1698 A
- (flock)210 1866 A
- (structure)378 2118 A
- (back)168 2538 A
- 2748(to)S
- (the)126 2874 A
- (caller.)294 3042 A
- 3378(*/)S
- 4680 V
- (22442)210 648 A
- 1362(r)S
- 1446(=)S
- (sys_copy(FS_PROC_NR,)840 1530 A
- 2412(D,)S
- ((phys_bytes))504 2538 A
- (&flock,)294 3084 A
- 4770 V
- (22443)210 648 A
- (who,)168 1698 A
- 1908(D,)S
- ((phys_bytes))504 2034 A
- (user_flock,)462 2580 A
- ((phys_bytes))504 3084 A
- (sizeof(flock));)630 3630 A
- 4860 V
- (22444)210 648 A
- (return(r);)420 1362 A
- 4950 V
- (22445)210 648 A
- 1110(})S
- 5040 V
- (22446)210 648 A
- 5130 V
- (22447)210 648 A
- 1110(if)S
- ((ltype)252 1236 A
- 1530(==)S
- (F_UNLCK))336 1656 A
- (return(OK);)462 2034 A
- 2706(/*)S
- (unlocked)336 2832 A
- 3210(a)S
- (region)252 3294 A
- (with)168 3588 A
- 3798(no)S
- (locks)210 3924 A
- 4176(*/)S
- 5220 V
- (22448)210 648 A
- 5310 V
- (22449)210 648 A
- 1110(/*)S
- (There)210 1236 A
- 1488(is)S
- 1614(no)S
- (conflict.)378 1740 A
- 2202(If)S
- (space)210 2328 A
- (exists,)294 2580 A
- (store)210 2916 A
- (new)126 3168 A
- (lock)168 3336 A
- 3546(in)S
- (the)126 3672 A
- (table.)252 3840 A
- 4134(*/)S
- 5400 V
- (22450)210 648 A
- 1110(if)S
- ((empty)252 1236 A
- 1530(==)S
- ((struct)294 1656 A
- (file_lock)378 1992 A
- 2412(*))S
- 2538(0))S
- (return(ENOLCK);)630 2664 A
- 3378(/*)S
- (table)210 3504 A
- (full)168 3756 A
- 3966(*/)S
- 5490 V
- (22451)210 648 A
- (empty->lock_type)672 1110 A
- 1824(=)S
- (ltype;)252 1908 A
- 5580 V
- (22452)210 648 A
- (empty->lock_pid)630 1110 A
- 1782(=)S
- (fp->fp_pid;)462 1866 A
- 5670 V
- (22453)210 648 A
- (empty->lock_inode)714 1110 A
- 1866(=)S
- (f->filp_ino;)504 1950 A
- 5760 V
- (22454)210 648 A
- (empty->lock_first)714 1110 A
- 1866(=)S
- (first;)252 1950 A
- 5850 V
- (22455)210 648 A
- (empty->lock_last)672 1110 A
- 1824(=)S
- (last;)210 1908 A
- 5940 V
- (22456)210 648 A
- (nr_locks++;)462 1110 A
- 6030 V
- (22457)210 648 A
- (return(OK);)462 1110 A
- 6120 V
- (22458)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 306 306
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (306)180 648 A
- 11 R
- 2151(File:)S
- 2384(src/fs/lock.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22460)210 648 A
- (/*===========================================================================*)3276 1026 A
- 990 V
- (22461)210 648 A
- 1068(*)S
- (lock_revive)462 2370 A
- 4260(*)S
- 1080 V
- (22462)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1170 V
- (22463)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (lock_revive())546 1530 A
- 1260 V
- (22464)210 648 A
- 1026({)S
- 1350 V
- (22465)210 648 A
- 1026(/*)S
- 1152(Go)S
- (find)168 1278 A
- (all)126 1488 A
- (the)126 1656 A
- (processes)378 1824 A
- (that)168 2244 A
- (are)126 2454 A
- (waiting)294 2622 A
- (for)126 2958 A
- (any)126 3126 A
- (kind)168 3294 A
- 3504(of)S
- (lock)168 3630 A
- (and)126 3840 A
- 1440 V
- (22466)210 648 A
- 1068(*)S
- (revive)252 1152 A
- (them)168 1446 A
- (all.)168 1656 A
- (The)126 1908 A
- (ones)168 2076 A
- (that)168 2286 A
- (are)126 2496 A
- (still)210 2664 A
- (blocked)294 2916 A
- (will)168 3252 A
- (block)210 3462 A
- (again)210 3714 A
- (when)168 3966 A
- 1530 V
- (22467)210 648 A
- 1068(*)S
- (they)168 1152 A
- (run.)168 1362 A
- (The)126 1614 A
- (others)252 1782 A
- (will)168 2076 A
- (complete.)378 2286 A
- (This)168 2748 A
- (strategy)336 2958 A
- 3336(is)S
- 3462(a)S
- (space-time)420 3546 A
- 1620 V
- (22468)210 648 A
- 1068(*)S
- (tradeoff.)378 1152 A
- (Figuring)336 1614 A
- (out)126 1992 A
- (exactly)294 2160 A
- (which)210 2496 A
- (ones)168 2748 A
- 2958(to)S
- (unblock)294 3084 A
- (now)126 3420 A
- (would)210 3588 A
- (take)168 3840 A
- 1710 V
- (22469)210 648 A
- 1068(*)S
- (extra)210 1152 A
- (code,)210 1404 A
- (and)126 1656 A
- (the)126 1824 A
- (only)168 1992 A
- (thing)210 2202 A
- 2454(it)S
- (would)210 2580 A
- (win)126 2832 A
- (would)210 3000 A
- 3252(be)S
- (some)168 3378 A
- (performance)462 3588 A
- 4092(in)S
- 1800 V
- (22470)210 648 A
- 1068(*)S
- (extremely)378 1152 A
- (rare)168 1572 A
- (circumstances)546 1782 A
- ((namely,)336 2370 A
- (that)168 2748 A
- (somebody)336 2958 A
- (actually)336 3336 A
- (used)168 3714 A
- 1890 V
- (22471)210 648 A
- 1068(*)S
- (locking).)378 1152 A
- 1980 V
- (22472)210 648 A
- 1068(*/)S
- 2070 V
- (22473)210 648 A
- 2160 V
- (22474)210 648 A
- (int)126 1110 A
- (task;)210 1278 A
- 2250 V
- (22475)210 648 A
- (struct)252 1110 A
- (fproc)210 1404 A
- (*fptr;)252 1656 A
- 2340 V
- (22476)210 648 A
- 2430 V
- (22477)210 648 A
- (for)126 1110 A
- ((fptr)210 1278 A
- 1530(=)S
- (&fproc[INIT_PROC_NR)798 1614 A
- 2454(+)S
- (1];)126 2538 A
- (fptr)168 2706 A
- 2916(<)S
- (&fproc[NR_PROCS];)714 3000 A
- (fptr++){)336 3756 A
- 2520 V
- (22478)210 648 A
- (task)168 1362 A
- 1572(=)S
- (-fptr->fp_task;)630 1656 A
- 2610 V
- (22479)210 648 A
- 1362(if)S
- ((fptr->fp_suspended)798 1488 A
- 2328(==)S
- (SUSPENDED)378 2454 A
- 2874(&&)S
- (task)168 3000 A
- 3210(==)S
- (XLOCK))252 3336 A
- 3630({)S
- 2700 V
- (22480)210 648 A
- (revive()294 1698 A
- ((int))210 2034 A
- ((fptr)210 2286 A
- 2538(-)S
- (fproc),)294 2622 A
- (0);)126 2958 A
- 2790 V
- (22481)210 648 A
- 1362(})S
- 2880 V
- (22482)210 648 A
- 1110(})S
- 2970 V
- (22483)210 648 A
- 1026(})S
- 3240 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 3330 V
- (src/fs/main.c)546 2034 A
- 3420 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 3600 V
- (22500)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (main)168 2118 A
- (program)294 2328 A
- 2664(of)S
- (the)126 2790 A
- (File)168 2958 A
- (System.)294 3168 A
- 3546(It)S
- (consists)336 3672 A
- 4050(of)S
- 3690 V
- (22501)210 648 A
- 1068(*)S
- 1152(a)S
- (loop)168 1236 A
- (that)168 1446 A
- (gets)168 1656 A
- (messages)336 1866 A
- (requesting)420 2244 A
- (work,)210 2706 A
- (carries)294 2958 A
- (out)126 3294 A
- (the)126 3462 A
- (work,)210 3630 A
- (and)126 3882 A
- (sends)210 4050 A
- 3780 V
- (22502)210 648 A
- 1068(*)S
- (replies.)336 1152 A
- 3870 V
- (22503)210 648 A
- 1068(*)S
- 3960 V
- (22504)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)126 2496 A
- 4050 V
- (22505)210 648 A
- 1068(*)S
- (main:)210 1236 A
- (main)168 1698 A
- (program)294 1908 A
- 2244(of)S
- (the)126 2370 A
- (File)168 2538 A
- (System)252 2748 A
- 4140 V
- (22506)210 648 A
- 1068(*)S
- (reply:)252 1236 A
- (send)168 1698 A
- 1908(a)S
- (reply)210 1992 A
- 2244(to)S
- 2370(a)S
- (process)294 2454 A
- (after)210 2790 A
- (the)126 3042 A
- (requested)378 3210 A
- (work)168 3630 A
- 3840(is)S
- (done)168 3966 A
- 4230 V
- (22507)210 648 A
- 1068(*/)S
- 4320 V
- (22508)210 648 A
- 4410 V
- (22509)210 648 A
- (struct)252 1026 A
- (super_block;)504 1320 A
- 2370(/*)S
- (proto.h)294 2496 A
- (needs)210 2832 A
- 3084(to)S
- (know)168 3210 A
- (this)168 3420 A
- 3630(*/)S
- 4500 V
- (22510)210 648 A
- 4590 V
- (22511)210 648 A
- (#include)336 1026 A
- ("fs.h")252 1404 A
- 4680 V
- (22512)210 648 A
- (#include)336 1026 A
- (<fcntl.h>)378 1404 A
- 4770 V
- (22513)210 648 A
- (#include)336 1026 A
- (<string.h>)420 1404 A
- 4860 V
- (22514)210 648 A
- (#include)336 1026 A
- (<sys/ioctl.h>)546 1404 A
- 4950 V
- (22515)210 648 A
- (#include)336 1026 A
- (<minix/callnr.h>)672 1404 A
- 5040 V
- (22516)210 648 A
- (#include)336 1026 A
- (<minix/com.h>)546 1404 A
- 5130 V
- (22517)210 648 A
- (#include)336 1026 A
- (<minix/boot.h>)588 1404 A
- 5220 V
- (22518)210 648 A
- (#include)336 1026 A
- ("buf.h")294 1404 A
- 5310 V
- (22519)210 648 A
- (#include)336 1026 A
- ("dev.h")294 1404 A
- 5400 V
- (22520)210 648 A
- (#include)336 1026 A
- ("file.h")336 1404 A
- 5490 V
- (22521)210 648 A
- (#include)336 1026 A
- ("fproc.h")378 1404 A
- 5580 V
- (22522)210 648 A
- (#include)336 1026 A
- ("inode.h")378 1404 A
- 5670 V
- (22523)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 5760 V
- (22524)210 648 A
- (#include)336 1026 A
- ("super.h")378 1404 A
- 5850 V
- (22525)210 648 A
- 5940 V
- (22526)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (buf_pool,)378 2076 A
- ((void))252 2496 A
- 4050();)S
- 6030 V
- (22527)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (fs_init,)336 2076 A
- ((void))252 2454 A
- 4050();)S
- 6120 V
- (22528)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (get_boot_parameters,)840 2076 A
- ((void))252 2958 A
- 4050();)S
- 6210 V
- (22529)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (get_work,)378 2076 A
- ((void))252 2496 A
- 4050();)S
- 8418 V
- EP
- %%Page: 307 307
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2135(File:)S
- 2368(src/fs/main.c)S
- 12 B
- (307)180 4248 A
- 900 V
- 7 LST
- (22530)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (load_ram,)378 2076 A
- ((void))252 2496 A
- 4050();)S
- 990 V
- (22531)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (load_super,)462 2076 A
- ((Dev_t)252 2580 A
- (super_dev))420 2874 A
- 4050();)S
- 1080 V
- (22532)210 648 A
- 1170 V
- (22533)210 648 A
- 1260 V
- (22534)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1350 V
- (22535)210 648 A
- 1068(*)S
- (main)168 2370 A
- 4260(*)S
- 1440 V
- (22536)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1530 V
- (22537)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (main())252 1530 A
- 1620 V
- (22538)210 648 A
- 1026({)S
- 1710 V
- (22539)210 648 A
- 1026(/*)S
- (This)168 1152 A
- 1362(is)S
- (the)126 1488 A
- (main)168 1656 A
- (program)294 1866 A
- 2202(of)S
- (the)126 2328 A
- (file)168 2496 A
- (system.)294 2706 A
- (The)126 3084 A
- (main)168 3252 A
- (loop)168 3462 A
- (consists)336 3672 A
- 4050(of)S
- 1800 V
- (22540)210 648 A
- 1068(*)S
- (three)210 1152 A
- (major)210 1404 A
- (activities:)462 1656 A
- (getting)294 2160 A
- (new)126 2496 A
- (work,)210 2664 A
- (processing)420 2916 A
- (the)126 3378 A
- (work,)210 3546 A
- (and)126 3798 A
- (sending)294 3966 A
- 1890 V
- (22541)210 648 A
- 1068(*)S
- (the)126 1152 A
- (reply.)252 1320 A
- (This)168 1656 A
- (loop)168 1866 A
- (never)210 2076 A
- (terminates)420 2328 A
- 2790(as)S
- (long)168 2916 A
- 3126(as)S
- (the)126 3252 A
- (file)168 3420 A
- (system)252 3630 A
- (runs.)210 3924 A
- 1980 V
- (22542)210 648 A
- 1068(*/)S
- 2070 V
- (22543)210 648 A
- (int)126 1110 A
- (error;)252 1278 A
- 2160 V
- (22544)210 648 A
- 2250 V
- (22545)210 648 A
- (fs_init();)420 1110 A
- 2340 V
- (22546)210 648 A
- 2430 V
- (22547)210 648 A
- 1110(/*)S
- (This)168 1236 A
- 1446(is)S
- (the)126 1572 A
- (main)168 1740 A
- (loop)168 1950 A
- (that)168 2160 A
- (gets)168 2370 A
- (work,)210 2580 A
- (processes)378 2832 A
- (it,)126 3252 A
- (and)126 3420 A
- (sends)210 3588 A
- (replies.)336 3840 A
- 4218(*/)S
- 2520 V
- (22548)210 648 A
- (while)210 1110 A
- ((TRUE))252 1362 A
- 1656({)S
- 2610 V
- (22549)210 648 A
- (get_work();)462 1362 A
- 2370(/*)S
- (sets)168 2496 A
- (who)126 2706 A
- (and)126 2874 A
- (fs_call)294 3042 A
- 3378(*/)S
- 2700 V
- (22550)210 648 A
- 2790 V
- (22551)210 648 A
- 1362(fp)S
- 1488(=)S
- (&fproc[who];)504 1572 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (proc)168 2958 A
- (table)210 3168 A
- (struct)252 3420 A
- 3714(*/)S
- 2880 V
- (22552)210 648 A
- (super_user)420 1362 A
- 1824(=)S
- ((fp->fp_effuid)588 1908 A
- 2538(==)S
- (SU_UID)252 2664 A
- 2958(?)S
- (TRUE)168 3042 A
- 3252(:)S
- (FALSE);)294 3336 A
- 3756(/*)S
- (su?)126 3882 A
- 4050(*/)S
- 2970 V
- (22553)210 648 A
- (dont_reply)420 1362 A
- 1824(=)S
- (FALSE;)252 1908 A
- 2370(/*)S
- 2496(in)S
- (other)210 2622 A
- (words,)252 2874 A
- 3168(do)S
- (reply)210 3294 A
- 3546(is)S
- (default)294 3672 A
- 4008(*/)S
- 3060 V
- (22554)210 648 A
- 3150 V
- (22555)210 648 A
- 1362(/*)S
- (Call)168 1488 A
- (the)126 1698 A
- (internal)336 1866 A
- (function)336 2244 A
- (that)168 2622 A
- (does)168 2832 A
- (the)126 3042 A
- (work.)210 3210 A
- 3462(*/)S
- 3240 V
- (22556)210 648 A
- 1362(if)S
- ((fs_call)336 1488 A
- 1866(<)S
- 1950(0)S
- 2034(||)S
- (fs_call)294 2160 A
- 2496(>=)S
- (NCALLS))294 2622 A
- 3330 V
- (22557)210 648 A
- (error)210 1698 A
- 1950(=)S
- (EBADCALL;)378 2034 A
- 3420 V
- (22558)210 648 A
- (else)168 1362 A
- 3510 V
- (22559)210 648 A
- (error)210 1698 A
- 1950(=)S
- ((*call_vector[fs_call])();)1092 2034 A
- 3600 V
- (22560)210 648 A
- 3690 V
- (22561)210 648 A
- 1362(/*)S
- (Copy)168 1488 A
- (the)126 1698 A
- (results)294 1866 A
- (back)168 2202 A
- 2412(to)S
- (the)126 2538 A
- (user)168 2706 A
- (and)126 2916 A
- (send)168 3084 A
- (reply.)252 3294 A
- 3588(*/)S
- 3780 V
- (22562)210 648 A
- 1362(if)S
- ((dont_reply))504 1488 A
- (continue;)378 2034 A
- 3870 V
- (22563)210 648 A
- (reply(who,)420 1362 A
- (error);)294 1824 A
- 3960 V
- (22564)210 648 A
- 1362(if)S
- ((rdahed_inode)546 1488 A
- 2076(!=)S
- (NIL_INODE))420 2202 A
- (read_ahead();)546 2664 A
- 3252(/*)S
- 3378(do)S
- (block)210 3504 A
- (read)168 3756 A
- (ahead)210 3966 A
- 4218(*/)S
- 4050 V
- (22565)210 648 A
- 1110(})S
- 4140 V
- (22566)210 648 A
- 1026(})S
- 4410 V
- (22569)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4500 V
- (22570)210 648 A
- 1068(*)S
- (get_work)336 2370 A
- 4260(*)S
- 4590 V
- (22571)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4680 V
- (22572)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (get_work())420 1572 A
- 4770 V
- (22573)210 648 A
- 1026({)S
- 4860 V
- (22574)210 648 A
- 1110(/*)S
- (Normally)336 1236 A
- (wait)168 1614 A
- (for)126 1824 A
- (new)126 1992 A
- (input.)252 2160 A
- (However,)336 2496 A
- 2874(if)S
- ('reviving')420 3000 A
- 3462(is)S
- 4950 V
- (22575)210 648 A
- 1152(*)S
- (nonzero,)336 1236 A
- 1614(a)S
- (suspended)378 1698 A
- (process)294 2118 A
- (must)168 2454 A
- 2664(be)S
- (awakened.)378 2790 A
- 5040 V
- (22576)210 648 A
- 1152(*/)S
- 5130 V
- (22577)210 648 A
- 5220 V
- (22578)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (fproc)210 1782 A
- (*rp;)168 2034 A
- 5310 V
- (22579)210 648 A
- 5400 V
- (22580)210 648 A
- 1110(if)S
- ((reviving)378 1236 A
- 1656(!=)S
- 1782(0))S
- 1908({)S
- 5490 V
- (22581)210 648 A
- 1362(/*)S
- (Revive)252 1488 A
- 1782(a)S
- (suspended)378 1866 A
- (process.)336 2286 A
- 2664(*/)S
- 5580 V
- (22582)210 648 A
- (for)126 1362 A
- ((rp)126 1530 A
- 1698(=)S
- (&fproc[0];)420 1782 A
- 2244(rp)S
- 2370(<)S
- (&fproc[NR_PROCS];)714 2454 A
- (rp++))210 3210 A
- 5670 V
- (22583)210 648 A
- 1698(if)S
- ((rp->fp_revived)630 1824 A
- 2496(==)S
- (REVIVING))378 2622 A
- 3042({)S
- 5760 V
- (22584)210 648 A
- (who)126 2034 A
- 2202(=)S
- ((int)(rp)336 2286 A
- 2664(-)S
- (fproc);)294 2748 A
- 5850 V
- (22585)210 648 A
- (fs_call)294 2034 A
- 2370(=)S
- (rp->fp_fd)378 2454 A
- 2874(&)S
- (BYTE;)210 2958 A
- 5940 V
- (22586)210 648 A
- 2034(fd)S
- 2160(=)S
- ((rp->fp_fd)420 2244 A
- (>>8))168 2706 A
- 2916(&)S
- (BYTE;)210 3000 A
- 6030 V
- (22587)210 648 A
- (buffer)252 2034 A
- 2328(=)S
- (rp->fp_buffer;)588 2412 A
- 6120 V
- (22588)210 648 A
- (nbytes)252 2034 A
- 2328(=)S
- (rp->fp_nbytes;)588 2412 A
- 6210 V
- (22589)210 648 A
- (rp->fp_suspended)672 2034 A
- 2748(=)S
- (NOT_SUSPENDED;)588 2832 A
- (/*no)168 3462 A
- (longer)252 3672 A
- (hanging*/)378 3966 A
- 8418 V
- EP
- %%Page: 308 308
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (308)180 648 A
- 11 R
- 2135(File:)S
- 2368(src/fs/main.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22590)210 648 A
- (rp->fp_revived)588 2034 A
- 2664(=)S
- (NOT_REVIVING;)546 2748 A
- 990 V
- (22591)210 648 A
- (reviving--;)462 2034 A
- 1080 V
- (22592)210 648 A
- (return;)294 2034 A
- 1170 V
- (22593)210 648 A
- 1698(})S
- 1260 V
- (22594)210 648 A
- (panic("get_work)630 1362 A
- (couldn't)336 2034 A
- (revive)252 2412 A
- (anyone",)336 2706 A
- (NO_NUM);)336 3084 A
- 1350 V
- (22595)210 648 A
- 1110(})S
- 1440 V
- (22596)210 648 A
- 1530 V
- (22597)210 648 A
- 1110(/*)S
- (Normal)252 1236 A
- (case.)210 1530 A
- 1824(No)S
- (one)126 1950 A
- 2118(to)S
- (revive.)294 2244 A
- 2580(*/)S
- 1620 V
- (22598)210 648 A
- 1110(if)S
- ((receive(ANY,)546 1236 A
- (&m))126 1824 A
- 1992(!=)S
- (OK))126 2118 A
- (panic("fs)378 2286 A
- (receive)294 2706 A
- (error",)294 3042 A
- (NO_NUM);)336 3378 A
- 1710 V
- (22599)210 648 A
- 1800 V
- (22600)210 648 A
- (who)126 1110 A
- 1278(=)S
- (m.m_source;)462 1362 A
- 1890 V
- (22601)210 648 A
- (fs_call)294 1110 A
- 1446(=)S
- (m.m_type;)378 1530 A
- 1980 V
- (22602)210 648 A
- 1026(})S
- 2250 V
- (22605)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2340 V
- (22606)210 648 A
- 1068(*)S
- (reply)210 2370 A
- 4260(*)S
- 2430 V
- (22607)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2520 V
- (22608)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (reply(whom,)462 1530 A
- (result))294 2034 A
- 2610 V
- (22609)210 648 A
- (int)126 1026 A
- (whom;)210 1194 A
- 2370(/*)S
- (process)294 2496 A
- 2832(to)S
- (reply)210 2958 A
- 3210(to)S
- 3336(*/)S
- 2700 V
- (22610)210 648 A
- (int)126 1026 A
- (result;)294 1194 A
- 2370(/*)S
- (result)252 2496 A
- 2790(of)S
- (the)126 2916 A
- (call)168 3084 A
- ((usually)336 3294 A
- 3672(OK)S
- 3798(or)S
- (error)210 3924 A
- 4176(#))S
- 4302(*/)S
- 2790 V
- (22611)210 648 A
- 1026({)S
- 2880 V
- (22612)210 648 A
- 1026(/*)S
- (Send)168 1152 A
- 1362(a)S
- (reply)210 1446 A
- 1698(to)S
- 1824(a)S
- (user)168 1908 A
- (process.)336 2118 A
- 2496(It)S
- (may)126 2622 A
- (fail)168 2790 A
- ((if)126 3000 A
- (the)126 3168 A
- (process)294 3336 A
- (has)126 3672 A
- (just)168 3840 A
- 2970 V
- (22613)210 648 A
- 1068(*)S
- (been)168 1152 A
- (killed)252 1362 A
- 1656(by)S
- 1782(a)S
- (signal),)336 1866 A
- 2244(so)S
- (don't)210 2370 A
- (check)210 2622 A
- (the)126 2874 A
- (return)252 3042 A
- (code.)210 3336 A
- 3630(If)S
- (the)126 3756 A
- (send)168 3924 A
- 3060 V
- (22614)210 648 A
- 1068(*)S
- (fails,)252 1152 A
- (just)168 1446 A
- (ignore)252 1656 A
- (it.)126 1950 A
- 3150 V
- (22615)210 648 A
- 1068(*/)S
- 3240 V
- (22616)210 648 A
- 3330 V
- (22617)210 648 A
- (reply_type)420 1110 A
- 1572(=)S
- (result;)294 1656 A
- 3420 V
- (22618)210 648 A
- (send(whom,)420 1110 A
- (&m1);)210 1572 A
- 3510 V
- (22619)210 648 A
- 1026(})S
- 3780 V
- (22622)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3870 V
- (22623)210 648 A
- 1068(*)S
- (fs_init)294 2370 A
- 4260(*)S
- 3960 V
- (22624)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4050 V
- (22625)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (fs_init())378 1572 A
- 4140 V
- (22626)210 648 A
- 1026({)S
- 4230 V
- (22627)210 648 A
- 1026(/*)S
- (Initialize)420 1152 A
- (global)252 1614 A
- (variables,)420 1908 A
- (tables,)294 2370 A
- (etc.)168 2706 A
- 2916(*/)S
- 4320 V
- (22628)210 648 A
- 4410 V
- (22629)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (inode)210 1782 A
- (*rip;)210 2034 A
- 4500 V
- (22630)210 648 A
- (int)126 1110 A
- 1278(i;)S
- 4590 V
- (22631)210 648 A
- (message)294 1110 A
- (mess;)210 1446 A
- 4680 V
- (22632)210 648 A
- 4770 V
- (22633)210 648 A
- 1110(/*)S
- (The)126 1236 A
- (following)378 1404 A
- (initializations)630 1824 A
- (are)126 2496 A
- (needed)252 2664 A
- 2958(to)S
- (let)126 3084 A
- (dev_opcl)336 3252 A
- (succeed)294 3630 A
- (.*/)126 3966 A
- 4860 V
- (22634)210 648 A
- 1110(fp)S
- 1236(=)S
- ((struct)294 1320 A
- (fproc)210 1656 A
- 1908(*))S
- (NULL;)210 2034 A
- 4950 V
- (22635)210 648 A
- (who)126 1110 A
- 1278(=)S
- (FS_PROC_NR;)462 1362 A
- 5040 V
- (22636)210 648 A
- 5130 V
- (22637)210 648 A
- (buf_pool();)462 1110 A
- 2370(/*)S
- (initialize)420 2496 A
- (buffer)252 2958 A
- (pool)168 3252 A
- 3462(*/)S
- 5220 V
- (22638)210 648 A
- (get_boot_parameters();)924 1110 A
- 2370(/*)S
- (get)126 2496 A
- (the)126 2664 A
- (parameters)420 2832 A
- (from)168 3294 A
- (the)126 3504 A
- (menu)168 3672 A
- 3882(*/)S
- 5310 V
- (22639)210 648 A
- (load_ram();)462 1110 A
- 2370(/*)S
- (init)168 2496 A
- (RAM)126 2706 A
- (disk,)210 2874 A
- (load)168 3126 A
- 3336(if)S
- 3462(it)S
- 3588(is)S
- (root)168 3714 A
- 3924(*/)S
- 5400 V
- (22640)210 648 A
- (load_super(ROOT_DEV);)882 1110 A
- 2370(/*)S
- (load)168 2496 A
- (super)210 2706 A
- (block)210 2958 A
- (for)126 3210 A
- (root)168 3378 A
- (device)252 3588 A
- 3882(*/)S
- 5490 V
- (22641)210 648 A
- 5580 V
- (22642)210 648 A
- 1110(/*)S
- (Initialize)420 1236 A
- (the)126 1698 A
- ('fproc')294 1866 A
- (fields)252 2202 A
- (for)126 2496 A
- (process)294 2664 A
- 3000(0)S
- 3084(..)S
- (INIT.)210 3210 A
- 3462(*/)S
- 5670 V
- (22643)210 648 A
- (for)126 1110 A
- 1278((i)S
- 1404(=)S
- 1488(0;)S
- 1614(i)S
- 1698(<=)S
- (LOW_USER;)378 1824 A
- (i+=)126 2244 A
- 2412(1))S
- 2538({)S
- 5760 V
- (22644)210 648 A
- 1362(if)S
- 1488((i)S
- 1614(==)S
- (FS_PROC_NR))462 1740 A
- (continue;)378 2244 A
- 2706(/*)S
- 2832(do)S
- (not)126 2958 A
- (initialize)420 3126 A
- 3588(FS)S
- 3714(*/)S
- 5850 V
- (22645)210 648 A
- 1362(fp)S
- 1488(=)S
- (&fproc[i];)420 1572 A
- 5940 V
- (22646)210 648 A
- (rip)126 1362 A
- 1530(=)S
- (get_inode(ROOT_DEV,)798 1614 A
- (ROOT_INODE);)504 2454 A
- 6030 V
- (22647)210 648 A
- (fp->fp_rootdir)588 1362 A
- 1992(=)S
- (rip;)168 2076 A
- 6120 V
- (22648)210 648 A
- (dup_inode(rip);)630 1362 A
- 6210 V
- (22649)210 648 A
- (fp->fp_workdir)588 1362 A
- 1992(=)S
- (rip;)168 2076 A
- 8418 V
- EP
- %%Page: 309 309
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2135(File:)S
- 2368(src/fs/main.c)S
- 12 B
- (309)180 4248 A
- 900 V
- 7 LST
- (22650)210 648 A
- (fp->fp_realuid)588 1362 A
- 1992(=)S
- ((uid_t))294 2076 A
- (SYS_UID;)336 2412 A
- 990 V
- (22651)210 648 A
- (fp->fp_effuid)546 1362 A
- 1950(=)S
- ((uid_t))294 2034 A
- (SYS_UID;)336 2370 A
- 1080 V
- (22652)210 648 A
- (fp->fp_realgid)588 1362 A
- 1992(=)S
- ((gid_t))294 2076 A
- (SYS_GID;)336 2412 A
- 1170 V
- (22653)210 648 A
- (fp->fp_effgid)546 1362 A
- 1950(=)S
- ((gid_t))294 2034 A
- (SYS_GID;)336 2370 A
- 1260 V
- (22654)210 648 A
- (fp->fp_umask)504 1362 A
- 1908(=)S
- (3040;)126 1992 A
- 1350 V
- (22655)210 648 A
- 1110(})S
- 1440 V
- (22656)210 648 A
- 1530 V
- (22657)210 648 A
- 1110(/*)S
- (Certain)294 1236 A
- (relations)378 1572 A
- (must)168 1992 A
- (hold)168 2202 A
- (for)126 2412 A
- (the)126 2580 A
- (file)168 2748 A
- (system)252 2958 A
- 3252(to)S
- (work)168 3378 A
- 3588(at)S
- (all.)168 3714 A
- 3924(*/)S
- 1620 V
- (22658)210 648 A
- 1110(if)S
- ((SUPER_SIZE)462 1236 A
- 1740(>)S
- (BLOCK_SIZE))462 1824 A
- (panic("SUPER_SIZE)714 2328 A
- 3084(>)S
- (BLOCK_SIZE",)504 3168 A
- (NO_NUM);)336 3714 A
- 1710 V
- (22659)210 648 A
- 1110(if)S
- ((BLOCK_SIZE)462 1236 A
- 1740(%)S
- (V2_INODE_SIZE)546 1824 A
- 2412(!=)S
- 2538(0))S
- 2706(/*)S
- (this)168 2832 A
- (checks)252 3042 A
- (V1_INODE_SIZE)546 3336 A
- (too)126 3924 A
- 4092(*/)S
- 1800 V
- (22660)210 648 A
- (panic("BLOCK_SIZE)714 1362 A
- 2118(%)S
- (V2_INODE_SIZE)546 2202 A
- 2790(!=)S
- (0",)126 2916 A
- (NO_NUM);)336 3084 A
- 1890 V
- (22661)210 648 A
- 1110(if)S
- ((OPEN_MAX)378 1236 A
- 1656(>)S
- (127))168 1740 A
- (panic("OPEN_MAX)630 1950 A
- 2622(>)S
- (127",)210 2706 A
- (NO_NUM);)336 2958 A
- 1980 V
- (22662)210 648 A
- 1110(if)S
- ((NR_BUFS)336 1236 A
- 1614(<)S
- 1698(6))S
- (panic("NR_BUFS)588 1824 A
- 2454(<)S
- (6",)126 2538 A
- (NO_NUM);)336 2706 A
- 2070 V
- (22663)210 648 A
- 1110(if)S
- ((V1_INODE_SIZE)588 1236 A
- 1866(!=)S
- (32))126 1992 A
- (panic("V1)378 2160 A
- (inode)210 2580 A
- (size)168 2832 A
- 3042(!=)S
- (32",)168 3168 A
- (NO_NUM);)336 3378 A
- 2160 V
- (22664)210 648 A
- 1110(if)S
- ((V2_INODE_SIZE)588 1236 A
- 1866(!=)S
- (64))126 1992 A
- (panic("V2)378 2160 A
- (inode)210 2580 A
- (size)168 2832 A
- 3042(!=)S
- (64",)168 3168 A
- (NO_NUM);)336 3378 A
- 2250 V
- (22665)210 648 A
- 1110(if)S
- ((OPEN_MAX)378 1236 A
- 1656(>)S
- 1740(8)S
- 1824(*)S
- (sizeof(long)))546 1908 A
- (panic("Too)420 2496 A
- (few)126 2958 A
- (bits)168 3126 A
- 3336(in)S
- (fp_cloexec",)504 3462 A
- (NO_NUM);)336 4008 A
- 2340 V
- (22666)210 648 A
- 2430 V
- (22667)210 648 A
- 1110(/*)S
- (Tell)168 1236 A
- (the)126 1446 A
- (memory)252 1614 A
- (task)168 1908 A
- (where)210 2118 A
- 2370(my)S
- (process)294 2496 A
- (table)210 2832 A
- 3084(is)S
- (for)126 3210 A
- (the)126 3378 A
- (sake)168 3546 A
- 3756(of)S
- (ps(1).)252 3882 A
- 4176(*/)S
- 2520 V
- (22668)210 648 A
- (mess.m_type)462 1110 A
- 1614(=)S
- (DEV_IOCTL;)420 1698 A
- 2610 V
- (22669)210 648 A
- (mess.PROC_NR)504 1110 A
- 1656(=)S
- (FS_PROC_NR;)462 1740 A
- 2700 V
- (22670)210 648 A
- (mess.REQUEST)504 1110 A
- 1656(=)S
- (MIOCSPSINFO;)504 1740 A
- 2790 V
- (22671)210 648 A
- (mess.ADDRESS)504 1110 A
- 1656(=)S
- ((void)210 1740 A
- 1992(*))S
- (fproc;)252 2118 A
- 2880 V
- (22672)210 648 A
- ((void))252 1110 A
- (sendrec(MEM,)504 1404 A
- (&mess);)294 1950 A
- 2970 V
- (22673)210 648 A
- 1026(})S
- 3240 V
- (22676)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3330 V
- (22677)210 648 A
- 1068(*)S
- (buf_pool)336 2370 A
- 4260(*)S
- 3420 V
- (22678)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3510 V
- (22679)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (buf_pool())420 1572 A
- 3600 V
- (22680)210 648 A
- 1026({)S
- 3690 V
- (22681)210 648 A
- 1026(/*)S
- (Initialize)420 1152 A
- (the)126 1614 A
- (buffer)252 1782 A
- (pool.)210 2076 A
- 2328(*/)S
- 3780 V
- (22682)210 648 A
- 3870 V
- (22683)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (buf)126 1782 A
- (*bp;)168 1950 A
- 3960 V
- (22684)210 648 A
- 4050 V
- (22685)210 648 A
- (bufs_in_use)462 1110 A
- 1614(=)S
- 1698(0;)S
- 4140 V
- (22686)210 648 A
- (front)210 1110 A
- 1362(=)S
- (&buf[0];)336 1446 A
- 4230 V
- (22687)210 648 A
- (rear)168 1110 A
- 1320(=)S
- (&buf[NR_BUFS)504 1404 A
- 1950(-)S
- (1];)126 2034 A
- 4320 V
- (22688)210 648 A
- 4410 V
- (22689)210 648 A
- (for)126 1110 A
- ((bp)126 1278 A
- 1446(=)S
- (&buf[0];)336 1530 A
- 1908(bp)S
- 2034(<)S
- (&buf[NR_BUFS];)588 2118 A
- (bp++))210 2748 A
- 3000({)S
- 4500 V
- (22690)210 648 A
- (bp->b_blocknr)546 1362 A
- 1950(=)S
- (NO_BLOCK;)378 2034 A
- 4590 V
- (22691)210 648 A
- (bp->b_dev)378 1362 A
- 1782(=)S
- (NO_DEV;)294 1866 A
- 4680 V
- (22692)210 648 A
- (bp->b_next)420 1362 A
- 1824(=)S
- 1908(bp)S
- 2034(+)S
- 2118(1;)S
- 4770 V
- (22693)210 648 A
- (bp->b_prev)420 1362 A
- 1824(=)S
- 1908(bp)S
- 2034(-)S
- 2118(1;)S
- 4860 V
- (22694)210 648 A
- 1110(})S
- 4950 V
- (22695)210 648 A
- (buf[0].b_prev)546 1110 A
- 1698(=)S
- (NIL_BUF;)336 1782 A
- 5040 V
- (22696)210 648 A
- (buf[NR_BUFS)462 1110 A
- 1614(-)S
- (1].b_next)378 1698 A
- 2118(=)S
- (NIL_BUF;)336 2202 A
- 5130 V
- (22697)210 648 A
- 5220 V
- (22698)210 648 A
- (for)126 1110 A
- ((bp)126 1278 A
- 1446(=)S
- (&buf[0];)336 1530 A
- 1908(bp)S
- 2034(<)S
- (&buf[NR_BUFS];)588 2118 A
- (bp++))210 2748 A
- (bp->b_hash)420 3000 A
- 3462(=)S
- (bp->b_next;)462 3546 A
- 5310 V
- (22699)210 648 A
- (buf_hash[0])462 1110 A
- 1614(=)S
- (front;)252 1698 A
- 5400 V
- (22700)210 648 A
- 1026(})S
- 5670 V
- (22703)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5760 V
- (22704)210 648 A
- 1068(*)S
- (get_boot_parameters)798 2370 A
- 4260(*)S
- 5850 V
- (22705)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5940 V
- (22706)210 648 A
- (PUBLIC)252 1026 A
- (struct)252 1320 A
- (bparam_s)336 1614 A
- (boot_parameters;)672 1992 A
- 6030 V
- (22707)210 648 A
- 6120 V
- (22708)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (get_boot_parameters())882 1572 A
- 6210 V
- (22709)210 648 A
- 1026({)S
- 8418 V
- EP
- %%Page: 310 310
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (310)180 648 A
- 11 R
- 2135(File:)S
- 2368(src/fs/main.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22710)210 648 A
- 1026(/*)S
- (Ask)126 1152 A
- (kernel)252 1320 A
- (for)126 1614 A
- (boot)168 1782 A
- (parameters.)462 1992 A
- 2496(*/)S
- 990 V
- (22711)210 648 A
- 1080 V
- (22712)210 648 A
- (m1.m_type)378 1110 A
- 1530(=)S
- (SYS_GBOOT;)420 1614 A
- 1170 V
- (22713)210 648 A
- (m1.PROC1)336 1110 A
- 1488(=)S
- (FS_PROC_NR;)462 1572 A
- 1260 V
- (22714)210 648 A
- (m1.MEM_PTR)420 1110 A
- 1572(=)S
- ((char)210 1656 A
- 1908(*))S
- (&boot_parameters;)714 2034 A
- 1350 V
- (22715)210 648 A
- ((void))252 1110 A
- (sendrec(SYSTASK,)672 1404 A
- (&m1);)210 2118 A
- 1440 V
- (22716)210 648 A
- 1026(})S
- 1710 V
- (22719)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1800 V
- (22720)210 648 A
- 1068(*)S
- (load_ram)336 2370 A
- 4260(*)S
- 1890 V
- (22721)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1980 V
- (22722)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (load_ram())420 1572 A
- 2070 V
- (22723)210 648 A
- 1026({)S
- 2160 V
- (22724)210 648 A
- 1026(/*)S
- 1152(If)S
- (the)126 1278 A
- (root)168 1446 A
- (device)252 1656 A
- 1950(is)S
- (the)126 2076 A
- (RAM)126 2244 A
- (disk,)210 2412 A
- (copy)168 2664 A
- (the)126 2874 A
- (entire)252 3042 A
- (root)168 3336 A
- (image)210 3546 A
- (device)252 3798 A
- 2250 V
- (22725)210 648 A
- 1068(*)S
- (block-by-block)588 1152 A
- 1782(to)S
- 1908(a)S
- (RAM)126 1992 A
- (disk)168 2160 A
- (with)168 2370 A
- (the)126 2580 A
- (same)168 2748 A
- (size)168 2958 A
- 3168(as)S
- (the)126 3294 A
- (image.)252 3462 A
- 2340 V
- (22726)210 648 A
- 1068(*)S
- (Otherwise,)420 1152 A
- (just)168 1614 A
- (allocate)336 1824 A
- 2202(a)S
- (RAM)126 2286 A
- (disk)168 2454 A
- (with)168 2664 A
- (size)168 2874 A
- (given)210 3084 A
- 3336(in)S
- (the)126 3462 A
- (boot)168 3630 A
- (parameters.)462 3840 A
- 2430 V
- (22727)210 648 A
- 1068(*/)S
- 2520 V
- (22728)210 648 A
- 2610 V
- (22729)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (buf)126 1782 A
- (*bp,)168 1950 A
- (*bp1;)210 2160 A
- 2700 V
- (22730)210 648 A
- (long)168 1110 A
- (k_loaded,)378 1320 A
- (lcount;)294 1740 A
- 2790 V
- (22731)210 648 A
- (u32_t)210 1110 A
- (ram_size,)378 1362 A
- (fsmax;)252 1782 A
- 2880 V
- (22732)210 648 A
- (zone_t)252 1110 A
- (zones;)252 1404 A
- 2970 V
- (22733)210 648 A
- (struct)252 1110 A
- (super_block)462 1404 A
- (*sp,)168 1908 A
- (*dsp;)210 2118 A
- 3060 V
- (22734)210 648 A
- (block_t)294 1110 A
- 1446(b;)S
- 3150 V
- (22735)210 648 A
- (int)126 1110 A
- (major,)252 1278 A
- (task;)210 1572 A
- 3240 V
- (22736)210 648 A
- (message)294 1110 A
- (dev_mess;)378 1446 A
- 3330 V
- (22737)210 648 A
- 3420 V
- (22738)210 648 A
- (ram_size)336 1110 A
- 1488(=)S
- (boot_parameters.bp_ramsize;)1134 1572 A
- 3510 V
- (22739)210 648 A
- 3600 V
- (22740)210 648 A
- 1110(/*)S
- (Open)168 1236 A
- (the)126 1446 A
- (root)168 1614 A
- (device.)294 1824 A
- 2160(*/)S
- 3690 V
- (22741)210 648 A
- (major)210 1110 A
- 1362(=)S
- ((ROOT_DEV)378 1446 A
- 1866(>>)S
- (MAJOR))252 1992 A
- 2286(&)S
- (BYTE;)210 2370 A
- 2706(/*)S
- (major)210 2832 A
- (device)252 3084 A
- 3378(nr)S
- 3504(*/)S
- 3780 V
- (22742)210 648 A
- (task)168 1110 A
- 1320(=)S
- (dmap[major].dmap_task;)924 1404 A
- 2706(/*)S
- (device)252 2832 A
- (task)168 3126 A
- 3336(nr)S
- 3462(*/)S
- 3870 V
- (22743)210 648 A
- (dev_mess.m_type)630 1110 A
- 1782(=)S
- (DEV_OPEN;)378 1866 A
- 2706(/*)S
- (distinguish)462 2832 A
- (from)168 3336 A
- (close)210 3546 A
- 3798(*/)S
- 3960 V
- (22744)210 648 A
- (dev_mess.DEVICE)630 1110 A
- 1782(=)S
- (ROOT_DEV;)378 1866 A
- 4050 V
- (22745)210 648 A
- (dev_mess.COUNT)588 1110 A
- 1740(=)S
- (R_BIT|W_BIT;)504 1824 A
- 4140 V
- (22746)210 648 A
- ((*dmap[major].dmap_open)(task,)1260 1110 A
- (&dev_mess);)462 2412 A
- 4230 V
- (22747)210 648 A
- 1110(if)S
- ((dev_mess.REP_STATUS)840 1236 A
- 2118(!=)S
- (OK))126 2244 A
- (panic("Cannot)546 2412 A
- (open)168 3000 A
- (root)168 3210 A
- (device",NO_NUM);)672 3420 A
- 4320 V
- (22748)210 648 A
- 4410 V
- (22749)210 648 A
- 1110(/*)S
- 1236(If)S
- (the)126 1362 A
- (root)168 1530 A
- (device)252 1740 A
- 2034(is)S
- (the)126 2160 A
- (ram)126 2328 A
- (disk)168 2496 A
- (then)168 2706 A
- (fill)168 2916 A
- 3126(it)S
- (from)168 3252 A
- (the)126 3462 A
- (image)210 3630 A
- (device.)294 3882 A
- 4218(*/)S
- 4500 V
- (22750)210 648 A
- 1110(if)S
- ((ROOT_DEV)378 1236 A
- 1656(==)S
- (DEV_RAM))336 1782 A
- 2160({)S
- 4590 V
- (22751)210 648 A
- (major)210 1362 A
- 1614(=)S
- ((IMAGE_DEV)420 1698 A
- 2160(>>)S
- (MAJOR))252 2286 A
- 2580(&)S
- (BYTE;)210 2664 A
- 3042(/*)S
- (major)210 3168 A
- (device)252 3420 A
- 3714(nr)S
- 3840(*/)S
- 4680 V
- (22752)210 648 A
- (task)168 1362 A
- 1572(=)S
- (dmap[major].dmap_task;)924 1656 A
- 3042(/*)S
- (device)252 3168 A
- (task)168 3462 A
- 3672(nr)S
- 3798(*/)S
- 4770 V
- (22753)210 648 A
- (dev_mess.m_type)630 1362 A
- 2034(=)S
- (DEV_OPEN;)378 2118 A
- 3042(/*)S
- (distinguish)462 3168 A
- (from)168 3672 A
- (close)210 3882 A
- 4134(*/)S
- 4860 V
- (22754)210 648 A
- (dev_mess.DEVICE)630 1362 A
- 2034(=)S
- (IMAGE_DEV;)420 2118 A
- 4950 V
- (22755)210 648 A
- (dev_mess.COUNT)588 1362 A
- 1992(=)S
- (R_BIT;)252 2076 A
- 5040 V
- (22756)210 648 A
- ((*dmap[major].dmap_open)(task,)1260 1362 A
- (&dev_mess);)462 2664 A
- 5130 V
- (22757)210 648 A
- 1362(if)S
- ((dev_mess.REP_STATUS)840 1488 A
- 2370(!=)S
- (OK))126 2496 A
- (panic("Cannot)546 2664 A
- (open)168 3252 A
- (root)168 3462 A
- (device",)336 3672 A
- (NO_NUM);)336 4050 A
- 5220 V
- (22758)210 648 A
- 5310 V
- (22759)210 648 A
- 1362(/*)S
- (Get)126 1488 A
- (size)168 1656 A
- 1866(of)S
- (RAM)126 1992 A
- (disk)168 2160 A
- 2370(by)S
- (reading)294 2496 A
- (root)168 2832 A
- (file)168 3042 A
- (system's)336 3252 A
- (super)210 3630 A
- (block.)252 3882 A
- 4176(*/)S
- 5400 V
- (22760)210 648 A
- 1362(sp)S
- 1488(=)S
- (&super_block[0];)672 1572 A
- 5490 V
- (22761)210 648 A
- (sp->s_dev)378 1362 A
- 1782(=)S
- (IMAGE_DEV;)420 1866 A
- 5580 V
- (22762)210 648 A
- 1362(if)S
- ((read_super(sp))630 1488 A
- 2160(!=)S
- (OK))126 2286 A
- (panic("Bad)420 2454 A
- (root)168 2916 A
- (file)168 3126 A
- (system",)336 3336 A
- (NO_NUM);)336 3714 A
- 5670 V
- (22763)210 648 A
- 5760 V
- (22764)210 648 A
- (lcount)252 1362 A
- 1656(=)S
- (sp->s_zones)462 1740 A
- 2244(<<)S
- (sp->s_log_zone_size;)840 2370 A
- 3378(/*)S
- 3504(#)S
- (blks)168 3588 A
- 3798(on)S
- (root)168 3924 A
- (dev*/)210 4134 A
- 5850 V
- (22765)210 648 A
- 5940 V
- (22766)210 648 A
- 1362(/*)S
- (Stretch)294 1488 A
- (the)126 1824 A
- (RAM)126 1992 A
- (disk)168 2160 A
- (file)168 2370 A
- (system)252 2580 A
- 2874(to)S
- (the)126 3000 A
- (boot)168 3168 A
- (parameters)420 3378 A
- (size,)210 3840 A
- (but)126 4092 A
- 6030 V
- (22767)210 648 A
- 1404(*)S
- 1488(no)S
- (further)294 1614 A
- (than)168 1950 A
- (the)126 2160 A
- (last)168 2328 A
- (zone)168 2538 A
- (bit)126 2748 A
- (map)126 2916 A
- (block)210 3084 A
- (allows.)294 3336 A
- 6120 V
- (22768)210 648 A
- 1404(*/)S
- 6210 V
- (22769)210 648 A
- 1362(if)S
- ((ram_size)378 1488 A
- 1908(<)S
- (lcount))294 1992 A
- (ram_size)336 2328 A
- 2706(=)S
- (lcount;)294 2790 A
- 8418 V
- EP
- %%Page: 311 311
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2135(File:)S
- 2368(src/fs/main.c)S
- 12 B
- (311)180 4248 A
- 900 V
- 7 LST
- (22770)210 648 A
- (fsmax)210 1362 A
- 1614(=)S
- ((u32_t))294 1698 A
- (sp->s_zmap_blocks)714 2034 A
- 2790(*)S
- (CHAR_BIT)336 2874 A
- 3252(*)S
- (BLOCK_SIZE;)462 3336 A
- 990 V
- (22771)210 648 A
- (fsmax)210 1362 A
- 1614(=)S
- ((fsmax)252 1698 A
- 1992(+)S
- ((sp->s_firstdatazone-1)))1008 2076 A
- 3126(<<)S
- (sp->s_log_zone_size;)840 3252 A
- 1080 V
- (22772)210 648 A
- 1362(if)S
- ((ram_size)378 1488 A
- 1908(>)S
- (fsmax))252 1992 A
- (ram_size)336 2286 A
- 2664(=)S
- (fsmax;)252 2748 A
- 1170 V
- (22773)210 648 A
- 1110(})S
- 1260 V
- (22774)210 648 A
- 1350 V
- (22775)210 648 A
- 1110(/*)S
- (Tell)168 1236 A
- (RAM)126 1446 A
- (driver)252 1614 A
- (how)126 1908 A
- (big)126 2076 A
- (the)126 2244 A
- (RAM)126 2412 A
- (disk)168 2580 A
- (must)168 2790 A
- (be.)126 3000 A
- 3168(*/)S
- 1440 V
- (22776)210 648 A
- (m1.m_type)378 1110 A
- 1530(=)S
- (DEV_IOCTL;)420 1614 A
- 1530 V
- (22777)210 648 A
- (m1.PROC_NR)420 1110 A
- 1572(=)S
- (FS_PROC_NR;)462 1656 A
- 1620 V
- (22778)210 648 A
- (m1.REQUEST)420 1110 A
- 1572(=)S
- (MIOCRAMSIZE;)504 1656 A
- 1710 V
- (22779)210 648 A
- (m1.POSITION)462 1110 A
- 1614(=)S
- (ram_size;)378 1698 A
- 1800 V
- (22780)210 648 A
- 1110(if)S
- ((sendrec(MEM,)546 1236 A
- (&m1))168 1824 A
- 2034(!=)S
- 2160(OK)S
- 2286(||)S
- (m1.REP_STATUS)546 2412 A
- 3000(!=)S
- (OK))126 3126 A
- 1890 V
- (22781)210 648 A
- (panic("Can't)504 1362 A
- (set)126 1908 A
- (RAM)126 2076 A
- (disk)168 2244 A
- (size",)252 2454 A
- (NO_NUM);)336 2748 A
- 1980 V
- (22782)210 648 A
- 2070 V
- (22783)210 648 A
- 1110(/*)S
- (Tell)168 1236 A
- 1446(MM)S
- (the)126 1572 A
- (RAM)126 1740 A
- (disk)168 1908 A
- (size,)210 2118 A
- (and)126 2370 A
- (wait)168 2538 A
- (for)126 2748 A
- 2916(it)S
- 3042(to)S
- (come)168 3168 A
- ("on-line".)420 3378 A
- 3840(*/)S
- 2160 V
- (22784)210 648 A
- (m1.m1_i1)336 1110 A
- 1488(=)S
- (((long))294 1572 A
- (ram_size)336 1908 A
- 2286(*)S
- (BLOCK_SIZE))462 2370 A
- 2874(>>)S
- (CLICK_SHIFT;)504 3000 A
- 2250 V
- (22785)210 648 A
- 1110(if)S
- ((sendrec(MM_PROC_NR,)840 1236 A
- (&m1))168 2118 A
- 2328(!=)S
- (OK))126 2454 A
- 2340 V
- (22786)210 648 A
- (panic("FS)378 1362 A
- (can't)210 1782 A
- (sync)168 2034 A
- 2244(up)S
- (with)168 2370 A
- (MM",)168 2580 A
- (NO_NUM);)336 2790 A
- 2430 V
- (22787)210 648 A
- 2520 V
- (22788)210 648 A
- 1110(/*)S
- 1236(If)S
- (the)126 1362 A
- (root)168 1530 A
- (device)252 1740 A
- 2034(is)S
- (not)126 2160 A
- (the)126 2328 A
- (RAM)126 2496 A
- (disk,)210 2664 A
- 2916(it)S
- (doesn't)294 3042 A
- (need)168 3378 A
- (loading.)336 3588 A
- 3966(*/)S
- 2610 V
- (22789)210 648 A
- 1110(if)S
- ((ROOT_DEV)378 1236 A
- 1656(!=)S
- (DEV_RAM))336 1782 A
- (return;)294 2160 A
- 2700 V
- (22790)210 648 A
- 2790 V
- (22791)210 648 A
- 1110(/*)S
- (Copy)168 1236 A
- (the)126 1446 A
- (blocks)252 1614 A
- (one)126 1908 A
- 2076(at)S
- 2202(a)S
- (time)168 2286 A
- (from)168 2496 A
- (the)126 2706 A
- (image)210 2874 A
- 3126(to)S
- (the)126 3252 A
- (RAM)126 3420 A
- (disk.)210 3588 A
- 3840(*/)S
- 2880 V
- (22792)210 648 A
- (printf("Loading)630 1110 A
- (RAM)126 1782 A
- (disk.\33[23CLoaded:)798 1950 A
- 2916(0K)S
- (");)126 3042 A
- 2970 V
- (22793)210 648 A
- 3060 V
- (22794)210 648 A
- (inode[0].i_mode)630 1110 A
- 1782(=)S
- (I_BLOCK_SPECIAL;)672 1866 A
- 2706(/*)S
- (temp)168 2832 A
- (inode)210 3042 A
- (for)126 3294 A
- (rahead())336 3462 A
- 3840(*/)S
- 3150 V
- (22795)210 648 A
- (inode[0].i_size)630 1110 A
- 1782(=)S
- (LONG_MAX;)378 1866 A
- 3240 V
- (22796)210 648 A
- (inode[0].i_dev)588 1110 A
- 1740(=)S
- (IMAGE_DEV;)420 1824 A
- 3330 V
- (22797)210 648 A
- (inode[0].i_zone[0])756 1110 A
- 1908(=)S
- (IMAGE_DEV;)420 1992 A
- 3420 V
- (22798)210 648 A
- 3510 V
- (22799)210 648 A
- (for)126 1110 A
- 1278((b)S
- 1404(=)S
- 1488(0;)S
- 1614(b)S
- 1698(<)S
- ((block_t))378 1782 A
- (lcount;)294 2202 A
- (b++))168 2538 A
- 2748({)S
- 3600 V
- (22800)210 648 A
- 1362(bp)S
- 1488(=)S
- (rahead(&inode[0],)714 1572 A
- 2328(b,)S
- ((off_t)BLOCK_SIZE)714 2454 A
- 3210(*)S
- 3294(b,)S
- (BLOCK_SIZE);)504 3420 A
- 3690 V
- (22801)210 648 A
- (bp1)126 1362 A
- 1530(=)S
- (get_block(ROOT_DEV,)798 1614 A
- 2454(b,)S
- (NO_READ);)378 2580 A
- 3780 V
- (22802)210 648 A
- (memcpy(bp1->b_data,)798 1362 A
- (bp->b_data,)462 2202 A
- ((size_t))336 2706 A
- (BLOCK_SIZE);)504 3084 A
- 3870 V
- (22803)210 648 A
- (bp1->b_dirt)462 1362 A
- 1866(=)S
- (DIRTY;)252 1950 A
- 3960 V
- (22804)210 648 A
- (put_block(bp,)546 1362 A
- (FULL_DATA_BLOCK);)714 1950 A
- 4050 V
- (22805)210 648 A
- (put_block(bp1,)588 1362 A
- (FULL_DATA_BLOCK);)714 1992 A
- 4140 V
- (22806)210 648 A
- (k_loaded)336 1362 A
- 1740(=)S
- 1824(()S
- ((long))252 1908 A
- 2202(b)S
- 2286(*)S
- (BLOCK_SIZE)/1024L;)756 2370 A
- 3378(/*)S
- 3504(K)S
- (loaded)252 3588 A
- 3882(so)S
- (far)126 4008 A
- 4176(*/)S
- 4230 V
- (22807)210 648 A
- 1362(if)S
- ((k_loaded)378 1488 A
- 1908(%)S
- 1992(5)S
- 2076(==)S
- 2202(0))S
- (printf("\b\b\b\b\b\b\b%5ldK)1134 2328 A
- 3504(",)S
- (k_loaded);)420 3630 A
- 4320 V
- (22808)210 648 A
- 1110(})S
- 4410 V
- (22809)210 648 A
- 4500 V
- (22810)210 648 A
- (printf("\rRAM)546 1110 A
- (disk)168 1698 A
- (loaded.\33[K\n\n");)798 1908 A
- 4590 V
- (22811)210 648 A
- 4680 V
- (22812)210 648 A
- 1110(/*)S
- (Close)210 1236 A
- (and)126 1488 A
- (invalidate)420 1656 A
- (image)210 2118 A
- (device.)294 2370 A
- 2706(*/)S
- 4770 V
- (22813)210 648 A
- (dev_mess.m_type)630 1110 A
- 1782(=)S
- (DEV_CLOSE;)420 1866 A
- 4860 V
- (22814)210 648 A
- (dev_mess.DEVICE)630 1110 A
- 1782(=)S
- (IMAGE_DEV;)420 1866 A
- 4950 V
- (22815)210 648 A
- ((*dmap[major].dmap_close)(task,)1302 1110 A
- (&dev_mess);)462 2454 A
- 5040 V
- (22816)210 648 A
- (invalidate(IMAGE_DEV);)924 1110 A
- 5130 V
- (22817)210 648 A
- 5220 V
- (22818)210 648 A
- 1110(/*)S
- (Resize)252 1236 A
- (the)126 1530 A
- (RAM)126 1698 A
- (disk)168 1866 A
- (root)168 2076 A
- (file)168 2286 A
- (system.)294 2496 A
- 2832(*/)S
- 5310 V
- (22819)210 648 A
- 1110(bp)S
- 1236(=)S
- (get_block(ROOT_DEV,)798 1320 A
- (SUPER_BLOCK,)504 2160 A
- (NORMAL);)336 2706 A
- 5400 V
- (22820)210 648 A
- (dsp)126 1110 A
- 1278(=)S
- ((struct)294 1362 A
- (super_block)462 1698 A
- 2202(*))S
- (bp->b_data;)462 2328 A
- 5490 V
- (22821)210 648 A
- (zones)210 1110 A
- 1362(=)S
- (ram_size)336 1446 A
- 1824(>>)S
- (sp->s_log_zone_size;)840 1950 A
- 5580 V
- (22822)210 648 A
- (dsp->s_nzones)546 1110 A
- 1698(=)S
- (conv2(sp->s_native,)798 1782 A
- ((u16_t))294 2622 A
- (zones);)294 2958 A
- 5670 V
- (22823)210 648 A
- (dsp->s_zones)504 1110 A
- 1656(=)S
- (conv4(sp->s_native,)798 1740 A
- (zones);)294 2580 A
- 5760 V
- (22824)210 648 A
- (bp->b_dirt)420 1110 A
- 1572(=)S
- (DIRTY;)252 1656 A
- 5850 V
- (22825)210 648 A
- (put_block(bp,)546 1110 A
- (ZUPER_BLOCK);)546 1698 A
- 5940 V
- (22826)210 648 A
- 1026(})S
- 6210 V
- (22829)210 648 A
- (/*===========================================================================*)3276 1026 A
- 8418 V
- EP
- %%Page: 312 312
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (312)180 648 A
- 11 R
- 2135(File:)S
- 2368(src/fs/main.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22830)210 648 A
- 1068(*)S
- (load_super)420 2370 A
- 4260(*)S
- 990 V
- (22831)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1080 V
- (22832)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (load_super(super_dev))882 1572 A
- 1170 V
- (22833)210 648 A
- (dev_t)210 1026 A
- (super_dev;)420 1278 A
- 2706(/*)S
- (place)210 2832 A
- 3084(to)S
- (get)126 3210 A
- (superblock)420 3378 A
- (from)168 3840 A
- 4050(*/)S
- 1260 V
- (22834)210 648 A
- 1026({)S
- 1350 V
- (22835)210 648 A
- (int)126 1110 A
- (bad;)168 1278 A
- 1440 V
- (22836)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (super_block)462 1782 A
- (*sp;)168 2286 A
- 1530 V
- (22837)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (inode)210 1782 A
- (*rip;)210 2034 A
- 1620 V
- (22838)210 648 A
- 1710 V
- (22839)210 648 A
- 1110(/*)S
- (Initialize)420 1236 A
- (the)126 1698 A
- (super_block)462 1866 A
- (table.)252 2370 A
- 2664(*/)S
- 1800 V
- (22840)210 648 A
- (for)126 1110 A
- ((sp)126 1278 A
- 1446(=)S
- (&super_block[0];)672 1530 A
- 2244(sp)S
- 2370(<)S
- (&super_block[NR_SUPERS];)1008 2454 A
- (sp++))210 3504 A
- 1890 V
- (22841)210 648 A
- (sp->s_dev)378 1362 A
- 1782(=)S
- (NO_DEV;)294 1866 A
- 1980 V
- (22842)210 648 A
- 2070 V
- (22843)210 648 A
- 1110(/*)S
- (Read)168 1236 A
- 1446(in)S
- (super_block)462 1572 A
- (for)126 2076 A
- (the)126 2244 A
- (root)168 2412 A
- (file)168 2622 A
- (system.)294 2832 A
- 3168(*/)S
- 2160 V
- (22844)210 648 A
- 1110(sp)S
- 1236(=)S
- (&super_block[0];)672 1320 A
- 2250 V
- (22845)210 648 A
- (sp->s_dev)378 1110 A
- 1530(=)S
- (super_dev;)420 1614 A
- 2340 V
- (22846)210 648 A
- 2430 V
- (22847)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- (super_block)462 1488 A
- (for)126 1992 A
- (consistency)462 2160 A
- ((is)126 2664 A
- 2832(it)S
- (the)126 2958 A
- (right)210 3126 A
- (diskette?).)462 3378 A
- 3882(*/)S
- 2520 V
- (22848)210 648 A
- (bad)126 1110 A
- 1278(=)S
- ((read_super(sp))630 1362 A
- 2034(!=)S
- (OK);)168 2160 A
- 2610 V
- (22849)210 648 A
- 1110(if)S
- ((!bad))252 1236 A
- 1530({)S
- 2700 V
- (22850)210 648 A
- (rip)126 1362 A
- 1530(=)S
- (get_inode(super_dev,)840 1614 A
- (ROOT_INODE);)504 2496 A
- 3042(/*)S
- (inode)210 3168 A
- (for)126 3420 A
- (root)168 3588 A
- (dir)126 3798 A
- 3966(*/)S
- 2790 V
- (22851)210 648 A
- 1362(if)S
- 1488(()S
- ((rip->i_mode)504 1572 A
- 2118(&)S
- (I_TYPE))294 2202 A
- 2538(!=)S
- (I_DIRECTORY)462 2664 A
- 3168(||)S
- (rip->i_nlinks)546 3294 A
- 3882(<)S
- 3966(3))S
- (bad++;)252 4092 A
- 2880 V
- (22852)210 648 A
- 1110(})S
- 2970 V
- (22853)210 648 A
- 1110(if)S
- ((bad)panic("Invalid)798 1236 A
- (root)168 2076 A
- (file)168 2286 A
- (system.)294 2496 A
- (Possibly)336 2874 A
- (wrong)210 3252 A
- (diskette.",NO_NUM);)798 3504 A
- 3060 V
- (22854)210 648 A
- 3150 V
- (22855)210 648 A
- (sp->s_imount)504 1110 A
- 1656(=)S
- (rip;)168 1740 A
- 3240 V
- (22856)210 648 A
- (dup_inode(rip);)630 1110 A
- 3330 V
- (22857)210 648 A
- (sp->s_isup)420 1110 A
- 1572(=)S
- (rip;)168 1656 A
- 3420 V
- (22858)210 648 A
- (sp->s_rd_only)546 1110 A
- 1698(=)S
- 1782(0;)S
- 3510 V
- (22859)210 648 A
- (return;)294 1110 A
- 3600 V
- (22860)210 648 A
- 1026(})S
- 4140 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4230 V
- (src/fs/open.c)546 2034 A
- 4320 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4500 V
- (22900)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (procedures)420 2118 A
- (for)126 2580 A
- (creating,)378 2748 A
- (opening,)336 3168 A
- (closing,)336 3546 A
- (and)126 3924 A
- 4590 V
- (22901)210 648 A
- 1068(*)S
- (seeking)294 1152 A
- 1488(on)S
- (files.)252 1614 A
- 4680 V
- (22902)210 648 A
- 1068(*)S
- 4770 V
- (22903)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)126 2496 A
- 4860 V
- (22904)210 648 A
- 1068(*)S
- (do_creat:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (CREAT)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 4950 V
- (22905)210 648 A
- 1068(*)S
- (do_open:)336 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (OPEN)168 2202 A
- (system)252 2412 A
- (call)168 2706 A
- 5040 V
- (22906)210 648 A
- 1068(*)S
- (do_mknod:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (MKNOD)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 5130 V
- (22907)210 648 A
- 1068(*)S
- (do_mkdir:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (MKDIR)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 5220 V
- (22908)210 648 A
- 1068(*)S
- (do_close:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (CLOSE)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 5310 V
- (22909)210 648 A
- 1068(*)S
- (do_lseek:)378 1236 A
- (perform)294 1698 A
- (the)126 2034 A
- (LSEEK)210 2202 A
- (system)252 2454 A
- (call)168 2748 A
- 5400 V
- (22910)210 648 A
- 1068(*/)S
- 5490 V
- (22911)210 648 A
- 5580 V
- (22912)210 648 A
- (#include)336 1026 A
- ("fs.h")252 1404 A
- 5670 V
- (22913)210 648 A
- (#include)336 1026 A
- (<sys/stat.h>)504 1404 A
- 5760 V
- (22914)210 648 A
- (#include)336 1026 A
- (<fcntl.h>)378 1404 A
- 5850 V
- (22915)210 648 A
- (#include)336 1026 A
- (<minix/callnr.h>)672 1404 A
- 5940 V
- (22916)210 648 A
- (#include)336 1026 A
- (<minix/com.h>)546 1404 A
- 6030 V
- (22917)210 648 A
- (#include)336 1026 A
- ("buf.h")294 1404 A
- 6120 V
- (22918)210 648 A
- (#include)336 1026 A
- ("dev.h")294 1404 A
- 6210 V
- (22919)210 648 A
- (#include)336 1026 A
- ("file.h")336 1404 A
- 8418 V
- EP
- %%Page: 313 313
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 12 B
- (313)180 4248 A
- 900 V
- 7 LST
- (22920)210 648 A
- (#include)336 1026 A
- ("fproc.h")378 1404 A
- 990 V
- (22921)210 648 A
- (#include)336 1026 A
- ("inode.h")378 1404 A
- 1080 V
- (22922)210 648 A
- (#include)336 1026 A
- ("lock.h")336 1404 A
- 1170 V
- (22923)210 648 A
- (#include)336 1026 A
- ("param.h")378 1404 A
- 1260 V
- (22924)210 648 A
- 1350 V
- (22925)210 648 A
- (PRIVATE)294 1026 A
- (message)294 1362 A
- (dev_mess;)378 1698 A
- 1440 V
- (22926)210 648 A
- (PRIVATE)294 1026 A
- (char)168 1362 A
- (mode_map[])420 1572 A
- 2034(=)S
- ({R_BIT,)294 2118 A
- (W_BIT,)252 2454 A
- (R_BIT|W_BIT,)504 2748 A
- (0};)126 3294 A
- 1530 V
- (22927)210 648 A
- 1620 V
- (22928)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (common_open,)504 2034 A
- ((int)168 2580 A
- (oflags,)294 2790 A
- (Mode_t)252 3126 A
- (omode))252 3420 A
- 4050();)S
- 1710 V
- (22929)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (pipe_open,)420 2034 A
- ((struct)294 2496 A
- (inode)210 2832 A
- (*rip,Mode_t)462 3084 A
- (bits,int)336 3588 A
- (oflags));)378 3966 A
- 1800 V
- (22930)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (struct)252 1866 A
- (inode)210 2160 A
- (*new_node,)420 2412 A
- ((char)210 2874 A
- (*path,)252 3126 A
- (Mode_t)252 3420 A
- (bits,)210 3714 A
- 1890 V
- (22931)210 648 A
- (zone_t)252 3378 A
- (z0))126 3672 A
- 4050();)S
- 1980 V
- (22932)210 648 A
- 2070 V
- (22933)210 648 A
- 2160 V
- (22934)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2250 V
- (22935)210 648 A
- 1068(*)S
- (do_creat)336 2370 A
- 4260(*)S
- 2340 V
- (22936)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2430 V
- (22937)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_creat())420 1488 A
- 2520 V
- (22938)210 648 A
- 1026({)S
- 2610 V
- (22939)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (creat(name,)462 1656 A
- (mode))210 2160 A
- (system)252 2412 A
- (call.)210 2706 A
- 2958(*/)S
- 2700 V
- (22940)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 2790 V
- (22941)210 648 A
- 2880 V
- (22942)210 648 A
- 1110(if)S
- ((fetch_name(name,)714 1236 A
- (name_length,)504 1992 A
- (M3))126 2538 A
- 2706(!=)S
- (OK))126 2832 A
- (return(err_code);)714 3000 A
- 2970 V
- (22943)210 648 A
- 1110(r)S
- 1194(=)S
- (common_open(O_WRONLY)840 1278 A
- 2160(|)S
- (O_CREAT)294 2244 A
- 2580(|)S
- (O_TRUNC,)336 2664 A
- ((mode_t))336 3042 A
- (mode);)252 3420 A
- 3060 V
- (22944)210 648 A
- (return(r);)420 1110 A
- 3150 V
- (22945)210 648 A
- 1026(})S
- 3420 V
- (22948)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3510 V
- (22949)210 648 A
- 1068(*)S
- (do_open)294 2370 A
- 4260(*)S
- 3600 V
- (22950)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3690 V
- (22951)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_open())378 1488 A
- 3780 V
- (22952)210 648 A
- 1026({)S
- 3870 V
- (22953)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (open(name,)420 1656 A
- (flags,...))420 2118 A
- (system)252 2580 A
- (call.)210 2874 A
- 3126(*/)S
- 3960 V
- (22954)210 648 A
- 4050 V
- (22955)210 648 A
- (int)126 1110 A
- (create_mode)462 1278 A
- 1782(=)S
- 1866(0;)S
- 2370(/*)S
- 2496(is)S
- (really)252 2622 A
- (mode_t)252 2916 A
- (but)126 3210 A
- (this)168 3378 A
- (gives)210 3588 A
- (problems)336 3840 A
- 4218(*/)S
- 4140 V
- (22956)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 4230 V
- (22957)210 648 A
- 4320 V
- (22958)210 648 A
- 1110(/*)S
- 1236(If)S
- (O_CREAT)294 1362 A
- 1698(is)S
- (set,)168 1824 A
- (open)168 2034 A
- (has)126 2244 A
- (three)210 2412 A
- (parameters,)462 2664 A
- (otherwise)378 3168 A
- (two.)168 3588 A
- 3798(*/)S
- 4410 V
- (22959)210 648 A
- 1110(if)S
- ((mode)210 1236 A
- 1488(&)S
- (O_CREAT))336 1572 A
- 1950({)S
- 4500 V
- (22960)210 648 A
- (create_mode)462 1362 A
- 1866(=)S
- (c_mode;)294 1950 A
- 4590 V
- (22961)210 648 A
- 1362(r)S
- 1446(=)S
- (fetch_name(c_name,)756 1530 A
- (name1_length,)546 2328 A
- (M1);)168 2916 A
- 4680 V
- (22962)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 4770 V
- (22963)210 648 A
- 1362(r)S
- 1446(=)S
- (fetch_name(name,)672 1530 A
- (name_length,)504 2244 A
- (M3);)168 2790 A
- 4860 V
- (22964)210 648 A
- 1110(})S
- 4950 V
- (22965)210 648 A
- 5040 V
- (22966)210 648 A
- 1110(if)S
- 1236((r)S
- 1362(!=)S
- (OK))126 1488 A
- (return(err_code);)714 1656 A
- 2412(/*)S
- (name)168 2538 A
- (was)126 2748 A
- (bad)126 2916 A
- 3084(*/)S
- 5130 V
- (22967)210 648 A
- 1110(r)S
- 1194(=)S
- (common_open(mode,)714 1278 A
- (create_mode);)546 2034 A
- 5220 V
- (22968)210 648 A
- (return(r);)420 1110 A
- 5310 V
- (22969)210 648 A
- 1026(})S
- 5580 V
- (22972)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5670 V
- (22973)210 648 A
- 1068(*)S
- (common_open)462 2370 A
- 4260(*)S
- 5760 V
- (22974)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5850 V
- (22975)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (common_open(oflags,)798 1530 A
- (omode))252 2370 A
- 5940 V
- (22976)210 648 A
- (register)336 1026 A
- (int)126 1404 A
- (oflags;)294 1572 A
- 6030 V
- (22977)210 648 A
- (mode_t)252 1026 A
- (omode;)252 1320 A
- 6120 V
- (22978)210 648 A
- 1026({)S
- 6210 V
- (22979)210 648 A
- 1026(/*)S
- (Common)252 1152 A
- (code)168 1446 A
- (from)168 1656 A
- (do_creat)336 1866 A
- (and)126 2244 A
- (do_open.)336 2412 A
- 2790(*/)S
- 8418 V
- EP
- %%Page: 314 314
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (314)180 648 A
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (22980)210 648 A
- 990 V
- (22981)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (inode)210 1782 A
- (*rip;)210 2034 A
- 1080 V
- (22982)210 648 A
- (int)126 1110 A
- 1278(r,)S
- 1404(b,)S
- (major,)252 1530 A
- (task,)210 1824 A
- (exist)210 2076 A
- 2328(=)S
- (TRUE;)210 2412 A
- 1170 V
- (22983)210 648 A
- (dev_t)210 1110 A
- (dev;)168 1362 A
- 1260 V
- (22984)210 648 A
- (mode_t)252 1110 A
- (bits;)210 1404 A
- 1350 V
- (22985)210 648 A
- (off_t)210 1110 A
- (pos;)168 1362 A
- 1440 V
- (22986)210 648 A
- (struct)252 1110 A
- (filp)168 1404 A
- (*fil_ptr,)378 1614 A
- (*filp2;)294 2034 A
- 1530 V
- (22987)210 648 A
- 1620 V
- (22988)210 648 A
- 1110(/*)S
- (Remap)210 1236 A
- (the)126 1488 A
- (bottom)252 1656 A
- (two)126 1950 A
- (bits)168 2118 A
- 2328(of)S
- (oflags.)294 2454 A
- 2790(*/)S
- 1710 V
- (22989)210 648 A
- (bits)168 1110 A
- 1320(=)S
- ((mode_t))336 1404 A
- (mode_map[oflags)630 1782 A
- 2454(&)S
- (O_ACCMODE];)462 2538 A
- 1800 V
- (22990)210 648 A
- 1890 V
- (22991)210 648 A
- 1110(/*)S
- (See)126 1236 A
- 1404(if)S
- (file)168 1530 A
- (descriptor)420 1740 A
- (and)126 2202 A
- (filp)168 2370 A
- (slots)210 2580 A
- (are)126 2832 A
- (available.)420 3000 A
- 3462(*/)S
- 1980 V
- (22992)210 648 A
- 1110(if)S
- 1236(()S
- 1320((r)S
- 1446(=)S
- (get_fd(0,)378 1530 A
- (bits,)210 1950 A
- (&fd,)168 2202 A
- (&fil_ptr)))420 2412 A
- 2874(!=)S
- (OK))126 3000 A
- (return(r);)420 3168 A
- 2070 V
- (22993)210 648 A
- 2160 V
- (22994)210 648 A
- 1110(/*)S
- 1236(If)S
- (O_CREATE)336 1362 A
- 1740(is)S
- (set,)168 1866 A
- (try)126 2076 A
- 2244(to)S
- (make)168 2370 A
- (the)126 2580 A
- (file.)210 2748 A
- 3000(*/)S
- 2250 V
- (22995)210 648 A
- 1110(if)S
- ((oflags)294 1236 A
- 1572(&)S
- (O_CREAT))336 1656 A
- 2034({)S
- 2340 V
- (22996)210 648 A
- 1362(/*)S
- (Create)252 1488 A
- 1782(a)S
- (new)126 1866 A
- (inode)210 2034 A
- 2286(by)S
- (calling)294 2412 A
- (new_node().)462 2748 A
- 3252(*/)S
- 2430 V
- (22997)210 648 A
- (omode)210 1362 A
- 1614(=)S
- (I_REGULAR)378 1698 A
- 2118(|)S
- ((omode)252 2202 A
- 2496(&)S
- (ALL_MODES)378 2580 A
- 3000(&)S
- (fp->fp_umask);)588 3084 A
- 2520 V
- (22998)210 648 A
- (rip)126 1362 A
- 1530(=)S
- (new_node(user_path,)798 1614 A
- (omode,)252 2454 A
- (NO_ZONE);)378 2748 A
- 2610 V
- (22999)210 648 A
- 1362(r)S
- 1446(=)S
- (err_code;)378 1530 A
- 2700 V
- (23000)210 648 A
- 1362(if)S
- 1488((r)S
- 1614(==)S
- (OK))126 1740 A
- (exist)210 1908 A
- 2160(=)S
- (FALSE;)252 2244 A
- 2748(/*)S
- 2874(we)S
- (just)168 3000 A
- (created)294 3210 A
- (the)126 3546 A
- (file)168 3714 A
- 3924(*/)S
- 2790 V
- (23001)210 648 A
- (else)168 1362 A
- 1572(if)S
- 1698((r)S
- 1824(!=)S
- (EEXIST))294 1950 A
- (return(r);)420 2286 A
- 2748(/*)S
- (other)210 2874 A
- (error)210 3126 A
- 3378(*/)S
- 2880 V
- (23002)210 648 A
- (else)168 1362 A
- (exist)210 1572 A
- 1824(=)S
- (!(oflags)336 1908 A
- 2286(&)S
- (O_EXCL);)336 2370 A
- 2748(/*)S
- (file)168 2874 A
- (exists,)294 3084 A
- 3420(if)S
- (the)126 3546 A
- (O_EXCL)252 3714 A
- 2970 V
- (23003)210 648 A
- (flag)168 2874 A
- 3084(is)S
- (set)126 3210 A
- (this)168 3378 A
- 3588(is)S
- 3714(an)S
- (error)210 3840 A
- 4092(*/)S
- 3060 V
- (23004)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 3150 V
- (23005)210 648 A
- 1404(/*)S
- (Scan)168 1530 A
- (path)168 1740 A
- (name.)210 1950 A
- 2202(*/)S
- 3240 V
- (23006)210 648 A
- 1362(if)S
- 1488(()S
- ((rip)168 1572 A
- 1782(=)S
- (eat_path(user_path)))840 1866 A
- 2748(==)S
- (NIL_INODE))420 2874 A
- (return(err_code);)714 3336 A
- 3330 V
- (23007)210 648 A
- 1110(})S
- 3420 V
- (23008)210 648 A
- 3510 V
- (23009)210 648 A
- 1110(/*)S
- (Claim)210 1236 A
- (the)126 1488 A
- (file)168 1656 A
- (descriptor)420 1866 A
- (and)126 2328 A
- (filp)168 2496 A
- (slot)168 2706 A
- (and)126 2916 A
- (fill)168 3084 A
- (them)168 3294 A
- (in.)126 3504 A
- 3672(*/)S
- 3600 V
- (23010)210 648 A
- (fp->fp_filp[fd])630 1110 A
- 1782(=)S
- (fil_ptr;)336 1866 A
- 3690 V
- (23011)210 648 A
- (fil_ptr->filp_count)798 1110 A
- 1950(=)S
- 2034(1;)S
- 3780 V
- (23012)210 648 A
- (fil_ptr->filp_ino)714 1110 A
- 1866(=)S
- (rip;)168 1950 A
- 3870 V
- (23013)210 648 A
- (fil_ptr->filp_flags)798 1110 A
- 1950(=)S
- (oflags;)294 2034 A
- 3960 V
- (23014)210 648 A
- 4050 V
- (23015)210 648 A
- 1110(/*)S
- (Only)168 1236 A
- 1446(do)S
- (the)126 1572 A
- (normal)252 1740 A
- (open)168 2034 A
- (code)168 2244 A
- 2454(if)S
- 2580(we)S
- (didn't)252 2706 A
- (just)168 3000 A
- (create)252 3210 A
- (the)126 3504 A
- (file.)210 3672 A
- 3924(*/)S
- 4140 V
- (23016)210 648 A
- 1110(if)S
- ((exist))294 1236 A
- 1572({)S
- 4230 V
- (23017)210 648 A
- 1362(/*)S
- (Check)210 1488 A
- (protections.)504 1740 A
- 2286(*/)S
- 4320 V
- (23018)210 648 A
- 1362(if)S
- (((r)126 1488 A
- 1656(=)S
- (forbidden(rip,)588 1740 A
- (bits)))252 2370 A
- 2664(==)S
- (OK))126 2790 A
- 2958({)S
- 4410 V
- (23019)210 648 A
- 1698(/*)S
- (Opening)294 1824 A
- (reg.)168 2160 A
- (files)210 2370 A
- (directories)462 2622 A
- (and)126 3126 A
- (special)294 3294 A
- (files)210 3630 A
- (differ.)294 3882 A
- 4218(*/)S
- 4500 V
- (23020)210 648 A
- (switch)252 1698 A
- ((rip->i_mode)504 1992 A
- 2538(&)S
- (I_TYPE))294 2622 A
- 2958({)S
- 4590 V
- (23021)210 648 A
- (case)168 1824 A
- (I_REGULAR:)420 2034 A
- 4680 V
- (23022)210 648 A
- 2034(/*)S
- (Truncate)336 2160 A
- (regular)294 2538 A
- (file)168 2874 A
- 3084(if)S
- (O_TRUNC.)336 3210 A
- 3588(*/)S
- 4770 V
- (23023)210 648 A
- 2034(if)S
- ((oflags)294 2160 A
- 2496(&)S
- (O_TRUNC))336 2580 A
- 2958({)S
- 4860 V
- (23024)210 648 A
- 2370(if)S
- (((r)126 2496 A
- 2664(=)S
- (forbidden(rip,)588 2748 A
- (W_BIT)))294 3378 A
- (!=OK))210 3714 A
- (break;)252 3966 A
- 4950 V
- (23025)210 648 A
- (truncate(rip);)588 2370 A
- 5040 V
- (23026)210 648 A
- (wipe_inode(rip);)672 2370 A
- 5130 V
- (23027)210 648 A
- 2370(/*)S
- (Send)168 2496 A
- (the)126 2706 A
- (inode)210 2874 A
- (from)168 3126 A
- (the)126 3336 A
- (inode)210 3504 A
- (cache)210 3756 A
- 4008(to)S
- (the)126 4134 A
- 5220 V
- (23028)210 648 A
- 2412(*)S
- (block)210 2496 A
- (cache,)252 2748 A
- 3042(so)S
- 3168(it)S
- (gets)168 3294 A
- (written)294 3504 A
- 3840(on)S
- (the)126 3966 A
- (next)168 4134 A
- 5310 V
- (23029)210 648 A
- 2412(*)S
- (cache)210 2496 A
- (flush.)252 2748 A
- 5400 V
- (23030)210 648 A
- 2412(*/)S
- 5490 V
- (23031)210 648 A
- (rw_inode(rip,)546 2370 A
- (WRITING);)378 2958 A
- 5580 V
- (23032)210 648 A
- 2034(})S
- 5670 V
- (23033)210 648 A
- (break;)252 2034 A
- 5760 V
- (23034)210 648 A
- 5850 V
- (23035)210 648 A
- (case)168 1824 A
- (I_DIRECTORY:)504 2034 A
- 5940 V
- (23036)210 648 A
- 2034(/*)S
- (Directories)462 2160 A
- (may)126 2664 A
- 2832(be)S
- (read)168 2958 A
- (but)126 3168 A
- (not)126 3336 A
- (written.)336 3504 A
- 3882(*/)S
- 6030 V
- (23037)210 648 A
- 2034(r)S
- 2118(=)S
- ((bits)210 2202 A
- 2454(&)S
- (W_BIT)210 2538 A
- 2790(?)S
- (EISDIR)252 2874 A
- 3168(:)S
- (OK);)168 3252 A
- 6120 V
- (23038)210 648 A
- (break;)252 2034 A
- 6210 V
- (23039)210 648 A
- 8418 V
- EP
- %%Page: 315 315
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 12 B
- (315)180 4248 A
- 900 V
- 7 LST
- (23040)210 648 A
- (case)168 1824 A
- (I_CHAR_SPECIAL:)630 2034 A
- 990 V
- (23041)210 648 A
- (case)168 1824 A
- (I_BLOCK_SPECIAL:)672 2034 A
- 1080 V
- (23042)210 648 A
- 2034(/*)S
- (Invoke)252 2160 A
- (the)126 2454 A
- (driver)252 2622 A
- (for)126 2916 A
- (special)294 3084 A
- (processing.)462 3420 A
- 3924(*/)S
- 1170 V
- (23043)210 648 A
- (dev_mess.m_type)630 2034 A
- 2706(=)S
- (DEV_OPEN;)378 2790 A
- 1260 V
- (23044)210 648 A
- (dev)126 2034 A
- 2202(=)S
- ((dev_t))294 2286 A
- (rip->i_zone[0];)630 2622 A
- 1350 V
- (23045)210 648 A
- (dev_mess.DEVICE)630 2034 A
- 2706(=)S
- (dev;)168 2790 A
- 1440 V
- (23046)210 648 A
- (dev_mess.COUNT)588 2034 A
- 2664(=)S
- (bits)168 2748 A
- 2958(|)S
- ((oflags)294 3042 A
- 3378(&)S
- (304O_ACCMODE);)504 3462 A
- 1530 V
- (23047)210 648 A
- (major)210 2034 A
- 2286(=)S
- ((dev)168 2370 A
- 2580(>>)S
- (MAJOR))252 2706 A
- 3000(&)S
- (BYTE;)210 3084 A
- 3378(/*)S
- (major)210 3504 A
- (device)252 3756 A
- 4050(nr)S
- 4176(*/)S
- 1620 V
- (23048)210 648 A
- 2034(if)S
- ((major)252 2160 A
- 2454(<=)S
- 2580(0)S
- 2664(||)S
- (major)210 2790 A
- 3042(>=)S
- (max_major))420 3168 A
- 3630({)S
- 1710 V
- (23049)210 648 A
- 2370(r)S
- 2454(=)S
- (ENODEV;)294 2538 A
- 1800 V
- (23050)210 648 A
- (break;)252 2370 A
- 1890 V
- (23051)210 648 A
- 2034(})S
- 1980 V
- (23052)210 648 A
- (task)168 2034 A
- 2244(=)S
- (dmap[major].dmap_task;)924 2328 A
- 3378(/*)S
- (device)252 3504 A
- (task)168 3798 A
- 4008(nr)S
- 4134(*/)S
- 2070 V
- (23053)210 648 A
- ((*dmap[major].dmap_open)(task,)1260 2034 A
- (&dev_mess);)462 3336 A
- 2160 V
- (23054)210 648 A
- 2034(r)S
- 2118(=)S
- (dev_mess.REP_STATUS;)840 2202 A
- 2250 V
- (23055)210 648 A
- (break;)252 2034 A
- 2340 V
- (23056)210 648 A
- 2430 V
- (23057)210 648 A
- (case)168 1824 A
- (I_NAMED_PIPE:)546 2034 A
- 2520 V
- (23058)210 648 A
- (oflags)252 2034 A
- 2328(|=)S
- (O_APPEND;)378 2454 A
- 3042(/*)S
- (force)210 3168 A
- (append)252 3420 A
- (mode)168 3714 A
- 3924(*/)S
- 2610 V
- (23059)210 648 A
- (fil_ptr->filp_flags)798 2034 A
- 2874(=)S
- (oflags;)294 2958 A
- 2700 V
- (23060)210 648 A
- 2034(r)S
- 2118(=)S
- (pipe_open(rip,)588 2202 A
- (bits,)210 2832 A
- (oflags);)336 3084 A
- 2790 V
- (23061)210 648 A
- 2034(if)S
- 2160((r)S
- 2286(==)S
- (OK))126 2412 A
- 2580({)S
- 2880 V
- (23062)210 648 A
- 2370(/*)S
- (See)126 2496 A
- 2664(if)S
- (someone)294 2790 A
- (else)168 3126 A
- 3336(is)S
- (doing)210 3462 A
- 3714(a)S
- 3798(rd)S
- 3924(or)S
- 4050(wt)S
- 4176(on)S
- 2970 V
- (23063)210 648 A
- 2412(*)S
- (the)126 2496 A
- (FIFO.)210 2664 A
- 2958(If)S
- (so,)126 3084 A
- (use)126 3252 A
- (its)126 3420 A
- (filp)168 3588 A
- (entry)210 3798 A
- 4050(so)S
- (the)126 4176 A
- 3060 V
- (23064)210 648 A
- 2412(*)S
- (file)168 2496 A
- (position)336 2706 A
- (will)168 3084 A
- 3294(be)S
- (automatically)546 3420 A
- (shared.)294 4008 A
- 3150 V
- (23065)210 648 A
- 2412(*/)S
- 3240 V
- (23066)210 648 A
- 2370(b)S
- 2454(=)S
- ((bits)210 2538 A
- 2790(&)S
- (R_BIT)210 2874 A
- 3126(?)S
- (R_BIT)210 3210 A
- 3462(:)S
- (W_BIT);)294 3546 A
- 3330 V
- (23067)210 648 A
- (fil_ptr->filp_count)798 2370 A
- 3210(=)S
- 3294(0;)S
- 3420(/*)S
- (don't)210 3546 A
- (find)168 3798 A
- (self)168 4008 A
- 4218(*/)S
- 3420 V
- (23068)210 648 A
- 2370(if)S
- (((filp2)294 2496 A
- 2832(=)S
- (find_filp(rip,)588 2916 A
- (b)))126 3546 A
- 3714(!=)S
- (NIL_FILP))378 3840 A
- 4260({)S
- 3510 V
- (23069)210 648 A
- 2706(/*)S
- (Co-reader)378 2832 A
- 3252(or)S
- (writer)252 3378 A
- (found.)252 3672 A
- (Use)126 3966 A
- (it.*/)210 4134 A
- 3600 V
- (23070)210 648 A
- (fp->fp_filp[fd])630 2706 A
- 3378(=)S
- (filp2;)252 3462 A
- 3690 V
- (23071)210 648 A
- (filp2->filp_count++;)840 2706 A
- 3780 V
- (23072)210 648 A
- (filp2->filp_ino)630 2706 A
- 3378(=)S
- (rip;)168 3462 A
- 3870 V
- (23073)210 648 A
- (filp2->filp_flags)714 2706 A
- 3462(=)S
- (oflags;)294 3546 A
- 3960 V
- (23074)210 648 A
- 4050 V
- (23075)210 648 A
- 2706(/*)S
- (i_count)294 2832 A
- (was)126 3168 A
- (incremented)462 3336 A
- (incorrectly)462 3840 A
- 4140 V
- (23076)210 648 A
- 2748(*)S
- 2832(by)S
- (eatpath)294 2958 A
- (above,)252 3294 A
- (not)126 3588 A
- (knowing)294 3756 A
- (that)168 4092 A
- 4230 V
- (23077)210 648 A
- 2748(*)S
- 2832(we)S
- (were)168 2958 A
- (going)210 3168 A
- 3420(to)S
- (use)126 3546 A
- 3714(an)S
- (existing)336 3840 A
- 4320 V
- (23078)210 648 A
- 2748(*)S
- (filp)168 2832 A
- (entry.)252 3042 A
- (Correct)294 3378 A
- (this)168 3714 A
- (error.)252 3924 A
- 4410 V
- (23079)210 648 A
- 2748(*/)S
- 4500 V
- (23080)210 648 A
- (rip->i_count--;)630 2706 A
- 4590 V
- (23081)210 648 A
- 2370(})S
- (else)168 2454 A
- 2664({)S
- 4680 V
- (23082)210 648 A
- 2706(/*)S
- (Nobody)252 2832 A
- (else)168 3126 A
- (found.)252 3336 A
- (Restore)294 3672 A
- (filp.)210 4008 A
- 4260(*/)S
- 4770 V
- (23083)210 648 A
- (fil_ptr->filp_count)798 2706 A
- 3546(=)S
- 3630(1;)S
- 4860 V
- (23084)210 648 A
- 2706(if)S
- 2832((b)S
- 2958(==)S
- (R_BIT))252 3084 A
- 4950 V
- (23085)210 648 A
- (pos)126 2916 A
- 3084(=)S
- (rip->i_zone[V2_NR_DZONES+1];)1176 3168 A
- 5040 V
- (23086)210 648 A
- (else)168 2706 A
- 5130 V
- (23087)210 648 A
- (pos)126 2916 A
- 3084(=)S
- (rip->i_zone[V2_NR_DZONES+2];)1176 3168 A
- 5220 V
- (23088)210 648 A
- (fil_ptr->filp_pos)714 2706 A
- 3462(=)S
- (pos;)168 3546 A
- 5310 V
- (23089)210 648 A
- 2370(})S
- 5400 V
- (23090)210 648 A
- 2034(})S
- 5490 V
- (23091)210 648 A
- (break;)252 2034 A
- 5580 V
- (23092)210 648 A
- 1698(})S
- 5670 V
- (23093)210 648 A
- 1362(})S
- 5760 V
- (23094)210 648 A
- 1110(})S
- 5850 V
- (23095)210 648 A
- 5940 V
- (23096)210 648 A
- 1110(/*)S
- 1236(If)S
- (error,)252 1362 A
- (release)294 1656 A
- (inode.)252 1992 A
- 2286(*/)S
- 6030 V
- (23097)210 648 A
- 1110(if)S
- 1236((r)S
- 1362(!=)S
- (OK))126 1488 A
- 1656({)S
- 6120 V
- (23098)210 648 A
- (fp->fp_filp[fd])630 1362 A
- 2034(=)S
- (NIL_FILP;)378 2118 A
- 6210 V
- (23099)210 648 A
- (fil_ptr->filp_count=)840 1362 A
- 2244(0;)S
- 8418 V
- EP
- %%Page: 316 316
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (316)180 648 A
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (23100)210 648 A
- (put_inode(rip);)630 1362 A
- 990 V
- (23101)210 648 A
- (return(r);)420 1362 A
- 1080 V
- (23102)210 648 A
- 1110(})S
- 1170 V
- (23103)210 648 A
- 1260 V
- (23104)210 648 A
- (return(fd);)462 1110 A
- 1350 V
- (23105)210 648 A
- 1026(})S
- 1620 V
- (23108)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1710 V
- (23109)210 648 A
- 1068(*)S
- (new_node)336 2370 A
- 4260(*)S
- 1800 V
- (23110)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1890 V
- (23111)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (inode)210 1656 A
- (*new_node(path,)630 1908 A
- (bits,)210 2580 A
- (z0))126 2832 A
- 1980 V
- (23112)210 648 A
- (char)168 1026 A
- (*path;)252 1236 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (path)168 2958 A
- (name)168 3168 A
- 3378(*/)S
- 2070 V
- (23113)210 648 A
- (mode_t)252 1026 A
- (bits;)210 1320 A
- 2370(/*)S
- (mode)168 2496 A
- 2706(of)S
- (the)126 2832 A
- (new)126 3000 A
- (inode)210 3168 A
- 3420(*/)S
- 2160 V
- (23114)210 648 A
- (zone_t)252 1026 A
- (z0;)126 1320 A
- 2370(/*)S
- (zone)168 2496 A
- (number)252 2706 A
- 3000(0)S
- (for)126 3084 A
- (new)126 3252 A
- (inode)210 3420 A
- 3672(*/)S
- 2250 V
- (23115)210 648 A
- 1026({)S
- 2340 V
- (23116)210 648 A
- 1026(/*)S
- (New_node())420 1152 A
- 1614(is)S
- (called)252 1740 A
- 2034(by)S
- (common_open(),)588 2160 A
- (do_mknod(),)462 2790 A
- (and)126 3294 A
- (do_mkdir().)462 3462 A
- 2430 V
- (23117)210 648 A
- 1068(*)S
- 1152(In)S
- (all)126 1278 A
- (cases)210 1446 A
- 1698(it)S
- (allocates)378 1824 A
- 2244(a)S
- (new)126 2328 A
- (inode,)252 2496 A
- (makes)210 2790 A
- 3042(a)S
- (directory)378 3126 A
- (entry)210 3546 A
- (for)126 3798 A
- 3966(it)S
- 4092(on)S
- 2520 V
- (23118)210 648 A
- 1068(*)S
- (the)126 1152 A
- (path)168 1320 A
- ('path',)294 1530 A
- (and)126 1866 A
- (initializes)462 2034 A
- (it.)126 2538 A
- 2748(It)S
- (returns)294 2874 A
- 3210(a)S
- (pointer)294 3294 A
- 3630(to)S
- (the)126 3756 A
- (inode)210 3924 A
- 4176(if)S
- 2610 V
- (23119)210 648 A
- 1068(*)S
- 1152(it)S
- (can)126 1278 A
- 1446(do)S
- (this;)210 1572 A
- (otherwise)378 1824 A
- 2244(it)S
- (returns)294 2370 A
- (NIL_INODE.)420 2706 A
- 3210(It)S
- (always)252 3336 A
- (sets)168 3630 A
- ('err_code')420 3840 A
- 2700 V
- (23120)210 648 A
- 1068(*)S
- 1152(to)S
- 1278(an)S
- (appropriate)462 1404 A
- (value)210 1908 A
- ((OK)126 2160 A
- 2328(or)S
- 2454(an)S
- (error)210 2580 A
- (code).)252 2832 A
- 2790 V
- (23121)210 648 A
- 1068(*/)S
- 2880 V
- (23122)210 648 A
- 2970 V
- (23123)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (inode)210 1782 A
- (*rlast_dir_ptr,)630 2034 A
- (*rip;)210 2706 A
- 3060 V
- (23124)210 648 A
- (register)336 1110 A
- (int)126 1488 A
- 1656(r;)S
- 3150 V
- (23125)210 648 A
- (char)168 1110 A
- (string[NAME_MAX];)714 1320 A
- 3240 V
- (23126)210 648 A
- 3330 V
- (23127)210 648 A
- 1110(/*)S
- (See)126 1236 A
- 1404(if)S
- (the)126 1530 A
- (path)168 1698 A
- (can)126 1908 A
- 2076(be)S
- (opened)252 2202 A
- (down)168 2496 A
- 2706(to)S
- (the)126 2832 A
- (last)168 3000 A
- (directory.)420 3210 A
- 3672(*/)S
- 3420 V
- (23128)210 648 A
- 1110(if)S
- (((rlast_dir_ptr)630 1236 A
- 1908(=)S
- (last_dir(path,)588 1992 A
- (string)))336 2622 A
- 3000(==)S
- (NIL_INODE))420 3126 A
- (return(NIL_INODE);)756 3588 A
- 3510 V
- (23129)210 648 A
- 3600 V
- (23130)210 648 A
- 1110(/*)S
- (The)126 1236 A
- (final)210 1404 A
- (directory)378 1656 A
- 2076(is)S
- (accessible.)462 2202 A
- (Get)126 2706 A
- (final)210 2874 A
- (component)378 3126 A
- 3546(of)S
- (the)126 3672 A
- (path.)210 3840 A
- 4092(*/)S
- 3690 V
- (23131)210 648 A
- (rip)126 1110 A
- 1278(=)S
- (advance(rlast_dir_ptr,)924 1362 A
- (string);)336 2328 A
- 3780 V
- (23132)210 648 A
- 1110(if)S
- 1236(()S
- (rip)126 1320 A
- 1488(==)S
- (NIL_INODE)378 1614 A
- 2034(&&)S
- (err_code)336 2160 A
- 2538(==)S
- (ENOENT))294 2664 A
- 3000({)S
- 3870 V
- (23133)210 648 A
- 1362(/*)S
- (Last)168 1488 A
- (path)168 1698 A
- (component)378 1908 A
- (does)168 2328 A
- (not)126 2538 A
- (exist.)252 2706 A
- (Make)168 3042 A
- (new)126 3252 A
- (directory)378 3420 A
- (entry.)252 3840 A
- 4134(*/)S
- 3960 V
- (23134)210 648 A
- 1362(if)S
- 1488(()S
- ((rip)168 1572 A
- 1782(=)S
- (alloc_inode(rlast_dir_ptr->i_dev,)1386 1866 A
- (bits)))252 3294 A
- 3588(==)S
- (NIL_INODE))420 3714 A
- 4176({)S
- 4050 V
- (23135)210 648 A
- 1698(/*)S
- (Can't)210 1824 A
- (creat)210 2076 A
- (new)126 2328 A
- (inode:)252 2496 A
- (out)126 2790 A
- 2958(of)S
- (inodes.)294 3084 A
- 3420(*/)S
- 4140 V
- (23136)210 648 A
- (put_inode(rlast_dir_ptr);)1050 1698 A
- 4230 V
- (23137)210 648 A
- (return(NIL_INODE);)756 1698 A
- 4320 V
- (23138)210 648 A
- 1362(})S
- 4410 V
- (23139)210 648 A
- 4500 V
- (23140)210 648 A
- 1362(/*)S
- (Force)210 1488 A
- (inode)210 1740 A
- 1992(to)S
- (the)126 2118 A
- (disk)168 2286 A
- (before)252 2496 A
- (making)252 2790 A
- (directory)378 3084 A
- (entry)210 3504 A
- 3756(to)S
- (make)168 3882 A
- 4590 V
- (23141)210 648 A
- 1404(*)S
- (the)126 1488 A
- (system)252 1656 A
- (more)168 1950 A
- (robust)252 2160 A
- 2454(in)S
- (the)126 2580 A
- (face)168 2748 A
- 2958(of)S
- 3084(a)S
- (crash:)252 3168 A
- 3462(an)S
- (inode)210 3588 A
- (with)168 3840 A
- 4680 V
- (23142)210 648 A
- 1404(*)S
- 1488(no)S
- (directory)378 1614 A
- (entry)210 2034 A
- 2286(is)S
- (much)168 2412 A
- (better)252 2622 A
- (than)168 2916 A
- (the)126 3126 A
- (opposite.)378 3294 A
- 4770 V
- (23143)210 648 A
- 1404(*/)S
- 4860 V
- (23144)210 648 A
- (rip->i_nlinks++;)672 1362 A
- 4950 V
- (23145)210 648 A
- (rip->i_zone[0])588 1362 A
- 1992(=)S
- (z0;)126 2076 A
- 2706(/*)S
- (major/minor)462 2832 A
- (device)252 3336 A
- (numbers)294 3630 A
- 3966(*/)S
- 5040 V
- (23146)210 648 A
- (rw_inode(rip,)546 1362 A
- (WRITING);)378 1950 A
- 2706(/*)S
- (force)210 2832 A
- (inode)210 3084 A
- 3336(to)S
- (disk)168 3462 A
- (now)126 3672 A
- 3840(*/)S
- 5130 V
- (23147)210 648 A
- 5220 V
- (23148)210 648 A
- 1362(/*)S
- (New)126 1488 A
- (inode)210 1656 A
- (acquired.)378 1908 A
- (Try)126 2370 A
- 2538(to)S
- (make)168 2664 A
- (directory)378 2874 A
- (entry.)252 3294 A
- 3588(*/)S
- 5310 V
- (23149)210 648 A
- 1362(if)S
- (((r)126 1488 A
- 1656(=)S
- (search_dir(rlast_dir_ptr,)1050 1740 A
- (string,)294 2832 A
- (&rip->i_num,ENTER)))798 3168 A
- 4008(!=)S
- (OK))126 4134 A
- 4302({)S
- 5400 V
- (23150)210 648 A
- (put_inode(rlast_dir_ptr);)1050 1698 A
- 5490 V
- (23151)210 648 A
- (rip->i_nlinks--;)672 1698 A
- 2706(/*)S
- (pity,)210 2832 A
- (have)168 3084 A
- 3294(to)S
- (free)168 3420 A
- (disk)168 3630 A
- (inode)210 3840 A
- 4092(*/)S
- 5580 V
- (23152)210 648 A
- (rip->i_dirt)462 1698 A
- 2202(=)S
- (DIRTY;)252 2286 A
- 2706(/*)S
- (dirty)210 2832 A
- (inodes)252 3084 A
- (are)126 3378 A
- (written)294 3546 A
- (out)126 3882 A
- 4050(*/)S
- 5670 V
- (23153)210 648 A
- (put_inode(rip);)630 1698 A
- 2370(/*)S
- (this)168 2496 A
- (call)168 2706 A
- (frees)210 2916 A
- (the)126 3168 A
- (inode)210 3336 A
- 3588(*/)S
- 5760 V
- (23154)210 648 A
- (err_code)336 1698 A
- 2076(=)S
- 2160(r;)S
- 5850 V
- (23155)210 648 A
- (return(NIL_INODE);)756 1698 A
- 5940 V
- (23156)210 648 A
- 1362(})S
- 6030 V
- (23157)210 648 A
- 6120 V
- (23158)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 6210 V
- (23159)210 648 A
- 1362(/*)S
- (Either)252 1488 A
- (last)168 1782 A
- (component)378 1992 A
- (exists,)294 2412 A
- 2748(or)S
- (there)210 2874 A
- 3126(is)S
- (some)168 3252 A
- (problem.)336 3462 A
- 3840(*/)S
- 8418 V
- EP
- %%Page: 317 317
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 12 B
- (317)180 4248 A
- 900 V
- 7 LST
- (23160)210 648 A
- 1362(if)S
- ((rip)168 1488 A
- 1698(!=)S
- (NIL_INODE))420 1824 A
- 990 V
- (23161)210 648 A
- 1698(r)S
- 1782(=)S
- (EEXIST;)294 1866 A
- 1080 V
- (23162)210 648 A
- (else)168 1362 A
- 1170 V
- (23163)210 648 A
- 1698(r)S
- 1782(=)S
- (err_code;)378 1866 A
- 1260 V
- (23164)210 648 A
- 1110(})S
- 1350 V
- (23165)210 648 A
- 1440 V
- (23166)210 648 A
- 1110(/*)S
- (Return)252 1236 A
- (the)126 1530 A
- (directory)378 1698 A
- (inode)210 2118 A
- (and)126 2370 A
- (exit.)210 2538 A
- 2790(*/)S
- 1530 V
- (23167)210 648 A
- (put_inode(rlast_dir_ptr);)1050 1110 A
- 1620 V
- (23168)210 648 A
- (err_code)336 1110 A
- 1488(=)S
- 1572(r;)S
- 1710 V
- (23169)210 648 A
- (return(rip);)504 1110 A
- 1800 V
- (23170)210 648 A
- 1026(})S
- 2070 V
- (23173)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2160 V
- (23174)210 648 A
- 1068(*)S
- (pipe_open)378 2370 A
- 4260(*)S
- 2250 V
- (23175)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2340 V
- (23176)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (pipe_open(rip,)588 1530 A
- (bits,)210 2160 A
- (oflags))294 2412 A
- 2430 V
- (23177)210 648 A
- (register)336 1026 A
- (struct)252 1404 A
- (inode)210 1698 A
- (*rip;)210 1950 A
- 2520 V
- (23178)210 648 A
- (register)336 1026 A
- (mode_t)252 1404 A
- (bits;)210 1698 A
- 2610 V
- (23179)210 648 A
- (register)336 1026 A
- (int)126 1404 A
- (oflags;)294 1572 A
- 2700 V
- (23180)210 648 A
- 1026({)S
- 2790 V
- (23181)210 648 A
- 1026(/*)S
- (This)168 1194 A
- (function)336 1404 A
- 1782(is)S
- (called)252 1908 A
- (from)168 2202 A
- (common_open.)504 2412 A
- 2958(It)S
- (checks)252 3084 A
- 3378(if)S
- 2880 V
- (23182)210 648 A
- 1068(*)S
- (there)210 1194 A
- 1446(is)S
- 1572(at)S
- (least)210 1698 A
- (one)126 1950 A
- (reader/writer)546 2118 A
- (pair)168 2706 A
- (for)126 2916 A
- (the)126 3084 A
- (pipe,)210 3252 A
- 3504(if)S
- (not)126 3630 A
- 2970 V
- (23183)210 648 A
- 1068(*)S
- 1194(it)S
- (suspends)336 1320 A
- (the)126 1698 A
- (caller,)294 1866 A
- (otherwise)378 2202 A
- 2622(it)S
- (revives)294 2748 A
- (all)126 3084 A
- (other)210 3252 A
- (blocked)294 3504 A
- 3060 V
- (23184)210 648 A
- 1068(*)S
- (processes)378 1194 A
- (hanging)294 1614 A
- 1950(on)S
- (the)126 2076 A
- (pipe.)210 2244 A
- 3150 V
- (23185)210 648 A
- 1068(*/)S
- 3240 V
- (23186)210 648 A
- 3330 V
- (23187)210 648 A
- 1110(if)S
- ((find_filp(rip,)630 1236 A
- (bits)168 1908 A
- 2118(&)S
- (W_BIT)210 2202 A
- 2454(?)S
- (R_BIT)210 2538 A
- 2790(:)S
- (W_BIT))252 2874 A
- 3168(==)S
- (NIL_FILP))378 3294 A
- 3714({)S
- 3420 V
- (23188)210 648 A
- 1362(if)S
- ((oflags)294 1488 A
- 1824(&)S
- (O_NONBLOCK))462 1908 A
- 2412({)S
- 3510 V
- (23189)210 648 A
- 1698(if)S
- ((bits)210 1824 A
- 2076(&)S
- (W_BIT))252 2160 A
- (return(ENXIO);)588 2454 A
- 3600 V
- (23190)210 648 A
- 1362(})S
- (else)168 1446 A
- 3690 V
- (23191)210 648 A
- (suspend(XPOPEN);)672 1698 A
- 2706(/*)S
- (suspend)294 2832 A
- (caller)252 3168 A
- 3462(*/)S
- 3780 V
- (23192)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404(if)S
- ((susp_count)462 1530 A
- 2034(>)S
- 2118(0))S
- ({/*)126 2244 A
- (revive)252 2412 A
- (blocked)294 2706 A
- (processes)378 3042 A
- 3462(*/)S
- 3870 V
- (23193)210 648 A
- (release(rip,)504 1362 A
- (OPEN,)210 1908 A
- (susp_count);)504 2160 A
- 3960 V
- (23194)210 648 A
- (release(rip,)504 1362 A
- (CREAT,)252 1908 A
- (susp_count);)504 2202 A
- 4050 V
- (23195)210 648 A
- 1110(})S
- 4140 V
- (23196)210 648 A
- (rip->i_pipe)462 1110 A
- 1614(=)S
- (I_PIPE;)294 1698 A
- 4230 V
- (23197)210 648 A
- 4320 V
- (23198)210 648 A
- (return(OK);)462 1110 A
- 4410 V
- (23199)210 648 A
- 1026(})S
- 4680 V
- (23202)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4770 V
- (23203)210 648 A
- 1068(*)S
- (do_mknod)336 2370 A
- 4260(*)S
- 4860 V
- (23204)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4950 V
- (23205)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_mknod())420 1488 A
- 5040 V
- (23206)210 648 A
- 1026({)S
- 5130 V
- (23207)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (mknod(name,)462 1656 A
- (mode,)210 2160 A
- (addr))210 2412 A
- (system)252 2664 A
- (call.)210 2958 A
- 3210(*/)S
- 5220 V
- (23208)210 648 A
- 5310 V
- (23209)210 648 A
- (register)336 1110 A
- (mode_t)252 1488 A
- (bits,)210 1782 A
- (mode_bits;)420 2034 A
- 5400 V
- (23210)210 648 A
- (struct)252 1110 A
- (inode)210 1404 A
- (*ip;)168 1656 A
- 5490 V
- (23211)210 648 A
- 5580 V
- (23212)210 648 A
- 1110(/*)S
- (Only)168 1236 A
- (the)126 1446 A
- (super_user)420 1614 A
- (may)126 2076 A
- (make)168 2244 A
- (nodes)210 2454 A
- (other)210 2706 A
- (than)168 2958 A
- (fifos.)252 3168 A
- 3462(*/)S
- 5670 V
- (23213)210 648 A
- (mode_bits)378 1110 A
- 1530(=)S
- ((mode_t))336 1614 A
- (m.m1_i2;)336 1992 A
- 2370(/*)S
- (mode)168 2496 A
- 2706(of)S
- (the)126 2832 A
- (inode)210 3000 A
- 3252(*/)S
- 5760 V
- (23214)210 648 A
- 1110(if)S
- ((!super_user)504 1236 A
- 1782(&&)S
- (((mode_bits)462 1908 A
- 2412(&)S
- (I_TYPE))294 2496 A
- 2832(!=)S
- (I_NAMED_PIPE)))588 2958 A
- (return(EPERM);)588 3588 A
- 5850 V
- (23215)210 648 A
- 1110(if)S
- ((fetch_name(m.m1_p1,)840 1236 A
- (m.m1_i1,)336 2118 A
- (M1))126 2496 A
- 2664(!=)S
- (OK))126 2790 A
- (return(err_code);)714 2958 A
- 5940 V
- (23216)210 648 A
- (bits)168 1110 A
- 1320(=)S
- ((mode_bits)420 1404 A
- 1866(&)S
- (I_TYPE))294 1950 A
- 2286(|)S
- ((mode_bits)420 2370 A
- 2832(&)S
- (ALL_MODES)378 2916 A
- 3336(&)S
- (fp->fp_umask);)588 3420 A
- 6030 V
- (23217)210 648 A
- 1110(ip)S
- 1236(=)S
- (new_node(user_path,)798 1320 A
- (bits,)210 2160 A
- ((zone_t))336 2412 A
- (m.m1_i3);)378 2790 A
- 6120 V
- (23218)210 648 A
- (put_inode(ip);)588 1110 A
- 6210 V
- (23219)210 648 A
- (return(err_code);)714 1110 A
- 8418 V
- EP
- %%Page: 318 318
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (318)180 648 A
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (23220)210 648 A
- 1026(})S
- 1170 V
- (23223)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1260 V
- (23224)210 648 A
- 1068(*)S
- (do_mkdir)336 2370 A
- 4260(*)S
- 1350 V
- (23225)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1440 V
- (23226)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_mkdir())420 1488 A
- 1530 V
- (23227)210 648 A
- 1026({)S
- 1620 V
- (23228)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (mkdir(name,)462 1656 A
- (mode))210 2160 A
- (system)252 2412 A
- (call.)210 2706 A
- 2958(*/)S
- 1710 V
- (23229)210 648 A
- 1800 V
- (23230)210 648 A
- (int)126 1110 A
- (r1,)126 1278 A
- (r2;)126 1446 A
- 2370(/*)S
- (status)252 2496 A
- (codes)210 2790 A
- 3042(*/)S
- 1890 V
- (23231)210 648 A
- (ino_t)210 1110 A
- (dot,)168 1362 A
- (dotdot;)294 1572 A
- 2370(/*)S
- (inode)210 2496 A
- (numbers)294 2748 A
- (for)126 3084 A
- 3252(.)S
- (and)126 3336 A
- 3504(..)S
- 3630(*/)S
- 1980 V
- (23232)210 648 A
- (mode_t)252 1110 A
- (bits;)210 1404 A
- 2370(/*)S
- (mode)168 2496 A
- (bits)168 2706 A
- (for)126 2916 A
- (the)126 3084 A
- (new)126 3252 A
- (inode)210 3420 A
- 3672(*/)S
- 2070 V
- (23233)210 648 A
- (char)168 1110 A
- (string[NAME_MAX];)714 1320 A
- 2370(/*)S
- (last)168 2496 A
- (component)378 2706 A
- 3126(of)S
- (the)126 3252 A
- (new)126 3420 A
- (dir's)210 3588 A
- (path)168 3840 A
- (name)168 4050 A
- 4260(*/)S
- 2160 V
- (23234)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (inode)210 1782 A
- (*rip,)210 2034 A
- (*ldirp;)294 2286 A
- 2250 V
- (23235)210 648 A
- 2340 V
- (23236)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- 1908(it)S
- 2034(is)S
- (possible)336 2160 A
- 2538(to)S
- (make)168 2664 A
- (another)294 2874 A
- (link)168 3210 A
- 3420(in)S
- (the)126 3546 A
- (parent)252 3714 A
- (dir.)168 4008 A
- 4218(*/)S
- 2430 V
- (23237)210 648 A
- 1110(if)S
- ((fetch_name(name1,)756 1236 A
- (name1_length,)546 2034 A
- (M1))126 2622 A
- 2790(!=)S
- (OK))126 2916 A
- (return(err_code);)714 3084 A
- 2520 V
- (23238)210 648 A
- (ldirp)210 1110 A
- 1362(=)S
- (last_dir(user_path,)798 1446 A
- (string);)336 2286 A
- 2706(/*)S
- (pointer)294 2832 A
- 3168(to)S
- (new)126 3294 A
- (dir's)210 3462 A
- (parent)252 3714 A
- 4008(*/)S
- 2610 V
- (23239)210 648 A
- 1110(if)S
- ((ldirp)252 1236 A
- 1530(==)S
- (NIL_INODE))420 1656 A
- (return(err_code);)714 2118 A
- 2700 V
- (23240)210 648 A
- 1110(if)S
- 1236(()S
- ((ldirp->i_nlinks)672 1320 A
- 2034(&)S
- (BYTE))210 2118 A
- 2370(>=)S
- (LINK_MAX))378 2496 A
- 2916({)S
- 2790 V
- (23241)210 648 A
- (put_inode(ldirp);)714 1362 A
- 2370(/*)S
- (return)252 2496 A
- (parent)252 2790 A
- 3084(*/)S
- 2880 V
- (23242)210 648 A
- (return(EMLINK);)630 1362 A
- 2970 V
- (23243)210 648 A
- 1110(})S
- 3060 V
- (23244)210 648 A
- 3150 V
- (23245)210 648 A
- 1110(/*)S
- (Next)168 1236 A
- (make)168 1446 A
- (the)126 1656 A
- (inode.)252 1824 A
- 2118(If)S
- (that)168 2244 A
- (fails,)252 2454 A
- (return)252 2748 A
- (error)210 3042 A
- (code.)210 3294 A
- 3546(*/)S
- 3240 V
- (23246)210 648 A
- (bits)168 1110 A
- 1320(=)S
- (I_DIRECTORY)462 1404 A
- 1908(|)S
- ((mode)210 1992 A
- 2244(&)S
- (RWX_MODES)378 2328 A
- 2748(&)S
- (fp->fp_umask);)588 2832 A
- 3330 V
- (23247)210 648 A
- (rip)126 1110 A
- 1278(=)S
- (new_node(user_path,)798 1362 A
- (bits,)210 2202 A
- ((zone_t))336 2454 A
- (0);)126 2832 A
- 3420 V
- (23248)210 648 A
- 1110(if)S
- ((rip)168 1236 A
- 1446(==)S
- (NIL_INODE)378 1572 A
- 1992(||)S
- (err_code)336 2118 A
- 2496(==)S
- (EEXIST))294 2622 A
- 2958({)S
- 3510 V
- (23249)210 648 A
- (put_inode(rip);)630 1362 A
- 2370(/*)S
- (can't)210 2496 A
- (make)168 2748 A
- (dir:)168 2958 A
- 3168(it)S
- (already)294 3294 A
- (exists)252 3630 A
- 3924(*/)S
- 3600 V
- (23250)210 648 A
- (put_inode(ldirp);)714 1362 A
- 2370(/*)S
- (return)252 2496 A
- (parent)252 2790 A
- (too)126 3084 A
- 3252(*/)S
- 3690 V
- (23251)210 648 A
- (return(err_code);)714 1362 A
- 3780 V
- (23252)210 648 A
- 1110(})S
- 3870 V
- (23253)210 648 A
- 3960 V
- (23254)210 648 A
- 1110(/*)S
- (Get)126 1236 A
- (the)126 1404 A
- (inode)210 1572 A
- (numbers)294 1824 A
- (for)126 2160 A
- 2328(.)S
- (and)126 2412 A
- 2580(..)S
- 2706(to)S
- (enter)210 2832 A
- 3084(in)S
- (the)126 3210 A
- (directory.)420 3378 A
- 3840(*/)S
- 4050 V
- (23255)210 648 A
- (dotdot)252 1110 A
- 1404(=)S
- (ldirp->i_num;)546 1488 A
- 2370(/*)S
- (parent's)336 2496 A
- (inode)210 2874 A
- (number)252 3126 A
- 3420(*/)S
- 4140 V
- (23256)210 648 A
- (dot)126 1110 A
- 1278(=)S
- (rip->i_num;)462 1362 A
- 2370(/*)S
- (inode)210 2496 A
- (number)252 2748 A
- 3042(of)S
- (the)126 3168 A
- (new)126 3336 A
- (dir)126 3504 A
- (itself)252 3672 A
- 3966(*/)S
- 4230 V
- (23257)210 648 A
- 4320 V
- (23258)210 648 A
- 1110(/*)S
- (Now)126 1236 A
- (make)168 1404 A
- (dir)126 1614 A
- (entries)294 1782 A
- (for)126 2118 A
- 2286(.)S
- (and)126 2370 A
- 2538(..)S
- (unless)252 2664 A
- (the)126 2958 A
- (disk)168 3126 A
- 3336(is)S
- (completely)420 3462 A
- (full.)210 3924 A
- 4176(*/)S
- 4410 V
- (23259)210 648 A
- 1110(/*)S
- (Use)126 1236 A
- (dot1)168 1404 A
- (and)126 1614 A
- (dot2,)210 1782 A
- 2034(so)S
- (the)126 2160 A
- (mode)168 2328 A
- 2538(of)S
- (the)126 2664 A
- (directory)378 2832 A
- (isn't)210 3252 A
- (important.)420 3504 A
- 3966(*/)S
- 4500 V
- (23260)210 648 A
- (rip->i_mode)462 1110 A
- 1614(=)S
- (bits;)210 1698 A
- 2034(/*)S
- (set)126 2160 A
- (mode)168 2328 A
- 2538(*/)S
- 4590 V
- (23261)210 648 A
- 1110(r1)S
- 1236(=)S
- (search_dir(rip,)630 1320 A
- (dot1,)210 1992 A
- (&dot,)210 2244 A
- (ENTER);)294 2496 A
- 3042(/*)S
- (enter)210 3168 A
- 3420(.)S
- 3504(in)S
- (the)126 3630 A
- (new)126 3798 A
- (dir)126 3966 A
- 4134(*/)S
- 4680 V
- (23262)210 648 A
- 1110(r2)S
- 1236(=)S
- (search_dir(rip,)630 1320 A
- (dot2,)210 1992 A
- (&dotdot,)336 2244 A
- (ENTER);)294 2622 A
- 3042(/*)S
- (enter)210 3168 A
- 3420(..)S
- 3546(in)S
- (the)126 3672 A
- (new)126 3840 A
- (dir)126 4008 A
- 4176(*/)S
- 4770 V
- (23263)210 648 A
- 4860 V
- (23264)210 648 A
- 1110(/*)S
- 1236(If)S
- (both)168 1362 A
- 1572(.)S
- (and)126 1656 A
- 1824(..)S
- (were)168 1950 A
- (successfully)504 2160 A
- (entered,)336 2706 A
- (increment)378 3084 A
- (the)126 3504 A
- (link)168 3672 A
- (counts.)294 3882 A
- 4218(*/)S
- 4950 V
- (23265)210 648 A
- 1110(if)S
- ((r1)126 1236 A
- 1404(==)S
- 1530(OK)S
- 1656(&&)S
- 1782(r2)S
- 1908(==)S
- (OK))126 2034 A
- 2202({)S
- 5040 V
- (23266)210 648 A
- 1362(/*)S
- (Normal)252 1488 A
- (case.)210 1782 A
- 2076(It)S
- (was)126 2202 A
- (possible)336 2370 A
- 2748(to)S
- (enter)210 2874 A
- 3126(.)S
- (and)126 3210 A
- 3378(..)S
- 3504(in)S
- (the)126 3630 A
- (new)126 3798 A
- (dir.)168 3966 A
- 4176(*/)S
- 5130 V
- (23267)210 648 A
- (rip->i_nlinks++;)672 1362 A
- 2370(/*)S
- (this)168 2496 A
- (accounts)336 2706 A
- (for)126 3084 A
- 3252(.)S
- 3336(*/)S
- 5220 V
- (23268)210 648 A
- (ldirp->i_nlinks++;)756 1362 A
- 2370(/*)S
- (this)168 2496 A
- (accounts)336 2706 A
- (for)126 3084 A
- 3252(..)S
- 3378(*/)S
- 5310 V
- (23269)210 648 A
- (ldirp->i_dirt)546 1362 A
- 1950(=)S
- (DIRTY;)252 2034 A
- 2370(/*)S
- (mark)168 2496 A
- (parent's)336 2706 A
- (inode)210 3084 A
- 3336(as)S
- (dirty)210 3462 A
- 3714(*/)S
- 5400 V
- (23270)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 5490 V
- (23271)210 648 A
- 1362(/*)S
- 1488(It)S
- (was)126 1614 A
- (not)126 1782 A
- (possible)336 1950 A
- 2328(to)S
- (enter)210 2454 A
- 2706(.)S
- 2790(or)S
- 2916(..)S
- (probably)336 3042 A
- (disk)168 3420 A
- (was)126 3630 A
- (full.)210 3798 A
- 4050(*/)S
- 5580 V
- (23272)210 648 A
- ((void))252 1362 A
- (search_dir(ldirp,)714 1656 A
- (string,)294 2412 A
- ((ino_t)252 2748 A
- 3042(*))S
- 3168(0,)S
- (DELETE);)336 3294 A
- 5670 V
- (23273)210 648 A
- (rip->i_nlinks--;)672 1362 A
- 2370(/*)S
- (undo)168 2496 A
- (the)126 2706 A
- (increment)378 2874 A
- (done)168 3294 A
- 3504(in)S
- (new_node())420 3630 A
- 4092(*/)S
- 5760 V
- (23274)210 648 A
- 1110(})S
- 5850 V
- (23275)210 648 A
- (rip->i_dirt)462 1110 A
- 1614(=)S
- (DIRTY;)252 1698 A
- 2370(/*)S
- (either)252 2496 A
- (way,)168 2790 A
- (i_nlinks)336 3000 A
- (has)126 3378 A
- (changed)294 3546 A
- 3882(*/)S
- 5940 V
- (23276)210 648 A
- 6030 V
- (23277)210 648 A
- (put_inode(ldirp);)714 1110 A
- 2370(/*)S
- (return)252 2496 A
- (the)126 2790 A
- (inode)210 2958 A
- 3210(of)S
- (the)126 3336 A
- (parent)252 3504 A
- (dir)126 3798 A
- 3966(*/)S
- 6120 V
- (23278)210 648 A
- (put_inode(rip);)630 1110 A
- 2370(/*)S
- (return)252 2496 A
- (the)126 2790 A
- (inode)210 2958 A
- 3210(of)S
- (the)126 3336 A
- (newly)210 3504 A
- (made)168 3756 A
- (dir)126 3966 A
- 4134(*/)S
- 6210 V
- (23279)210 648 A
- (return(err_code);)714 1110 A
- 2370(/*)S
- (new_node())420 2496 A
- (always)252 2958 A
- (sets)168 3252 A
- ('err_code')420 3462 A
- 3924(*/)S
- 8418 V
- EP
- %%Page: 319 319
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 12 B
- (319)180 4248 A
- 900 V
- 7 LST
- (23280)210 648 A
- 1026(})S
- 1170 V
- (23283)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1260 V
- (23284)210 648 A
- 1068(*)S
- (do_close)336 2370 A
- 4260(*)S
- 1350 V
- (23285)210 648 A
- (*===========================================================================*/)3276 1068 A
- 1440 V
- (23286)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_close())420 1488 A
- 1530 V
- (23287)210 648 A
- 1026({)S
- 1620 V
- (23288)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (close(fd))378 1656 A
- (system)252 2076 A
- (call.)210 2370 A
- 2622(*/)S
- 1710 V
- (23289)210 648 A
- 1800 V
- (23290)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (filp)168 1782 A
- (*rfilp;)294 1992 A
- 1890 V
- (23291)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (inode)210 1782 A
- (*rip;)210 2034 A
- 1980 V
- (23292)210 648 A
- (struct)252 1110 A
- (file_lock)378 1404 A
- (*flp;)210 1824 A
- 2070 V
- (23293)210 648 A
- (int)126 1110 A
- (rw,)126 1278 A
- (mode_word,)420 1446 A
- (major,)252 1908 A
- (task,)210 2202 A
- (lock_count;)462 2454 A
- 2160 V
- (23294)210 648 A
- (dev_t)210 1110 A
- (dev;)168 1362 A
- 2250 V
- (23295)210 648 A
- 2340 V
- (23296)210 648 A
- 1110(/*)S
- (First)210 1236 A
- (locate)252 1488 A
- (the)126 1782 A
- (inode)210 1950 A
- (that)168 2202 A
- (belongs)294 2412 A
- 2748(to)S
- (the)126 2874 A
- (file)168 3042 A
- (descriptor.)462 3252 A
- 3756(*/)S
- 2430 V
- (23297)210 648 A
- 1110(if)S
- 1236(()S
- ((rfilp)252 1320 A
- 1614(=)S
- (get_filp(fd)))546 1698 A
- 2286(==)S
- (NIL_FILP))378 2412 A
- (return(err_code);)714 2832 A
- 2520 V
- (23298)210 648 A
- (rip)126 1110 A
- 1278(=)S
- (rfilp->filp_ino;)672 1362 A
- 2370(/*)S
- ('rip')210 2496 A
- (points)252 2748 A
- 3042(to)S
- (the)126 3168 A
- (inode)210 3336 A
- 3588(*/)S
- 2610 V
- (23299)210 648 A
- 2700 V
- (23300)210 648 A
- 1110(if)S
- ((rfilp->filp_count)756 1236 A
- 2034(-)S
- 2118(1)S
- 2202(==)S
- 2328(0)S
- 2412(&&)S
- (rfilp->filp_mode)672 2538 A
- 3252(!=)S
- (FILP_CLOSED))504 3378 A
- 3924({)S
- 2790 V
- (23301)210 648 A
- 1362(/*)S
- (Check)210 1488 A
- 1740(to)S
- (see)126 1866 A
- 2034(if)S
- (the)126 2160 A
- (file)168 2328 A
- 2538(is)S
- (special.)336 2664 A
- 3042(*/)S
- 2880 V
- (23302)210 648 A
- (mode_word)378 1362 A
- 1782(=)S
- (rip->i_mode)462 1866 A
- 2370(&)S
- (I_TYPE;)294 2454 A
- 2970 V
- (23303)210 648 A
- 1362(if)S
- ((mode_word)420 1488 A
- 1950(==)S
- (I_CHAR_SPECIAL)588 2076 A
- 2706(||)S
- (mode_word)378 2832 A
- 3252(==)S
- (I_BLOCK_SPECIAL))672 3378 A
- 4092({)S
- 3060 V
- (23304)210 648 A
- (dev)126 1698 A
- 1866(=)S
- ((dev_t))294 1950 A
- (rip->i_zone[0];)630 2286 A
- 3150 V
- (23305)210 648 A
- 1698(if)S
- ((mode_word)420 1824 A
- 2286(==)S
- (I_BLOCK_SPECIAL))672 2412 A
- 3168({)S
- 3240 V
- (23306)210 648 A
- 2034(/*)S
- (Invalidate)420 2160 A
- (cache)210 2622 A
- (entries)294 2874 A
- (unless)252 3210 A
- (special)294 3504 A
- 3840(is)S
- (mounted)294 3966 A
- 3330 V
- (23307)210 648 A
- 2076(*)S
- 2160(or)S
- (ROOT)168 2286 A
- 3420 V
- (23308)210 648 A
- 2076(*/)S
- 3510 V
- (23309)210 648 A
- 2034(if)S
- ((!mounted(rip)))630 2160 A
- 2832({)S
- 3600 V
- (23310)210 648 A
- ((void))252 2370 A
- (do_sync();)420 2664 A
- 3378(/*)S
- (purge)210 3504 A
- (cache)210 3756 A
- 4008(*/)S
- 3690 V
- (23311)210 648 A
- (invalidate(dev);)672 2370 A
- 3780 V
- (23312)210 648 A
- 2034(})S
- 3870 V
- (23313)210 648 A
- 1698(})S
- 3960 V
- (23314)210 648 A
- 1698(/*)S
- (Use)126 1824 A
- (the)126 1992 A
- (dmap_close)420 2160 A
- (entry)210 2622 A
- 2874(to)S
- 3000(do)S
- (any)126 3126 A
- (special)294 3294 A
- (processing)420 3630 A
- 4050 V
- (23315)210 648 A
- 1740(*)S
- (required.)378 1824 A
- 4140 V
- (23316)210 648 A
- 1740(*/)S
- 4230 V
- (23317)210 648 A
- (dev_mess.m_type)630 1698 A
- 2370(=)S
- (DEV_CLOSE;)420 2454 A
- 4320 V
- (23318)210 648 A
- (dev_mess.DEVICE)630 1698 A
- 2370(=)S
- (dev;)168 2454 A
- 4410 V
- (23319)210 648 A
- (major)210 1698 A
- 1950(=)S
- ((dev)168 2034 A
- 2244(>>)S
- (MAJOR))252 2370 A
- 2664(&)S
- (BYTE;)210 2748 A
- 3042(/*)S
- (major)210 3168 A
- (device)252 3420 A
- 3714(nr)S
- 3840(*/)S
- 4500 V
- (23320)210 648 A
- (task)168 1698 A
- 1908(=)S
- (dmap[major].dmap_task;)924 1992 A
- 3042(/*)S
- (device)252 3168 A
- (task)168 3462 A
- 3672(nr)S
- 3798(*/)S
- 4590 V
- (23321)210 648 A
- ((*dmap[major].dmap_close)(task,)1302 1698 A
- (&dev_mess);)462 3042 A
- 4680 V
- (23322)210 648 A
- 1362(})S
- 4770 V
- (23323)210 648 A
- 1110(})S
- 4860 V
- (23324)210 648 A
- 4950 V
- (23325)210 648 A
- 1110(/*)S
- 1236(If)S
- (the)126 1362 A
- (inode)210 1530 A
- (being)210 1782 A
- (closed)252 2034 A
- 2328(is)S
- 2454(a)S
- (pipe,)210 2538 A
- (release)294 2790 A
- (everyone)336 3126 A
- (hanging)294 3504 A
- 3840(on)S
- (it.)126 3966 A
- 4134(*/)S
- 5040 V
- (23326)210 648 A
- 1110(if)S
- ((rip->i_pipe)504 1236 A
- 1782(==)S
- (I_PIPE))294 1908 A
- 2244({)S
- 5130 V
- (23327)210 648 A
- 1362(rw)S
- 1488(=)S
- ((rfilp->filp_mode)714 1572 A
- 2328(&)S
- (R_BIT)210 2412 A
- 2664(?)S
- (WRITE)210 2748 A
- 3000(:)S
- (READ);)252 3084 A
- 5220 V
- (23328)210 648 A
- (release(rip,)504 1362 A
- (rw,)126 1908 A
- (NR_PROCS);)420 2076 A
- 5310 V
- (23329)210 648 A
- 1110(})S
- 5400 V
- (23330)210 648 A
- 5490 V
- (23331)210 648 A
- 1110(/*)S
- 1236(If)S
- 1362(a)S
- (write)210 1446 A
- (has)126 1698 A
- (been)168 1866 A
- (done,)210 2076 A
- (the)126 2328 A
- (inode)210 2496 A
- 2748(is)S
- (already)294 2874 A
- (marked)252 3210 A
- 3504(as)S
- (DIRTY.)252 3630 A
- 3924(*/)S
- 5580 V
- (23332)210 648 A
- 1110(if)S
- ((--rfilp->filp_count)840 1236 A
- 2118(==)S
- 2244(0))S
- 2370({)S
- 5670 V
- (23333)210 648 A
- 1362(if)S
- ((rip->i_pipe)504 1488 A
- 2034(==)S
- (I_PIPE)252 2160 A
- 2454(&&)S
- (rip->i_count)504 2580 A
- 3126(>)S
- 3210(1))S
- 3336({)S
- 5760 V
- (23334)210 648 A
- 1698(/*)S
- (Save)168 1824 A
- (the)126 2034 A
- (file)168 2202 A
- (position)336 2412 A
- 2790(in)S
- (the)126 2916 A
- (i-node)252 3084 A
- 3378(in)S
- (case)168 3504 A
- (needed)252 3714 A
- (later.)252 4008 A
- 5850 V
- (23335)210 648 A
- 1740(*)S
- (The)126 1824 A
- (read)168 1992 A
- (and)126 2202 A
- (write)210 2370 A
- (positions)378 2622 A
- (are)126 3042 A
- (saved)210 3210 A
- (separately.)462 3462 A
- (The)126 4008 A
- 5940 V
- (23336)210 648 A
- 1740(*)S
- (last)168 1824 A
- 2034(3)S
- (zones)210 2118 A
- 2370(in)S
- (the)126 2496 A
- (i-node)252 2664 A
- (are)126 2958 A
- (not)126 3126 A
- (used)168 3294 A
- (for)126 3504 A
- ((named))294 3672 A
- (pipes.)252 4008 A
- 6030 V
- (23337)210 648 A
- 1740(*/)S
- 6120 V
- (23338)210 648 A
- 1698(if)S
- ((rfilp->filp_mode)714 1824 A
- 2580(==)S
- (R_BIT))252 2706 A
- 6210 V
- (23339)210 648 A
- (rip->i_zone[V2_NR_DZONES+1])1134 2034 A
- 3210(=)S
- ((zone_t))336 3294 A
- (rfilp->filp_pos;)672 3672 A
- 8418 V
- EP
- %%Page: 320 320
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (320)180 648 A
- 11 R
- 2139(File:)S
- 2372(src/fs/open.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (23340)210 648 A
- (else)168 1698 A
- 990 V
- (23341)210 648 A
- (rip->i_zone[V2_NR_DZONES+2])1134 2034 A
- 3210(=)S
- ((zone_t))336 3294 A
- (rfilp->filp_pos;)672 3672 A
- 1080 V
- (23342)210 648 A
- 1362(})S
- 1170 V
- (23343)210 648 A
- (put_inode(rip);)630 1362 A
- 1260 V
- (23344)210 648 A
- 1110(})S
- 1350 V
- (23345)210 648 A
- 1440 V
- (23346)210 648 A
- (fp->fp_cloexec)588 1110 A
- 1740(&=)S
- (304(1L)168 1866 A
- 2076(<<)S
- (fd);)168 2202 A
- 2706(/*)S
- (turn)168 2832 A
- (off)126 3042 A
- (close-on-exec)546 3210 A
- (bit)126 3798 A
- 3966(*/)S
- 1530 V
- (23347)210 648 A
- (fp->fp_filp[fd])630 1110 A
- 1782(=)S
- (NIL_FILP;)378 1866 A
- 1620 V
- (23348)210 648 A
- 1710 V
- (23349)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- (the)126 1908 A
- (file)168 2076 A
- 2286(is)S
- (locked.)294 2412 A
- 2790(If)S
- (so,)126 2916 A
- (release)294 3084 A
- (all)126 3420 A
- (locks.)252 3588 A
- 3882(*/)S
- 1800 V
- (23350)210 648 A
- 1110(if)S
- ((nr_locks)378 1236 A
- 1656(==)S
- 1782(0))S
- (return(OK);)462 1908 A
- 1890 V
- (23351)210 648 A
- (lock_count)420 1110 A
- 1572(=)S
- (nr_locks;)378 1656 A
- 2370(/*)S
- (save)168 2496 A
- (count)210 2706 A
- 2958(of)S
- (locks)210 3084 A
- 3336(*/)S
- 1980 V
- (23352)210 648 A
- (for)126 1110 A
- ((flp)168 1278 A
- 1488(=)S
- (&file_lock[0];)588 1572 A
- (flp)126 2202 A
- 2370(<)S
- (&file_lock[NR_LOCKS];)882 2454 A
- (flp++))252 3378 A
- 3672({)S
- 2070 V
- (23353)210 648 A
- 1362(if)S
- ((flp->lock_type)630 1488 A
- 2160(==)S
- 2286(0))S
- (continue;)378 2412 A
- 3042(/*)S
- (slot)168 3168 A
- (not)126 3378 A
- 3546(in)S
- (use)126 3672 A
- 3840(*/)S
- 2160 V
- (23354)210 648 A
- 1362(if)S
- ((flp->lock_inode)672 1488 A
- 2202(==)S
- (rip)126 2328 A
- 2496(&&)S
- (flp->lock_pid)546 2622 A
- 3210(==)S
- (fp->fp_pid))462 3336 A
- 3840({)S
- 2250 V
- (23355)210 648 A
- (flp->lock_type)588 1698 A
- 2328(=)S
- 2412(0;)S
- 2340 V
- (23356)210 648 A
- (nr_locks--;)462 1698 A
- 2430 V
- (23357)210 648 A
- 1362(})S
- 2520 V
- (23358)210 648 A
- 1110(})S
- 2610 V
- (23359)210 648 A
- 1110(if)S
- ((nr_locks)378 1236 A
- 1656(<)S
- (lock_count))462 1740 A
- (lock_revive();)588 2244 A
- 3042(/*)S
- (lock)168 3168 A
- (released)336 3378 A
- 3756(*/)S
- 2700 V
- (23360)210 648 A
- (return(OK);)462 1110 A
- 2790 V
- (23361)210 648 A
- 1026(})S
- 3060 V
- (23364)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3150 V
- (23365)210 648 A
- 1068(*)S
- (do_lseek)336 2370 A
- 4260(*)S
- 3240 V
- (23366)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3330 V
- (23367)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_lseek())420 1488 A
- 3420 V
- (23368)210 648 A
- 1026({)S
- 3510 V
- (23369)210 648 A
- 1026(/*)S
- (Perform)294 1152 A
- (the)126 1488 A
- (lseek(ls_fd,)504 1656 A
- (offset,)294 2202 A
- (whence))294 2538 A
- (system)252 2874 A
- (call.)210 3168 A
- 3420(*/)S
- 3600 V
- (23370)210 648 A
- 3690 V
- (23371)210 648 A
- (register)336 1110 A
- (struct)252 1488 A
- (filp)168 1782 A
- (*rfilp;)294 1992 A
- 3780 V
- (23372)210 648 A
- (register)336 1110 A
- (off_t)210 1488 A
- (pos;)168 1740 A
- 3870 V
- (23373)210 648 A
- 3960 V
- (23374)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(to)S
- (see)126 1614 A
- 1782(if)S
- (the)126 1908 A
- (file)168 2076 A
- (descriptor)420 2286 A
- 2748(is)S
- (valid.)252 2874 A
- 3168(*/)S
- 4050 V
- (23375)210 648 A
- 1110(if)S
- 1236(()S
- ((rfilp)252 1320 A
- 1614(=)S
- (get_filp(ls_fd)))672 1698 A
- 2412(==)S
- (NIL_FILP))378 2538 A
- (return(err_code);)714 2958 A
- 4140 V
- (23376)210 648 A
- 4230 V
- (23377)210 648 A
- 1110(/*)S
- 1236(No)S
- (lseek)210 1362 A
- 1614(on)S
- (pipes.)252 1740 A
- 2034(*/)S
- 4320 V
- (23378)210 648 A
- 1110(if)S
- ((rfilp->filp_ino->i_pipe)1008 1236 A
- 2286(==)S