version 1.167, 2012/07/02 21:56:25 |
version 1.168, 2013/12/13 15:19:41 |
|
|
|
|
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
|
#include <dirent.h> |
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <string.h> |
#include <string.h> |
|
|
void |
void |
cvs_update_leavedir(struct cvs_file *cf) |
cvs_update_leavedir(struct cvs_file *cf) |
{ |
{ |
off_t base; |
|
int nbytes; |
int nbytes; |
int isempty; |
int isempty; |
size_t bufsize; |
size_t bufsize; |
|
|
if (lseek(cf->fd, 0, SEEK_SET) == -1) |
if (lseek(cf->fd, 0, SEEK_SET) == -1) |
fatal("cvs_update_leavedir: %s", strerror(errno)); |
fatal("cvs_update_leavedir: %s", strerror(errno)); |
|
|
while ((nbytes = getdirentries(cf->fd, buf, bufsize, &base)) > 0) { |
while ((nbytes = getdents(cf->fd, buf, bufsize)) > 0) { |
ebuf = buf + nbytes; |
ebuf = buf + nbytes; |
cp = buf; |
cp = buf; |
|
|