#include <util.h>
util.h
$NetBSD: util.h,v 1.10 1997/12/01 02:25:46 lukem Exp $
macro_LIBC_PTYNAME_OR_NULL
#define _LIBC_PTYNAME_OR_NULL _LIBC_COUNT_OR_NULL(__PTYNAMELEN)
macroPIDLOCK_NONBLOCK
#define PIDLOCK_NONBLOCK 1
macroPIDLOCK_USEHOSTNAME
#define PIDLOCK_USEHOSTNAME 2
macroFPARSELN_UNESCCONT
#define FPARSELN_UNESCCONT 0x02
macroFPARSELN_UNESCCOMM
#define FPARSELN_UNESCCOMM 0x04
macroFPARSELN_UNESCREST
#define FPARSELN_UNESCREST 0x08
macroFPARSELN_UNESCALL
#define FPARSELN_UNESCALL 0x0f
macroOPENDEV_PART
opendev() specific operation flags.
#define OPENDEV_PART 0x01
Try to open the raw partition.
functionlogin
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
void login(struct utmp *)deprecated
man page · December 14, 1995
login(3) — login utility functions (DEPRECATED)functionlogout
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
int logout(const char *)deprecated
man page · December 14, 1995
logout(3) — login utility functions (DEPRECATED)functionlogwtmp
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_2_0,__IPHONE_2_0)
void logwtmp(const char *, const char *, const char *)deprecated
man page · December 14, 1995
logwtmp(3) — login utility functions (DEPRECATED)functionopendev
int opendev(char *, int, int, char *_LIBC_CSTR *)
man page · December 12, 2002
opendev(3) — short form device open routinefunctionopenpty
int openpty( int *, int *, char * _LIBC_PTYNAME_OR_NULL, struct termios *, struct winsize * )
man page · June 17, 2025
openpty(3) — tty utility functionsfunctionfparseln
char *_LIBC_CSTR fparseln(FILE *, size_t *, size_t *, const char[3], int)
man page · December 1, 1997
fparseln(3) — return the next logical line from a streamfunctionforkpty
pid_t forkpty(int *, char * _LIBC_PTYNAME_OR_NULL, struct termios *, struct winsize *)
man page · June 17, 2025
forkpty(3) — tty utility functions