]> granicus.if.org Git - php/commitdiff
not needed anywhere here
authorMarcus Boerger <helly@php.net>
Thu, 7 Nov 2002 23:09:41 +0000 (23:09 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 7 Nov 2002 23:09:41 +0000 (23:09 +0000)
ext/dba/dba_flatfile.c

index 27df27ce16be97985ca81baf727feba0043c50a1..54e625bd26bd184031dfe46a73c0221e125d2c4f 100644 (file)
 #define FLATFILE_DATA flatfile *dba = info->dbf
 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
 
-#define TRUNC_IT(extension, mode) \
-       snprintf(buf, MAXPATHLEN, "%s" extension, info->path); \
-       buf[MAXPATHLEN-1] = '\0'; \
-       if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \
-               return FAILURE; \
-       close(fd);
-
-
 DBA_OPEN_FUNC(flatfile)
 {
        char *fmode;