lib/replace/system/dir.h

説明を見る。
00001 #ifndef _system_dir_h
00002 #define _system_dir_h
00003 /* 
00004    Unix SMB/CIFS implementation.
00005 
00006    directory system include wrappers
00007 
00008    Copyright (C) Andrew Tridgell 2004
00009    
00010    This program is free software; you can redistribute it and/or modify
00011    it under the terms of the GNU General Public License as published by
00012    the Free Software Foundation; either version 2 of the License, or
00013    (at your option) any later version.
00014    
00015    This program is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018    GNU General Public License for more details.
00019    
00020    You should have received a copy of the GNU General Public License
00021    along with this program; if not, write to the Free Software
00022    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023 */
00024 
00025 #if HAVE_DIRENT_H
00026 # include <dirent.h>
00027 # define NAMLEN(dirent) strlen((dirent)->d_name)
00028 #else
00029 # define dirent direct
00030 # define NAMLEN(dirent) (dirent)->d_namlen
00031 # if HAVE_SYS_NDIR_H
00032 #  include <sys/ndir.h>
00033 # endif
00034 # if HAVE_SYS_DIR_H
00035 #  include <sys/dir.h>
00036 # endif
00037 # if HAVE_NDIR_H
00038 #  include <ndir.h>
00039 # endif
00040 #endif
00041 
00042 #ifndef HAVE_MKDIR_MODE
00043 #define mkdir(dir, mode) mkdir(dir)
00044 #endif
00045 
00046 /* Test whether a file name is the "." or ".." directory entries.
00047  * These really should be inline functions.
00048  */
00049 #ifndef ISDOT
00050 #define ISDOT(path) ( \
00051                         *((const char *)(path)) == '.' && \
00052                         *(((const char *)(path)) + 1) == '\0' \
00053                     )
00054 #endif
00055 
00056 #ifndef ISDOTDOT
00057 #define ISDOTDOT(path)  ( \
00058                             *((const char *)(path)) == '.' && \
00059                             *(((const char *)(path)) + 1) == '.' && \
00060                             *(((const char *)(path)) + 2) == '\0' \
00061                         )
00062 #endif
00063 
00064 #endif

Sambaに対してSat Aug 29 21:22:59 2009に生成されました。  doxygen 1.4.7