Home
last modified time | relevance | path

Searched +full:translate +full:- +full:errno (Results 1 – 25 of 156) sorted by relevance

1234567

/third_party/ntfs-3g/ntfsprogs/
Dutils.c2 * utils.c - Part of the Linux-NTFS project.
4 * Copyright (c) 2002-2005 Richard Russon
5 * Copyright (c) 2003-2006 Anton Altaparmakov
7 * Copyright (c) 2005-2007 Yura Pakhuchiy
8 * Copyright (c) 2014 Jean-Pierre Andre
23 * along with this program (in the main directory of the Linux-NTFS
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
39 #include <errno.h>
109 " F) ntfsmount: Mount the volume read-only by using the 'ro' mount option.\n";
122 "(NOT to us!) that init scripts kill ntfsmount or mount.ntfs-fuse during\n"
[all …]
Dutils.h2 * utils.h - Part of the Linux-NTFS project.
4 * Copyright (c) 2002-2005 Richard Russon
20 * along with this program (in the main directory of the Linux-NTFS
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35 #include <errno.h>
99 /* MAX_PATH definition was missing in ntfs-3g's headers. */
106 * Macroes to hide the needs to translate formats on older Windows
126 * linux-ntfs's ntfs_mbstoucs has different semantics, so we emulate it with
127 * ntfs-3g's.
132 /* This simple utility function was missing from libntfs-3g. */
[all …]
/third_party/ntfs-3g/libntfs-3g/
Dreparse.c2 * reparse.c - Processing of reparse points
4 * This module is part of ntfs-3g library
6 * Copyright (c) 2008-2021 Jean-Pierre Andre
19 * along with this program (in the main directory of the NTFS-3G
21 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #include <errno.h>
116 static const char mappingdir[] = ".NTFS-3G/";
122 * Should only be used to translate paths stored with case insensitivity
134 ntfs_volume *vol = dir_ni->vol; in ntfs_fix_file_name()
149 mref = (u64)-1; /* default return (not found) */ in ntfs_fix_file_name()
[all …]
/third_party/node/test/pseudo-tty/
Dpty_helper.py1 import errno
18 if e.errno != errno.EIO:
39 if e.errno != errno.EIO:
55 # Don't translate \n to \r\n.
57 # Disable ECHOCTL. It's a BSD-ism that echoes e.g. \x04 as ^D but it
59 # driver and it's a no-op, the driver is just oblivious to the flag.
91 if e[0] != errno.EINTR:
/third_party/libuv/src/unix/
Ddarwin.c26 #include <errno.h>
31 #include <mach-o/dyld.h> /* _NSGetExecutablePath */
36 #include "darwin-stub.h"
45 loop->cf_state = NULL; in uv__platform_loop_init()
48 return UV__ERR(errno); in uv__platform_loop_init()
90 return UV__ERR(errno); in uv_exepath()
96 *size -= 1; in uv_exepath()
113 return UV_EINVAL; /* FIXME(bnoordhuis) Translate error. */ in uv_get_free_memory()
126 return UV__ERR(errno); in uv_get_total_memory()
178 return UV__ERR(errno); in uv_uptime()
[all …]
Dpipe.c26 #include <errno.h>
35 handle->shutdown_req = NULL; in uv_pipe_init()
36 handle->connect_req = NULL; in uv_pipe_init()
37 handle->pipe_fname = NULL; in uv_pipe_init()
38 handle->ipc = ipc; in uv_pipe_init()
73 err = UV__ERR(errno); in uv_pipe_bind()
83 handle->flags |= UV_HANDLE_BOUND; in uv_pipe_bind()
84 handle->pipe_fname = pipe_fname; /* Is a strdup'ed copy. */ in uv_pipe_bind()
85 handle->io_watcher.fd = sockfd; in uv_pipe_bind()
95 if (uv__stream_fd(handle) == -1) in uv__pipe_listen()
[all …]
/third_party/python/Doc/library/
Derrno.rst1 :mod:`errno` --- Standard errno system symbols
4 .. module:: errno
5 :synopsis: Standard errno system symbols.
7 ----------------
9 This module makes available standard ``errno`` system symbols. The value of each
11 borrowed from :file:`linux/include/errno.h`, which should be pretty
12 all-inclusive.
17 Dictionary providing a mapping from the errno value to the string name in the
18 underlying system. For instance, ``errno.errorcode[errno.EPERM]`` maps to
21 To translate a numeric error code to an error message, use :func:`os.strerror`.
[all …]
/third_party/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs01.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Translate the filesystem identifier string fsname into a filesystem type index.
13 #include <errno.h>
Dsysfs02.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Translate the filesystem type index fs_index into a null-terminated filesystem
15 #include <errno.h>
/third_party/rust/crates/rustix/ci/
Dtranslate-errno.patch2 Subject: [PATCH] Translate errno codes from host to target for `SO_ERROR`.
6 [here]: https://gitlab.com/qemu-project/qemu/-/issues/872
8 ---
9 linux-user/syscall.c | 3 +++
12 diff --git a/linux-user/syscall.c b/linux-user/syscall.c
14 --- a/linux-user/syscall.c
15 +++ b/linux-user/syscall.c
16 @@ -2767,6 +2767,9 @@ get_timeout:
26 --
/third_party/zlib/contrib/ada/
Dzlib.adb1 ----------------------------------------------------------------
2 -- ZLib for Ada thick binding. --
3 -- --
4 -- Copyright (C) 2002-2004 Dmitriy Anisimkov --
5 -- --
6 -- Open source license information is in the zlib.ads file. --
7 ----------------------------------------------------------------
9 -- $Id: zlib.adb,v 1.31 2004/09/06 06:53:19 vagul Exp $
29 ERRNO, literal
52 := (16#1f#, 16#8b#, -- Magic header
[all …]
/third_party/libxml2/os400/
Dlibxmlmain.c3 *** This is needed because the IBM-provided QADRTMAIN2 does not
4 *** properly translate arguments by default or if no locale is provided.
14 #include <errno.h>
65 bytecount += outbuf - dummybuf; in main()
66 } while (j == -1 && errno == E2BIG); in main()
95 /* Clean-up allocated items. */ in main()
/third_party/skia/third_party/externals/microhttpd/src/platform/
Dw32functions.c27 #include <errno.h>
37 * Return errno equivalent of last winsock error
38 * @return errno equivalent of last winsock error
103 * Works fine with both standard errno errnums
105 * @param errnum the errno or value from MHD_W32_errno_from_winsock_()
121 return "Socket operation on non-socket"; in MHD_W32_strerror_()
169 return "Cannot translate name"; in MHD_W32_strerror_()
279 return "Cannot translate name"; in MHD_W32_strerror_last_winsock_()
381 return "Invalid QoS provider-specific flowspec"; in MHD_W32_strerror_last_winsock_()
383 return "Invalid QoS provider-specific filterspec"; in MHD_W32_strerror_last_winsock_()
[all …]
/third_party/gstreamer/gstplugins_good/ext/raw1394/
Dgsthdv1394src.c17 * Boston, MA 02110-1301, USA.
20 * SECTION:element-hdv1394src
23 * Read MPEG-TS data from firewire port.
27 * gst-launch-1.0 hdv1394src ! queue ! decodebin name=d ! queue ! xvimagesink d. ! queue ! alsasink
30 * gst-launch-1.0 hdv1394src ! queue ! filesink location=mydump.ts
41 #include <errno.h>
59 #define CONTROL_SOCKETS(src) src->control_sock
60 #define WRITE_SOCKET(src) src->control_sock[1]
61 #define READ_SOCKET(src) src->control_sock[0]
78 #define DEFAULT_PORT -1
[all …]
Dgstdv1394src.c20 * Boston, MA 02110-1301, USA.
23 * SECTION:element-dv1394src
30 …* gst-launch-1.0 dv1394src ! queue ! dvdemux name=d ! queue ! dvdec ! xvimagesink d. ! queue ! als…
42 #include <errno.h>
63 #define CONTROL_SOCKETS(src) src->control_sock
64 #define WRITE_SOCKET(src) src->control_sock[1]
65 #define READ_SOCKET(src) src->control_sock[0]
95 #define DEFAULT_PORT -1
119 GST_STATIC_CAPS ("video/x-dv, "
167 gobject_class->set_property = gst_dv1394src_set_property; in gst_dv1394src_class_init()
[all …]
/third_party/elfutils/tests/
Dxlate_notes.c22 #include <errno.h>
49 if (fd == -1) in main()
51 printf ("cannot open '%s': %s\n", fname, strerror (errno)); in main()
58 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); in main()
65 printf ("cannot get Ehdr: %s\n", elf_errmsg (-1)); in main()
77 printf ("couldn't get shdr: %s\n", elf_errmsg (-1)); in main()
88 printf ("couldn't get raw data: %s\n", elf_errmsg (-1)); in main()
95 printf ("couldn't get data: %s\n", elf_errmsg (-1)); in main()
107 copy/translate the note data). This only handles in main()
118 src.d_buf = raw->d_buf + off; in main()
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
Dsyscalls.rs27 pub(crate) fn tcgetwinsize(fd: BorrowedFd<'_>) -> io::Result<Winsize> { in tcgetwinsize()
36 pub(crate) fn tcgetattr(fd: BorrowedFd<'_>) -> io::Result<Termios> { in tcgetattr()
45 pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result<Pid> { in tcgetpgrp()
62 ) -> io::Result<()> { in tcsetattr()
63 // Translate from `optional_actions` into an ioctl request code. On MIPS, in tcsetattr()
81 pub(crate) fn tcsendbreak(fd: BorrowedFd) -> io::Result<()> { in tcsendbreak()
86 pub(crate) fn tcdrain(fd: BorrowedFd) -> io::Result<()> { in tcdrain()
91 pub(crate) fn tcflush(fd: BorrowedFd, queue_selector: QueueSelector) -> io::Result<()> { in tcflush()
103 pub(crate) fn tcflow(fd: BorrowedFd, action: Action) -> io::Result<()> { in tcflow()
115 pub(crate) fn tcgetsid(fd: BorrowedFd) -> io::Result<Pid> { in tcgetsid()
[all …]
/third_party/libdrm/freedreno/kgsl/
Dkgsl_bo.c1 /* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */
40 return drmCommandWrite(dev->fd, DRM_KGSL_GEM_SETMEMTYPE, in set_memtype()
46 struct fd_bo *bo = &kgsl_bo->base; in bo_alloc()
47 if (!kgsl_bo->offset) { in bo_alloc()
49 .handle = bo->handle, in bo_alloc()
57 ret = drmCommandWriteRead(bo->dev->fd, DRM_KGSL_GEM_ALLOC, in bo_alloc()
60 ERROR_MSG("alloc failed: %s", strerror(errno)); in bo_alloc()
64 kgsl_bo->offset = req.offset; in bo_alloc()
76 *offset = kgsl_bo->offset; in kgsl_bo_offset()
90 * the bo-cache for kgsl?) in kgsl_bo_cpu_prep()
[all …]
/third_party/rust/crates/rustix/.github/workflows/
Dtest-users.yml10 runs-on: ${{ matrix.os }}
15 …build: [ubuntu, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, mipsel-linux, mips64e…
17 - build: ubuntu
18 os: ubuntu-latest
20 - build: i686-linux
21 os: ubuntu-latest
23 target: i686-unknown-linux-gnu
24 gcc_package: gcc-i686-linux-gnu
25 gcc: i686-linux-gnu-gcc
26 libc_package: libc-dev-i386-cross
[all …]
/third_party/ninja/src/
Dutil.cc7 // http://www.apache.org/licenses/LICENSE-2.0
27 #include <errno.h>
123 size_t len = path->size(); in CanonicalizePath()
128 path->resize(len); in CanonicalizePath()
140 // WARNING: this function is performance-critical; please benchmark in CanonicalizePath()
181 dst = components[component_count - 1]; in CanonicalizePath()
183 --component_count; in CanonicalizePath()
213 *len = dst - start - 1; in CanonicalizePath()
243 case '-': in IsKnownShellSafeCharacter()
280 result->append(input); in GetShellEscapedString()
[all …]
/third_party/python/Lib/
Dsocket.py12 socket() -- create a new socket object
13 socketpair() -- create a pair of new socket objects [*]
14 fromfd() -- create a socket object from an open file descriptor [*]
15 send_fds() -- Send file descriptor to the socket.
16 recv_fds() -- Recieve file descriptors from the socket.
17 fromshare() -- create a socket object from data received from socket.share() [*]
18 gethostname() -- return the current hostname
19 gethostbyname() -- map a hostname to its IP number
20 gethostbyaddr() -- map an IP number or hostname to DNS info
21 getservbyname() -- map a service name and a protocol name to a port number
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DProcess.inc1 //===- Unix/Process.cpp - Unix Process Implementation --------- -*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
54 //===----------------------------------------------------------------------===//
57 //===----------------------------------------------------------------------===//
112 if (EndOfMemory != ((char*)-1) && StartOfMemory != ((char*)-1))
113 return EndOfMemory - StartOfMemory;
144 // Disable crash reporting on Mac OS X 10.0-10.4
212 int NullFD = -1;
217 errno = 0;
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs50 pub(crate) fn open(filename: &CStr, flags: OFlags, mode: Mode) -> io::Result<OwnedFd> { in open()
77 ) -> io::Result<OwnedFd> { in openat()
95 ) -> io::Result<OwnedFd> { in openat2()
127 pub(crate) fn chmod(filename: &CStr, mode: Mode) -> io::Result<()> { in chmod()
139 pub(crate) fn chmodat(dirfd: BorrowedFd<'_>, filename: &CStr, mode: Mode) -> io::Result<()> { in chmodat()
144 pub(crate) fn fchmod(fd: BorrowedFd<'_>, mode: Mode) -> io::Result<()> { in fchmod()
155 ) -> io::Result<()> { in chownat()
170 pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown()
184 ) -> io::Result<()> { in mknodat()
208 pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result<u64> { in seek()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DProcess.inc1 //===- Unix/Process.cpp - Unix Process Implementation --------- -*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
50 //===----------------------------------------------------------------------===//
53 //===----------------------------------------------------------------------===//
79 if (page_size == -1)
80 return errorCodeToError(std::error_code(errno, std::generic_category()));
109 if (EndOfMemory != ((char*)-1) && StartOfMemory != ((char*)-1))
110 return EndOfMemory - StartOfMemory;
[all …]
/third_party/ffmpeg/libavcodec/
Dv4l2_context.c5 * Copyright (C) 2017 Jorge Ramirez <jorge.ramirez-ortiz@linaro.org>
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
46 return V4L2_TYPE_IS_OUTPUT(ctx->type) ? in ctx_to_m2mctx()
53 return ctx_to_m2mctx(ctx)->avctx; in logger()
58 return V4L2_TYPE_IS_MULTIPLANAR(fmt->type) ? fmt->fmt.pix_mp.width : fmt->fmt.pix.width; in v4l2_get_width()
63 return V4L2_TYPE_IS_MULTIPLANAR(fmt->type) ? fmt->fmt.pix_mp.height : fmt->fmt.pix.height; in v4l2_get_height()
73 cropcap.type = ctx->type; in v4l2_get_sar()
75 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_CROPCAP, &cropcap); in v4l2_get_sar()
86 struct v4l2_format *fmt1 = &ctx->format; in v4l2_resolution_changed()
87 int ret = V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? in v4l2_resolution_changed()
[all …]

1234567