UNIX环境高级编程----函数索引(部分)

来源:互联网 发布:三维人体软件 编辑:程序博客网 时间:2024/06/13 00:52

第二章:unix标准化及实现

sysconf (33)

pathconf(33)

fpathconf(33)

第三章:文件IO

open (48)

create (50)

close (50)

lseek(50)  

read(53)

write(54)

pread(59)

pwrite(59)

dup(60)

dup2(60)

sync(62)

fsync(62)

fdatasync(62)

fcntl(62)

ioctl(67)

第4章:文件和目录

stat(71)

fstat(71)

lstat(71)

access(78)

umask(79)

chomd(81)

fchomd(81)

chown(84)

fchown(84)

lchown(84)

truncate(86)

ftruncate(86)

link(89)

unlink(89)

remove(90)

rename(91)

symlink(94)

readlink(94)

utime(96)

mkdir(97)

rmdir(98)

chdir(102)

fchdir(102)

getcwd(103)

第5章:标准I/O库

fwide(109)

setbuf(111)

setvbuf(111)

fflush(112)

fopen(112)

freopen(112)

fdopen(112)

 fclose(114)

getc(115)

fgetc(115)

getchar(115)

ferror(115)

feof(115)

clearerr(115)

ungetc(115)

putc(116)

fputc(116)

putchar(116)

fgets(116)

gets(116)

fputs(117)

puts(117)

fread(119)

fwrite(119)

ftell(120)

fseek(120)

rewind(120)

ftello(121)

fseeko(121)

fgetpos(121)

fsetpos(121)

printf(121)

fprintf(121)

sprintf(121)

snprintf(121)

vprintf(123)

vfprintf(123)

vsprintf(123)

vsnprintf(123)

vscanf(125)

vfscanf(125)

vsscanf(125)

fileno(125)

tmpnam(127)

tmpfile(127)

tempnam(128)

mkstemp(129)

 第6章:系统数据文件和信息

getpwuid(135)

getpwnam(135)

getpwent(135)

setpwent(135)

endpwent(135)

getspnam(137)

getspent(137)

setspent(137)

endspent(137)

getgrgid(137)

getgrnam(137)

getgrent(137)

setgrent(137)
endgrent(137)

getgroups(138)

setgroups(138)

endgroups(138)

uname(141)

gethostname(142)

time(143)

gettimeofday(142)

localtime(144)

gmtime(144)

asctime(144)
ctime(144)

strftime(144)

exit(148)

_EXIT(148)

_exit(148)

atexit(149)

malloc(155)

calloc(155)

realloc(155)

free(155)

getenv(157)
putenv(158)
setenv(158)
unsetenv(158)

setjmp(161)

longjmp(161)

getrlimit(165)

setrlimit(165)

第8章:进程控制

getpid(171)
getppid(171)
getuid(172)

geteuid(172)
getgid(172)

getegid(172)
fork(172)

vfork(177)

wait(179)

waitpid(179)

waitid(184)

wait3(184)

wait4(184)

 exec*(188)

setuid(193)

setgid(193)

system(200)

getlogin(208)

times(208)

第9章:进程关系

 getpgrp(218)

getpgid(218)

setpgid(218)

setsid(219)

getsid(220)

tcgetpgrp(220)

tcsetpgrp(220)

tcgetsid(221)

 第10章:信号

signal(240)

kill(251)

raise(251)

alarm(252)

pause(252)

sigemptyset(257)

sigfillset(257)

sigaddset(257)

sigdelset(257)

sigismember(257)

sigprocmask(258)

sigpending(259)

sigaction(261)

sigsetjmp(266)

siglongjmp(266)

abort(274)

system(278)

sleep(280)

psignal(284)

strsignal(284)

sig2str(285)

str2sig(285)

 第11章:线程

pthread_equal(288)

pthread_self(288)

pthread_create(289)

pthread_exit(291)

pthread_join(291)

pthread_cancel(295)

pthread_cleanup_push(295)

pthread_cleanup_pop(295)

pthread_detach(297)

pthread_mutex_init(299)

pthread_mutex_destroy(299)

pthread_mutex_lock(300)

pthread_mutex_trylock(300)

pthread_mutex_unlock(300)

pthread_rwlock_init(306)

pthread_rwlock_destroy(306)

pthread_rwlock_rdlock(306)
pthread_rwlock_wrlock(306)

pthread_rwlock_unlock(306)

pthread_rwlock_tryrdlock(306)

pthread_rwlock_trywrlock(306)

pthread_cond_init(309)

pthread_cond_destroy(309)

pthread_cond_wait(309)

pthread_cond_timewait(309)

pthread_cond_signal(310)

pthread_cond_broadcast(310)

 第12章:线程控制

pthread_attr_init(314)

pthread_attr_destroy(314)

pthread_attr_getdetachstate(314)

pthread_attr_setdetachstate(314)

pthread_attr_getstack(316)

pthread_attr_setstack(316)
pthread_attr_getstacksize(317)

pthread_attr_setstacksize(317)

pthread_attr_getguardsize(317)

pthread_attr_setguardsize(317)

pthread_attr_getconcurrency(317)

pthread_attr_setconcurrency(317)

pthread_mutexattr_init(318)

pthread_mutexattr_destroy(318)

pthread_mutexattr_getpshared(318)

pthread_mutexattr_setpshared(318)

pthread_mutexattr_gettype(319)

pthread_mutexattr_settype(319)

pthread_rwlockattr_init(323)

pthread_rwlockattr_destroy(323)

pthread_rwlockattr_getpshared(323)

pthread_rwlockattr_setpshared(323)

phtread_condattr_init(324)

pthread_condattr_destroy(324)

pthread_condattr_getpshared(324)

pthread_condattr_setpshared(324)

ftrylockfile(325)

flockfile(325)

funlockfile(325)

getchar_unlocked(326)

getc_unlocked(326)
putchar_unlocked(326)

putc_unlocked(326)

pthread_key_create(328)

pthread_key_delete(329)

pthread_once_t  (329)

pthread_once(329)

pthread_getspecific(330)

pthread_setspecific(330)

pthread_setcancelstate(331)

pthread_testcancel(332)

pthread_testcanceltype(332)

pthread_sigmask(334)

sigwait(334)

pthread_kill(334)

pthread_atfork(337)

pread(340)

pwrite(340)

 第13章:守护进程

openlog(346)

syslog(346)

closelog(346)

setlogmask(346)