Callable services examples—AMODE 64
For an example using nonreentrant code, see Example of nonreentrant entry linkage—AMODE 64. These examples follow the rules of reentrancy. They use DSECT=NO and place the variables in the program's dynamic storage DSECT, which is allocated upon entry.
The examples are arranged alphabetically and have references to the mapping macros they use. The declaration for all local variables used in the examples follows the examples.
- Reentrant entry linkage
- BPX4ACC (access) example
- BPX4ACK (auth_check_resource_np) example
- BPX4ACP (accept) example
- BPX4AIO (asyncio) example
- BPX4ALR (alarm) example
- BPX4ANR (accept_and_recv) example
- BPX4ASP (aio_suspend) example
- BPX4ATM (attach_execmvs) example
- BPX4ATX (attach_exec) example
- BPX4BND (bind) example
- BPX4BAS (bind with source address selection) example
- BPX4CCA (cond_cancel) example
- BPX4CCS (__console()) example
- BPX4CHA (chaudit) example
- BPX4CHD (chdir) example
- BPX4CHM (chmod) example
- BPX4CHO (chown) example
- BPX4CHP (chpriority) example
- BPX4CHR (chattr) example
- BPX4CLD (closedir) example
- BPX4CLO (close) example
- BPX4CON (connect) example
- BPX4CPO (cond_post) example
- BPX4CRT (chroot) example
- BPX4CSE (cond_setup) example
- BPX4CTW (cond_timed_wait) example
- BPX4CWA (cond_wait) example
- BPX4DEL (deleteHFS) example
- BPX4ENV (oe_env_np) example
- BPX4EXC (exec) example
- BPX4EXI (_exit) example
- BPX4EXM (execmvs) example
- BPX4EXT (extlink_np) example
- BPX4FAI (freeaddrinfo) example
- BPX4FCA (fchaudit) example
- BPX4FCD (fchdir) example
- BPX4FCM (fchmod) example
- BPX4FCO (fchown) example
- BPX4FCR (fchattr) example
- BPX4FCT (fcntl) example
- BPX4FPC (fpathconf) example
- BPX4FRK (fork) example
- BPX4FST (fstat) example
- BPX4FSY (fsync) example
- BPX4FTR (ftruncate) example
- BPX4FTV (fstatvfs) example
- BPX4GAI (getaddrinfo) example
- BPX4GCL (getclientid) example
- BPX4GCW (getcwd) example
- BPX4GEG (getegid) example
- BPX4GEP (getpgid) example
- BPX4GES (getsid) example
- BPX4GET (w_getipc) example
- BPX4GEU (geteuid) example
- BPX4GGE (getgrent) example
- BPX4GGI (getgrgid) example
- BPX4GGN (getgrnam) example
- BPX4GGR (getgroups) example
- BPX4GHA (gethostbyaddr) example
- BPX4GHN (gethostbyname) example
- BPX4GID (getgid) example
- BPX4GIV (givesocket) example
- BPX4GLG (getlogin) example
- BPX4GMN (w_getmntent) example
- BPX4GNI (getnameinfo) example
- BPX4GPG (getpgrp) example
- BPX4GNM (getpeername or getsockname) example
- BPX4GPE (getpwent) example
- BPX4GPI (getpid) example
- BPX4GPN (getpwnam) example
- BPX4GPP (getppid) example
- BPX4GPT (grantpt) example
- BPX4GPU (getpwuid) example
- BPX4GPY (getpriority) example
- BPX4GRL (getrlimit) example
- BPX4GRU (getrusage) example
- BPX4GTH (__getthent) example
- BPX4GTR (getitimer) example
- BPX4GUG (getgroupsbyname) example
- BPX4GUI (getuid) example
- BPX4GWD (getwd) example
- BPX4HST (gethostid or gethostname) example
- BPX4IOC (w_ioctl) example
- BPX4IPT (mvsiptaffinity) example
- BPX4ITY (isatty) example
- BPX4KIL (kill) example
- BPX4LCO (lchown) example
- BPX4LCR (lchattr) example
- BPX4LDX (loadHFS extended) example
- BPX4LOD (loadHFS) example
- BPX4LNK (link) example
- BPX4LSK (lseek) example
- BPX4LSN (listen) example
- BPX4LST (lstat) example
- BPX4MAT (shmat) example
- BPX4MCT (shmctl) example
- BPX4MDT (shmdt) example
- BPX4MGT (shmget) example
- BPX4MKD (mkdir) example
- BPX4MKN (mknod) example
- BPX4MMI (__map_init) example
- BPX4MMP (mmap) example
- BPX4MMS (__map_service) example
- BPX4MNT (__mount) example
- BPX4MP (mvspause) example
- BPX4MPC (mvsprocclp) example
- BPX4MPI (mvspauseinit) example
- BPX4MPR (mprotect) example
- BPX4MSD (mvsunsigsetup) example
- BPX4MSS (mvssigsetup) example
- BPX4MSY (msync) example
- BPX4MUN (munmap) example
- BPX4NIC (nice) example
- BPX4OPD (opendir) example
- BPX4OPN (open) example
- BPX4OPS (openstat) example
- BPX4OPT (getsockopt or setsockopt) example
- BPX4PAF (__pid_affinity) example
- BPX4PAS (pause) example
- BPX4PCF (pathconf) example
- BPX4PCT (pfsctl) example
- BPX4PIP (pipe) example
- BPX4POE (__poe) example
- BPX4POL (poll) example
- BPX4PSI (pthread_setintr) example
- BPX4PST (pthread_setintrtype) example
- BPX4PTB (pthread_cancel) example
- BPX4PTC (pthread_create) example
- BPX4PTD (pthread_detach) example
- BPX4PTI (pthread_testintr) example
- BPX4PTJ (pthread_join) example
- BPX4PTK (pthread_kill) example
- BPX4PTQ (pthread_quiesce) example
- BPX4PTR (ptrace) example
- BPX4PTS (pthread_self) example
- BPX4PTT (pthread_tag_np) example
- BPX4PTX (pthread_exit_and_get) example
- BPX4PWD (__passwd, __passwd__applid) example
- BPX4QCT (msgctl) example
- BPX4QDB (querydub) example
- BPX4QGT (msgget) example
- BPX4QRC (msgrcv) example
- BPX4QSE (quiesce) example
- BPX4QSN (msgsnd) example
- BPX4RCV (recv) example
- BPX4RDD (readdir) example
- BPX4RDL (readlink) example
- BPX4RDV (readv) example
- BPX4RDX (read extlink) example
- BPX4RD2 (readdir2) example
- BPX4RED (read) example
- BPX4REN (rename) example
- BPX4RFM (recvfrom) example
- BPX4RMD (rmdir) example
- BPX4RMG (resource) example
- BPX4RMS (recvmsg) example
- BPX4RPH (realpath) example
- BPX4RW (Pwrite) example
- BPX4RWD (rewinddir) example
- BPX4SA2 (__sigactionset) example
- BPX4SCT (semctl) example
- BPX4SDD (setdubdefault) example
- BPX4SEC (__login, __login__applid, __certificate) example
- BPX4SEG (setegid) example
- BPX4SEL (select) example
- BPX4SEU (seteuid) example
- BPX4SF (send_file) example
- BPX4SGE (setgrent) example
- BPX4SGI (setgid) example
- BPX4SGQ (sigqueue) example
- BPX4SGR (setgroups) example
- BPX4SGT (semget) example
- BPX4SHT (shutdown) example
- BPX4SIA (sigaction) example
- BPX4SIN (server_init) example
- BPX4SIP (sigpending) example
- BPX4SLK (shmem_lock) example
- BPX4SLP (sleep) example
- BPX4SMF (smf_record) example
- BPX4SMS (sendmsg) example
- BPX4SND (send) example
- BPX4SOC (socket or socketpair) example
- BPX4SOP (semop) example
- BPX4SPB (queue_interrupt) example
- BPX4SPE (setpwent) example
- BPX4SPG (setpgid) example
- BPX4SPM (sigprocmask) example
- BPX4SPN (spawn) example
- BPX4SPR (setpeer) example
- BPX4SPW (server_pwu) example
- BPX4SPY (setpriority) example
- BPX4SRG (setregid) example
- BPX4SRL (setrlimit) example
- BPX4SRU (setreuid) example
- BPX4SRX (srx_np) example
- BPX4SSI (setsid) example
- BPX4SSU (sigsuspend) example
- BPX4STA (stat) example
- BPX4STE (set_timer_event) example
- BPX4STF (w_statvfs) example
- BPX4STL (set_thread_limits) example
- BPX4STO (sendto) example
- BPX4STR (setitimer) example
- BPX4STV (statvfs) example
- BPX4STW (sigtimedwait) example
- BPX4SUI (setuid) example
- BPX4SWT (sigwait) example
- BPX4SYC (sysconf) example
- BPX4SYM (symlink) example
- BPX4SYN (sync) example
- BPX4TAF (MVSThreadAffinity) example
- BPX4TAK (takesocket) example
- BPX4TDR (tcdrain) example
- BPX4TFH (tcflush) example
- BPX4TFW (tcflow) example
- BPX4TGA (tcgetattr) example
- BPX4TGC (tcgetcp) example
- BPX4TGP (tcgetpgrp) example
- BPX4TGS (tcgetsid) example
- BPX4TIM (times) example
- BPX4TLS (pthread_security_np) example
- BPX4TRU (truncate) example
- BPX4TSA (tcsetattr) example
- BPX4TSB (tcsendbreak) example
- BPX4TSC (tcsetcp) example
- BPX4TSP (tcsetpgrp) example
- BPX4TST (tcsettables) example
- BPX4TYN (ttyname) example
- BPX4UMK (umask) example
- BPX4UMT (umount) example
- BPX4UNA (uname) example
- BPX4UNL (unlink) example
- BPX4UPT (unlockpt) example
- BPX4UQS (unquiesce) example
- BPX4UTI (utime) example
- BPX4WAT (wait) example
- BPX4WLM (__WLM) example
- BPX4WRT (write) example
- BPX4WRV (writev) example
- BPX4WTE (wait extension) example
- Reentrant return linkage