CONTENTS(0)
TABLE OF CONTENTS
1. User Commands
intro ................... introduction to commands and application programs
acctcom ....................... search and print process accounting file(s)
assist ............................. assistance using DG/UX system commands
astgen ...................... generate/modify ASSIST menus or command forms
at ................................. execute DG/UX commands at a later time
att_dump ............. dump parts of an object, executable, or archive file
att_stty ................................... set the options for a terminal
awk .............................. pattern scanning and processing language
banner ....................................................... make posters
basename ................................... deliver portions of path names
bc ................................ arbitrary-precision arithmetic language
bdiff ............................................................ big diff
berk_stty ............................................ set terminal options
bfs ...................................................... big file scanner
cal ........................................................ print calendar
calendar ................................................. reminder service
cat ......................... concatenate and type files to standard output
cd ............................................... change working directory
chmod ......................................................... change mode
chown ............................................... change owner or group
clear ............................................... clear terminal screen
cmp ..................................................... compare two files
col ............................................. filter reverse line-feeds
comm .................... select or reject lines common to two sorted files
cp ............................................... copy, link or move files
cpio ........................................ copy file archives in and out
crontab ........................................ user crontab file in DG/UX
crypt ....................................................... encode/decode
crypt ....................................................................
csh ............ a shell (command interpreter) with C-like syntax for DG/UX
csplit ...................................................... context split
ct ....................................... spawn getty to a remote terminal
cu ............................................... call another UNIX system
cut ........................ cut out selected fields of each line of a file
date ............................................... print and set the date
dc ........................................................ desk calculator
dd ................................................ convert and copy a file
deblock .............................................. change blocking size
deroff ........................ remove nroff/troff, tbl, and eqn constructs
diff ......................................... differential file comparator
diff3 .................................. 3-way differential file comparison
dircmp ............................................... directory comparison
du ................................................... summarize disk usage
echo ...................................................... echo arguments
ed ............................................................ text editor
edit ......................... text editor (variant of ex for casual users)
enable ......................................... enable/disable LP printers
env ................................. set environment for command execution
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
CONTENTS(0)
ex ............................................................ text editor
expr .................................. evaluate arguments as an expression
factor .................................................... factor a number
file .................................................. determine file type
find ........................................................... find files
fold ....................... fold long lines for finite width output device
getopt .............................................. parse command options
getopts ............................................. parse command options
glossary ............. definitions of common DG/UX system terms and symbols
grep .......................................... search a file for a pattern
head ................................................. give first few lines
help ........................................... DG/UX system Help Facility
id ..................................... print user and group IDs and names
ipcrm ...................... remove message, semaphore, or shared memory id
ipcs ................. report inter-process communication facilities status
join ......................................... relational database operator
kill .................................................. terminate a process
last .......................... indicate last logins of users and teletypes
lfd ................... labeled floppy diskette interface program for DG/UX
line ........................................................ read one line
locate ..................... identify a DG/UX system command using keywords
login ............................................................. sign on
logname .................................................... get login name
lp ............................. send/cancel requests to an LP line printer
lpstat ........................................ print LP status information
ls ............................................. list contents of directory
machid ....................... provide truth valueabout your processor type
mail ...................................... send mail to users or read mail
mailx ............................... interactive message processing system
makekey ........................................... generate encryption key
man .............................. print entries from the reference manuals
mesg .............................................. permit or deny messages
mkdir .................................................... make a directory
more .................................. file perusal filter for CRT viewing
newform .................................. change the format of a text file
newgrp .............................................. log in to a new group
news ..................................................... print news items
nice ........................................ run a command at low priority
nl .................................................. line numbering filter
nohup ........................... run a command immune to hangups and quits
od ............................................................. octal dump
pack ............................................ compress and expand files
passwd .............................................. change login password
paste ......................................................... merge lines
pg ......................... file perusal filter for CRT terminals in DG/UX
pr ............................................................ print files
printenv ........................................ print out the environment
ps .................................................. report process status
pwd ................................................ working directory name
reset ......................... reset the teletype bits to a sensible state
revision ......................... read and/or set revision number in DG/UX
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)
CONTENTS(0)
rm .................................... remove, delete files or directories
sadp ................................................. disk access profiler
sar .............................................. system activity reporter
sdiff ..................................... side-by-side difference program
sed ......................................................... stream editor
sh ................................ shell, the command programming language
shl .......................................... shell layer manager in DG/UX
sleep ................................... suspend execution for an interval
sort .............................................. sort and/or merge files
spell ................................................ find spelling errors
split ............................................ split a file into pieces
starter ............ information about the DG/UX system for beginning users
strings ...... find the printable strings in an object or other binary file
stty ....................................... set the options for a terminal
su ...................................... become super-user or another user
sum .............................. print checksum and block count of a file
sync ............................................... update the super block
tabs ............................................... set tabs on a terminal
tail ...................................... deliver the last part of a file
tar .................................................... tape file archiver
tee .......................................................... pipe fitting
test ......................................... condition evaluation command
time ....................................................... time a command
timex ............. time a command; report process data and system activity
touch ...................... update access and modification times of a file
tput .............................................. query terminfo database
tr ................................................... translate characters
true ................................................. provide truth values
tty .......................................... get the name of the terminal
ul ......................................................... do underlining
umask ......................................... set file-creation mode mask
uname ................................... print name of current DGUX system
uniq ...................................... report repeated lines in a file
units .................................................. conversion program
usage ................... retrieve a command description and usage examples
uucp ............................................. UNIX-to-UNIX system copy
uuencode ............ encode/decode a binary file for transmission via mail
uustat ................................ uucp status inquiry and job control
uuto ................................. public UNIX-to-UNIX system file copy
uux ................................. UNIX-to-UNIX system command execution
vi .................... screen-oriented (visual) display editor based on ex
wait .......................................... await completion of process
wc ............................................................. word count
whereis .................. locate source, binary, and or manual for program
who .................................................. who is on the system
write ............................................... write to another user
xargs ...................... construct argument list(s) and execute command
1. Programmer Commands
intro ....... introduction to programming commands and application programs
admin .................................... create and administer SCCS files
DG/UX 4.00 Page 3
Licensed material--property of copyright holder(s)
CONTENTS(0)
ar ................... archive and library maintainer for portable archives
as .................................................... assembler for DG/UX
asa ............................. interpret ASA carriage control characters
cb ................................................... C program beautifier
cc .................................................... C language compiler
cdc .......................... change the delta commentary of an SCCS delta
cflow ............................................... generate C flow graph
comb .................................................. combine SCCS deltas
cpp ........................................... the C language preprocessor
ctags .................................................. create a tags file
ctrace ................................................. C program debugger
cxref .................................. generate C program cross-reference
dbx ..................................................... debugger in DG/UX
delta ............................... make a delta (change) to an SCCS file
dis .............................................. object code disassembler
f77 ................................. FORTRAN 77 language compiler in DG/UX
fsplit .......................................... split f77 or ratfor files
get ......................................... get a version of an SCCS file
ld ........................... link editor for common object files in DG/UX
lex ............................ generate programs for simple lexical tasks
lint .................................................. a C program checker
list ........... produce C source listing from an object or executable file
lorder ....................... find ordering relation for an object library
m4 ........................................................ macro processor
make .................. maintain, update, and regenerate groups of programs
mkstr .................. create an error message file by massaging C source
mxdb ...................................... Invoke mxdb,a symbolic debugger
nm ................. print name list of object, executable, or archive file
pc ...................................... Pascal language compiler in DG/UX
prof ................................................. display profile data
prs .................................................... print an SCCS file
ratfor ........................................... rational FORTRAN dialect
regcmp ........................................ regular expression compiler
rev ...................... reverse order of characters in each line of file
rmdel .................................... remove a delta from an SCCS file
sact ............................. print current SCCS file editing activity
sccsdiff ............................. compare two versions of an SCCS file
sdb ..................................................... symbolic debugger
size ............. print section sizes of object, executable files, archive
sno ....................................... SNOBOL interpreter and compiler
strip ............ strip non-executable information from an executable file
tsort .................................................... topological sort
unget ................................. undo a previous get of an SCCS file
val .................................................... validate SCCS file
vc ........................................................ version control
what .................................................. identify SCCS files
xstr . extract strings from C programs to implement shared strings in DG/UX
yacc ........................................ yet another compiler-compiler
DG/UX 4.00 Page 4
Licensed material--property of copyright holder(s)
CONTENTS(0)
1. System Maintenance Commands
intro introduction to system maintenance commands and application programs
accept .......................................... allow/prevent LP requests
acct ......... overview of accounting and miscellaneous accounting commands
acctcms ............... command summary from per-process accounting records
acctcon ........................................... connect-time accounting
acctmerg .............................. merge or add total accounting files
acctprc ................................................ process accounting
acctsh .................................... shell procedures for accounting
captoinfo ....... convert a termcap description into a terminfo description
chroot ................................ change root directory for a command
clri .......................................................... clear inode
config ................................................. configure a system
crash ............................................... examine system images
cron .......................................................... clock agent
devnm ......................................................... device name
df ...................................... report number of free disk blocks
diskman ............ menu interface for managing physical and logical disks
diskusg .......................... generate disk accounting data by user id
dump ......................................... incremental file system dump
dumpfs ................................. dump DG/UX file system information
ermes_editor ........................ change or add error messages in DG/UX
errdemon .............................................. error-logging demon
errpt ................................... process a report of logged errors
errstop ................................. terminate the error-logging agent
filesave ..................... daily/weekly DG/UX system file system backup
frec ..................................... recover files from a backup tape
fsck ........... DG/UX file system consistency check and interactive repair
fsdb ................................................. file system debugger
fsirand ........................... install random inode generation numbers
fuser ................... identify processes using a file or file structure
fwtmp ............................... manipulate connect accounting records
getty ................ set terminal type, modes, speed, and line discipline
halt ...................................... stop the DG/UX System processor
helpadm ........................ make changes to the Help Facility database
iacload ........................................................ IAC loader
infocmp ........................ compare or print out terminfo descriptions
init ..................................... initialize and control processes
install .................................................. install commands
killall ......................................... kill all active processes
link ................................ exercise link and unlink system calls
lpadmin .................................. configure the LP spooling system
lpsched ............. start/stop the LP request scheduler and move requests
makekey ........................................... generate encryption key
mkfs ................................................. create a file system
mknod .................................................. build special file
mount ..................................... mount and dismount file systems
mvdir .................................................... move a directory
ncheck ...................................... generate names from i-numbers
portmap ........................ RPC program number to Internet port mapper
profiler .................................. DG/UX operating system profiler
DG/UX 4.00 Page 5
Licensed material--property of copyright holder(s)
CONTENTS(0)
pwck ......................................... password/group file checkers
rc.init ............ execute scripts that determine run level configuration
renice ................................ alter priority of running processes
restore ......................... incrementally restore a DG/UX file system
rpcinfo ............................................ report RPC information
runacct .............................................. run daily accounting
sar ........................................ system activity report package
setmnt .............................................. establish mount table
shutdown ............................ shut down system, change system state
swapon .................. specify additional DG/UX System device for paging
sync ............................................... update the super-block
sysadm .......................... menu-driven system administration program
sysdef ........................................... output system definition
tic ..................................................... terminfo compiler
tunefs ................................. tune an existing DG/UX file system
update ....... periodically update the super-blocks of mounted file systems
uucheck ................... check the uucp directories and permissions file
uucico ......................... file transport program for the uucp system
uucleanup ................................... uucp spool directory clean-up
uugetty .............. set terminal type, modes, speed, and line discipline
uusched ................. the scheduler for the uucp file transport program
uutry ...................... try to contact remote system with debugging on
uuxqt ..................................... execute remote command requests
vipw .................................. edit the DG/UX System password file
volcopy ............................. copy file systems with label checking
wall ................................................... write to all users
whodo ................................................... who is doing what
2. System Calls
intro ...................... introduction to system calls and error numbers
_exit ................................................. Terminate process.
accept .................................. Accept a connection on a socket.
access ............................ Determine the accessibility of a file.
acct ............................... Enable or disable process accounting.
alarm ......................................... Set a process alarm clock.
async_daemon ............... Starts a BIOD server for NFS client requests.
berk_sigpause ................. Set blocked signals and suspend the process
bind ............................................ Bind a name to a socket.
brk ................................ Change data segment space allocation.
chdir ............... Change the working directory of the calling process.
chmod ............................................... Change mode of file.
chown ............................. Change user id and group id of a file.
chroot ................ Changes the root directory of the calling process.
close ................. Close an object associated with a file descriptor.
connect ............................... Initiate a connection on a socket.
creat ...................... Create a new file or rewrite an existing one.
dg_ext_erT
rh
ni
os function returns the extended errno for the current process.
dR
gef
ti
ul
re
nsif
nf
il
oe usage information for a process identified by <process_key>.
dg_ipc_info ........ Get information about IPCs - Static and current state.
dg_mstat ................................................ Get file status.
dg_procesR
sei
tn
uf
rn
o information about the system's currently active processes.
DG/UX 4.00 Page 6
Licensed material--property of copyright holder(s)
CONTENTS(0)
dg_sys_info ......... Supplies the caller with certain system information.
dup ................................... Duplicate an open file descriptor.
dup2 ....... Duplicate an open file descriptor onto a specific descriptor.
execl ............................................ Execute a program file.
execle ........................................... Execute a program file.
execv ............................................ Execute a program file.
execve ........................................... Execute a program file.
fchmod .............................................. Change mode of file.
fchown ............................ Change user id and group id of a file.
fcntl ........................................... File descriptor control.
flock ................ Apply or remove an advisory or mandatory file lock.
fork ............................................... Create a new process.
fstat ................................................... Get file status.
fstatfs ..................... Get information about a mounted file system.
fsync .............. Synchronize a file's in-core state with that on disk.
ftruncate ............................................... Truncate a file.
getdents ....... Get directory entries in a filesystem-independent format.
getdirentries . Get directory entries in a file system-independent format.
getdomainname ................................ Get name of current domain.
getdtablesizeReturn the number of open files the current process can have.
getegid ...................................... Get the effective-group-id.
geteuid ....................................... Get the effective-user-id.
getfh .......... Return the file handle associated with a file descriptor.
getgid ............................................ Get the real-group-id.
getgroups ......................................... Get group access list.
gethostid ......................... Get unique identifier of current host.
gethostname .................................... Get name of current host.
getitimer getitimer gets the current state of one of the interval timers.
getpagesize .................................... Get the system page size.
getpeername .................................. Get name of connected peer.
getpgrp ............................................... Get process group.
getpid ................................................... Get process-id.
getppid ........................................... Get parent process-id.
getpriority ............................. Get process scheduling priority.
getrlimit ........................ Get system resource consumption limits.
getrusage .................... Get information about resource utilization.
getsockname ............................................. Get socket name.
getsockopt ...................................... Get options on a socket.
gettimeofday .......................................... Get date and time.
getuid ............................................. Get the real-user-id.
ioctl .................................................... Control device.
kill ................. Send a signal to a process or a group of processes.
killpg ...................... Send signal to a process or a process group.
link ........................................ Create a new link to a file.
listen ............................... Listen for connections on a socket.
lockf ................. Apply or remove an advisory or mandatory file lock.
lseek .......................... Change object pointer's current position.
lstat ................................................... Get file status.
mkdir ........................................... Create a directory file.
mknod ................... Make a directory, or a special or ordinary file.
mount ............................................... Mount a file system.
DG/UX 4.00 Page 7
Licensed material--property of copyright holder(s)
CONTENTS(0)
msgctl ... Get or set message queue attributes or destroy a message queue.
msgget ..................................... Get message queue identifier.
msgrcv ................................................ Receive a message.
msgsnd ................................................... Send a message.
nfsmount ..................................... Mount a remote file system.
nfssvc ......... Start an NFS daemon on the socket identified by <socket>.
nice ....................................... Change priority of a process.
open ........................................ Open for reading or writing.
pause .......................... Suspend process until a signal is caught.
pipe ..................................... Create an interprocess channel.
plock .............................. Lock data, text, or both into memory.
profil ................. Set up execution time profiling for this process.
ptrace .................................................... Process trace.
read ................................................ Read from an object.
readlink ........................... Read the contents of a symbolic link.
readv .................................................... Read from file.
reboot ............................. Reboot halts the system processor(s).
recv .................................... Receive a message from a socket.
recvfrom ................................ Receive a message from a socket.
recvmsg ................................. Receive a message from a socket.
rename ........................................ Change the name of a file.
rmdir ........................................... Remove a directory file.
sbrk ............................... Change data segment space allocation.
select .......................................... Wait for I/O conditions.
semctl ..................................... Semaphore control operations.
semget ............................................ Get set of semaphores.
semop .............................................. Semaphore operations.
send ....................................... Send a message from a socket.
sendmsg .................................... Send a message from a socket.
sendto ..................................... Send a message from a socket.
setdomainname ................................ Set name of current domain.
setgid ................... Set the real-, effective-, and saved-group-ids.
setgroups ......................................... Set group access list.
sethostid ......................... Set unique identifier of current host.
sethostname .................................... Set name of current host.
setitimer ................................ Set one of the interval timers.
setpgrp ............................................ Set process-group-id.
setpriority ............................. Set process scheduling priority.
setregid ................. Set the real-, effective-, and saved-group-ids.
setreuid .................. Set the real-, effective-, and saved-user-ids.
setrlimit ........................ Set system resource consumption limits.
setsockopt ....................................... Set options on sockets.
settimeofday .......................................... Set date and time.
setuid .................... Set the real-, effective-, and saved-user-ids.
shmat .................................... Attach a shared memory segment.
shmctl ................................. Shared memory control operations.
shmdt .................................... Detach a shared memory segment.
shmget ........................................ Get shared memory segment.
shutdown ..................... Shut down part of a full-duplex connection.
sigblock .................................. Add to set of blocked signals.
sighold .... Add a signal to the calling process's set of blocked signals.
DG/UX 4.00 Page 8
Licensed material--property of copyright holder(s)
CONTENTS(0)
sigignore ................. Set the signal action of a signal to 'ignore'.
signal ................. Specify what to do upon presentation of a signal.
sigpause ................... Clear a blocked signal and suspend the process
sigrelse ..... Remove a signal from the calling process's blocked signals.
sigreturn ...................................... Restore the signal state.
sigset ................. Specify what to do upon presentation of a signal.
sigsetmask ............................... Specify set of blocked signals.
sigstack ............................ Set and/or get signal stack context.
sigvec ................. Specify what to do upon presentation of a signal.
socket ............................. Create an endpoint for communication.
socketpair ........................... Create a pair of connected sockets.
stat .................................................... Get file status.
statfs ...................... Get information about a mounted file system.
stime .......................................................... Set time.
swapon ................ Add a swap device for interleaved paging/swapping.
symlink ..................................... Create a symbolic link file.
sync ....... Synchronize disk and memory resident file system information.
time ........................................................... Get time.
times ............................... Get process and child process times.
truncate .......................... Truncate a file to a specified length.
ulimit .......................................... Get and set user limits.
umask .................................... Set and get file creation mask.
umount ...................................... Remove a file system device.
uname ................................... Get name of current UNIX system.
unlink ......................................... Remove a directory entry.
ustat ................................. Get file system device statistics.
utime ............................ Set file access and modification times.
utimes ........................... Set file access and modification times.
vfork ............... Spawn new process in a virtual memory efficient way.
vhangup .................. Virtually hang up the current control terminal.
wait ........................ Wait for child process to stop or terminate.
wait3 ....................... Wait for child process to stop or terminate.
write ................................................ Write to an object.
writev .................................................. Write on a file.
xtrace ........................................... Extended process trace.
3. Subroutines and Libraries
intro ........................... introduction to subroutines and libraries
_cleanup .................................. Flush the standard I/O buffers.
_tolower ..................... Convert an uppercase character to lowercase.
_toupper ...................... Convert a lowercase character to uppercase.
a64l ................ convert between long integer and base-64 ASCII string
abort ................................. Abort the user program immediately.
abs .............................. Return the absolute value of an integer.
acos ................................ Determine the arc cosine of a number.
alloc ......................................... Allocate a block of memory.
alloca ......................... Allocate additional memory from the stack.
any .................. Determine if a string contains a specific character.
asin .................................. Determine the arc sine of a number.
assert ........................................ Provide runtime assertions.
assert ........................................... verify program assertion
DG/UX 4.00 Page 9
Licensed material--property of copyright holder(s)
CONTENTS(0)
atan ............................... Determine the arc tangent of a number.
atan2 ............... Determine the arc tangent of the ratio of twonumbers.
atof ................ Convert an ASCII string into a floating-point number.
atoi ................................. Convert an ASCII string to type int.
atol ................................ Convert an ASCII string to type long.
atou ............. Convert an ASCII character string to an unsignedinteger.
bcmp ......................................... Compare two areas of memory.
bcopy ................................ Copy bytes from one area to another.
berk_regex .................................. regular expression handler in
berk_signal ...................... simplified software signal facilities in
bessel ................................................... Bessel functions
bitset ........................................ Set a bit to either 0 or 1.
bitszbo ............... Set a bit to 1 and return the bit's previous value.
bitvalue ............................... Return the current value of a bit.
blockmove ............... Move bytes from one location in memory toanother.
bsearch .................................................. Search an array.
byteorder .............. convert values between host and network byte order
bzero ........................................... Zero a portion of memory.
calloc ................ Allocate blocks of memory and fill them with zeros.
ceil ...................................... Return the ceiling of a number.
clearerr ............................ Clear any error indication on a file.
clock ................................................ report CPU time used
conv ................................................. translate characters
cos ........................................ Return the cosine of a number.
cosh ............................ Return the hyperbolic cosine of a number.
crypt ......................................... generate hashing encryption
crypt .............................. password and file encryption functions
ctermid .................................... generate filename for terminal
ctime ..................................... convert date and time to string
ctype ................................................. classify characters
curses .................. terminal screen handling and optimization package
cuserid .............................. get character login name of the user
dbm ......................................... database subroutines in DG/UX
dg_abort .............................. Abort the user program immediately.
dg_fgets ................. Read a line from a file into a character buffer.
dg_rand ....... Generate and return a random number in the range 0to 32767.
dg_rand1 .......... Generate and return a random number in the range0 to 1.
Specd
if
gysa
rand
umber from which to start generating arandom number for the dg_rand and dg_rand1 functions.
directory ............................................ directory operations
drand48 .............. generate uniformly distributed pseudo-random numbers
ecvt .............................. convert floating-point number to string
end ............................................. last locations in program
equal ................................. Determine if two strings are equal.
erf ....................... error function and complementary error function
exit .................... Flush buffers and terminate the process normally.
exp ........................ Return the value of e raised to a given power.
exp .................. exponential, logarithm, power, square root functions
extended_perror ......................... Print an error message on stderr.
fabs ............. Determine the absolute value of a floating-point number.
fclose ............................................ Close a specified file.
fclose ............................................ close or flush a stream
DG/UX 4.00 Page 10
Licensed material--property of copyright holder(s)
CONTENTS(0)
fdopen .................. Associate a buffered I/O stream with a DG/UX file
feof ..................... Determine if you have reached the end of a file.
ferror ......................... Determine if an error occurred during I/O.
ferror ............................................ stream status inquiries
fflush ................... Flush the output buffer of the specified stream.
ffs ....................... Return the first bit in an integer that is one.
fgetc ............................. Read a character from a specified file.
fgets ................................ Read a string from a specified file.
fileno ............ Return the UNIX file number of the specified open file.
flock ........... apply or remove an advisory lock on an open file in DG/UX
floor .................................... Determine the floor of a number.
floor ................. floor, ceiling, remainder, absolute value functions
fmax ............ Determine the maximum value of twofloating-point numbers.
fmin ............ Determine the minimum value of twofloating-point numbers.
fmod ................................. Return the modulus of two arguments.
fopen ........................................................ Open a file.
fopen ....................................................... open a stream
fprintf .............................. Perform a formatted write to a file.
fputc .......................... Write a character to the specified stream.
fputs ................................. Write a string to a specified file.
R
fe
ra
ea
dda specified number of records, each of aspecified length, from a file.
fread ................................................. binary input/output
free ............................................ Release allocated memory.
freopen ....................... Close a stream and reopen a file or device.
frexp ..................... Return the mantissa of a number of type double.
fscanf .............................. Perform a formatted read from a file.
fseek ................................ Position a file to a specified byte.
fseek ............................... reposition a file pointer in a stream
ftell ......................... Return the current byte position in a file.
ftime ................................................... get date and time
ftoa ......................... Convert a floating-point number to a string.
ftw ...................................................... walk a file tree
Write
fwa
ris
te
pecified number of records, each of a specified length, to a specified file.
gamma .................................................. log gamma function
getc ........................ Read a single character from an input stream.
getc .................................. get character or word from a stream
getchar .................. Read a single character from the standard input.
getcwd .......................... get pathname of current working directory
getenv ......................... Return a pointer to environment variables.
getfp ........ Return the current frame pointer of theparent's environment.
getfsent ............................. get filesystem descriptor file entry
getgrent ............................................. get group file entry
gethostent ......................................... get network host entry
getlogin ........................... Return a byte pointer to the username.
getnetent ............................................... get network entry
getopt ............................. get option letter from argument vector
getpass ................................................... read a password
getprotoent ............................................ get protocol entry
getpw ................................................... get name from UID
getpwent .......................................... get password file entry
gets ...... Read from the standard input file until encountering aNew Line.
DG/UX 4.00 Page 11
Licensed material--property of copyright holder(s)
CONTENTS(0)
gets ........................................... get a string from a stream
getsb .............................. Return the current stack base pointer.
getservent .............................................. get service entry
getsl ............................. Return the current stack limit pointer.
getsp ................................... Return the current stack pointer.
getut .............................................. access utmp file entry
getw ......................... Read an integer value from the input buffer.
getwd .............................. get current working directory pathname
hsearch ......................................... manage hash search tables
hypot ....................... Determine the hypotenuse of a right triangle.
hypot ......................................... Euclidean distance function
index .......... Search for the first occurrence of a character in astring.
inet ............................... Internet address manipulation routines
iI
ni
ni
ts
ti
tal
te
ize an array that contains information forrandom number generation.
insert_after ... Insert an element into a queue after anotherqueue element.
insert_before . Insert an element into a queue before anotherqueue element.
insert_head ..................... Insert an element at the head of a queue.
insert_tail ..................... Insert an element at the tail of a queue.
insque ................................ Add an element to a circular queue.
intso ................ Determine if the standard output file is a terminal.
intss ................. Determine if the standard input file is a terminal.
isalnum ......................... Determine if a character is alphanumeric.
isalpha ........................... Determine if a character is alphabetic.
isalphanum ...................... Determine if a character is alphanumeric.
isascii ............ Determine if an argument is an ASCII character or EOF.
iscntrl .................. Determine if an argument is a control character.
isdigit ..... Determine if a character is the ASCII representation of 0- 9.
isgraph .................. Determine if a character is a graphic character.
ishex ............................ Determine if a character is hexadecimal.
isline ..................... Determine if a character is a line terminator.
islower ............................ Determine if a character is lowercase.
isprint ................. Determine if a character is a printing character.
ispunct ................... Determine if a character is a punctuation mark.
isspace ............... Determine if an argument is a whitespace character.
isupper ............................ Determine if a character is uppercase.
isxdigit ........................... Determine if character is hexadecimal.
itoa ............................ Convert an integer to a character string.
jobs ........................... summary of job control facilities in DG/UX
l3tol ................... convert between 3-byte integers and long integers
lasterror ...................... Return the code for the most recent error.
lcpid ........................................ Return the CPU model number.
ldahread .. read the archive header of a member of an archive file in DG/UX
ldclose ................................. close an executable file in DG/UX
ldexp ......................... Multiply a value by 2 to a specified power.
ldfhread .............. read the file header of an executable file in DG/UX
ldgetname .. retrieve symbol name for executable file symbol table entry in
ldohseek ......... seek to the system header of an executable file in DG/UX
ldopen ....................... open an executable file for reading in DG/UX
ldshread .... read an indexed section header of an executable file in DG/UX
ldsseek ......... seek to an indexed section of an executable file in DG/UX
ldsyshread .......... read the system header of an executable file in DG/UX
DG/UX 4.00 Page 12
Licensed material--property of copyright holder(s)
CONTENTS(0)
ldtbindex ...... compute index of symbol table entry of an executable file.
ldtbread read an indexed symbol table entry of an executable file in DG/UX
ldtbseek .......... seek to the symbol table of an executable file in DG/UX
lockf ............................................. record locking on files
log .......................... Determine the natural logarithm of a number.
log10 ........................ Determine the base 10 logarithm of a number.
logname ......................................... return login name of user
longjmp ................... Perform a nonlocal jump in the flow of control.
lsearch .......................................... linear search and update
main .............................................. Enter a C main program.
malloc ......................................... Allocate blocks of memory.
malloc ......................................... fast main memory allocator
matherr ............... Determine if errors occurred during a math routine.
max ............................. Return the maximum value of two integers.
memccpy ..................................................... Copy a buffer
memchr ............................ Search for a byte within a memory area.
memcmp .......................................... Compare two memory areas.
memcpy ........................ Copy bytes from one memory area to another.
memory .................................................. memory operations
memset ....................... Set an area of memory to a given byte value.
min ............................. Return the minimum value of two integers.
mktemp ............................... Return an unused temporary filename.
modf ................. Return the fractional part of a number and store the
monitor ......................................... prepare execution profile
nargs .............................. Return the number of arguments for the
nlist .......................................... get entries from name list
otoa ..................... Convert an integer to an octal character string.
perror ......................... Print a string and the last error message.
popen ..................................... initiate pipe to/from a process
pow ..................... Raise the first argument to the power represented
printf ...................... Perform a formatted write to standard output.
printf ............................................. print formatted output
putc ................................... Write a character to a given file.
putc .................................... put character or word on a stream
putchar ......................... Write a character to the standard output.
putenv ................................. change or add value to environment
putpwent ............................... write password file entry in DG/UX
puts ............... Write to the standard output file until encountering a
puts ............................................. put a string on a stream
putw ......................... Write an integer value to the output buffer.
qsearch ..................... Search a queue for an element meeting a given
qsort ............................................. Sort an array of items.
rand ................ Generate and return a random number in the range 0 to
random ............................... Generate and return a random number.
realloc ................... Change the size of a previously allocated area.
regcmp ............................. compile and execute regular expression
remove_element ............................ Delete an element from a queue.
remove_head ................... Delete an element from the head of a queue.
remove_tail ................... Delete an element from the tail of a queue.
remque ........................... Remove an element from a circular queue.
repeat ............ Replicate a string a specified number of times within a
DG/UX 4.00 Page 13
Licensed material--property of copyright holder(s)
CONTENTS(0)
rewind ................................ Reposition a file to its beginning.
rindex ................. Search for the last occurrence of a character in a
scale10 ............................... Multiply a number by a power of 10.
scanf ....................... Perform a formatted read from standard input.
scanf ............................................. convert formatted input
setbuf ............................... Assign a buffer to a specified file.
setbuf ....................................... assign buffering to a stream
setbuffer ............................ Assign a buffer to a specified file.
setjmp .............................. Provide for nonlocal flow of control.
setlinebuf .................... Assign line buffering for a specified file.
setstate ................. Change the array that contains information about
setvbuf .............................. Assign a buffer to a specified file.
signcmp ................ Compare a specified number of successive character
signncmp .............. Compare successive character values of two strings.
sin ....................................... Determine the sine of a number.
sinh ........................... Determine the hyperbolic sine of a number.
sleep ......................... Delay a task for a given number of seconds.
sprintf .................. Perform a formatted write to an internal string.
sputl ........... access long integer data in a machine-independent fashion
sqrt .................................. Return the square root of a number.
srand .................. Specify a number from which to start random number
srandom ................ Specify a number with which to start random number
sscanf .................. Perform a formatted read from an internal string.
ssignal .................................................. software signals
stdio .............................. standard buffered input/output package
stdipc ........................ standard interprocess communication package
strcat ............. Concatenate one ASCII string onto the tail of another.
strchr ................ Search for the first occurrence of a character in a
strcmp ......................... Compare successive character values of two
strcpy ...................................... Copy one string onto another.
strcspn .................... Return the length of a string that consists of
strdup ...................... Copy a string to an allocated area of memory.
strerror .................. Return a string corresponding to an error code.
string .................................................. string operations
strlen ...................... Return the number of bytes within a character
strncat ............. Concatenate a specified number of characters from one
strncmp ................ Compare a specified number of successive character
strncpy ............................ Copy a specified number of characters.
strnsave .................. Allocate an area large enough to hold a string.
strpbrk .............. Return a pointer to the first identical character in
strrchr ................ Search for the last occurrence of a character in a
strsave ................... Allocate an area large enough to hold a string.
strspn ..................... Return the length of a string that consists of
strtod ...... Convert a string to a double-precision floating-point number.
strtok ......................................... Read tokens from a string.
strtol ................................ Convert a string to a long integer.
swab ................ Swap the bytes within each pair of bytes in a string.
system ..................... Execute a UNIX shell command from a C program.
system .............................................. issue a shell command
tail ................... Return a pointer to the null byte within a string.
tan .................................... Determine the tangent of a number.
DG/UX 4.00 Page 14
Licensed material--property of copyright holder(s)
CONTENTS(0)
tanh ........................ Determine the hyperbolic tangent of a number.
termcap ........................... terminal independent operation routines
tmpfile ................................. Create and open a temporary file.
tmpfile ........................................... create a temporary file
tmpnam .......................... Return a pointer to a temporary filename.
tmpnam ................................. create a name for a temporary file
toascii ............ Convert an integer to an ASCII value by discarding all
tolower ...................... Convert an uppercase character to lowercase.
toupper ....................... Convert a lowercase character to uppercase.
traceback ........................... Print a stack traceback and continue.
trig .............................................. trigonometric functions
tsearch ........................................ manage binary search trees
ttyname ........................................... find name of a terminal
ttyslot ................ find the slot in the utmp file of the current user
ungetc ............................ Return a character to the input buffer.
ungetc .............................. push character back into input stream
utoa ................... Convert an unsigned integer to a character string.
valloc .................................. aligned memory allocator in DG/UX
verify ............... Determine if one string contains a character that is
vfprintf .................. Print a variable argument list to a given file.
vlimit ........................ control maximum system resource consumption
vprintf ............. Print a variable argument list to the standard output
vprintf ........ print formatted output of a varargs argument list in DG/UX
vsprintf ................ Print a variable argument list to a memory array.
vtimes ............................... get information about resource usage
wdleng .................... Return the word length in bits of the type int.
zero ................................. Fill a section of memory with zeros.
zeropad .............................. Substitute zeros for leading spaces.
4. File Formats
intro ........................................ introduction to file formats
a.out ......................................... link editor output in DG/UX
acct ................................... per-process accounting file format
ar .................................... common archive file format in DG/UX
checklist .......................... list of file systems processed by fsck
core ............................................ format of core image file
cpio ............................................... format of cpio archive
dirent ............................ file system independent directory entry
filehdr ......................... file header for executable files in DG/UX
fspec .................................. format specification in text files
fstab ............................... static information about file systems
gettydefs ....................... speed and terminal settings used by getty
group .......................................................... group file
iactab .................................................... IAC image table
inittab ....................................... script for the init process
issue ........................................... issue identification file
ldfcn ............................ executable file access routines in DG/UX
limits .................. file header for implementation-specific constants
master master file directory and master files containing device information
mnttab ................................. mounted file system table in DG/UX
passwd ...................................................... password file
DG/UX 4.00 Page 15
Licensed material--property of copyright holder(s)
CONTENTS(0)
profile ........................... setting up an environment at login time
sccsfile .............................................. format of SCCS file
syms ......................... executable file symbol table format in DG/UX
system ......... format of DGC Eclipse MV/ computer system description file
terminfo ..................................... terminal capability database
utmp .......................................... utmp and wtmp entry formats
5. Miscellany
intro .......................................... introduction to miscellany
ascii .......................................... map of ASCII character set
disktab ............................................. disk description file
environ .................................................. user environment
fcntl ................................................ file control options
hier .......................................... DG/UX file system hierarchy
math ......................................... math functions and constants
regexp ...................... regular expression compile and match routines
stat .................................... data returned by stat system call
term ..................................... conventional names for terminals
termcap ..................................... terminal capability data base
types ......................................... primitive system data types
values ........................................... machine-dependent values
varargs ..................................... handle variable argument list
6. Networking Protocols
unix_ipc ..................... piping communications within a host in DG/UX
7. Special Files
intro .......................... introduction to DG/UX System special files
bmd ........ (bit mapped display) DS/7000 series graphics display interface
con .................................... Eclipse MV/family physical console
devtty ..................................... control terminal pseudo-device
dpf ...................................... Eclipse MV/family disk subsystem
dpj ...................................... Eclipse MV/family disk subsystem
dsk .......................................... block special disk interface
err ............................................... error-logging interface
gdc ......................... Eclipse MV/family graphics display controller
iac ................. Eclipse MV/family intelligent asynchronous controller
kmem ................................................ kernel logical memory
lp ........................... Eclipse MV/family line printer special files
mem .................................................... main system memory
modemap ....................... mapping of AT&T and Berkeley terminal modes
mt .................................. block special magnetic tape interface
mtb ...................................... Eclipse MV/family tape subsystem
mtj ...................................... Eclipse MV/family tape subsystem
new_prf ................................... DG/UX operating system profiler
null ........................................................ the null file
odrt MV1400, MV2000DC, and DS/7000 series asynchronous terminal I/O device
prf ....................................... DG/UX operating system profiler
pty ....................... pseudo-terminal master/slave pseudo-device pair
rdsk ..................................... character special disk interface
rmt ............................. character special magnetic tape interface
DG/UX 4.00 Page 16
Licensed material--property of copyright holder(s)
CONTENTS(0)
syscon ....................... DG/UX operating system console pseudo-device
termio ............................................ AT&T terminal interface
tty ................................................ BSD terminal interface
8. System Maintenance Procedures
intro ....................... introduction to system maintenance procedures
crash ............................ what to do when the DG/UX System crashes
mk ............................ how to remake the DG/UX System and commands
DG/UX 4.00 Page 17
Licensed material--property of copyright holder(s)