Path: blob/main/third_party/closure-compiler/node-externs/os.js
6174 views
/*1* Copyright 2012 The Closure Compiler Authors.2*3* Licensed under the Apache License, Version 2.0 (the "License");4* you may not use this file except in compliance with the License.5* You may obtain a copy of the License at6*7* http://www.apache.org/licenses/LICENSE-2.08*9* Unless required by applicable law or agreed to in writing, software10* distributed under the License is distributed on an "AS IS" BASIS,11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12* See the License for the specific language governing permissions and13* limitations under the License.14*/1516/**17* @fileoverview Definitions for node's os module.18* @see http://nodejs.org/api/os.html19* @externs20* @author Daniel Wirtz <[email protected]>21*/2223/**24BEGIN_NODE_INCLUDE25var os = require('os');26END_NODE_INCLUDE27*/282930/**31* @return {string}32* @nosideeffects33*/34os.tmpdir = function() {};3536/**37* @return {string}38* @nosideeffects39*/40os.hostname = function() {};4142/**43* @return {string}44* @nosideeffects45*/46os.type = function() {};4748/**49* @return {string}50* @nosideeffects51*/52os.platform = function() {};5354/**55* @return {string}56* @nosideeffects57*/58os.arch = function() {};5960/**61* @return {string}62* @nosideeffects63*/64os.release = function() {};6566/**67* @return {number}68* @nosideeffects69*/70os.uptime = function() {};7172/**73* @return {Array.<number>}74* @nosideeffects75*/76os.loadavg = function() {};7778/**79* @return {number}80* @nosideeffects81*/82os.totalmem = function() {};8384/**85* @return {number}86* @nosideeffects87*/88os.freemem = function() {};8990/**91* @typedef {{model: string, speed: number, times: {user: number, nice: number, sys: number, idle: number, irg: number}}}92*/93var osCpusInfo;9495/**96* @return {Array.<osCpusInfo>}97* @nosideeffects98*/99os.cpus = function() {};100101/**102* @typedef {{address: string, family: string, internal: boolean}}103*/104var osNetworkInterfacesInfo;105106/**107* @return {Object.<string,osNetworkInterfacesInfo>}108* @nosideeffects109*/110os.networkInterfaces = function() {};111112/**113* @type {string}114*/115os.EOL;116117118