Lines Matching defs:path
39 * Checks the status of the object specified by 'path'
45 smb_reparse_stat(const char *path, uint32_t *stat)
51 if (lstat(path, &statbuf) != 0) {
65 if (readlink(path, symbuf, MAXREPARSELEN) == -1)
78 * If the reparse point specified by the path already exists
87 smb_reparse_svcadd(const char *path, const char *svctype, const char *svcdata)
92 if ((rc = smb_reparse_init(path, &nvl)) != 0)
100 rc = smb_reparse_set(path, nvl);
112 smb_reparse_svcdel(const char *path, const char *svctype)
117 if ((rc = smb_reparse_init(path, &nvl)) != 0)
127 rc = reparse_delete(path);
131 rc = smb_reparse_set(path, nvl);
148 smb_reparse_svcget(const char *path, const char *svctype, char **svcdata)
155 if ((rc = smb_reparse_init(path, &nvl)) != 0)
186 * This function assumes that the object specified by this path
197 smb_reparse_init(const char *path, nvlist_t **nvl)
206 if ((rc = readlink(path, rp_data, MAXREPARSELEN)) == -1) {
237 smb_reparse_set(const char *path, nvlist_t *nvl)
245 rc = reparse_delete(path);
251 rc = reparse_create(path, rp_data);