Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Misc_InvokeEditor(lib) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Misc  —  C Library Procedures

NAME

Misc_InvokeEditor − Invoke an editor for a user

SYNOPSIS

#include <libc.h>
int
Misc_InvokeEditor(file)

ARGUMENTS

char ∗file   (in) Name of the file to edit. 
 

DESCRIPTION

If a program needs to have the user edit a file, it can simply call Misc_InvokeEditor with the name of the file to edit.  The user’s editor (as defined by the EDITOR environment variable, with vi being the default) will be invoked.  Misc_InvokeEditor returns the exit status from the editor.  For setuid and setgid programs, the editor is invoked with the user’s real (not effective) user and group IDs. 
 

KEYWORDS

edit, file

Sprite version 1.0  —  June 04, 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026