Callable services examples—AMODE 31
For an example using nonreentrant code, see Example of nonreentrant entry linkage—AMODE 31. 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
- BPX1ACC (access) example
- BPX1ACK (auth_check_resource_np) example
- BPX1ACP (accept) example
- BPX1AIO (asyncio) example
- BPX1ALR (alarm) example
- BPX1ANR (accept_and_recv) example
- BPX1ASP (aio_suspend) example
- BPX1ATM (attach_execmvs) example
- BPX1ATX (attach_exec) example
- BPX1BND (bind) example
- BPX1BAS (bind with source address selection) example
- BPXICCA (cond_cancel) example
- BPX1CCS (__console()) example
- BPX1CHA (chaudit) example
- BPX1CHD (chdir) example
- BPX1CHM (chmod) example
- BPX1CHO (chown) example
- BPX1CHP (chpriority) example
- BPX1CHR (chattr) example
- BPX1CLD (closedir) example
- BPX1CLO (close) example
- BPX1CON (connect) example
- BPX1CPO (cond_post) example
- BPX1CRT (chroot) example
- BPX1CSE (cond_setup) example
- BPX1CTW (cond_timed_wait) example
- BPX1CWA (cond_wait) example
- BPX1DEL (deleteHFS) example
- BPX1ENV (oe_env_np) example
- BPX1EXC (exec) example
- BPX1EXI (_exit) example
- BPX1EXM (execmvs) example
- BPX1EXT (extlink_np) example
- BPX1FAI (freeaddrinfo) example
- BPX1FCA (fchaudit) example
- BPX1FCD (fchdir) example
- BPX1FCM (fchmod) example
- BPX1FCO (fchown) example
- BPX1FCR (fchattr) example
- BPX1FCT (fcntl) example
- BPX1FPC (fpathconf) example
- BPX1FRK (fork) example
- BPX1FST (fstat) example
- BPX1FSY (fsync) example
- BPX1FTR (ftruncate) example
- BPX1FTV (fstatvfs) example
- BPX1GAI (getaddrinfo) example
- BPX1GCL (getclientid) example
- BPX1GCW (getcwd) example
- BPX1GEG (getegid) example
- BPX1GEP (getpgid) example
- BPX1GES (getsid) example
- BPX1GET (w_getipc) example
- BPX1GEU (geteuid) example
- BPX1GGE (getgrent) example
- BPX1GGI (getgrgid) example
- BPX1GGN (getgrnam) example
- BPX1GGR (getgroups) example
- BPX1GHA (gethostbyaddr) example
- BPX1GHN (gethostbyname) example
- BPX1GID (getgid) example
- BPX1GIV (givesocket) example
- BPX1GLG (getlogin) example
- BPX1GMN (w_getmntent) example
- BPX1GNI (getnameinfo) example
- BPX1GPG (getpgrp) example
- BPX1GNM (getpeername or getsockname) example
- BPX1GPE (getpwent) example
- BPX1GPI (getpid) example
- BPX1GPN (getpwnam) example
- BPX1GPP (getppid) example
- BPX1GPS (w_getpsent) example
- BPX1GPT (grantpt) example
- BPX1GPU (getpwuid) example
- BPX1GPY (getpriority) example
- BPX1GRL (getrlimit) example
- BPX1GRU (getrusage) example
- BPX1GTH (__getthent) example
- BPX1GTR (getitimer) example
- BPX1GUG (getgroupsbyname) example
- BPX1GUI (getuid) example
- BPX1GWD (getwd) example
- BPX1HST (gethostid or gethostname) example
- BPX1IOC (w_ioctl) example
- BPX1IPT (mvsiptaffinity) example
- BPX1ITY (isatty) example
- BPX2ITY (isatty) example
- BPX1KIL (kill) example
- BPX1LCO (lchown) example
- BPX1LCR (lchattr) example
- BPX1LDX (loadHFS extended) example
- BPX1LOD (loadHFS) example
- BPX1LNK (link) example
- BPX1LSK (lseek) example
- BPX1LSN (listen) example
- BPX1LST (lstat) example
- BPX1MAT (shmat) example
- BPX1MCT (shmctl) example
- BPX1MDT (shmdt) example
- BPX1MGT (shmget) example
- BPX1MKD (mkdir) example
- BPX1MKN (mknod) example
- BPX1MMI (__map_init) example
- BPX1MMP (mmap) example
- BPX1MMS (__map_service) example
- BPX1MNT (mount) example
- BPX2MNT (__mount) example
- BPX1MP (mvspause) example
- BPX1MPC (mvsprocclp) examples
- BPX1MPI (mvspauseinit) example
- BPX1MPR (mprotect) example
- BPX1MSD (mvsunsigsetup) example
- BPX1MSS (mvssigsetup) example
- BPX1MSY (msync) example
- BPX1MUN (munmap) example
- BPX1NIC (nice) example
- BPX1OPD (opendir) example
- BPX1OPN (open) example
- BPX2OPN (openstat) example
- BPX1OPT (getsockopt or setsockopt) example
- BPX1PAF (__pid_affinity) example
- BPX1PAS (pause) example
- BPX1PCF (pathconf) example
- BPX1PCT (pfsctl) example
- BPX1PIP (pipe) example
- BPX1POE (__poe) example
- BPX1POL (poll) example
- BPX1PSI (pthread_setintr) example
- BPX1PST (pthread_setintrtype) example
- BPX1PTB (pthread_cancel) example
- BPX1PTC (pthread_create) example
- BPX1PTD (pthread_detach) example
- BPX1PTI (pthread_testintr) example
- BPX1PTJ (pthread_join) example
- BPX1PTK (pthread_kill) example
- BPX1PTQ (pthread_quiesce) example
- BPX1PTR (ptrace) example
- BPX1PTS (pthread_self) example
- BPX1PTT (pthread_tag_np) example
- BPX1PTX (pthread_exit_and_get) example
- BPX1PWD (__passwd, __passwd__applid) example
- BPX1QCT (msgctl) example
- BPX1QDB (querydub) example
- BPX1QGT (msgget) example
- BPX1QRC (msgrcv) example
- BPX1QSE (quiesce) example
- BPX1QSN (msgsnd) example
- BPX1RCV (recv) example
- BPX1RDD (readdir) example
- BPX1RDL (readlink) example
- BPX1RDV (readv) example
- BPX1RDX (read extlink) example
- BPX1RD2 (readdir2) example
- BPX1RED (read) example
- BPX1REN (rename) example
- BPX1RFM (recvfrom) example
- BPX1RMD (rmdir) example
- BPX1RMG (resource) example
- BPX2RMS (recvmsg) example
- BPX1RPH (realpath) example
- BPX1RW (Pwrite) example
- BPX1RWD (rewinddir) example
- BPX1SA2 (__sigactionset) example
- BPX1SCT (semctl) example
- BPX1SDD (setdubdefault) example
- BPX1SEC (__login, __login__applid, __certificate) example
- BPX1SEG (setegid) example
- BPX1SEL (select) example
- BPX1SEU (seteuid) example
- BPX1SF (send_file) example
- BPX1SGE (setgrent) example
- BPX1SGI (setgid) example
- BPX1SGQ (sigqueue) example
- BPX1SGR (setgroups) example
- BPX1SGT (semget) example
- BPX1SHT (shutdown) example
- BPX1SIA (sigaction) example
- BPX1SIN (server_init) example
- BPX1SIP (sigpending) example
- BPX1SLK (shmem_lock) example
- BPX1SLP (sleep) example
- BPX1SMF (smf_record) example
- BPX2SMS (sendmsg) example
- BPX1SND (send) example
- BPX1SOC (socket or socketpair) example
- BPX1SOP (semop) example
- BPX1SPB (queue_interrupt) example
- BPX1SPE (setpwent) example
- BPX1SPG (setpgid) example
- BPX1SPM (sigprocmask) example
- BPX1SPN (spawn) example
- BPX1SPR (setpeer) example
- BPX1SPW (server_pwu) example
- BPX1SPY (setpriority) example
- BPX1SRG (setregid) example
- BPX1SRL (setrlimit) example
- BPX1SRU (setreuid) example
- BPX1SRX (srx_np) example
- BPX1SSI (setsid) example
- BPX1SSU (sigsuspend) example
- BPX1STA (stat) example
- BPX1STE (set_timer_event) example
- BPX1STF (w_statvfs) example
- BPX1STL (set_thread_limits) example
- BPX1STO (sendto) example
- BPX1STR (setitimer) example
- BPX1STV (statvfs) example
- BPX1STW (sigtimedwait) example
- BPX1SUI (setuid) example
- BPX1SWT (sigwait) example
- BPX1SYC (sysconf) example
- BPX1SYM (symlink) example
- BPX1SYN (sync) example
- BPX1TAF (MVSThreadAffinity) example
- BPX1TAK (takesocket) example
- BPX1TDR (tcdrain) example
- BPX1TFH (tcflush) example
- BPX1TFW (tcflow) example
- BPX1TGA (tcgetattr) example
- BPX1TGC (tcgetcp) example
- BPX1TGP (tcgetpgrp) example
- BPX1TGS (tcgetsid) example
- BPX1TIM (times) example
- BPX1TLS (pthread_security_np) example
- BPX1TRU (truncate) example
- BPX1TSA (tcsetattr) example
- BPX1TSB (tcsendbreak) example
- BPX1TSC (tcsetcp) example
- BPX1TSP (tcsetpgrp) example
- BPX1TST (tcsettables) example
- BPX1TYN (ttyname) example
- BPX2TYN (ttyname) example
- BPX1UMK (umask) example
- BPX1UMT (umount) example
- BPX1UNA (uname) example
- BPX1UNL (unlink) example
- BPX1UPT (unlockpt) example
- BPX1UQS (unquiesce) example
- BPX1UTI (utime) example
- BPX1WAT (wait) example
- BPX1WLM (__WLM) example
- BPX1WRT (write) example
- BPX1WRV (writev) example
- BPX1WTE (wait extension) example
- Reentrant return linkage