如何确定Unix / Linux系统上的可用系统调用 [英] How to determine available system calls on a Unix/Linux system

查看:69
本文介绍了如何确定Unix / Linux系统上的可用系统调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




在Unix标准

规范中有超过1000个已定义的系统调用,但是,其中大多数是可选的,<系统调用的可用性取决于操作系统的实现

本身。


我的问题是:你如何确定哪个系统调用是否可以在任何Unix / Linux机器上运行?


同样的问题可以用来确定可用的C库函数

on任何Unix / Linux机器?


最好的问候

Hi,

There are more than 1000 defined system calls in the Unix standard
specification, however, a majority of them are optional and the
availability of system calls are dependent on the OS implementation
itself.

The question I have is: How do you determine which system calls are
available on any Unix/Linux machine?

The same question goes for determening available C library functions
on any Unix/Linux machine?

Best regards

推荐答案

ds **** @ hotmail.com (markus)写道:
ds****@hotmail.com (markus) wrote:
我的问题是:你如何确定哪个在任何Unix / Linux机器上都可以使用系统调用吗?

同样的问题是在任何Unix / Linux机器上确定可用的C库函数吗?
The question I have is: How do you determine which system calls are
available on any Unix/Linux machine?

The same question goes for determening available C library functions
on any Unix/Linux machine?




如果电脑哈一个符合C的实现,_all_ C库

函数必须可用;否则它根本不是C

实现。

至于确定存在的是什么,那是'特定于操作系统的,因此是非主题的

on comp.lang.c.


Richard



If the computer has a conforming C implementation, _all_ C library
functions must be available; otherwise it simply isn''t a C
implementation.
As for determining what is present, that''s OS-specific, hence off-topic
on comp.lang.c.

Richard


Richard Bos< rl *@hoekstra-uitgeverij.nl> ;写道:
Richard Bos <rl*@hoekstra-uitgeverij.nl> wrote:
ds****@hotmail.com (markus)写道:
ds****@hotmail.com (markus) wrote:
我的问题是:如何确定在任何Unix / Linux机器上可以使用哪些系统调用?


你没有。这不关你的事。你和系统电话之间的接口就是C库的业务。


但如果你愿意,你会读到kernel''s syscall

源代码中的实现列表。

同样的问题是在任何Unix / Linux机器上确定可用的C库函数吗?
The question I have is: How do you determine which system calls are
available on any Unix/Linux machine?
You don''t. It''s none of your business. It''s the C library''s business to
interface between you and the system calls.

But if you wanted to, you would read the kernel''s syscall
implementation list in the source code.
The same question goes for determening available C library functions
on any Unix/Linux machine?


如果计算机具有符合要求的C实现,则_all_ C库
函数必须可用;否则它根本就不是C
实现。


嗯,无论函数是否有效,它们都会进入它。但是......

至于确定存在的是什么,这是特定于操作系统的,因此在comp.lang.c上是非主题的。

If the computer has a conforming C implementation, _all_ C library
functions must be available; otherwise it simply isn''t a C
implementation.
Well, whther the functions work or not also enters into it. However ...
As for determining what is present, that''s OS-specific, hence off-topic
on comp.lang.c.




在过去的20年里,我从未见过关于

comp.lang.c主题的任何内容,这就是为什么我像瘟疫一样避免去那里过去20年来,
。如果你想要语言法律,这是一个很好的地方,可以在那里闲逛和挑选尼特。


它有点像维特根斯坦。你问过他告诉过你的任何事情是

其他一些学科的问题,而不是哲学。


Peter



In the last 20 years, I have never seen anything that is on topic on
comp.lang.c, which is why I have avoided going there like the plague
during the last 20 years. If you want language lawyery, it''s an
excellent place to hang out and pick nits.

It''s sort of like Wittgenstein. Anything you asked him he told you was
some other disciplines kind of problem, not philosophy.

Peter

markus写道:

在Unix标准
规范中有超过1000个已定义的系统调用,但是,其中大多数是可选的并且
系统调用的可用性取决于操作系统的实现。

我的问题是:如何确定在任何Unix / Linux机器上可用的系统调用? ?

同样的问题是在任何Unix / Linux机器上确定可用的C库函数

There are more than 1000 defined system calls in the Unix standard
specification, however, a majority of them are optional and the
availability of system calls are dependent on the OS implementation
itself.

The question I have is: How do you determine which system calls are
available on any Unix/Linux machine?

The same question goes for determening available C library functions
on any Unix/Linux machine?




所有指定的函数在任何托管计算机上都可以使用ISO C标准

。还有其他东西是系统

依赖和关于clc的非主题


因此使用这种非标准调用的代码应该在
$ b中$ b隔离系统相关模块,仅在系统上讨论

特定新闻组。最重要的是,他们不应该交叉发布到他们是OT的
团体。


-

Chuck F(cb ********@yahoo.com)(cb********@worldnet.att.net)

可用于咨询/临时嵌入式和系统。

< http://cbfalconer.home.att.net>使用worldnet地址!



ALL the functions specified in the ISO C standard should be
available on any hosted machine. Anything else is system
dependant and off-topic on c.l.c.

Thus code that uses such non-standard calls should be in an
isolated system dependant module, and discussed only on system
specific newsgroups. Above all they should not be cross-posted to
groups where they are OT.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!


这篇关于如何确定Unix / Linux系统上的可用系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆