#include <util.h>

util.h

$NetBSD: util.h,v 1.10 1997/12/01 02:25:46 lukem Exp $
includes: _bounds.h, sys/cdefs.h, sys/ttycom.h, sys/types.h, stdio.h, pwd.h, termios.h, Availability.h, utmp.h
10 macros · 8 functions

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_UNESCESC

fparseln() specific operation flags.
#define FPARSELN_UNESCESC 0x01

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.

macroOPENDEV_BLCK

#define OPENDEV_BLCK 0x04
Open block, not character device.

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)

functionlogin_tty

int login_tty(int)
man page · June 17, 2025
login_tty(3) — tty utility functions

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 routine

functionopenpty

int openpty(
	int *,
	int *,
	char * _LIBC_PTYNAME_OR_NULL,
	struct termios *,
	struct winsize *
)
man page · June 17, 2025
openpty(3) — tty utility functions

functionfparseln

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 stream

functionforkpty

pid_t forkpty(int *, char * _LIBC_PTYNAME_OR_NULL, struct termios *, struct winsize *)
man page · June 17, 2025
forkpty(3) — tty utility functions