15.10 Additional Operating System Functions

► |  | The Racket Reference

1 | Language Model
2 | Notation for Documentation
3 | Syntactic Forms
4 | Datatypes
5 | Structures
6 | Classes and Objects
7 | Units
8 | Contracts
9 | Pattern Matching
10 | Control Flow
11 | Concurrency and Parallelism
12 | Macros
13 | Input and Output
14 | Reflection and Security
15 | Operating System
16 | Memory Management
17 | Unsafe Operations
18 | Running Racket
| Bibliography
| Index

▼ | 15 | Operating System

15.1 | Paths
15.2 | Filesystem
15.3 | Networking
15.4 | Processes
15.5 | Logging
15.6 | Time
15.7 | Environment Variables
15.8 | Environment and Runtime Information
15.9 | Command-Line Parsing
15.10 | Additional Operating System Functions

On this page:

gethostname
getpid

top ← prev up next →

#### 15.10`` Additional Operating System Functions

(require racket/os) | package: base

The racket/os library additional functions for querying the operating system.

Added in version 6.3 of package base.

> procedure (gethostname) → string?

Returns a string for the current machine’s hostname (including its domain).

> procedure (getpid) → exact-integer?

Returns an integer identifying the current process within the operating system.
top ← prev up next →