|
HP C
HP C Run-Time Library Reference Manual for OpenVMS Systems
Chapter 5 |
5
|
Subprocess Functions
|
5.1
|
Implementing Child Processes in HP C
|
5.2
|
The exec Functions
|
5.2.1
|
exec Processing
|
5.2.2
|
exec Error Conditions
|
5.3
|
Synchronizing Processes
|
5.4
|
Interprocess Communication
|
5.5
|
Program Examples
|
Chapter 6 |
6
|
Curses Screen Management Functions and Macros
|
6.1
|
Using the BSD-Based Curses Package (ALPHA ONLY)
|
6.2
|
Curses Overview
|
6.3
|
Curses Terminology
|
6.3.1
|
Predefined Windows (stdscr and curscr)
|
6.3.2
|
User-Defined Windows
|
6.4
|
Getting Started with Curses
|
6.5
|
Predefined Variables and Constants
|
6.6
|
Cursor Movement
|
6.7
|
Program Example
|
Chapter 7 |
7
|
Math Functions
|
7.1
|
Math Function Variants---float, long double (ALPHA, I64)
|
7.2
|
Error Detection
|
7.3
|
The <fp.h> Header File
|
7.4
|
Example
|
Chapter 8 |
8
|
Memory Allocation Functions
|
8.1
|
Program Example
|
Chapter 9 |
9
|
System Functions
|
Chapter 10 |
10
|
Developing International Software
|
10.1
|
Internationalization Support
|
10.1.1
|
Installation
|
10.1.2
|
Unicode Support
|
10.2
|
Features of International Software
|
10.3
|
Developing International Software Using HP C
|
10.4
|
Locales
|
10.5
|
Using the setlocale Function to Set Up an International Environment
|
10.6
|
Using Message Catalogs
|
10.7
|
Handling Different Character Sets
|
10.7.1
|
Charmap File
|
10.7.2
|
Converter Functions
|
10.7.3
|
Using Codeset Converter Files
|
10.8
|
Handling Culture-Specific Information
|
10.8.1
|
Extracting Cultural Information From a Locale
|
10.8.2
|
Date and Time Formatting Functions
|
10.8.3
|
Monetary Formatting Function
|
10.8.4
|
Numeric Formatting
|
10.9
|
Functions for Handling Wide Characters
|
10.9.1
|
Character Classification Functions
|
10.9.2
|
Case Conversion Functions
|
10.9.3
|
Functions for Input and Output of Wide Characters
|
10.9.4
|
Functions for Converting Multibyte and Wide Characters
|
10.9.5
|
Functions for Manipulating Wide-Character Strings and Arrays
|
10.10
|
Collating Functions
|
Chapter 11 |
11
|
Date/Time Functions
|
11.1
|
Date/Time Support Models
|
11.2
|
Overview of Date/Time Functions
|
11.3
|
HP C RTL Date/Time Computations---UTC and Local Time
|
11.4
|
Time-Zone Conversion Rule Files
|
11.5
|
Sample Date/Time Scenario
|
Part |
Part
|
Reference Section
|
Command 1
|
a64l (ALPHA, I64)
|
Command 2
|
abort
|
Command 3
|
abs
|
Command 4
|
access
|
Command 5
|
acos
|
Command 6
|
acosh (ALPHA, I64)
|
Command 7
|
[w]addch
|
Command 8
|
[w]addstr
|
Command 9
|
alarm
|
Command 10
|
asctime, asctime_r
|
Command 11
|
asin
|
Command 12
|
asinh (ALPHA, I64)
|
Command 13
|
assert
|
Command 14
|
atan
|
Command 15
|
atan2
|
Command 16
|
atanh (ALPHA, I64)
|
Command 17
|
atexit
|
Command 18
|
atof
|
Command 19
|
atoi, atol
|
Command 20
|
atoq, atoll (ALPHA, I64)
|
Command 21
|
basename
|
Command 22
|
bcmp
|
Command 23
|
bcopy
|
Command 24
|
box
|
Command 25
|
brk
|
Command 26
|
bsearch
|
Command 27
|
btowc
|
Command 28
|
bzero
|
Command 29
|
cabs
|
Command 30
|
calloc
|
Command 31
|
catclose
|
Command 32
|
catgets
|
Command 33
|
catopen
|
Command 34
|
cbrt (ALPHA, I64)
|
Command 35
|
ceil
|
Command 36
|
cfree
|
Command 37
|
chdir
|
Command 38
|
chmod
|
Command 39
|
chown
|
Command 40
|
[w]clear
|
Command 41
|
clearerr
|
Command 42
|
clearerr_unlocked (ALPHA, I64)
|
Command 43
|
clearok
|
Command 44
|
clock
|
Command 45
|
clock_getres (ALPHA, I64)
|
Command 46
|
clock_gettime (ALPHA, I64)
|
Command 47
|
clock_settime (ALPHA, I64)
|
Command 48
|
close
|
Command 49
|
closedir
|
Command 50
|
[w]clrattr
|
Command 51
|
[w]clrtobot
|
Command 52
|
[w]clrtoeol
|
Command 53
|
confstr
|
Command 54
|
copysign (ALPHA, I64)
|
Command 55
|
cos
|
Command 56
|
cosh
|
Command 57
|
cot
|
Command 58
|
creat
|
Command 59
|
[no]crmode
|
Command 60
|
ctermid
|
Command 61
|
ctime, ctime_r
|
Command 62
|
cuserid
|
Command 63
|
DECC$CRTL_INIT
|
Command 64
|
decc$feature_get_index
|
Command 65
|
decc$feature_get_name
|
Command 66
|
decc$feature_get_value
|
Command 67
|
decc$feature_set_value
|
Command 68
|
decc$fix_time
|
Command 69
|
decc$from_vms
|
Command 70
|
decc$match_wild
|
Command 71
|
decc$record_read
|
Command 72
|
decc$record_write
|
Command 73
|
decc$set_child_default_dir (ALPHA, I64)
|
Command 74
|
decc$set_child_standard_streams
|
Command 75
|
decc$set_reentrancy
|
Command 76
|
decc$to_vms
|
Command 77
|
decc$translate_vms
|
Command 78
|
decc$validate_wchar
|
Command 79
|
decc$write_eof_to_mbx
|
Command 80
|
[w]delch
|
Command 81
|
delete
|
Command 82
|
[w]deleteln
|
Command 83
|
delwin
|
Command 84
|
difftime
|
Command 85
|
dirname
|
Command 86
|
div
|
Command 87
|
dlclose
|
Command 88
|
dlerror
|
Command 89
|
dlopen
|
Command 90
|
dlsym
|
Command 91
|
drand48
|
Command 92
|
dup, dup2
|
Command 93
|
[no]echo
|
Command 94
|
ecvt
|
Command 95
|
endgrent (ALPHA, I64)
|
Command 96
|
endpwent
|
Command 97
|
endwin
|
Command 98
|
erand48
|
Command 99
|
[w]erase
|
Command 100
|
erf
|
Command 101
|
execl
|
Command 102
|
execle
|
Command 103
|
execlp
|
Command 104
|
execv
|
Command 105
|
execve
|
Command 106
|
execvp
|
Command 107
|
exit, _exit
|
Command 108
|
exp
|
Command 109
|
fabs
|
Command 110
|
fchown
|
Command 111
|
fclose
|
Command 112
|
fcntl
|
Command 113
|
fcvt
|
Command 114
|
fdopen
|
Command 115
|
feof
|
Command 116
|
feof_unlocked (ALPHA, I64)
|
Command 117
|
ferror
|
Command 118
|
ferror_unlocked (ALPHA, I64)
|
Command 119
|
fflush
|
Command 120
|
ffs
|
Command 121
|
fgetc
|
Command 122
|
fgetc_unlocked (ALPHA, I64)
|
Command 123
|
fgetname
|
Command 124
|
fgetpos
|
Command 125
|
fgets
|
Command 126
|
fgetwc
|
Command 127
|
fgetws
|
Command 128
|
fileno
|
Command 129
|
finite (ALPHA, I64)
|
Command 130
|
flockfile (ALPHA, I64)
|
Command 131
|
floor
|
Command 132
|
fmod
|
Command 133
|
fopen
|
Command 134
|
fp_class (ALPHA, I64)
|
Command 135
|
fpathconf
|
Command 136
|
fprintf
|
Command 137
|
fputc
|
Command 138
|
fputc_unlocked (ALPHA, I64)
|
Command 139
|
fputs
|
Command 140
|
fputwc
|
Command 141
|
fputws
|
Command 142
|
fread
|
Command 143
|
free
|
Command 144
|
freopen
|
Command 145
|
frexp
|
Command 146
|
fscanf
|
Command 147
|
fseek
|
Command 148
|
fseeko
|
Command 149
|
fsetpos
|
Command 150
|
fstat
|
Command 151
|
fstatvfs (ALPHA, I64)
|
Command 152
|
fsync
|
Command 153
|
ftell
|
Command 154
|
ftello
|
Command 155
|
ftime
|
Command 156
|
ftruncate
|
Command 157
|
ftrylockfile (ALPHA, I64)
|
Command 158
|
ftw
|
Command 159
|
funlockfile (ALPHA, I64)
|
Command 160
|
fwait
|
Command 161
|
fwide
|
Command 162
|
fwprintf
|
Command 163
|
fwrite
|
Command 164
|
fwscanf
|
Command 165
|
gcvt
|
Command 166
|
getc
|
Command 167
|
getc_unlocked (ALPHA, I64)
|
Command 168
|
[w]getch
|
Command 169
|
getchar
|
Command 170
|
getchar_unlocked (ALPHA, I64)
|
Command 171
|
getclock
|
Command 172
|
getcwd
|
Command 173
|
getdtablesize
|
Command 174
|
getegid
|
Command 175
|
getenv
|
Command 176
|
geteuid
|
Command 177
|
getgid
|
Command 178
|
getgrent (ALPHA, I64)
|
Command 179
|
getgrgid (ALPHA, I64)
|
Command 180
|
getgrgid_r (ALPHA, I64)
|
Command 181
|
getgrnam (ALPHA, I64)
|
Command 182
|
getgrnam_r (ALPHA, I64)
|
Command 183
|
getitimer
|
Command 184
|
getlogin
|
Command 185
|
getname
|
Command 186
|
getopt
|
Command 187
|
getpagesize
|
Command 188
|
getpgid (ALPHA, I64)
|
Command 189
|
getpgrp (ALPHA, I64)
|
Command 190
|
getpid
|
Command 191
|
getppid
|
Command 192
|
getpwent
|
Command 193
|
getpwnam, getpwnam_r
|
Command 194
|
getpwuid, getpwuid_r (ALPHA, I64)
|
Command 195
|
gets
|
Command 196
|
getsid (ALPHA, I64)
|
Command 197
|
[w]getstr
|
Command 198
|
gettimeofday
|
Command 199
|
getuid
|
Command 200
|
getw
|
Command 201
|
getwc
|
Command 202
|
getwchar
|
Command 203
|
getyx
|
Command 204
|
glob (ALPHA, I64)
|
Command 205
|
globfree
|
Command 206
|
gmtime, gmtime_r
|
Command 207
|
gsignal
|
Command 208
|
hypot
|
Command 209
|
iconv
|
Command 210
|
iconv_close
|
Command 211
|
iconv_open
|
Command 212
|
[w]inch
|
Command 213
|
index
|
Command 214
|
initscr
|
Command 215
|
initstate
|
Command 216
|
[w]insch
|
Command 217
|
[w]insertln
|
Command 218
|
[w]insstr
|
Command 219
|
isalnum
|
Command 220
|
isalpha
|
Command 221
|
isapipe
|
Command 222
|
isascii
|
Command 223
|
isatty
|
Command 224
|
iscntrl
|
Command 225
|
isdigit
|
Command 226
|
isgraph
|
Command 227
|
islower
|
Command 228
|
isnan (ALPHA, I64)
|
Command 229
|
isprint
|
Command 230
|
ispunct
|
Command 231
|
isspace
|
Command 232
|
isupper
|
Command 233
|
iswalnum
|
Command 234
|
iswalpha
|
Command 235
|
iswcntrl
|
Command 236
|
iswctype
|
Command 237
|
iswdigit
|
Command 238
|
iswgraph
|
Command 239
|
iswlower
|
Command 240
|
iswprint
|
Command 241
|
iswpunct
|
Command 242
|
iswspace
|
Command 243
|
iswupper
|
Command 244
|
iswxdigit
|
Command 245
|
isxdigit
|
Command 246
|
j0, j1, jn (ALPHA, I64)
|
Command 247
|
jrand48
|
Command 248
|
kill
|
Command 249
|
l64a (ALPHA, I64)
|
Command 250
|
labs
|
Command 251
|
lcong48
|
Command 252
|
ldexp
|
Command 253
|
ldiv
|
Command 254
|
leaveok
|
Command 255
|
lgamma (ALPHA, I64)
|
Command 256
|
link
|
Command 257
|
localeconv
|
Command 258
|
localtime, localtime_r
|
Command 259
|
log, log2, log10
|
Command 260
|
log1p (ALPHA, I64)
|
Command 261
|
logb (ALPHA, I64)
|
Command 262
|
longjmp
|
Command 263
|
longname
|
Command 264
|
lrand48
|
Command 265
|
lseek
|
Command 266
|
lwait
|
Command 267
|
malloc
|
Command 268
|
mblen
|
Command 269
|
mbrlen
|
Command 270
|
mbrtowc
|
Command 271
|
mbstowcs
|
Command 272
|
mbtowc
|
Command 273
|
mbsinit
|
Command 274
|
mbsrtowcs
|
Command 275
|
memccpy
|
Command 276
|
memchr
|
Command 277
|
memcmp
|
Command 278
|
memcpy
|
Command 279
|
memmove
|
Command 280
|
memset
|
Command 281
|
mkdir
|
Command 282
|
mkstemp
|
Command 283
|
mktemp
|
Command 284
|
mktime
|
Command 285
|
mmap
|
Command 286
|
modf
|
Command 287
|
[w]move
|
Command 288
|
mprotect
|
Command 289
|
mrand48
|
Command 290
|
msync
|
Command 291
|
munmap
|
Command 292
|
mv[w]addch
|
Command 293
|
mv[w]addstr
|
Command 294
|
mvcur
|
Command 295
|
mv[w]delch
|
Command 296
|
mv[w]getch
|
Command 297
|
mv[w]getstr
|
Command 298
|
mv[w]inch
|
Command 299
|
mv[w]insch
|
Command 300
|
mv[w]insstr
|
Command 301
|
mvwin
|
Command 302
|
nanosleep (ALPHA, I64)
|
Command 303
|
newwin
|
Command 304
|
nextafter (ALPHA, I64)
|
Command 305
|
nice
|
Command 306
|
nint (ALPHA, I64)
|
Command 307
|
[no]nl
|
Command 308
|
nl_langinfo
|
Command 309
|
nrand48
|
Command 310
|
open
|
Command 311
|
opendir
|
Command 312
|
overlay
|
Command 313
|
overwrite
|
Command 314
|
pathconf
|
Command 315
|
pause
|
Command 316
|
pclose
|
Command 317
|
perror
|
Command 318
|
pipe
|
Command 319
|
popen
|
Command 320
|
pow
|
Command 321
|
pread (ALPHA, I64)
|
Command 322
|
printf
|
Command 323
|
[w]printw
|
Command 324
|
putc
|
Command 325
|
putc_unlocked (ALPHA, I64)
|
Command 326
|
putchar
|
Command 327
|
putchar_unlocked (ALPHA, I64)
|
Command 328
|
putenv
|
Command 329
|
puts
|
Command 330
|
putw
|
Command 331
|
putwc
|
Command 332
|
putwchar
|
Command 333
|
pwrite (ALPHA, I64)
|
Command 334
|
qabs, llabs (ALPHA, I64)
|
Command 335
|
qdiv, lldiv (ALPHA, I64)
|
Command 336
|
qsort
|
Command 337
|
raise
|
Command 338
|
rand, rand_r
|
Command 339
|
random
|
Command 340
|
[no]raw
|
Command 341
|
read
|
Command 342
|
readdir, readdir_r
|
Command 343
|
readv (ALPHA, I64)
|
Command 344
|
realloc
|
Command 345
|
[w]refresh
|
Command 346
|
remove
|
Command 347
|
rename
|
Command 348
|
rewind
|
Command 349
|
rewinddir
|
Command 350
|
rindex
|
Command 351
|
rint (ALPHA, I64)
|
Command 352
|
rmdir
|
Command 353
|
sbrk
|
Command 354
|
scalb (ALPHA, I64)
|
Command 355
|
scanf
|
Command 356
|
[w]scanw
|
Command 357
|
scroll
|
Command 358
|
scrollok
|
Command 359
|
seed48
|
Command 360
|
seekdir
|
Command 361
|
[w]setattr
|
Command 362
|
setbuf
|
Command 363
|
setenv
|
Command 364
|
seteuid (ALPHA, I64)
|
Command 365
|
setgid
|
Command 366
|
setgrent (ALPHA, I64)
|
Command 367
|
setitimer
|
Command 368
|
setjmp
|
Command 369
|
setlocale
|
Command 370
|
setpgid (ALPHA, I64)
|
Command 371
|
setpgrp (ALPHA, I64)
|
Command 372
|
setpwent
|
Command 373
|
setregid (ALPHA, I64)
|
Command 374
|
setreuid (ALPHA, I64)
|
Command 375
|
setsid (ALPHA, I64)
|
Command 376
|
setstate
|
Command 377
|
setuid
|
Command 378
|
setvbuf
|
Command 379
|
sigaction
|
Command 380
|
sigaddset
|
Command 381
|
sigblock
|
Command 382
|
sigdelset
|
Command 383
|
sigemptyset
|
Command 384
|
sigfillset
|
Command 385
|
sighold (ALPHA, I64)
|
Command 386
|
sigignore (ALPHA, I64)
|
Command 387
|
sigismember
|
Command 388
|
siglongjmp
|
Command 389
|
sigmask
|
Command 390
|
signal
|
Command 391
|
sigpause
|
Command 392
|
sigpending
|
Command 393
|
sigprocmask
|
Command 394
|
sigrelse (ALPHA, I64)
|
Command 395
|
sigsetjmp
|
Command 396
|
sigsetmask
|
Command 397
|
sigstack (VAX ONLY)
|
Command 398
|
sigsuspend
|
Command 399
|
sigtimedwait (ALPHA, I64)
|
Command 400
|
sigvec
|
Command 401
|
sigwait (ALPHA, I64)
|
Command 402
|
sigwaitinfo (ALPHA, I64)
|
Command 403
|
sin
|
Command 404
|
sinh
|
Command 405
|
sleep
|
Command 406
|
snprintf
|
Command 407
|
sprintf
|
Command 408
|
sqrt
|
Command 409
|
srand
|
Command 410
|
srand48
|
Command 411
|
srandom
|
Command 412
|
sscanf
|
Command 413
|
ssignal
|
Command 414
|
[w]standend
|
Command 415
|
[w]standout
|
Command 416
|
stat
|
Command 417
|
statvfs (ALPHA, I64)
|
Command 418
|
strcasecmp
|
Command 419
|
strcat
|
Command 420
|
strchr
|
Command 421
|
strcmp
|
Command 422
|
strcoll
|
Command 423
|
strcpy
|
Command 424
|
strcspn
|
Command 425
|
strdup
|
Command 426
|
strerror
|
Command 427
|
strfmon
|
Command 428
|
strftime
|
Command 429
|
strlen
|
Command 430
|
strncasecmp
|
Command 431
|
strncat
|
Command 432
|
strncmp
|
Command 433
|
strncpy
|
Command 434
|
strnlen
|
Command 435
|
strpbrk
|
Command 436
|
strptime
|
Command 437
|
strrchr
|
Command 438
|
strsep
|
Command 439
|
strspn
|
Command 440
|
strstr
|
Command 441
|
strtod
|
Command 442
|
strtok, strtok_r
|
Command 443
|
strtol
|
Command 444
|
strtoq, strtoll (ALPHA, I64)
|
Command 445
|
strtoul
|
Command 446
|
strtouq, strtoull (ALPHA, I64)
|
Command 447
|
strxfrm
|
Command 448
|
subwin
|
Command 449
|
swab
|
Command 450
|
swprintf
|
Command 451
|
swscanf
|
Command 452
|
sysconf
|
Command 453
|
system
|
Command 454
|
tan
|
Command 455
|
tanh
|
Command 456
|
telldir
|
Command 457
|
tempnam
|
Command 458
|
time
|
Command 459
|
times
|
Command 460
|
tmpfile
|
Command 461
|
tmpnam
|
Command 462
|
toascii
|
Command 463
|
tolower
|
Command 464
|
_tolower
|
Command 465
|
touchwin
|
Command 466
|
toupper
|
Command 467
|
_toupper
|
Command 468
|
towctrans
|
Command 469
|
towlower
|
Command 470
|
towupper
|
Command 471
|
trunc (ALPHA, I64)
|
Command 472
|
truncate
|
Command 473
|
ttyname, ttyname_r
|
Command 474
|
tzset
|
Command 475
|
ualarm
|
Command 476
|
umask
|
Command 477
|
uname
|
Command 478
|
ungetc
|
Command 479
|
ungetwc
|
Command 480
|
unordered (ALPHA, I64)
|
Command 481
|
utime
|
Command 482
|
utimes
|
Command 483
|
unsetenv
|
Command 484
|
usleep
|
Command 485
|
VAXC$CRTL_INIT
|
Command 486
|
VAXC$ESTABLISH
|
Command 487
|
va_arg
|
Command 488
|
va_count
|
Command 489
|
va_end
|
Command 490
|
va_start, va_start_1
|
Command 491
|
vfork
|
Command 492
|
vfprintf
|
Command 493
|
vfscanf
|
Command 494
|
vfwprintf
|
Command 495
|
vfwscanf
|
Command 496
|
vprintf
|
Command 497
|
vscanf
|
Command 498
|
vsnprintf (ALPHA, I64)
|
Command 499
|
vsprintf
|
Command 500
|
vsscanf
|
Command 501
|
vswprintf
|
Command 502
|
vswscanf
|
Command 503
|
vwprintf
|
Command 504
|
vwscanf
|
Command 505
|
wait
|
Command 506
|
wait3
|
Command 507
|
wait4
|
Command 508
|
waitpid
|
Command 509
|
wcrtomb
|
Command 510
|
wcscat
|
Command 511
|
wcschr
|
Command 512
|
wcscmp
|
Command 513
|
wcscoll
|
Command 514
|
wcscpy
|
Command 515
|
wcscspn
|
Command 516
|
wcsftime
|
Command 517
|
wcslen
|
Command 518
|
wcsncat
|
Command 519
|
wcsncmp
|
Command 520
|
wcsncpy
|
Command 521
|
wcspbrk
|
Command 522
|
wcsrchr
|
Command 523
|
wcsrtombs
|
Command 524
|
wcsspn
|
Command 525
|
wcsstr
|
Command 526
|
wcstod
|
Command 527
|
wcstok
|
Command 528
|
wcstol
|
Command 529
|
wcstombs
|
Command 530
|
wcstoul
|
Command 531
|
wcswcs
|
Command 532
|
wcswidth
|
Command 533
|
wcsxfrm
|
Command 534
|
wctob
|
Command 535
|
wctomb
|
Command 536
|
wctrans
|
Command 537
|
wctype
|
Command 538
|
wcwidth
|
Command 539
|
wmemchr
|
Command 540
|
wmemcmp
|
Command 541
|
wmemcpy
|
Command 542
|
wmemmove
|
Command 543
|
wmemset
|
Command 544
|
wprintf
|
Command 545
|
wrapok
|
Command 546
|
write
|
Command 547
|
writev
|
Command 548
|
wscanf
|
Command 549
|
y0, y1, yn (ALPHA, I64)
|
|