OSDN Git Service

* cygpath.cc (get_device_name): Fix path length test.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / utils / path.h
1 /* path.h
2
3    Copyright 2001, 2002, 2003, 2006, 2008, 2009 Red Hat, Inc.
4
5 This file is part of Cygwin.
6
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
9 details. */
10
11 struct mnt_t
12 {
13   char *native;
14   char *posix;
15   unsigned flags;
16 };
17
18 char *cygpath (const char *s, ...);
19 char *cygpath_rel (const char *cwd, const char *s, ...);
20 bool is_exe (HANDLE);
21 bool is_symlink (HANDLE);
22 bool readlink (HANDLE, char *, int);
23 int get_word (HANDLE, int);
24 int get_dword (HANDLE, int);
25 bool from_fstab_line (mnt_t *m, char *line, bool user);
26
27 extern mnt_t mount_table[255];
28 extern int max_mount_entry;
29
30 #ifndef SYMLINK_MAX
31 #define SYMLINK_MAX 4095  /* PATH_MAX - 1 */
32 #endif