OLD | NEW |
| 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 Loading... |
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 |
OLD | NEW |