Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(100)

Side by Side Diff: src/lib9/dirfwstat.c

Issue 60840049: code review 60840049: lib9: enable on Plan 9 (Closed)
Patch Set: diff -r dc2e4bffd677 https://code.google.com/p/go Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/lib9/dirfstat.c ('k') | src/lib9/dirstat.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // +build !plan9
2
1 /* 3 /*
2 Plan 9 from User Space src/lib9/dirfwstat.c 4 Plan 9 from User Space src/lib9/dirfwstat.c
3 http://code.swtch.com/plan9port/src/tip/src/lib9/dirfwstat.c 5 http://code.swtch.com/plan9port/src/tip/src/lib9/dirfwstat.c
4 6
5 Copyright 2001-2007 Russ Cox. All Rights Reserved. 7 Copyright 2001-2007 Russ Cox. All Rights Reserved.
6 8
7 Permission is hereby granted, free of charge, to any person obtaining a copy 9 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal 10 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights 11 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 tv[0].tv_sec = (time_t)dir->mtime; 75 tv[0].tv_sec = (time_t)dir->mtime;
74 tv[0].tv_usec = 0; 76 tv[0].tv_usec = 0;
75 tv[1].tv_sec = (time_t)dir->mtime; 77 tv[1].tv_sec = (time_t)dir->mtime;
76 tv[1].tv_usec = 0; 78 tv[1].tv_usec = 0;
77 if(futimes(fd, tv) < 0) 79 if(futimes(fd, tv) < 0)
78 ret = -1; 80 ret = -1;
79 } 81 }
80 return ret; 82 return ret;
81 } 83 }
82 84
OLDNEW
« no previous file with comments | « src/lib9/dirfstat.c ('k') | src/lib9/dirstat.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b