diff options
author | joerg <joerg@pkgsrc.org> | 2006-06-21 19:34:45 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-06-21 19:34:45 +0000 |
commit | 26dfdf5fe2e24939296feb80cdeaef9c4985fb13 (patch) | |
tree | 48b523a3b6f0b9c6963f4ea23eb005dafff2fcbc /sysutils/9base | |
parent | fc5745e18c2ef915a2714794494bc005f0075889 (diff) | |
download | pkgsrc-26dfdf5fe2e24939296feb80cdeaef9c4985fb13.tar.gz |
Add DragonFly support.
Diffstat (limited to 'sysutils/9base')
-rw-r--r-- | sysutils/9base/distinfo | 3 | ||||
-rw-r--r-- | sysutils/9base/patches/patch-av | 60 |
2 files changed, 62 insertions, 1 deletions
diff --git a/sysutils/9base/distinfo b/sysutils/9base/distinfo index f889045648a..6ab4fb615a5 100644 --- a/sysutils/9base/distinfo +++ b/sysutils/9base/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2006/02/14 16:26:38 yyamano Exp $ +$NetBSD: distinfo,v 1.4 2006/06/21 19:34:45 joerg Exp $ SHA1 (9base-20051114.tar.gz) = 27fb8879677dbb83a9f2f24a3be7cc96d97ea244 RMD160 (9base-20051114.tar.gz) = 59223d40e2c761ed80f3eb73afcc046b4d6e921b @@ -24,6 +24,7 @@ SHA1 (patch-ar) = b1eb60766952dd983b8b72c6198c4a45119e0b53 SHA1 (patch-as) = 997dc92229699c0e3a51a753b0b2480d517c64ca SHA1 (patch-at) = 32d0da68f18b56e8774f90e5f0090ef8c5aed84a SHA1 (patch-au) = d412607f5d49b5e72e24de91da2dec63dd1f3437 +SHA1 (patch-av) = 6553a9e7260d879a04ae1c0c873c2706130dba9e SHA1 (patch-ba) = 97aff6df9b6971ee5ddfeb9a88fcaf383a9a9bbb SHA1 (patch-bb) = a7b5b80ed7125f66d845c74d21d8de41b10d112a SHA1 (patch-bc) = 46debf24eab8dcef0768aef88aee0029b2f316ec diff --git a/sysutils/9base/patches/patch-av b/sysutils/9base/patches/patch-av new file mode 100644 index 00000000000..73820465d7f --- /dev/null +++ b/sysutils/9base/patches/patch-av @@ -0,0 +1,60 @@ +$NetBSD: patch-av,v 1.1 2006/06/21 19:34:45 joerg Exp $ + +--- lib9/dirread.c.orig 2006-06-21 17:11:56.000000000 +0000 ++++ lib9/dirread.c +@@ -18,7 +18,7 @@ mygetdents(int fd, struct dirent *buf, i + nn = getdirentries(fd, (void*)buf, n, &off); + return nn; + } +-#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) ++#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) + static int + mygetdents(int fd, struct dirent *buf, int n) + { +@@ -44,14 +44,22 @@ countde(char *p, int n) + m = 0; + while(p < e){ + de = (struct dirent*)p; ++#if defined(__DragonFly__) ++ if (p + _DIRENT_DIRSIZ(de) > e) ++#else + if(de->d_reclen <= 4+2+2+1 || p+de->d_reclen > e) ++#endif + break; + if(de->d_name[0]=='.' && de->d_name[1]==0) + de->d_name[0] = 0; + else if(de->d_name[0]=='.' && de->d_name[1]=='.' && de->d_name[2]==0) + de->d_name[0] = 0; + m++; ++#if defined(__DragonFly__) ++ p += _DIRENT_DIRSIZ(de); ++#else + p += de->d_reclen; ++#endif + } + return m; + } +@@ -91,7 +99,11 @@ dirpackage(int fd, char *buf, int n, Dir + stat(de->d_name, &st); + nstr += _p9dir(&lst, &st, de->d_name, nil, nil, nil); + } ++#if defined(__DragonFly__) ++ p += _DIRENT_DIRSIZ(de); ++#else + p += de->d_reclen; ++#endif + } + + d = malloc(sizeof(Dir)*n+nstr); +@@ -113,7 +125,11 @@ dirpackage(int fd, char *buf, int n, Dir + stat(de->d_name, &st); + _p9dir(&lst, &st, de->d_name, &d[m++], &str, estr); + } ++#if defined(__DragonFly__) ++ p += _DIRENT_DIRSIZ(de); ++#else + p += de->d_reclen; ++#endif + } + + fchdir(oldwd); |