腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
open
()返回新文件描述符posix
posix
、
c++
、
system-calls
、
error-handling
我必须在posix中为
open
()设置
返回值
。如何返回
Linux
手册页中所说的“新文件描述符”:
返回值
open
()、openat()和creat()返回新的文件描述符,或者-1如果发生错误(在这种情况下,errno被适当设置)。我所做的是纠正这个系统调用的
返回值
。很明显它还出了点问题。
浏览 0
提问于2014-11-09
得票数 1
回答已采纳
2
回答
Windows中的套接字和句柄有什么区别?
windows
、
sockets
、
handle
、
file-descriptor
我正在努力使
Linux
服务器在Windows中运行。在Windows中,来自socket()和
open
()的
返回值
是否相同? 如果他们是一样的,我不知道如何处理。
浏览 0
提问于2011-01-13
得票数 10
回答已采纳
1
回答
如何检查sqlite3的
返回值
bash
、
sqlite
我正在从
Linux
上的bash脚本中处理sqlite3,并试图弄清楚一些事情。当我像这样打开数据库时: sqlite3> .
open
contacts.db我如何知道
返回值
是什么,即使数据库不存在,它也不会返回任何内容。另外,查询的
返回值
是什么: SELECT count(_id) FROM contacts;感谢您的帮助..
浏览 25
提问于2018-02-13
得票数 1
1
回答
dup
返回值
始终为零
c
、
file
、
posix
、
dup
types.h>#include <unistd.h> { printf("opened %d, duped: %d \n", fdo,fdd); 当我运行程序(在
Linux
2.6.32-279.19.1.el6.i686、Netbsd或Solaris 5.9上)时,我得到以下结果: mai
浏览 3
提问于2013-05-08
得票数 1
回答已采纳
1
回答
警告内核模块中未定义的"errno“
c
、
linux
、
linux-kernel
、
kernel
、
kernel-module
我在代码中包含了没有问题的<
linux
/errno.h>,并添加了extern int errno;。编辑:我的钩子打开的syscall如下所示: if(= NULL){ }} 当运行str
浏览 4
提问于2020-12-28
得票数 0
2
回答
在
open
sys调用中出现"Syscall param
open
(mode) contains byte(s)“
c
、
linux
、
io
、
system-calls
param
open
(mode) contains uninitialised byte(s)
open
的
返回值
为-2pathname缓冲区包含:0x720x2E0x61有关我的系统的信息: $gid=1000(rzetterberg) groups=1000(rzetterberg), ... et
浏览 0
提问于2013-07-04
得票数 3
回答已采纳
1
回答
os.
open
的误导性文档?
python
、
python-3.x
Mai 13 09:01 a.txt$ python[GCC 8.4.0] on
linux
Type "help", "copyright", "credits" or "license" for more information.>>> os.
open
('a.txt唯一指定的是关于os.<
浏览 5
提问于2020-05-13
得票数 0
2
回答
shell脚本中的
返回值
争用条件
linux
、
bash
、
shell
、
sh
、
race-condition
在shell脚本中,使用wget并获取其
返回值
。wget www.google.com then else fi在
linux
中有没有办法避免shell脚本
返回值
争用情况?苏赫迪普·辛格
浏览 2
提问于2014-03-05
得票数 2
2
回答
系统调用__NR_perf_event_
open
似乎不能在安卓系统上工作
android
、
performance
、
android-ndk
、
perf
我想在我的安卓应用中使用__NR_perf_event_
open
的系统调用。#include <sys/ioctl.h>#include <asm/unistd.h> { r
浏览 0
提问于2012-11-18
得票数 1
1
回答
C-
Linux
内核--协助使用current_uid()
c
、
linux
、
operating-system
、
interceptor
以下是困扰我的部分原因:#include <
linux
/module.h>asmlinkage long (*ref_sys
浏览 3
提问于2015-09-15
得票数 1
回答已采纳
3
回答
Linux
内核模块copy_to_user不工作
c
、
linux
、
kernel
我准备为Raspberry Pi编写一个
Linux
内核模块。一切都很好,只是当我尝试使用copy_to_user或put_user时,如果将其打印为llu,则总是
返回值
"34336“,而如果将其打印为字符,则
返回值
为零。return 1; return 0; } fd =
open
("/dev/systimer", O_RDONLY);
浏览 2
提问于2013-04-09
得票数 0
2
回答
VisualStudio2017 for
Linux
C++:“无法找到或打开符号文件”
c++
、
linux
、
gcc
、
visual-studio-2017
我使用VS
Linux
++开发支持来创建
Linux
++项目,然后在Virtualbox上连接Ubuntu远程调试。但是控制台打印了一些错误消息。Cannot find or
open
the symbol file.Cannot find or
open
the symbol file. Loaded '/lib64/ld-
linux
-x86-64.so.2'.Cannot find or
open
the symbol file.[Infer
浏览 7
提问于2017-09-09
得票数 0
回答已采纳
2
回答
尝试初始化内存映射文件时出现段冲突
c
下面是我用来创建memory mapped file的代码{ throw
浏览 0
提问于2008-10-30
得票数 1
5
回答
无法解释编译器警告
c
在声明fp的行上FILE* fp = fdopen(fd, "r"); // get a file pointer fpfdopen’我不理解这些警告,因为fopen的
返回值
是编辑:我包括stdio.h (我也在
Linux
上)。
浏览 4
提问于2012-09-02
得票数 12
回答已采纳
1
回答
文件io和伪终端的p/invoke声明
c#
、
linux
、
mono
、
pinvoke
翻译参数和
返回值
是微不足道的(不过,如果你能验证它们,我将不胜感激),但我找不到相应的库。{ [DllImport("so")] internal extern int
open
(string na
浏览 2
提问于2013-04-09
得票数 1
回答已采纳
1
回答
是否在shell脚本中返回大于255的值?
linux
、
shell
它有
返回值
(输出)。但是在那个
linux
盒子里,如果
返回值
大于255,它会被当作256=1,257=2等,请告诉我需要做哪些改变才能得到实际的
返回值
? 提前谢谢。
浏览 0
提问于2013-11-26
得票数 1
2
回答
在相同名称下创建共享内存段-返回错误?
c
、
linux
、
pipe
、
shared-memory
给定以下代码:int returnValue = shm_
open
(pathname, O_CREAT | O_TRUNC | O_RDWRint returnValue2 = shm_
open
(pathname, O_CREAT | O_TRUNC | O_RDWR, mode); // create a shared memory object我没有得到任何错误,并且
返回值
是正常的(0)。
浏览 3
提问于2012-07-31
得票数 0
回答已采纳
2
回答
python -在默认程序(
Linux
)中打开wav文件
python
、
audio
、
tkinter
[index]+".wav") # I have all files in array (without ".wav") try: os.system('xdg-
open
浏览 1
提问于2014-03-03
得票数 0
1
回答
PHP
open
_basedir -
返回值
?
php
、
return
、
open-basedir
我想在php脚本中返回
open
_basedir的值。我该怎么做呢?如果值为空,则应回显为空的值。 谢谢!
浏览 7
提问于2010-05-01
得票数 6
回答已采纳
1
回答
如何分配ifstream&从方法返回到变量?
c++
我有一个方法名
open
_file声明如下。ifstream&
open
_file(ifstream &in, const string &filename) in.close();}int main() ifstream val1; ifstreamval2 =
open
浏览 1
提问于2011-11-20
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Linux错误代码:errno.h与返回值-EINVAL
Win或Linux系统下用conda安装Open Babel
C+返回值类型后置(跟踪返回值类型)
snprintf函数返回值的含义
使用lldb修改函数返回值
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券