pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] [PATCH] Add implementation of pdf_fsys_disk_item_p


From: jemarch
Subject: Re: [pdf-devel] [PATCH] Add implementation of pdf_fsys_disk_item_p
Date: Mon, 28 Jul 2008 22:20:46 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

   > I would suggest to use 'stat' or 'lstat' to do this (those functions
   > has support for directories, special files, etc). AFAIK mingw has
   > support for the stat function and anyway we have the sys_stat.h
   > portability file from gnulib already installed in libgnupdf.

   stat gives you the permission bits, but we should also consider the way
   the filesystem was mounted (read-only filesystems can happen). access()
   is the good way to do it, but don't know if it's portable or not.

access() is supported in mingw32 with some restrictions.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]