| // Copyright 2017 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #pragma once | |
| #include <zircon/compiler.h> | |
| #include <zircon/types.h> | |
| #include <stdint.h> | |
| __BEGIN_CDECLS; | |
| // WARNING: These APIs are subject to change | |
| // __fdio_cleanpath cleans an input path, placing the output | |
| // in out, which is a buffer of at least "PATH_MAX" bytes. | |
| // | |
| // 'outlen' returns the length of the path placed in out, and 'is_dir' | |
| // is set to true if the returned path must be a directory. | |
| zx_status_t __fdio_cleanpath(const char* in, char* out, size_t* outlen, bool* is_dir); | |
| __END_CDECLS; |