[samba-jp:20354] Re: ファイル生成時刻の扱いについて
Takashi SHIRAI
shirai @ unixusers.net
2008年 8月 21日 (木) 00:11:01 JST
$B!!$7$i$$$G$9!#(B
In Message-Id <20080819230453.e007e5e2.touchan @ papa-net.bpl.jp>
KAWASUMI Junji <touchan @ papa-net.bpl.jp>$B$5$s(Bwrites:
> $B @ n@!$G$9(B
> +AC_CHECK_MEMBERS([struct stat.st_birthtime],,,[#include <sys/stat.h>])
> +AC_CHECK_MEMBERS([struct stat.st_birthtimensec],,,[#include <sys/stat.h>])
> +
> AC_CACHE_CHECK([for SO_PEERCRED],samba_cv_HAVE_PEERCRED,[
> AC_TRY_COMPILE([#include <sys/types.h>
> #include <sys/socket.h>],
>
> ==============================================================
> $B$G!"(Bst_birthtime$B$NM-L5$r%A%'%C%/$7!"(B
$B!!(Bst_birthtimensec $B$NJ}$O;H$o$J$$$s$@$C$?$iD4$Y$J$/$F$b$$$$(B
$B$H;W$$$^$9!#(BHAVE_STRUCT_STAT_TM_BIRTHTIMENSEC $B$b8+$F$J$$$h$&(B
$B$G$9$7!#(B
> +#if defined(HAVE_STRUCT_STAT_TM_BIRTHTIME)
> + ret = st->st_birthtime;
> + if ((ret != (time_t)0) && (ret != ~(time_t)0)) {
> + return ret;
> + }
> +#endif
$B!!$$$D$+$i!V(B(time_t)-1$B!W$,!V(B~(time_t)0$B!W$K$J$C$?$s$G$7$g$&!)(B
$B$I$3$+$N(B man page $B$N5-=R$,$=$&$J$C$F$$$?$s$G$7$g$&$+!)(B
$B!!$b$7$=$&$G$J$$$J$i!"$3$l$i$NCM$,I,$:$7$bF10l$K$J$kJ]>Z$O$J(B
$B$$$N$G!"L50G$KCV49$($r$9$Y$-$G$O$J$$$H;W$$$^$9!#(B2 $B$NJd?tI=8=(B
$B$G$J$$4D6-$O$H$b$+$/!"(Bcast $B$7$F$k$H7e$NLdBj$b?'!9$"$k$7!#(B
$B$7$i$$(B $B$?$+$7(B
samba-jp メーリングリストの案内