diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-28 00:28:21 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-28 00:28:21 +0800 |
commit | 101c393d1446321854816ac187bd8ba7857a17a8 (patch) | |
tree | b9d46e21d0be9b33adfec36cc8f4ba55ac464930 /common/bbs | |
parent | c11a9ba63858d3b0c08f687e7893a7759c9d0797 (diff) | |
download | pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.tar pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.tar.gz pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.tar.bz2 pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.tar.lz pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.tar.xz pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.tar.zst pttbbs-101c393d1446321854816ac187bd8ba7857a17a8.zip |
util/mandex.c uses stamplink.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4382 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common/bbs')
-rw-r--r-- | common/bbs/fhdr_stamp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/common/bbs/fhdr_stamp.c b/common/bbs/fhdr_stamp.c index 4163dd6d..6b81f909 100644 --- a/common/bbs/fhdr_stamp.c +++ b/common/bbs/fhdr_stamp.c @@ -21,11 +21,11 @@ static inline int fhdr_stamp(char *fpath, fileheader_t *fh, int type) GCC_INLINE; int stampfile(char *fpath, fileheader_t *fh) GCC_WEAK; int stampdir(char *fpath, fileheader_t *fh) GCC_WEAK; -//int stamplink(char *fpath, fileheader_t * fh) GCC_WEAK; +int stamplink(char *fpath, fileheader_t * fh) GCC_WEAK; #define STAMP_FILE 0 #define STAMP_DIR 1 -//#define STAMP_LINK 2 +#define STAMP_LINK 2 static inline int fhdr_stamp(char *fpath, fileheader_t *fh, int type) @@ -52,13 +52,11 @@ fhdr_stamp(char *fpath, fileheader_t *fh, int type) sprintf(ip, "D%X", (int)++dtime & 07777); } while ((res = mkdir(fpath, 0755)) == -1 && errno == EEXIST); break; -#if 0 case STAMP_LINK: do { sprintf(ip, "S%X", (int)++dtime); } while ((res = symlink("temp", fpath)) == -1 && errno == EEXIST); break; -#endif default: // unknown return -1; @@ -89,11 +87,9 @@ stampdir(char *fpath, fileheader_t *fh) return fhdr_stamp(fpath, fh, STAMP_DIR); } -#if 0 int stamplink(char *fpath, fileheader_t * fh) { return fhdr_stamp(fpath, fh, STAMP_LINK); } -#endif |