Lines Matching refs:buf
27 * convert native path to posix fs representation in <buf,siz>
29 * if return length >= siz then buf is indeterminate, but another call
31 * if buf==0 then required size is returned
41 pathposix(const char* path, char* buf, size_t siz)
43 return uwin_unpath(path, buf, siz);
53 pathposix(const char* path, char* buf, size_t siz)
57 if (!buf || siz < PATH_MAX)
62 if ((n = strlen(tmp)) < siz && buf)
63 memcpy(buf, tmp, n + 1);
66 cygwin_conv_to_posix_path(path, buf);
67 return strlen(buf);
75 pathposix(const char* path, char* buf, size_t siz)
80 if (!_posixpath(buf, path, siz))
82 for (s = buf; *s; s++)
86 else if ((n = strlen(path)) < siz && buf)
87 memcpy(buf, path, n + 1);
98 pathposix(const char* path, char *buf, size_t siz)
102 *buf = 0;
104 strlcpy(buf, path, siz);
106 winpath2unix(path, PATH_NONSTRICT, buf, siz);
107 return strlen(buf);
113 pathposix(const char* path, char* buf, size_t siz)
117 if ((n = strlen(path)) < siz && buf)
118 memcpy(buf, path, n + 1);