.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "POSIX::2008 3pm" .TH POSIX::2008 3pm "2015-07-26" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" POSIX::2008 \- Perl interface to POSIX.1\-2008 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use POSIX qw(:fcntl_h); \& use POSIX::2008; \& \& my $dd = POSIX::2008::open(\*(Aq/tmp/\*(Aq); \& my $fd = POSIX::2008::openat($dd, \*(Aqfoobar\*(Aq, O_RDWR|O_CREAT); \& POSIX::2008::pwrite($fd, \*(Aqfuckyounsa\*(Aq, 50); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\s-1POSIX::2008\s0 contains many of the interfaces specified by \s-1POSIX.1\-2008\s0 that the core \s-1POSIX\s0 module withholds, implements in Perl or fucked up. .PP This module is provided \*(L"as is\*(R" unless someone volunteers to maintain it. .SH "FUNCTIONS" .IX Header "FUNCTIONS" .IP "a64l" 4 .IX Item "a64l" n = a64l(s); .IP "abort" 4 .IX Item "abort" \&\fIabort()\fR; .IP "abs" 4 .IX Item "abs" ui = abs(i); .IP "acos" 4 .IX Item "acos" y = acos(x); .IP "acosh" 4 .IX Item "acosh" y = acosh(x); .IP "alarm" 4 .IX Item "alarm" remaining_sec = alarm(sec); .IP "asin" 4 .IX Item "asin" y = asin(x); .IP "asinh" 4 .IX Item "asinh" y = asinh(x); .IP "atan2" 4 .IX Item "atan2" z = atan2(y, x); .IP "atan" 4 .IX Item "atan" y = atan(x); .IP "atanh" 4 .IX Item "atanh" y = atanh(x); .IP "atof" 4 .IX Item "atof" f = atof(s); .IP "atoi" 4 .IX Item "atoi" i = atoi(s); .IP "atol" 4 .IX Item "atol" l = atol(s); .IP "basename" 4 .IX Item "basename" s = basename(path); .IP "cabs" 4 .IX Item "cabs" r = cabs(re, im); .IP "cacos" 4 .IX Item "cacos" (re, im) = cacos(re, im); .IP "cacosh" 4 .IX Item "cacosh" (re, im) = cacosh(re, im); .IP "carg" 4 .IX Item "carg" phi = carg(re, im); .IP "casinh" 4 .IX Item "casinh" (re, im) = casinh(re, im); .IP "catan" 4 .IX Item "catan" (re, im) = catan(re, im); .IP "catanh" 4 .IX Item "catanh" (re, im) = catanh(re, im); .IP "catclose" 4 .IX Item "catclose" ret = catclose(catd); .IP "catgets" 4 .IX Item "catgets" s = catgets(catd, set_id, msg_id, dflt_string); .IP "catopen" 4 .IX Item "catopen" catd = catopen(name, oflag); .IP "cbrt" 4 .IX Item "cbrt" y = cbrt(x); .IP "ccos" 4 .IX Item "ccos" (re, im) = ccos(re, im); .IP "ccosh" 4 .IX Item "ccosh" (re, im) = ccosh(re, im); .IP "ceil" 4 .IX Item "ceil" y = ceil(x); .IP "cexp" 4 .IX Item "cexp" (re, im) = cexp(re, im); .IP "chdir" 4 .IX Item "chdir" ret = chdir(path); .IP "chmod" 4 .IX Item "chmod" ret = chmod(path, mode); .IP "chown" 4 .IX Item "chown" ret = chown(path, uid, gid); .IP "cimag" 4 .IX Item "cimag" im = cimag(re, im); .IP "clock_getcpuclockid" 4 .IX Item "clock_getcpuclockid" clock_id = clock_getcpuclockid(pid); .Sp pid defaults to $$. Returns undef on error. .IP "clock_getres" 4 .IX Item "clock_getres" (sec, nsec) = clock_getres(clock_id); .Sp clock_id defaults to \s-1CLOCK_REALTIME.\s0 Returns empty list on error. .IP "clock_gettime" 4 .IX Item "clock_gettime" (sec, nsec) = clock_gettime(clock_id); .Sp clock_id defaults to \s-1CLOCK_REALTIME.\s0 Returns empty list on error. .IP "clock_nanosleep" 4 .IX Item "clock_nanosleep" (rem_sec, rem_nsec) = clock_nanosleep(clock_id, flags, sec, nsec); .Sp In scalar context returns the remaining seconds as a floating point number. .IP "clock_settime" 4 .IX Item "clock_settime" ret = clock_settime(clock_id, sec, nsec); .IP "clog" 4 .IX Item "clog" (re, im) = clog(re, im); .IP "confstr" 4 .IX Item "confstr" s = confstr(name); .Sp \&\fIname\fR is one of the _CS_ integer constants. .IP "conj" 4 .IX Item "conj" (re, im) = conj(re, im); .IP "copysign" 4 .IX Item "copysign" xs = copysign(x, y); .IP "cos" 4 .IX Item "cos" y = cos(x); .IP "cosh" 4 .IX Item "cosh" y = cosh(x); .IP "cpow" 4 .IX Item "cpow" (re, im) = cpow(re_x, im_x, re_y, im_y); .IP "cproj" 4 .IX Item "cproj" (re, im) = cproj(re, im); .IP "creal" 4 .IX Item "creal" re = creal(re, im); .IP "csin" 4 .IX Item "csin" (re, im) = csin(re, im); .IP "csinh" 4 .IX Item "csinh" (re, im) = csinh(re, im); .IP "csqrt" 4 .IX Item "csqrt" (re, im) = csqrt(re, im); .IP "ctan" 4 .IX Item "ctan" (re, im) = ctan(re, im); .IP "ctanh" 4 .IX Item "ctanh" (re, im) = ctanh(re, im); .IP "dirname" 4 .IX Item "dirname" name = dirname(path); .IP "div" 4 .IX Item "div" (quot, rem) = div(numer, denom); .IP "dlclose" 4 .IX Item "dlclose" dlclose(dlhandle); .IP "dlerror" 4 .IX Item "dlerror" \&\fIdlerror()\fR; .IP "dlopen" 4 .IX Item "dlopen" dlhandle = dlopen(file, mode); .IP "dlsym" 4 .IX Item "dlsym" addr = dlsym(dlhandle, name); .IP "drand48" 4 .IX Item "drand48" r = \fIdrand48()\fR; .IP "endutxent" 4 .IX Item "endutxent" \&\fIendutxent()\fR; .IP "erand48" 4 .IX Item "erand48" (r, X0, X1, X2) = erand48(X0, X1, X2); .IP "erf" 4 .IX Item "erf" y = erf(x); .IP "erfc" 4 .IX Item "erfc" y = erfc(x); .IP "exp2" 4 .IX Item "exp2" y = exp2(x); .IP "expm1" 4 .IX Item "expm1" y = expm1(x); .IP "faccessat" 4 .IX Item "faccessat" ret = faccessat(dirfd, path, amode, flags); .Sp \&\fIflags\fR is the bitwise \s-1OR\s0 of zero or more of \s-1AT_EACCESS, AT_SYMLINK_NOFOLLOW.\s0 .IP "fchdir" 4 .IX Item "fchdir" ret = fchdir(dirfd); .IP "fchmod" 4 .IX Item "fchmod" ret = fchmod(fd, mode); .IP "fchmodat" 4 .IX Item "fchmodat" ret = fchmodat(dirfd, path, mode, flags); .Sp \&\fIflags\fR can be 0 or \s-1AT_SYMLINK_NOFOLLOW.\s0 .IP "fchown" 4 .IX Item "fchown" ret = fchown(fd, uid, gid); .IP "fchownat" 4 .IX Item "fchownat" ret = fchownat(dirfd, path, uid, gid, flags); .Sp \&\fIflags\fR can be 0 or \s-1AT_SYMLINK_NOFOLLOW.\s0 .IP "fdatasync" 4 .IX Item "fdatasync" ret = fdatasync(fd); .IP "fdim" 4 .IX Item "fdim" d = fdim(double x, double y); .IP "fegetround" 4 .IX Item "fegetround" round = \fIfegetround()\fR; .IP "fesetround" 4 .IX Item "fesetround" ret = fesetround(round); .IP "ffs" 4 .IX Item "ffs" pos = ffs(i); .IP "floor" 4 .IX Item "floor" y = floor(x); .IP "fma" 4 .IX Item "fma" r = fma(x, y, z); .IP "fmax" 4 .IX Item "fmax" m = fmax(x, y); .IP "fmin" 4 .IX Item "fmin" m = fmin(x, y); .IP "fmod" 4 .IX Item "fmod" m = fmod(x, y); .IP "fnmatch" 4 .IX Item "fnmatch" ret = fnmatch(pattern, string, flags); .Sp Returns 0 if \fIstring\fR matches \fIpattern\fR, \s-1FNM_NOMATCH\s0 if there is no match, undef if there is an error. .Sp \&\fIflags\fR is the bitwise \s-1OR\s0 of zero or more of \s-1FNM_NOESCAPE, FNM_PATHNAME, FNM_PERIOD, FNM_FILE_NAME, FNM_LEADING_DIR, FNM_CASEFOLD.\s0 .IP "fpclassify" 4 .IX Item "fpclassify" fpclassify(x); .Sp Returns one of \s-1FP_NAN, FP_INFINITE, FP_ZERO, FP_SUBNORMAL, FP_NORMAL.\s0 .IP "fstatat" 4 .IX Item "fstatat" (dev, ino, mode, nlink, uid, gid, rdev, size, atim_sec, mtim_sec, ctim_sec, blksize, blocks, atim_nsec, mtim_nsec, ctim_nsec) = fstatat(dirfd, path, flags); .Sp \&\fIflags\fR is the bitwise \s-1OR\s0 of zero or more of \s-1AT_SYMLINK_NOFOLLOW, AT_NO_AUTOMOUNT.\s0 .IP "fsync" 4 .IX Item "fsync" ret = fsync(fd); .IP "ftruncate" 4 .IX Item "ftruncate" ret = ftruncate(fd, length); .IP "futimens" 4 .IX Item "futimens" ret = futimens(fd, atime_sec, atime_nsec, mtime_sec, mtime_nsec); .Sp atime_sec and mtime_sec default to 0, atime_nsec and mtime_nsec default to \&\s-1UTIME_NOW.\s0 .IP "getdate" 4 .IX Item "getdate" (sec, min, hour, mday, mon, year, wday, yday, isdst) = getdate(string); .IP "getdate_err" 4 .IX Item "getdate_err" \&\fIgetdate_err()\fR returns the value of the getdate_err variable. .IP "getegid" 4 .IX Item "getegid" egid = \fIgetegid()\fR; .IP "geteuid" 4 .IX Item "geteuid" euid = \fIgeteuid()\fR; .IP "getgid" 4 .IX Item "getgid" gid = \fIgetgid()\fR; .IP "gethostid" 4 .IX Item "gethostid" hostid = \fIgethostid()\fR; .IP "gethostname" 4 .IX Item "gethostname" hostname = \fIgethostname()\fR; .IP "getitimer" 4 .IX Item "getitimer" (int_sec, int_usec, val_sec, val_usec) = getitimer(which); .Sp \&\fIwhich\fR is one of \s-1ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF.\s0 .IP "getpriority" 4 .IX Item "getpriority" prio = getpriority(which, who); .Sp \&\fIwhich\fR can be one of \s-1PRIO_PROCESS, PRIO_PGRP, PRIO_USER,\s0 defaults to \&\s-1PRIO_PROCESS.\s0 .Sp \&\fIwho\fR defaults to 0. .Sp Returns undef on error. .IP "getsid" 4 .IX Item "getsid" sid = getsid(pid); .Sp \&\fIpid\fR defaults to 0. .IP "getuid" 4 .IX Item "getuid" uid = \fIgetuid()\fR; .IP "getutxent" 4 .IX Item "getutxent" (user, id, line, pid, type, sec, usec) = \fIgetutxent()\fR; .Sp \&\fIgetutxent()\fR reads a line from the current file position in the utmp file. .IP "getutxid" 4 .IX Item "getutxid" (user, id, line, pid, type, sec, usec) = getutxid(ut_type, ut_id); .Sp \&\fIgetutxid()\fR searches forward from the current file position in the utmp file based upon \fIut_type\fR and \fIut_id\fR. If \fIut_type\fR is one of \s-1RUN_LVL, BOOT_TIME, NEW_TIME,\s0 or \s-1OLD_TIME,\s0 \fIgetutxid()\fR will find the first entry whose \&\fIut_type\fR field matches \fIut_type\fR. If \fIut_type\fR is one of \s-1INIT_PROCESS, LOGIN_PROCESS, USER_PROCESS,\s0 or \s-1DEAD_PROCESS,\s0 \fIgetutxid()\fR will find the first entry whose \fIut_id\fR field matches \fIut_id\fR. .IP "getutxline" 4 .IX Item "getutxline" (user, id, line, pid, type, sec, usec) = getutxline(ut_line); .Sp \&\fIgetutxline()\fR searches forward from the current file position in the utmp file. It scans entries whose \fIut_type\fR is \s-1USER_PROCESS\s0 or \s-1LOGIN_PROCESS\s0 and returns the first one whose \fIut_line\fR field matches \fIut_line\fR. .IP "hypot" 4 .IX Item "hypot" r = hypot(x, y); .IP "ilogb" 4 .IX Item "ilogb" y = ilogb(x); .IP "isalpha" 4 .IX Item "isalpha" Like \fIPOSIX::isalpha()\fR but returns 0 for the empty string. .IP "iscntrl" 4 .IX Item "iscntrl" Like \fIPOSIX::iscntrl()\fR but returns 0 for the empty string. .IP "isdigit" 4 .IX Item "isdigit" Like \fIPOSIX::isdigit()\fR but returns 0 for the empty string. .IP "isfinite" 4 .IX Item "isfinite" isfinite(x); .IP "isgraph" 4 .IX Item "isgraph" Like \fIPOSIX::isgraph()\fR but returns 0 for the empty string. .IP "isinf" 4 .IX Item "isinf" isinf(x); .IP "islower" 4 .IX Item "islower" Like \fIPOSIX::islower()\fR but returns 0 for the empty string. .IP "isnan" 4 .IX Item "isnan" isnan(x); .IP "isnormal" 4 .IX Item "isnormal" isnormal(x); .IP "isprint" 4 .IX Item "isprint" Like \fIPOSIX::isprint()\fR but returns 0 for the empty string. .IP "ispunct" 4 .IX Item "ispunct" Like \fIPOSIX::ispunct()\fR but returns 0 for the empty string. .IP "isspace" 4 .IX Item "isspace" Like \fIPOSIX::isspace()\fR but returns 0 for the empty string. .IP "isupper" 4 .IX Item "isupper" Like \fIPOSIX::isupper()\fR but returns 0 for the empty string. .IP "isxdigit" 4 .IX Item "isxdigit" Like \fIPOSIX::isxdigit()\fR but returns 0 for the empty string. .IP "j0" 4 .IX Item "j0" y = j0(x); .Sp \&\fIj0()\fR is the Bessel function of the first kind of order 0. .IP "j1" 4 .IX Item "j1" y = j1(x); .Sp \&\fIj1()\fR is the Bessel function of the first kind of order 1. .IP "jn" 4 .IX Item "jn" y = jn(n, x); .Sp \&\fIjn()\fR is the Bessel function of the first kind of order \fIn\fR. .IP "jrand48" 4 .IX Item "jrand48" (r, X0, X1, X2) = jrand48(X0, X1, X2); .IP "killpg" 4 .IX Item "killpg" ret = killpg(pgrp, sig); .IP "l64a" 4 .IX Item "l64a" s = l64a(n); .IP "ldexp" 4 .IX Item "ldexp" y = ldexp(x, exp); .IP "ldiv" 4 .IX Item "ldiv" (quot, rem) = ldiv(numer, denom); .IP "lgamma" 4 .IX Item "lgamma" y = lgamma(x); .IP "link" 4 .IX Item "link" ret = link(path1, path2); .IP "linkat" 4 .IX Item "linkat" ret = linkat(fd1, path1, fd2, path2, flags); .Sp \&\fIflags\fR can be 0 or \s-1AT_SYMLINK_FOLLOW.\s0 .IP "log1p" 4 .IX Item "log1p" y = log1p(x); .IP "log2" 4 .IX Item "log2" y = log2(x); .IP "logb" 4 .IX Item "logb" y = logb(x); .IP "lrand48" 4 .IX Item "lrand48" r = \fIlrand48()\fR; .IP "lstat" 4 .IX Item "lstat" ret = lstat(path); .IP "mkdir" 4 .IX Item "mkdir" ret = mkdir(path, mode); .IP "mkdirat" 4 .IX Item "mkdirat" ret = mkdirat(fd, path, mode); .IP "mkdtemp" 4 .IX Item "mkdtemp" name = mkdtemp(template); .IP "mkfifo" 4 .IX Item "mkfifo" ret = mkfifo(path, mode); .IP "mkfifoat" 4 .IX Item "mkfifoat" ret = mkfifoat(fd, path, mode); .IP "mknod" 4 .IX Item "mknod" ret = mknod(path, mode, dev); .IP "mknodat" 4 .IX Item "mknodat" ret = mknodat(fd, path, mode, dev); .IP "mkstemp" 4 .IX Item "mkstemp" (fd, name) = mkstemp(template); .IP "mrand48" 4 .IX Item "mrand48" \&\fImrand48()\fR; .IP "nanosleep" 4 .IX Item "nanosleep" (rem_sec, rem_nsec) = nanosleep(sec, nsec); .Sp In scalar context returns the remaining seconds as a floating point number. .IP "nearbyint" 4 .IX Item "nearbyint" y = nearbyint(x); .IP "nextafter" 4 .IX Item "nextafter" z = nextafter(x, y); .IP "nrand48" 4 .IX Item "nrand48" r = \fInrand48()\fR .IP "openat" 4 .IX Item "openat" ret = openat(fd, path, oflag, mode); .Sp \&\fIoflag\fR defaults to O_RDONLY, \fImode\fR defaults to 0666. .IP "open" 4 .IX Item "open" ret = open(path, oflag, mode); .Sp \&\fIoflag\fR defaults to O_RDONLY, \fImode\fR defaults to 0666. .IP "pread" 4 .IX Item "pread" bytes_read = pread(fd, buf, file_offset, nbytes[, buf_offset]); .Sp \&\fIpread()\fR reads \fInbytes\fR of data from the file descriptor \fIfd\fR at file offset \&\fIoffset\fR into the scalar \fIbuf\fR without changing the file offset. \fIbuf\fR will be enlarged automatically if necessary. .Sp \&\fIbuf_offset\fR may be specified to store the data at that position in \&\fIbuf\fR. Defaults to 0. If \fIbuf_offset\fR is past the end of \fIbuf\fR, \fIbuf\fR will be padded with zeros before appending the data. If \fIbuf_offset\fR is negative it is counted from the end of the string. .Sp Returns the number of bytes read, 0 at \s-1EOF,\s0 undef on error. .Sp Note that \fIpread()\fR deals with \fIbytes\fR not characters. .IP "ptsname" 4 .IX Item "ptsname" name = ptsname(fd); .IP "pwrite" 4 .IX Item "pwrite" bytes_written = pwrite(fd, buf, offset[, nbytes, buf_offset]); .Sp \&\fIpwrite()\fR writes data from the scalar \fIbuf\fR to the file descriptor \fIfd\fR at file offset \fIoffset\fR without changing the file offset. The file referenced by \&\fIfd\fR must be capable of seeking. .Sp \&\fInbytes\fR may be specified to write only that much bytes. If not specified or undef, everything from \fIbuf_offset\fR up to the end of \fIbuf\fR is written. .Sp \&\fIbuf_offset\fR may be specified to write data from that position in \&\fIbuf\fR. Defaults to 0. If \fIbuf_offset\fR is negative it is counted from the end of the string. .Sp Returns the number of bytes written, undef on error. .Sp Note that \fIpwrite()\fR deals with \fIbytes\fR not characters. .IP "random" 4 .IX Item "random" r = \fIrandom()\fR; .IP "read" 4 .IX Item "read" ret = read(fd, buf, nbytes); .Sp Like \fIPOSIX::read()\fR but returns 0 at \s-1EOF\s0 instead of \*(L"0 but true\*(R". .IP "readlink" 4 .IX Item "readlink" name = readlink(path); .Sp Returns undef on error. .IP "readlinkat" 4 .IX Item "readlinkat" name = readlinkat(dirfd, path); .Sp Returns undef on error. .IP "remainder" 4 .IX Item "remainder" r = remainder(x, y); .IP "remove" 4 .IX Item "remove" ret = remove(path); .Sp Like \fIPOSIX::remove()\fR but calls the C function instead of doing it in Perl. .IP "rename" 4 .IX Item "rename" ret = rename(old, new); .IP "renameat" 4 .IX Item "renameat" ret = renameat(olddirfd, oldpath, newdirfd, newpath); .IP "round" 4 .IX Item "round" r = round(x); .IP "scalbn" 4 .IX Item "scalbn" y = scalbn(x, n); .IP "seed48" 4 .IX Item "seed48" (old_seed1, old_seed2, old_seed3) = seed48(seed1, seed2, seed3); .IP "setegid" 4 .IX Item "setegid" ret = setegid(gid); .IP "seteuid" 4 .IX Item "seteuid" ret = seteuid(uid); .IP "setgid" 4 .IX Item "setgid" ret = setgid(gid); .IP "setitimer" 4 .IX Item "setitimer" (old_int_sec, old_int_usec, old_val_sec, old_val_usec) = setitimer(which, int_sec, int_usec, val_sec, val_usec); .Sp \&\fIwhich\fR is one of \s-1ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF.\s0 .IP "setpriority" 4 .IX Item "setpriority" ret = setpriority(value, which, who); .Sp \&\fIwhich\fR can be one of \s-1PRIO_PROCESS, PRIO_PGRP, PRIO_USER,\s0 defaults to \&\s-1PRIO_PROCESS.\s0 .Sp Returns true on success, undef on error. .Sp \&\fIwho\fR defaults to 0. .IP "setregid" 4 .IX Item "setregid" ret = setregid(rgid, egid); .IP "setreuid" 4 .IX Item "setreuid" ret = setreuid(ruid, euid); .IP "setuid" 4 .IX Item "setuid" ret = setuid(uid); .IP "setutxent" 4 .IX Item "setutxent" \&\fIsetutxent()\fR; .IP "sighold" 4 .IX Item "sighold" ret = sighold(sig); .IP "sigignore" 4 .IX Item "sigignore" ret = sigignore(sig); .IP "signbit" 4 .IX Item "signbit" b = signbit(x); .IP "sigpause" 4 .IX Item "sigpause" sigpause(sig); .IP "sigrelse" 4 .IX Item "sigrelse" ret = sigrelse(sig); .IP "sinh" 4 .IX Item "sinh" y = sinh(x); .IP "srand48" 4 .IX Item "srand48" srand48(seedval); .IP "srandom" 4 .IX Item "srandom" srandom(seed); .IP "stat" 4 .IX Item "stat" (dev, ino, mode, nlink, uid, gid, rdev, size, atim_sec, mtim_sec, ctim_sec, blksize, blocks, atim_nsec, mtim_nsec, ctim_nsec) = stat(path); .IP "strptime" 4 .IX Item "strptime" (sec, min, hour, mday, mon, year, wday, yday, isdst) = strptime(s, format[, sec, min, hour, mday, mon, year, wday, yday, isdst]); .Sp \&\fIstrptime()\fR converts the string \fIs\fR into a broken-down time according to the format string \fIformat\fR. The time fields may optionally be initialized in whole or in part and will be returned as initialized if they are not affected by the format string. Unprocessed uninitialized or undef fields are returned as undef. .Sp Returns an empty list on error. .Sp In scalar context returns the index of the first byte in \fIs\fR that was not processed or the byte length of \fIs\fR if the whole string was consumed or undef on error. .Sp As \fIstrptime()\fR acts on null-terminated strings, strings containing \s-1NUL\s0 bytes will only be processed up to the first \s-1NUL\s0 byte. .IP "symlink" 4 .IX Item "symlink" symlink(old, new); .IP "symlinkat" 4 .IX Item "symlinkat" ret = symlinkat(old, dirfd, new); .IP "sync" 4 .IX Item "sync" \&\fIsync()\fR; .IP "tan" 4 .IX Item "tan" y = tan(x); .IP "tanh" 4 .IX Item "tanh" y = tanh(x); .IP "tgamma" 4 .IX Item "tgamma" y = tgamma(x); .IP "truncate" 4 .IX Item "truncate" ret = truncate(path, length); .IP "trunc" 4 .IX Item "trunc" y = trunc(x); .IP "unlinkat" 4 .IX Item "unlinkat" ret = unlinkat(dirfd, path, flags); .Sp \&\fIflags\fR can be 0 or \s-1AT_REMOVEDIR.\s0 .IP "unlink" 4 .IX Item "unlink" ret = unlink(path); .IP "utimensat" 4 .IX Item "utimensat" ret = utimensat(dirfd, path, flags, atime_sec, atime_nsec, mtime_sec, mtime_nsec); .Sp \&\fIflags\fR can be 0 or \s-1AT_SYMLINK_NOFOLLOW,\s0 defaults to 0. .Sp \&\fIatime_sec\fR and \fImtime_sec\fR default to 0. \fIatime_nsec\fR and \fImtime_nsec\fR default to \s-1UTIME_NOW.\s0 .IP "y0" 4 .IX Item "y0" y = y0(x); .Sp \&\fIy0()\fR is the Bessel function of the second kind of order 0. .IP "y1" 4 .IX Item "y1" y = y1(x); .Sp \&\fIy1()\fR is the Bessel function of the second kind of order 1. .IP "yn" 4 .IX Item "yn" y = yn(n, x); .Sp \&\fIyn()\fR is the Bessel function of the second kind of order n. .SH "CONSTANTS" .IX Header "CONSTANTS" \&\s-1AT_EACCESS AT_EMPTY_PATH AT_FDCWD AT_NO_AUTOMOUNT AT_REMOVEDIR AT_SYMLINK_FOLLOW AT_SYMLINK_NOFOLLOW BOOT_TIME CLOCK_MONOTONIC CLOCK_MONOTONIC_RAW CLOCK_PROCESS_CPUTIME_ID CLOCK_REALTIME CLOCK_THREAD_CPUTIME_ID _CS_GNU_LIBC_VERSION _CS_GNU_LIBPTHREAD_VERSION _CS_PATH DEAD_PROCESS FNM_CASEFOLD FNM_FILE_NAME FNM_LEADING_DIR FNM_NOESCAPE FNM_NOMATCH FNM_PATHNAME FNM_PERIOD FP_INFINITE FP_NAN FP_NORMAL FP_SUBNORMAL FP_ZERO INIT_PROCESS ITIMER_PROF ITIMER_REAL ITIMER_VIRTUAL LOGIN_PROCESS NEW_TIME O_CLOEXEC O_DIRECTORY O_EXEC OLD_TIME O_NOFOLLOW O_RSYNC O_SEARCH O_SYNC O_TMPFILE O_TTY_INIT RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NOW RUN_LVL TIMER_ABSTIME USER_PROCESS UTIME_NOW UTIME_OMIT\s0 .SH "AUTHOR" .IX Header "AUTHOR" Initially hacked together by Carsten Gaebler. .SH "LICENCE" .IX Header "LICENCE" This library is free software. You can redistribute and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the \s-1COPYING\s0 file or http://www.wtfpl.net/ for more details.