aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils/path.h
blob: a5c77ef58f461ab01ccc809e64c7877e232c0d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* path.h

   Copyright 2001, 2002, 2003, 2006, 2008, 2009 Red Hat, Inc.

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

struct mnt_t
{
  char *native;
  char *posix;
  unsigned flags;
};

char *cygpath (const char *s, ...);
char *cygpath_rel (const char *cwd, const char *s, ...);
bool is_exe (HANDLE);
bool is_symlink (HANDLE);
bool readlink (HANDLE, char *, int);
int get_word (HANDLE, int);
int get_dword (HANDLE, int);
bool from_fstab_line (mnt_t *m, char *line, bool user);

extern mnt_t mount_table[255];
extern int max_mount_entry;

#ifndef SYMLINK_MAX
#define SYMLINK_MAX 4095  /* PATH_MAX - 1 */
#endif