Callable services descriptions
This topic describes each of the callable services. These services are arranged in alphabetic order. A sample invocation of each service is in Callable services examples—AMODE 31.
If you are unfamiliar with the conventions used to describe the system calls, refer to Invocation details for callable services.
- accept (BPX1ACP, BPX4ACP) — Accept a connection request from a client socket
- accept_and_recv (BPX1ANR, BPX4ANR) — Accept a connection and receive the first block of data
- access (BPX1ACC, BPX4ACC) — Determine if a file can be accessed
- aio_suspend (BPX1ASP, BPX4ASP) — Wait for an asynchronous I/O request
- alarm (BPX1ALR, BPX4ALR) — Set an alarm
- asyncio (BPX1AIO, BPX4AIO) — Asynchronous I/O for sockets
- attach_exec (BPX1ATX, BPX4ATX) — Attach a z/OS UNIX program
- attach_execmvs (BPX1ATM, BPX4ATM) — Attach an MVS program
- auth_check_resource_np (BPX1ACK, BPX4ACK) — Determine a user's access to a RACF-protected resource
- bind (BPX1BND, BPX4BND) — Bind a unique local name to a socket descriptor
- bind2addrsel (BPX1BAS, BPX4BAS) — Bind the socket descriptor to the best source address
- chattr (BPX1CHR, BPX4CHR) — Change the attributes of a file or directory
- chaudit (BPX1CHA, BPX4CHA) — Change audit flags for a file by path
- chdir (BPX1CHD, BPX4CHD) — Change the working directory
- chmod (BPX1CHM, BPX4CHM) — Change the mode of a file or directory
- chown (BPX1CHO, BPX4CHO) — Change the owner or group of a file or directory
- chpriority (BPX1CHP, BPX4CHP) — Change the scheduling priority of a process
- chroot (BPX1CRT, BPX4CRT) — Change the root directory
- close (BPX1CLO, BPX4CLO) — Close a file
- closedir (BPX1CLD, BPX4CLD) — Close a directory
- cond_cancel (BPX1CCA, BPX4CCA) — Cancel interest in events
- cond_post (BPX1CPO, BPX4CPO) — Post a thread for an event
- cond_setup (BPX1CSE, BPX4CSE) — Set up to receive event notifications
- cond_timed_wait (BPX1CTW, BPX4CTW) — Suspend a thread for a limited time or an event
- cond_wait (BPX1CWA, BPX4CWA) — Suspend a thread for an event
- connect (BPX1CON, BPX4CON) — Establish a connection between two sockets
- __console() (BPX1CCS, BPX4CCS) — Communicate with console (modify/stop/WTO/DOM)
- __cpl (BPX1CPL) — CPL interface service
- deletehfs (BPX1DEL, BPX4DEL) — Delete a program from storage
- exec (BPX1EXC, BPX4EXC) — Run a program
- execmvs (BPX1EXM, BPX4EXM) — Run an MVS program
- _exit (BPX1EXI, BPX4EXI) — End a process and bypass the cleanup
- extlink_np (BPX1EXT, BPX4EXT) — Create an external symbolic link
- fchattr (BPX1FCR, BPX4FCR) — Change the attributes of a file or directory by descriptor
- fchaudit (BPX1FCA, BPX4FCA) — Change audit flags for a file by descriptor
- fchdir (BPX1FCD, BPX4FCD) — Change the working directory
- fchmod (BPX1FCM, BPX4FCM) — Change the mode of a file or directory by descriptor
- fchown (BPX1FCO, BPX4FCO) — Change the owner and group of a file or directory by descriptor
- fcntl (BPX1FCT, BPX4FCT) — Control open file descriptors
- fork (BPX1FRK, BPX4FRK) — Create a new process
- fpathconf (BPX1FPC, BPX4FPC) — Determine configurable path name variables using a descriptor
- freeaddrinfo (BPX1FAI, BPX4FAI) — Free Addr_Info structures
- fstat (BPX1FST, BPX4FST) — Get status information about a file by descriptor
- fstatvfs (BPX1FTV, BPX4FTV) — Get the file system status
- fsync (BPX1FSY, BPX4FSY) — Write changes to permanent storage
- ftruncate (BPX1FTR, BPX4FTR) — Change the size of a file
- getaddrinfo (BPX1GAI, BPX4GAI) — Get the IP address and information for a service name or location
- getclientid (BPX1GCL, BPX4GCL) — Obtain the calling program's identifier
- getcwd (BPX1GCW, BPX4GCW) — Get the path name of the working directory
- getegid (BPX1GEG, BPX4GEG) — Get the effective group ID
- geteuid (BPX1GEU, BPX4GEU) — Get the effective user ID
- getgid (BPX1GID, BPX4GID) — Get the real group ID
- getgrent (BPX1GGE, BPX4GGE) — Sequentially access the group database
- getgrgid (BPX1GGI, BPX4GGI) — Access the group database by ID
- getgrnam (BPX1GGN, BPX4GGN) — Access the group database by name
- getgroups (BPX1GGR, BPX4GGR) — Get a list of supplementary group IDs
- getgroupsbyname (BPX1GUG, BPX4GUG) — Get a list of supplementary group IDs by user name
- gethostbyaddr (BPX1GHA, BPX4GHA) Get the IP address and alias of a host name for the specified IP address
- gethostbyname (BPX1GHN, BPX4GHN) Get IP information for specified host domain names
- gethostid or gethostname (BPX1HST, BPX4HST) — Get ID or name information about a socket host
- getitimer (BPX1GTR, BPX4GTR) — Get the value of the interval timer
- getlogin (BPX1GLG, BPX4GLG) — Get the user login name
- getpeername or getsockname (BPX1GNM, BPX4GNM) — Get the name of a socket or of the peer connected to a socket
- getnameinfo (BPX1GNI, BPX4GNI) — Get the host name and service name from a socket address
- getpgid (BPX1GEP, BPX4GEP) — Get the process group ID
- getpgrp (BPX1GPG, BPX4GPG) — Get the process group ID
- getpid (BPX1GPI, BPX4GPI) — Get the process ID
- getppid (BPX1GPP, BPX4GPP) — Get the parent process ID
- getpriority (BPX1GPY, BPX4GPY) — Get the scheduling priority of a process
- getpwent (BPX1GPE, BPX4GPE) — Sequentially access the user database
- getpwnam (BPX1GPN, BPX4GPN) — Access the user database by user name
- getpwuid (BPX1GPU, BPX4GPU) — Access the user database by user ID
- getrlimit (BPX1GRL, BPX4GRL) — Get resource limits
- getrusage (BPX1GRU, BPX4GRU) — Get resource usage
- getsid (BPX1GES, BPX4GES) — Get the process group ID of the session leader
- getsockname or getpeername (BPX1GNM, BPX4GNM) - Get the name of a socket or connected peer
- getsockopt or setsockopt (BPX1OPT, BPX4OPT) — Get or set options associated with a socket
- __getthent (BPX1GTH, BPX4GTH) — Get thread data
- getuid (BPX1GUI, BPX4GUI) — Get the real user ID
- getwd (BPX1GWD, BPX4GWD) — Get the path name of the working directory
- givesocket (BPX1GIV, BPX4GIV) — Give a socket to another program
- grantpt (BPX1GPT, BPX4GPT) — Grant access to the slave pseudoterminal
- IPCSDumpOpenClose (BPXGMCDE, BPXGMCD4) — MVS IPCS dump open/close service
- IPCSDumpAccess (BPXGMPTR, BPXGMPT4) — PTRACE IPCS dump access service
- isatty (BPX1ITY) (POSIX Version) — Determine whether a file descriptor represents a terminal
- isatty (BPX2ITY, BPX4ITY) (X/Open Version) — Determine whether a file descriptor represents a terminal
- kill (BPX1KIL, BPX4KIL) — Send a signal to a process
- __login, __login__applid, __certificate (BPX1SEC, BPX4SEC) — Provides an interface to the security product
- lchattr (BPX1LCR, BPX4LCR) — Change the attributes of a file or directory or symbolic link
- lchown (BPX1LCO, BPX4LCO) — Change the owner or group of a file, directory, or symbolic link
- link (BPX1LNK, BPX4LNK) — Create a link to a file
- listen (BPX1LSN, BPX4LSN) — Prepare a server socket to queue incoming connection requests from clients
- loadhfs (BPX1LOD, BPX4LOD) — Load a program into storage by path name
- loadHFS extended (BPX1LDX, BPX4LDX) — Direct the loading of an executable into storage
- lseek (BPX1LSK, BPX4LSK) — Change a file's offset
- lstat (BPX1LST, BPX4LST) — Get status information about a file or symbolic link by path name
- __map_init (BPX1MMI, BPX4MMI) — Create a mapped megabyte area
- __map_service (BPX1MMS, BPX4MMS) — Mapped megabyte area services
- mkdir (BPX1MKD, BPX4MKD) — Make a directory
- mknod (BPX1MKN, BPX4MKN) — Make a directory, a FIFO, a character special, or a regular file
- mmap (BPX1MMP, BPX4MMP) — Map pages of memory
- mount (BPX1MNT) — Make a file system available
- __mount (BPX2MNT, BPX4MNT) — Make a file system available
- mprotect (BPX1MPR, BPX4MPR) — Set protection of memory mapping
- msgctl (BPX1QCT, BPX4QCT) — Perform message queue control operations
- msgget (BPX1QGT, BPX4QGT) — Create or find a message queue
- msgrcv (BPX1QRC, BPX4QRC) — Receive from a message queue
- msgsnd (BPX1QSN, BPX4QSN) — Send to a message queue
- msync (BPX1MSY, BPX4MSY) — Synchronize memory with physical storage
- munmap (BPX1MUN, BPX4MUN)— Unmap previously mapped addresses
- mvsiptaffinity (BPX1IPT, BPX4IPT) — Run a program on the IPT thread
- mvspause (BPX1MP, BPX4MP) — Wait on user events plus signals
- mvspauseinit (BPX1MPI, BPX4MPI) — Set up to wait on user events plus signals
- mvsprocclp (BPX1MPC, BPX4MPC) — Clean up kernel resources
- mvssigsetup (BPX1MSS, BPX4MSS) — Set up MVS signals
- MVSThreadAffinity (BPX1TAF, BPX4TAF) — MVS thread affinity service
- mvsunsigsetup (BPX1MSD, BPX4MSD) — Detach the signal setup
- nice (BPX1NIC, BPX4NIC) — Change the nice value of a process
- oe_env_np (BPX1ENV, BPX4ENV) — Examine, change, or examine and change an environmental attribute
- open (BPX1OPN, BPX4OPN) — Open a file
- opendir (BPX1OPD, BPX4OPD) — Open a directory
- openstat (BPX2OPN, BPX4OPS) — Open a file and obtain status information
- __passwd, __passwd__applid (BPX1PWD, BPX4PWD) — Verify or change security information
- pathconf (BPX1PCF, BPX4PCF) — Determine configurable path name variables using a path name
- pause (BPX1PAS, BPX4PAS) — Suspend a process pending a signal
- pfsctl (BPX1PCT, BPX4PCT) — Physical file system control
- __pid_affinity (BPX1PAF, BPX4PAF) — Add or delete an entry in a process's affinity list
- pipe (BPX1PIP, BPX4PIP) — Create an unnamed pipe
- __poe() (BPX1POE, BPX4POE) — Port of entry information
- poll (BPX1POL, BPX4POL) — Monitor activity on file descriptors and message queues
- Pread() and Pwrite() (BPX1RW, BPX4RW) — Read from or write to a file without changing the file pointer
- pthread_cancel (BPX1PTB, BPX4PTB) — Cancel a thread
- pthread_create (BPX1PTC, BPX4PTC) — Create a thread
- pthread_detach (BPX1PTD, BPX4PTD) — Detach a thread
- pthread_exit_and_get (BPX1PTX, BPX4PTX) — Exit and get a new thread
- pthread_join (BPX1PTJ, BPX4PTJ) — Wait on a thread
- pthread_kill (BPX1PTK, BPX4PTK) — Send a signal to a thread
- pthread_quiesce (BPX1PTQ, BPX4PTQ) — Quiesce threads in a process
- pthread_security_np, pthread_security_applid_np (BPX1TLS, BPX4TLS) — Create|delete thread-level security
- pthread_self (BPX1PTS, BPX4PTS) — Query the thread ID
- pthread_setintr (BPX1PSI, BPX4PSI) — Examine and change the interrupt state
- pthread_setintrtype (BPX1PST, BPX4PST) — Examine and change the interrupt type
- pthread_tag_np (BPX1PTT, BPX4PTT) — Set, query, or both set and query the caller's thread tag data
- pthread_testintr (BPX1PTI, BPX4PTI) — Cause a cancellation point to occur
- ptrace (BPX1PTR, BPX4PTR) — Control another process for debugging
- querydub (BPX1QDB, BPX4QDB) — Obtain the dub status of the current task
- queue_interrupt (BPX1SPB, BPX4SPB) — Return the last interrupt delivered
- quiesce (BPX1QSE, BPX4QSE) — Quiesce a file system
- read (BPX1RED, BPX4RED) — Read from a file or socket
- readdir (BPX1RDD, BPX4RDD) — Read an entry from a directory
- readdir2 (BPX1RD2, BPX4RD2) — Read an entry from a directory
- read_extlink (BPX1RDX, BPX4RDX) — Read an external symbolic link
- readlink (BPX1RDL, BPX4RDL) — Read the value of a symbolic link
- readv (BPX1RDV, BPX4RDV) — Read data and store it in a set of buffers
- realpath (BPX1RPH, BPX4RPH) — Resolve a path name
- recv (BPX1RCV, BPX4RCV) — Receive data on a socket and store it in a buffer
- recvfrom (BPX1RFM, BPX4RFM) — Receive data from a socket and store it in a buffer
- recvmsg (BPX2RMS, BPX4RMS) — Receive messages on a socket and store them in message buffers
- rename (BPX1REN, BPX4REN) — Rename a file or directory
- resource (BPX1RMG, BPX4RMG) — Measure resources
- rewinddir (BPX1RWD, BPX4RWD) — Reposition a directory stream to the beginning
- rmdir (BPX1RMD, BPX4RMD) — Remove a directory
- select/selectex (BPX1SEL, BPX4SEL) — Select on file descriptors and message queues
- semctl (BPX1SCT, BPX4SCT) — Perform semaphore control operations
- semget (BPX1SGT, BPX4SGT) — Create or find a set of semaphores
- semop (BPX1SOP, BPX4SOP) — Perform semaphore serialization operations
- send (BPX1SND, BPX4SND) — Send data on a socket
- send_file (BPX1SF, BPX4SF) — Send a file on a socket
- sendmsg (BPX2SMS, BPX4SMS) — Send messages on a socket
- sendto (BPX1STO, BPX4STO) — Send data on a socket
- server_init (BPX1SIN, BPX4SIN) — Server initialization
- server_pwu (BPX1SPW, BPX4SPW) — Server process work unit
- set_dub_default (BPX1SDD, BPX4SDD) — Set the dub default service
- setegid (BPX1SEG, BPX4SEG) — Set the effective group ID
- seteuid (BPX1SEU, BPX4SEU) — Set the effective user ID
- setgid (BPX1SGI, BPX4SGI) — Set the group ID
- setgrent (BPX1SGE, BPX4SGE) — Reset the group database
- setgroups (BPX1SGR, BPX4SGR) — Set the supplementary group IDs list
- setitimer (BPX1STR, BPX4STR) — Set the value of the iterval timer
- setpeer (BPX1SPR, BPX4SPR) — Preset the peer address associated with a socket
- setpgid (BPX1SPG, BPX4SPG) — Set a process group ID for job control
- setpriority (BPX1SPY, BPX4SPY) — Set the scheduling priority of a process
- setpwent (BPX1SPE, BPX4SPE) — Reset the user database
- setregid (BPX1SRG, BPX4SRG) — Set the real and/or effective GIDs
- setreuid (BPX1SRU, BPX4SRU) —Set the real and effective UIDs
- setrlimit (BPX1SRL, BPX4SRL) — Set resource limits
- setsid (BPX1SSI, BPX4SSI) — Create a session and set the process group ID
- setsockopt or getsockopt (BPX1OPT, BPX4OPT) — Get or set options associated with a socket
- set_thread_limits (BPX1STL, BPX4STL) — Change task or thread limits for pthread_created threads
- set_timer_event (BPX1STE, BPX4STE) — Set DIE-mode timer event
- setuid (BPX1SUI, BPX4SUI) — Set user IDs
- shmat (BPX1MAT, BPX4MAT) — Attach to a shared memory segment
- shmctl (BPX1MCT, BPX4MCT) — Perform shared memory control operations
- shmdt (BPX1MDT, BPX4MDT) — Detach a shared memory segment
- shmem_lock (BPX1SLK, BPX4SLK) — Shared memory lock service
- shmem_mutex_condvar (BPX1SMC, BPX4SMC) — Shared mutex and condition variable service
- shmget (BPX1MGT, BPX4MGT) — Create/find a shared memory segment
- shutdown (BPX1SHT, BPX4SHT) — Shut down all or part of a duplex socket connection
- sigaction (BPX1SIA, BPX4SIA) — Examine or change a signal action
- __sigactionset (BPX1SA2, BPX4SA2) — Examine or change a set of signal actions
- sigpending (BPX1SIP, BPX4SIP) — Examine pending signals
- sigprocmask (BPX1SPM, BPX4SPM) — Examine or change a process's signal mask
- sigqueue (BPX1SGQ, BPX4SGQ) — Queue a signal to a process
- sigsuspend (BPX1SSU, BPX4SSU) — Change the signal mask and suspend the thread until a signal is delivered
- sigtimedwait (BPX1STW, BPX4STW) — Wait for a signal with a specified timeout
- sigwait (BPX1SWT, BPX4SWT) — Wait for a signal
- sleep (BPX1SLP, BPX4SLP) — Suspend execution of a process for an interval of time
- smf_record (BPX1SMF, BPX4SMF) — Write an SMF record
- socket or socketpair (BPX1SOC, BPX4SOC) — Create a socket or a pair of sockets
- spawn (BPX1SPN, BPX4SPN) — Spawn a process
- srx_np (BPX1SRX, BPX4SRX) — Send or receive CSM buffers on a socket
- stat (BPX1STA, BPX4STA) — Get status information about a file by pathname
- statvfs (BPX1STV, BPX4STV) — Get the file system status
- sw_sigdlv (BPX1DSD, BPX4DSD) — Switch the setting for signal delivery
- symlink (BPX1SYM, BPX4SYM) — Create a symbolic link to a path name
- sync (BPX1SYN, BPX4SYN) — Schedule file system updates
- sysconf (BPX1SYC, BPX4SYC) — Determine system configuration options
- takesocket (BPX1TAK, BPX4TAK) — Acquire a socket from another program
- tcdrain (BPX1TDR, BPX4TDR) — Wait until output has been transmitted
- tcflow (BPX1TFW, BPX4TFW) — Suspend or resume data flow on a terminal
- tcflush (BPX1TFH, BPX4TFH) — Flush input or output on a terminal
- tcgetattr (BPX1TGA, BPX4TGA) — Get the attributes for a terminal
- tcgetcp (BPX1TGC, BPX4TGC) — Get terminal code page names
- tcgetpgrp (BPX1TGP, BPX4TGP) — Get the foreground process group ID
- tcgetsid (BPX1TGS, BPX4TGS) — Get a process group ID for the session leader for the controlling terminal
- tcsendbreak (BPX1TSB, BPX4TSB) — Send a break condition to a terminal
- tcsetattr (BPX1TSA, BPX4TSA) — Set the attributes for a terminal
- tcsetcp (BPX1TSC, BPX4TSC) — Set terminal code page names
- tcsetpgrp (BPX1TSP, BPX4TSP) — Set the foreground process group ID
- tcsettables (BPX1TST, BPX4TST) — Set terminal code page names and conversion tables
- times (BPX1TIM, BPX4TIM) — Get process and child process times
- truncate (BPX1TRU, BPX4TRU) — Change the size of a file
- ttyname (BPX1TYN, BPX4TYN) (POSIX version) — Get the name of a terminal
- ttyname (BPX2TYN, BPX4TYN) (X/Open version) — Get the name of a terminal
- umask (BPX1UMK, BPX4UMK) — Set the file mode creation mask
- umount (BPX1UMT, BPX4UMT) — Remove a virtual file system
- uname (BPX1UNA, BPX4UNA) — Obtain the name of the current operating system
- unlink (BPX1UNL, BPX4UNL) — Remove a directory entry
- unlockpt (BPX1UPT, BPX4UPT) — Unlock a pseudoterminal master/slave pair
- unquiesce (BPX1UQS, BPX4UQS) — Unquiesce a file system
- utime (BPX1UTI, BPX4UTI) — Set file access and modification times
- wait (BPX1WAT, BPX4WAT) — Wait for a child process to end
- wait-extension (BPX1WTE, BPX4WTE) — Obtain status information for children
- w_getipc (BPX1GET, BPX4GET) — Query interprocess communications
- w_getmntent (BPX1GMN, BPX4GMN) — Get information on mounted file systems
- w_getpsent (BPX1GPS) — Get process data
- w_ioctl (BPX1IOC, BPX4IOC) — Control I/O
- __wlm (BPX1WLM, BPX4WLM) — WLM interface service
- w_pioctl (BPX1PIO, BPX4PIO) — Path name I/O control
- w_statvfs (BPX1STF, BPX4STF) — Get the file system status
- write (BPX1WRT, BPX4WRT) — Write to a file or a socket
- writev (BPX1WRV, BPX4WRV) — Write data from a set of buffers