Baishakhi ¡Ray ¡and ¡Miryung ¡Kim ¡ The ¡University ¡of ¡Texas ¡at ¡Austin ¡
1
Baishakhi Ray and Miryung Kim The University of Texas at - - PowerPoint PPT Presentation
Baishakhi Ray and Miryung Kim The University of Texas at Austin 1 Software forking has become popular. Developers may need to port similar
1
2
3
4
5
6
7
10
FreeBSD ¡Patch ¡(bin/cp/cp.c ¡: ¡rev ¡1.3) ¡ Date:1994/12/30 ¡ Author: ¡bde ¡ NetBSD ¡Patch ¡(bin/cp/cp.c ¡: ¡rev ¡1.40) ¡ Date: ¡2005/11/16 ¡ Author: ¡christos Change ¡Log: ¡ … ¡ Be ¡more ¡careful ¡about ¡concatenating ¡ pathnames: ¡don't ¡check ¡that ¡the ¡ pathname ¡fits ¡until ¡prefixes ¡have ¡been ¡ discarded ¡ … ¡ Change ¡Log: ¡
FreeBSD) ¡
to ¡match ¡with ¡FreeBSD ¡ … ¡p ¡= ¡&curr-‑>fts_path[base]; ¡ ¡nlen ¡= ¡curr-‑>fts_pathlen ¡-‑ ¡base; ¡ ! ¡ ¡target_mid ¡= ¡to.target_end; ¡ ! ¡ ¡if ¡(*p ¡!= ¡'/' ¡&& ¡target_mid[-‑1] ¡!= ¡'/') ¡ ! ¡ ¡*target_mid++ ¡= ¡'/'; ¡ ! ¡*target_mid ¡= ¡0; ¡ … ¡ ¡p ¡= ¡&curr-‑>fts_path[base]; ¡ ¡ ¡nlen ¡= ¡curr-‑>fts_pathlen ¡-‑ ¡base; ¡ ! ¡target_mid ¡= ¡to.target_end; ¡ ! ¡ ¡if ¡(*p ¡!= ¡'/' ¡&& ¡target_mid[-‑1] ¡!= ¡'/') ¡ ! ¡ ¡*target_mid++ ¡= ¡'/'; ¡ ! ¡ ¡*target_mid ¡= ¡0; ¡ …
12
13
14
15
16
17
18
releases
releases
19
20
21
22
23
i=i n
0.0 ¡ 0.1 ¡ 0.2 ¡ 0.3 ¡ 0.4 ¡ 0.5 ¡
entropy ¡values ¡ FreeBSD ¡releases ¡
ported ¡edits ¡ non-‑ported ¡edits ¡
0% ¡ 20% ¡ 40% ¡ 60% ¡ 80% ¡
FreeBSD ¡ NetBSD ¡ OpenBSD ¡ % ¡developers ¡
24
25
26
FreeBSD ¡ NetBSD ¡ OpenBSD ¡ 90% ¡ ¡ porting ¡ 50% ¡ ¡ porting ¡
27
28
29
30
31
32
33