虽然我发现我们可以阅读一些有关Linux中的库调用(C库函数)和acsii的手册。但到目前为止我仍然没有找到任何关于C优先顺序的手册。
所以你现在可以推荐其他有用的关于 C 的手册。谢谢你!
PS:请注意,该手册可以在Linux中通过命令访问man
,所以请不要将那些在线手册或书籍作为答案。
答案1
man libc
涵盖 Linux 上的标准 C 库(glibc、Linux libc)。
在“另请参阅”部分中,有
系统调用 (2)、feature_test_macros(7)、手册页 (7)、标准 (7)
您可以通过以下方式查看详细信息
man 2 syscalls
man 7 feature_test_macros
man 7 man-pages
man 7 standards
答案2
据我所知,不像手册页,但有是 cppreference-doc
(apt install cppreference-doc-en-html
,或者... cppreference-doc-en-qch
如果您使用 KDE),这是一个打包版本C/C++ 参考 wiki(例如参见它的页面位于typedef
)。
C 和 C++ 部分是分开的,因此可以将其用作仅 C 参考。
答案3
您可以使用-k
以下方式进行搜索:
mohsen@debian:~/codes/amlak/amlak/src$ man -k socket
accept (2) - accept a connection on a socket
accept4 (2) - accept a connection on a socket
bind (2) - bind a name to a socket
bindresvport (3) - bind a socket to a privileged IP port
BIO_new_socket (3ssl) - socket BIO
BIO_s_socket (3ssl) - socket BIO
connect (2) - initiate a connection on a socket
dbus-cleanup-sockets (1) - clean up leftover sockets in a directory
filan (1) - Multipurpose relay (SOcket CAT)
fuser (1) - identify processes using files or sockets
getpeername (2) - get name of connected peer socket
getsockname (2) - get socket name
getsockopt (2) - get and set options on sockets
gpsdctl (8) - tool for sending commands to gpsd over its control socket
IO::Socket::INET6 (3pm) - Object interface for AF_INET|AF_INET6 domain sockets
IO::Socket::SSL (3pm) - - SSL sockets with IO::Socket interface
IO::Socket::SSL::Intercept (3pm) - - SSL interception (man in the middle)
IO::Socket::SSL::Utils (3pm) - - loading, storing, creating certificates and keys
irw (1) - sends data from Unix domain socket to stdout
lircd (8) - LIRC daemon decodes infrared signals and provides them on a Unix domain socket.
listen (2) - listen for connections on a socket
ncat (1) - Concatenate and redirect sockets
Net::SSL (3pm) - support for Secure Sockets Layer
Net::SSLeay::Handle (3pm) - Perl module that lets SSL (HTTPS) sockets be handled as standard file handles.
procan (1) - Multipurpose relay (SOcket CAT)
raw (7) - Linux IPv4 raw sockets
recv (2) - receive a message from a socket
recvfrom (2) - receive a message from a socket
recvmmsg (2) - receive multiple messages on a socket
recvmsg (2) - receive a message from a socket
rtnetlink (7) - Linux IPv4 routing socket
send (2) - send a message on a socket
sendmmsg (2) - send multiple messages on a socket
sendmsg (2) - send a message on a socket
sendto (2) - send a message on a socket
setsockopt (2) - get and set options on sockets
socat (1) - Multipurpose relay (SOcket CAT)
sockatmark (3) - determine whether socket is at out-of-band mark
socket (2) - create an endpoint for communication
socket (7) - Linux socket interface
socketcall (2) - socket system calls
socketpair (2) - create a pair of connected sockets
ss (8) - another utility to investigate sockets
systemd-udevd-control.socket (8) - Device event managing daemon
systemd-udevd-kernel.socket (8) - Device event managing daemon
unix (7) - sockets for local interprocess communication
unixcmd (1) - Simple remote command for unix sockets
unixterm (1) - (simple) Remote terminal for unix sockets
vdeterm (1) - (simple) Remote terminal for vde management sockets
vfs_smb_traffic_analyzer (8) - log Samba VFS read and write operations through a socket to a helper application
watchgnupg (1) - Read and print logs from a socket
X11::Protocol::Connection::INETSocket (3pm) - Perl module for IO::Socket::INET-based X11 connections
X11::Protocol::Connection::Socket (3pm) - Perl module base class for IO::Socket-based X11 connections
X11::Protocol::Connection::UNIXSocket (3pm) - Perl module for IO::Socket::UNIX-based X11 connections
您会在每个手册页前面看到一个数字,手册页按级别分类:
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
我认为你可以根据你的级别找到你的api,哦顺便说一下,man -a youmanpage,在所有级别显示你的手册页
例如man strtok
man -a passwd
:显示passwd命令和/etc/passwd格式
答案4
这GNU C 库参考手册是一本关于 ISO C 标准、特定于 POSIX 和其他 Unix 操作系统衍生产品的附加功能以及特定于 GNU 系统的扩展的综合手册。
您还可以查找任何 GNU C 库函数的手册页在线的。