1 // Copyright 2017 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 #include <zircon/compiler.h>
8 #include <zircon/types.h>
9 #include <stdint.h>
10 
11 __BEGIN_CDECLS;
12 
13 // WARNING: These APIs are subject to change
14 
15 // __fdio_cleanpath cleans an input path, placing the output
16 // in out, which is a buffer of at least "PATH_MAX" bytes.
17 //
18 // 'outlen' returns the length of the path placed in out, and 'is_dir'
19 // is set to true if the returned path must be a directory.
20 zx_status_t __fdio_cleanpath(const char* in, char* out, size_t* outlen, bool* is_dir);
21 
22 __END_CDECLS;
23