Home
last modified time | relevance | path

Searched refs:fd (Results 1 - 25 of 261) sorted by relevance

1234567891011

/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
H A Dv4l2_dev.cpp34 CAMERA_LOGE("error: GetCurrentFd no camera fd\n"); in GetCurrentFd()
44 int fd; in start() local
63 fd = myFileFormat_->V4L2OpenDevice(devName); in start()
64 if (fd < 0) { in start()
65 CAMERA_LOGE("error:myFileFormat_->V4L2OpenDevice fail fd == %{public}d\n", fd); in start()
69 bufferType_ = static_cast<enum v4l2_buf_type>(myFileFormat_->V4L2SearchBufType(fd)); in start()
76 HosV4L2Dev::fdMatch.insert(std::make_pair(cameraID, fd)); in start()
83 int fd; in stop() local
98 fd in stop()
128 int rc, fd; ReqBuffers() local
155 int rc, fd; CreatBuffer() local
187 int rc, fd; QueueBuffer() local
211 int fd; ReleaseBuffers() local
293 CreateEpoll(int fd, const unsigned int streamNumber) CreateEpoll() argument
340 EraseEpoll(int fd) EraseEpoll() argument
364 int rc, fd; StartStream() local
417 int fd = GetCurrentFd(cameraID); StopStream() local
460 SetCtrlByCondition(int32_t fd, AdapterCmd command, const int* args, int &rc, std::shared_ptr<HosV4L2Control> myControl_) SetCtrlByCondition() argument
511 int32_t fd; UpdateSetting() local
539 int32_t fd; QuerySetting() local
574 int32_t fd; GetNumberCtrls() local
595 int32_t fd; SetNumberCtrls() local
616 int fd, rc; GetControls() local
643 int fd, rc; GetFmtDescs() local
665 ConfigFps(const int fd, DeviceFormat& format, V4l2FmtCmd command) ConfigFps() argument
692 int fd; ConfigSys() local
761 int rc, fd; Flush() local
[all...]
H A Dv4l2_control.cpp22 void HosV4L2Control::V4L2VidiocSCtrl (int fd, int ret, struct v4l2_ext_control* cList, int count) in V4L2VidiocSCtrl() argument
30 ret = ioctl(fd, VIDIOC_S_CTRL, &ctrl); in V4L2VidiocSCtrl()
39 RetCode HosV4L2Control::V4L2SetCtrls (int fd, std::vector<DeviceControl>& control, const int numControls) in V4L2SetCtrls() argument
43 CAMERA_LOGI("HosV4L2Control::V4L2SetCtrls in fd %{public}d\n", fd); in V4L2SetCtrls()
65 ret = ioctl(fd, VIDIOC_S_EXT_CTRLS, &ctrls); in V4L2SetCtrls()
67 V4L2VidiocSCtrl(fd, ret, cList, count); in V4L2SetCtrls()
71 CAMERA_LOGI("HosV4L2Control::V4L2SetCtrls out fd %{public}d\n", fd); in V4L2SetCtrls()
75 void HosV4L2Control::V4L2VidiocGExtCtrls (int fd, in argument
100 V4L2GetCtrls(int fd, std::vector<DeviceControl>& control, const int numControls) V4L2GetCtrls() argument
136 V4L2GetCtrl(int fd, unsigned int id, int& value) V4L2GetCtrl() argument
155 V4L2SetCtrl(int fd, unsigned int id, int value) V4L2SetCtrl() argument
174 ExtControl(int fd, struct v4l2_queryctrl *ctrl) ExtControl() argument
191 V4L2SetValue(int fd, std::vector<DeviceControl>& control, DeviceControl& ctrl, v4l2_queryctrl& qCtrl) V4L2SetValue() argument
224 V4L2EnumExtControl(int fd, v4l2_queryctrl &qCtrl, DeviceControl &ctrl) V4L2EnumExtControl() argument
248 V4L2EnumExtControls(int fd, std::vector<DeviceControl>& control) V4L2EnumExtControls() argument
270 V4L2GetControl(int fd, std::vector<DeviceControl>& control, unsigned int id) V4L2GetControl() argument
317 V4L2EnumControls(int fd, std::vector<DeviceControl>& control) V4L2EnumControls() argument
337 V4L2GetControls(int fd, std::vector<DeviceControl>& control) V4L2GetControls() argument
[all...]
H A Dv4l2_fileformat.cpp24 void HosFileFormat::V4L2GetCurrentFormat(int fd, std::vector<DeviceFormat>& fmtDesc, in V4L2GetCurrentFormat() argument
34 if (ioctl(fd, VIDIOC_ENUM_FRAMEINTERVALS, &fraMival) < 0) { in V4L2GetCurrentFormat()
53 RetCode HosFileFormat::V4L2SearchFormat(int fd, std::vector<DeviceFormat>& fmtDesc) in V4L2SearchFormat() argument
64 if (ioctl(fd, VIDIOC_ENUM_FMT, &enumFmtDesc) < 0) { in V4L2SearchFormat()
73 if (ioctl(fd, VIDIOC_ENUM_FRAMESIZES, &frmSize) < 0) { in V4L2SearchFormat()
82 V4L2GetCurrentFormat(fd, fmtDesc, frmSize, enumFmtDesc); in V4L2SearchFormat()
94 RetCode HosFileFormat::V4L2GetFmtDescs(int fd, std::vector<DeviceFormat>& fmtDesc) in V4L2GetFmtDescs() argument
100 if (fd < 0) { in V4L2GetFmtDescs()
101 CAMERA_LOGE("V4L2GetFmtDescs fd error\n"); in V4L2GetFmtDescs()
105 V4L2SearchBufType(fd); in V4L2GetFmtDescs()
119 V4L2GetCapability(int fd, const std::string& devName, const std::string& cameraId) V4L2GetCapability() argument
151 V4L2GetFmt(int fd, DeviceFormat& format) V4L2GetFmt() argument
185 V4L2SetFmt(int fd, DeviceFormat& format) V4L2SetFmt() argument
219 V4L2GetCrop(int fd, DeviceFormat& format) V4L2GetCrop() argument
246 V4L2SetCrop(int fd, DeviceFormat& format) V4L2SetCrop() argument
273 V4L2GetCropCap(int fd, DeviceFormat& format) V4L2GetCropCap() argument
334 V4L2CloseDevice(int fd) V4L2CloseDevice() argument
344 int fd = 0; V4L2MatchDevice() local
378 V4L2SearchBufType(int fd) V4L2SearchBufType() argument
[all...]
H A Dv4l2_stream.cpp30 RetCode HosV4L2Streams::V4L2StreamOn(int fd) in V4L2StreamOn() argument
37 rc = ioctl(fd, VIDIOC_STREAMON, &buf_type); in V4L2StreamOn()
46 RetCode HosV4L2Streams::V4L2StreamOff(int fd) in V4L2StreamOff() argument
53 rc = ioctl(fd, VIDIOC_STREAMOFF, &buf_type); in V4L2StreamOff()
62 RetCode HosV4L2Streams::V4L2StreamFPSGet(int fd, DeviceFormat& format) in V4L2StreamFPSGet() argument
69 rc = ioctl(fd, VIDIOC_G_PARM, &Stream_Parm); in V4L2StreamFPSGet()
81 RetCode HosV4L2Streams::V4L2StreamFPSSet(int fd, DeviceFormat& format) in V4L2StreamFPSSet() argument
91 rc = ioctl(fd, VIDIOC_S_PARM, &Stream_Parm); in V4L2StreamFPSSet()
H A Dv4l2_buffer.cpp58 RetCode ioctlWrapper(int fd, uint32_t buffCont, uint32_t buffType, uint32_t memoryType) in ioctlWrapper() argument
75 if (ioctl(fd, VIDIOC_REQBUFS, &req) < 0) { in ioctlWrapper()
88 if (ioctl(fd, VIDIOC_REQBUFS, &req) < 0) { in ioctlWrapper()
111 RetCode HosV4L2Buffers::V4L2ReqBuffers(int fd, int unsigned buffCont) in V4L2ReqBuffers() argument
115 auto executeRet = executor.Execute(result, fd, buffCont, bufferType_, memoryType_); in V4L2ReqBuffers()
127 RetCode HosV4L2Buffers::SetAndPushBuffer(int fd, const std::shared_ptr<FrameSpec>& frameSpec, v4l2_buffer buf) in SetAndPushBuffer() argument
152 int ret = mgr.ioctl(fd, IOC_QUEUE_BUFFER); in SetAndPushBuffer()
163 RetCode HosV4L2Buffers::V4L2QueueBuffer(int fd, const std::shared_ptr<FrameSpec>& frameSpec) in V4L2QueueBuffer() argument
167 CAMERA_LOGI("HosV4L2Buffers V4L2QueueBuffer in fd: %{public}d\n", fd); in V4L2QueueBuffer()
275 V4L2DequeueBuffer(int fd) V4L2DequeueBuffer() argument
356 V4L2AllocBuffer(int fd, const std::shared_ptr<FrameSpec>& frameSpec) V4L2AllocBuffer() argument
393 SetAdapterBuffer(int fd, struct v4l2_buffer &buf, const std::shared_ptr<FrameSpec>& frameSpec) SetAdapterBuffer() argument
493 V4L2ReleaseBuffers(int fd) V4L2ReleaseBuffers() argument
531 Flush(int fd) Flush() argument
[all...]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/
H A Dv4l2_control.h35 void V4L2VidiocSCtrl (int fd, int ret, struct v4l2_ext_control* cList, int count);
36 RetCode V4L2GetCtrl(int fd, unsigned int id, int& value);
37 RetCode V4L2SetCtrl(int fd, unsigned int id, int value);
38 RetCode V4L2GetControls(int fd, std::vector<DeviceControl>& control);
39 RetCode V4L2SetCtrls(int fd, std::vector<DeviceControl>& control, const int numControls);
40 void V4L2VidiocGExtCtrls (int fd, int ret, int &count,
42 RetCode V4L2GetCtrls(int fd, std::vector<DeviceControl>& control, const int numControls);
45 void V4L2SetValue(int fd, std::vector<DeviceControl>& control, DeviceControl& ctrl,
47 int ExtControl(int fd, struct v4l2_queryctrl *ctrl);
48 void V4L2EnumExtControl(int fd, v4l2_queryctr
[all...]
H A Dv4l2_fileformat.h38 RetCode V4L2GetFmt(int fd, DeviceFormat& format);
39 RetCode V4L2SetFmt(int fd, DeviceFormat& format);
40 RetCode V4L2GetCrop(int fd, DeviceFormat& format);
41 RetCode V4L2SetCrop(int fd, DeviceFormat& format);
42 RetCode V4L2GetCropCap(int fd, DeviceFormat& format);
43 RetCode V4L2GetFmtDescs(int fd, std::vector<DeviceFormat>& fmtDesc);
45 void V4L2CloseDevice(int fd);
47 int V4L2SearchBufType(int fd);
50 RetCode V4L2GetCapability(int fd, const std::string& dev_name, const std::string& cameraId);
51 void V4L2GetCurrentFormat(int fd, st
[all...]
H A Dv4l2_stream.h32 RetCode V4L2StreamOn(int fd);
33 RetCode V4L2StreamOff(int fd);
34 RetCode V4L2StreamFPSGet(int fd, DeviceFormat& format);
35 RetCode V4L2StreamFPSSet(int fd, DeviceFormat& format);
/drivers/peripheral/display/composer/vdi_base/src/
H A Dhdi_netlink_monitor.cpp51 int fd = -1; in ThreadInit() local
59 fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); in ThreadInit()
60 DISPLAY_CHK_RETURN(fd < 0, DISPLAY_FAILURE, DISPLAY_LOGE("socket fail")); in ThreadInit()
61 ret = setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in ThreadInit()
64 close(fd); in ThreadInit()
67 ret = bind(fd, reinterpret_cast<struct sockaddr *>(&snl), sizeof(struct sockaddr_nl)); in ThreadInit()
70 close(fd); in ThreadInit()
73 return fd; in ThreadInit()
97 int fd = -1;
99 fd
[all...]
/drivers/hdf_core/framework/sample/platform/uart/dev/
H A Dhello_uart_dev.c20 int fd; in main() local
23 fd = open("/dev/uartdev-5", O_RDWR); in main()
24 if (fd < 0) { in main()
25 HDF_LOGE("uartdev-5 open failed %d", fd); in main()
28 ret = write(fd, info, INFO_SIZE); in main()
32 ret = close(fd); in main()
34 HDF_LOGE("uartdev-5 close failed %d", fd); in main()
/drivers/interface/display/composer/hdifd_parcelable/
H A Dhdifd_parcelable.cpp37 HdifdParcelable::HdifdParcelable(int32_t fd) in HdifdParcelable() argument
38 : isOwner_(true), hdiFd_(fd) in HdifdParcelable()
49 bool HdifdParcelable::Init(int32_t fd) in Init() argument
54 HDF_LOGI("%{public}s: fd parcelable have been initialized", __func__); in Init()
57 if (fd < 0) { in Init()
60 hdiFd_ = dup(fd); in Init()
71 bool HdifdParcelable::WriteFileDescriptor(const int fd, Parcel& parcel) in WriteFileDescriptor() argument
73 if (fd < 0) { in WriteFileDescriptor()
76 int dupFd = dup(fd); in WriteFileDescriptor()
102 int fd in ReadFileDescriptor() local
130 int32_t fd = -1; Unmarshalling() local
[all...]
/drivers/peripheral/partitionslot/hal/src/
H A Dpartitionslot_manager.cpp77 int32_t PartitionSlotManager::WriteSlot(int fd, int32_t slot, off_t offset, off_t size) in WriteSlot() argument
79 if (lseek(fd, offset, SEEK_SET) < 0) { in WriteSlot()
84 if (write(fd, &slot, size) != size) { in WriteSlot()
93 int fd = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in ReadMisc() local
94 if (fd < 0) { in ReadMisc()
97 if (lseek(fd, offset, SEEK_SET) < 0) { in ReadMisc()
99 close(fd); in ReadMisc()
103 if (read(fd, &slot, size) != size) { in ReadMisc()
105 close(fd); in ReadMisc()
109 close(fd); in ReadMisc()
119 int fd = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); WriteSlotToMisc() local
[all...]
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dmct_protocol.cpp56 void MctProtocol::ReadEventData(int fd) in ReadEventData() argument
62 readLen = Read(fd, eventPacket_.data() + eventReadLength_, eventPacket_.size() - eventReadLength_); in ReadEventData()
65 HDF_LOGE("read fd[%d] err:%s", fd, buf); in ReadEventData()
68 HDF_LOGE("read fd[%d] readLen = 0.", fd); in ReadEventData()
79 readLen = Read(fd, eventPacket_.data() + eventReadLength_, eventPacket_.size() - eventReadLength_); in ReadEventData()
82 HDF_LOGE("read fd[%d] err:%s", fd, buf); in ReadEventData()
85 HDF_LOGE("read fd[ in ReadEventData()
102 ReadAclData(int fd) ReadAclData() argument
[all...]
H A Dh4_protocol.cpp33 int fd, HciDataCallback onAclReceive, HciDataCallback onScoReceive, HciDataCallback onEventReceive) in H4Protocol()
34 : hciFd_(fd), onAclReceive_(onAclReceive), onScoReceive_(onScoReceive), onEventReceive_(onEventReceive) in H4Protocol()
59 void H4Protocol::ReadData(int fd) in ReadData() argument
65 readLen = Read(fd, &packetType_, sizeof(packetType_)); in ReadData()
67 HDF_LOGE("read fd[%d]", fd); in ReadData()
70 HDF_LOGE("read fd[%d] readLen = 0.", fd); in ReadData()
78 readLen = Read(fd, hciPacket_.data() + readLength_, hciPacket_.size() - readLength_); in ReadData()
81 HDF_LOGE("read fd[ in ReadData()
32 H4Protocol( int fd, HciDataCallback onAclReceive, HciDataCallback onScoReceive, HciDataCallback onEventReceive) H4Protocol() argument
[all...]
H A Dhci_watcher.cpp41 bool HciWatcher::AddFdToWatcher(int fd, HciDataCallback callback) in AddFdToWatcher() argument
44 fds_[fd] = callback; in AddFdToWatcher()
49 bool HciWatcher::RemoveFdToWatcher(int fd) in RemoveFdToWatcher() argument
52 fds_.erase(fd); in RemoveFdToWatcher()
122 HDF_LOGW("fd[%d]", wakeupPipe_[0]); in WatcherThread()
129 for (auto &&fd : fds_) { in WatcherThread()
130 FD_SET(fd.first, &readFds); in WatcherThread()
131 nfds = std::max(fd.first, nfds); in WatcherThread()
162 for (auto &&fd : fds_) { in WatcherThread()
163 if (FD_ISSET(fd in WatcherThread()
[all...]
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_firmware.c43 int32_t fd; member
55 int32_t fd = -1; in OsalRequestFirmware() local
71 fd = open(path, O_RDONLY, S_IREAD); in OsalRequestFirmware()
72 if (fd == -1) { in OsalRequestFirmware()
77 if (fstat(fd, &fwStat) == -1) { in OsalRequestFirmware()
79 close(fd); in OsalRequestFirmware()
86 close(fd); in OsalRequestFirmware()
91 fw->fd = fd; in OsalRequestFirmware()
149 if (fw->fd in OsalReadFirmware()
[all...]
/drivers/peripheral/display/hal/default_standard/src/display_device/core/
H A Dhdi_netlink_monitor.cpp31 int fd; in Init() local
36 fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); in Init()
37 DISPLAY_CHK_RETURN((fd < 0), DISPLAY_FAILURE, DISPLAY_LOGE("socket create failed")); in Init()
38 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in Init()
39 ret = bind(fd, (struct sockaddr *)&snl, sizeof(struct sockaddr_nl)); in Init()
46 mScoketFd = fd; in Init()
/drivers/hdf_core/adapter/uhdf2/utils/src/
H A Dshared_mem.cpp24 int SharedMemSetProt(int fd, int prot) in SharedMemSetProt() argument
26 return OHOS::AshmemSetProt(fd, prot); in SharedMemSetProt()
29 int SharedMemGetSize(int fd) in SharedMemGetSize() argument
31 return OHOS::AshmemGetSize(fd); in SharedMemGetSize()
/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dhibernate.cpp171 int fd = open(SWAP_FILE_PATH, O_RDWR); in MkSwap() local
172 if (fd < 0) { in MkSwap()
188 if (lseek(fd, SWAP_HEADER_INFO_BOOTBITS_SIZE, SEEK_SET) < 0) { in MkSwap()
201 auto ret = write(fd, swap, len); in MkSwap()
206 if (lseek(fd, pagesize - SWAP_HEADER_MAGIC_SIZE, SEEK_SET) < 0) { in MkSwap()
210 if (write(fd, "SWAPSPACE2", SWAP_HEADER_MAGIC_SIZE) != SWAP_HEADER_MAGIC_SIZE) { in MkSwap()
214 fsync(fd); in MkSwap()
218 close(fd); in MkSwap()
281 int fd = open(SWAP_FILE_PATH, O_RDONLY | O_LARGEFILE | O_EXCL | O_CREAT, SWAP_FILE_MODE); in CreateSwapFile() local
282 if (fd in CreateSwapFile()
445 int fd = open(SWAP_FILE_PATH, O_RDONLY); GetResumeOffset() local
[all...]
/drivers/peripheral/codec/image/heif/src/
H A Dcodec_heif_encode_service.cpp65 auto releaseRes = [](int fd) { in DoHeifEncode()
66 if (fd > 0) { in DoHeifEncode()
67 close(fd); in DoHeifEncode()
71 releaseRes(one.sharedProperties.fd); in DoHeifEncode()
74 releaseRes(one.data.fd); in DoHeifEncode()
76 releaseRes(output.fd); in DoHeifEncode()
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_service_test.cpp223 int fd = open(sysBattTemPath.c_str(), O_RDONLY); in ReadTemperatureSysfs() local
224 if (fd < NUM_ZERO) { in ReadTemperatureSysfs()
229 readSize = read(fd, buf, sizeof(buf) - 1); in ReadTemperatureSysfs()
232 close(fd); in ReadTemperatureSysfs()
242 close(fd); in ReadTemperatureSysfs()
260 int fd = open(sysBattVolPath.c_str(), O_RDONLY); in ReadVoltageSysfs() local
261 if (fd < NUM_ZERO) { in ReadVoltageSysfs()
266 readSize = read(fd, buf, sizeof(buf) - 1); in ReadVoltageSysfs()
269 close(fd); in ReadVoltageSysfs()
279 close(fd); in ReadVoltageSysfs()
297 int fd = open(sysBattCapPath.c_str(), O_RDONLY); ReadCapacitySysfs() local
335 int fd = open(sysBattTotalEnergyPath.c_str(), O_RDONLY); ReadTotalEnergySysfs() local
373 int fd = open(sysBattCurrentAvgPath.c_str(), O_RDONLY); ReadCurrentAverageSysfs() local
411 int fd = open(sysBattCurrentNowPath.c_str(), O_RDONLY); ReadCurrentNowSysfs() local
449 int fd = open(sysBattChargeNowPath.c_str(), O_RDONLY); ReadRemainEnergySysfs() local
518 int fd = open(sysHealthStatePath.c_str(), O_RDONLY); ReadHealthStateSysfs() local
568 int fd = open(path, O_RDONLY, S_IRUSR | S_IRGRP | S_IROTH); ReadSysfsFile() local
654 int fd = open(sysChargeStatePath.c_str(), O_RDONLY); ReadChargeStateSysfs() local
689 int fd = open(sysChargeCounterPath.c_str(), O_RDONLY); ReadChargeCounterSysfs() local
727 int fd = open(sysPresentPath.c_str(), O_RDONLY); ReadPresentSysfs() local
763 int fd = open(sysTechnologyPath.c_str(), O_RDONLY); ReadTechnologySysfs() local
1019 auto fd = OpenUeventSocketTest(bt); HWTEST_F() local
[all...]
/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dbuffer_util.c34 handle->fd = -1; in AllocateNativeBufferHandle()
59 if (other->fd == -1) { in CloneNativeBufferHandle()
60 handle->fd = other->fd; in CloneNativeBufferHandle()
62 handle->fd = dup(other->fd); in CloneNativeBufferHandle()
63 if (handle->fd == -1) { in CloneNativeBufferHandle()
105 if (handle->fd != -1) { in FreeNativeBufferHandle()
106 close(handle->fd); in FreeNativeBufferHandle()
107 handle->fd in FreeNativeBufferHandle()
[all...]
/drivers/peripheral/audio/test/fuzztest/audio_config_fuzzer/pathselectconfig_fuzzer/
H A Dpathselectconfig_fuzzer.cpp39 int fd = mkstemp(tmpfile); in DoSomethingInterestingWithMyAPI() local
40 if (fd < 0) { in DoSomethingInterestingWithMyAPI()
43 write(fd, rawData, size); in DoSomethingInterestingWithMyAPI()
44 close(fd); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/audio/effect/test/fuzztest/effectconfig_fuzzer/
H A Deffectconfig_fuzzer.cpp36 int fd = mkstemp(tmpfile); in DoSomethingInterestingWithMyAPI() local
37 if (fd < 0) { in DoSomethingInterestingWithMyAPI()
40 write(fd, rawData, size); in DoSomethingInterestingWithMyAPI()
41 close(fd); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/audio/test/fuzztest/audio_config_fuzzer/audiocardconfig_fuzzer/
H A Daudiocardconfig_fuzzer.cpp35 int fd = mkstemp(tmpfile); in DoSomethingInterestingWithMyAPI() local
36 if (fd < 0) { in DoSomethingInterestingWithMyAPI()
39 write(fd, rawData, size); in DoSomethingInterestingWithMyAPI()
40 close(fd); in DoSomethingInterestingWithMyAPI()

Completed in 9 milliseconds

1234567891011