https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 1ba4af228df51a660363c2336ec4822fc6b59957 authored by ffxbld on 17 September 2015, 22:07:11 UTC
Added FENNEC_41_0_RELEASE FENNEC_41_0_BUILD3 tag(s) for changeset e7347ad21d6c. DONTBUILD CLOSED TREE a=release
Tip revision: 1ba4af2
OSObject.h
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * vim: set ts=8 sts=4 et sw=4 tw=99:
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// OSObject.h - os object for exposing posix system calls in the JS shell

#ifndef shell_OSObject_h
#define shell_OSObject_h

#include "jsapi.h"

namespace js {
namespace shell {

/* Define an os object on the given global object. */
bool
DefineOS(JSContext* cx, JS::HandleObject global, bool fuzzingSafe);

enum PathResolutionMode {
    RootRelative,
    ScriptRelative
};

JSString*
ResolvePath(JSContext* cx, JS::HandleString filenameStr, PathResolutionMode resolveMode);

}
}

#endif /* shell_OSObject_h */
back to top