Home
last modified time | relevance | path

Searched refs:nxt_errno (Results 1 – 25 of 43) sorted by relevance

12

/unit/src/
H A Dnxt_credential.c20 nxt_errno = 0; in nxt_credential_get()
26 if (nxt_errno == 0) { in nxt_credential_get()
40 nxt_errno = 0; in nxt_credential_get()
46 if (nxt_errno == 0) { in nxt_credential_get()
106 uc->base_gid, nxt_errno); in nxt_credential_groups_get()
128 uc->base_gid, nxt_errno); in nxt_credential_groups_get()
222 if (nxt_errno == NXT_EPERM) { in nxt_credential_groups_get()
225 uc->user, uc->base_gid, nxt_errno); in nxt_credential_groups_get()
290 if (nxt_errno == EINVAL) { in nxt_credential_setuid()
318 if (nxt_errno == EINVAL) { in nxt_credential_setgids()
[all …]
H A Dnxt_file.c23 file->error = (file->fd == -1) ? nxt_errno : 0; in nxt_file_open()
65 file->error = (file->fd == -1) ? nxt_errno : 0; in nxt_file_openat2()
96 file->fd, file->name, nxt_errno); in nxt_file_close()
111 file->error = (n < 0) ? nxt_errno : 0; in nxt_file_write()
139 file->error = (n <= 0) ? nxt_errno : 0; in nxt_file_read()
264 file->error = (n != 0) ? nxt_errno : 0; in nxt_file_info()
282 file->error = (n != 0) ? nxt_errno : 0; in nxt_file_info()
413 fd, nxt_errno); in nxt_fd_nonblocking()
437 fd, nxt_errno); in nxt_fd_blocking()
455 err = (n == -1) ? nxt_errno : 0; in nxt_fd_write()
[all …]
H A Dnxt_semaphore.c42 nxt_thread_log_alert("sem_init(%p) failed %E", sem, nxt_errno); in nxt_sem_init()
55 nxt_thread_log_alert("sem_destroy(%p) failed %E", sem, nxt_errno); in nxt_sem_destroy()
68 nxt_thread_log_alert("sem_post(%p) failed %E", sem, nxt_errno); in nxt_sem_post()
92 err = nxt_errno; in nxt_sem_wait()
140 err = nxt_errno; in nxt_sem_wait()
H A Dnxt_malloc.c42 "malloc(%uz) failed %E", size, nxt_errno); in nxt_malloc()
84 ptr, size, nxt_errno); in nxt_realloc()
167 alignment, size, nxt_errno); in nxt_memalign()
213 "malloc(%uz) failed %E", size, nxt_errno); in nxt_memalign()
H A Dnxt_mem_map.c24 addr, len, protection, flags, fd, offset, nxt_errno); in nxt_mem_mmap()
38 nxt_thread_log_alert("munmap(%p, %uz) failed %E", addr, len, nxt_errno); in nxt_mem_munmap()
H A Dnxt_signal.c57 nxt_main_log_alert("sigprocmask(SIG_BLOCK) failed %E", nxt_errno); in nxt_event_engine_signals()
84 nxt_main_log_alert("sigaction(%d) failed %E", signo, nxt_errno); in nxt_signal_action()
121 nxt_main_log_alert("sigprocmask(SIG_BLOCK) failed %E", nxt_errno); in nxt_signal_thread_start()
H A Dnxt_external.c42 nxt_alert(task, "fcntl(%d, F_GETFD) failed %E", fd, nxt_errno); in nxt_external_fd_no_cloexec()
51 nxt_alert(task, "fcntl(%d, F_SETFD) failed %E", fd, nxt_errno); in nxt_external_fd_no_cloexec()
147 nxt_errno); in nxt_external_start()
203 nxt_alert(task, "execve(%s) failed %E", c->executable, nxt_errno); in nxt_external_start()
H A Dnxt_socketpair.c27 nxt_alert(task, "socketpair() failed %E", nxt_errno); in nxt_socketpair_create()
55 nxt_alert(task, "failed to set SO_PASSCRED %E", nxt_errno); in nxt_socketpair_create()
62 nxt_alert(task, "failed to set SO_PASSCRED %E", nxt_errno); in nxt_socketpair_create()
H A Dnxt_fs.c73 mnt->src, mnt->dst, fsname, flags, mnt->data, nxt_errno); in nxt_fs_mount()
219 path, nxt_errno); in nxt_fs_unmount()
229 nxt_thread_log_error(NXT_LOG_WARN, "unmount(%s) %E", path, nxt_errno); in nxt_fs_unmount()
264 && nxt_errno != EEXIST)) in nxt_fs_mkdir_all()
H A Dnxt_clone.c64 nxt_alert(task, "open(%s): %E", path, nxt_errno); in nxt_clone_credential_setgroups()
75 nxt_alert(task, "write(%s): %E", path, nxt_errno); in nxt_clone_credential_setgroups()
104 nxt_alert(task, "failed to open proc map (%s) %E", buf, nxt_errno); in nxt_clone_credential_map_write()
113 if (n == -1 && nxt_errno == EINVAL) { in nxt_clone_credential_map_write()
115 "allowed lines %E", buf, nxt_errno); in nxt_clone_credential_map_write()
119 nxt_errno); in nxt_clone_credential_map_write()
H A Dnxt_epoll_engine.c257 nxt_alert(&engine->task, "epoll_create() failed %E", nxt_errno); in nxt_epoll_create()
299 if (nxt_errno != NXT_ENOSYS) { in nxt_epoll_test_accept4()
633 engine->u.epoll.fd, change->op, ev->fd, nxt_errno); in nxt_epoll_commit_changes()
689 engine->u.epoll.signalfd.fd, nxt_errno); in nxt_epoll_add_signal()
712 engine->u.epoll.fd, EPOLL_CTL_ADD, fd, nxt_errno); in nxt_epoll_add_signal()
773 nxt_alert(&engine->task, "eventfd() failed %E", nxt_errno); in nxt_epoll_enable_post()
802 nxt_errno); in nxt_epoll_enable_post()
838 engine->u.epoll.eventfd.fd, nxt_errno); in nxt_epoll_eventfd_handler()
863 engine->u.epoll.eventfd.fd, nxt_errno); in nxt_epoll_signal()
898 err = (nevents == -1) ? nxt_errno : 0; in nxt_epoll_poll()
[all …]
H A Dnxt_isolation.c731 nxt_alert(task, "mkdir(%s) %E", dst, nxt_errno); in nxt_isolation_prepare_rootfs()
776 nxt_alert(task, "chdir(\"/\") %E", nxt_errno); in nxt_isolation_change_root()
809 nxt_alert(task, "error bind mounting rootfs %E", nxt_errno); in nxt_isolation_pivot_root()
814 nxt_alert(task, "failed to chdir(%s) %E", path, nxt_errno); in nxt_isolation_pivot_root()
819 nxt_alert(task, "failed to pivot_root %E", nxt_errno); in nxt_isolation_pivot_root()
828 nxt_alert(task, "failed to bind mount rootfs %E", nxt_errno); in nxt_isolation_pivot_root()
833 nxt_alert(task, "failed to umount old root directory %E", nxt_errno); in nxt_isolation_pivot_root()
874 nxt_alert(task, "failed to open %s %E", mount_path, nxt_errno); in nxt_isolation_make_private_mount()
969 nxt_errno); in nxt_isolation_make_private_mount()
1024 nxt_alert(task, "chdir(\"/\") %E", nxt_errno); in nxt_isolation_change_root()
[all …]
H A Dnxt_linux_sendfile.c105 err = (n == -1) ? nxt_errno : 0; in nxt_linux_event_conn_io_sendfile()
150 err = (n == -1) ? nxt_errno : 0; in nxt_linux_send()
205 err = (n == -1) ? nxt_errno : 0; in nxt_linux_sendmsg()
H A Dnxt_fiber.c112 nxt_log_alert(thr->log, "munmap() failed %E", nxt_errno); in nxt_fiber_create()
137 size, nxt_errno); in nxt_fiber_create_stack()
144 size, nxt_errno); in nxt_fiber_create_stack()
170 size, nxt_errno); in nxt_fiber_create_stack()
177 size, nxt_errno); in nxt_fiber_create_stack()
H A Dnxt_process.c312 nxt_alert(task, "clone() failed for %s %E", process->name, nxt_errno); in nxt_process_create()
318 nxt_alert(task, "fork() failed for %s %E", process->name, nxt_errno); in nxt_process_create()
772 nxt_alert(task, "failed to set no_new_privs %E", nxt_errno); in nxt_process_apply_creds()
830 nxt_alert(task, "posix_spawn(\"%s\") failed %E", name, nxt_errno); in nxt_process_execute()
857 name, nxt_errno); in nxt_process_execute()
866 nxt_alert(task, "execve(\"%s\") failed %E", name, nxt_errno); in nxt_process_execute()
928 nxt_alert(task, "setsid() failed %E", nxt_errno); in nxt_process_daemon()
964 nxt_alert(task, msg, nxt_errno); in nxt_process_daemon()
H A Dnxt_eventport_engine.c112 nxt_alert(&engine->task, "port_create() failed %E", nxt_errno); in nxt_eventport_create()
143 port, nxt_errno); in nxt_eventport_free()
329 port, PORT_SOURCE_FD, ev->fd, change->events, nxt_errno); in nxt_eventport_commit_changes()
341 port, PORT_SOURCE_FD, ev->fd, nxt_errno); in nxt_eventport_commit_changes()
445 nxt_alert(&engine->task, "port_send(%d) failed %E", port, nxt_errno); in nxt_eventport_signal()
503 err = (n < 0) ? nxt_errno : 0; in nxt_eventport_poll()
H A Dnxt_kqueue_engine.c195 nxt_alert(&engine->task, "kqueue() failed %E", nxt_errno); in nxt_kqueue_create()
233 fd, nxt_errno); in nxt_kqueue_free()
480 engine->u.kqueue.fd, nxt_errno); in nxt_kqueue_get_kevent()
582 nxt_alert(&engine->task, "sigaction(%d) failed %E", signo, nxt_errno); in nxt_kqueue_add_signal()
601 nxt_alert(&engine->task, "kevent(%d) failed %E", kqueue, nxt_errno); in nxt_kqueue_add_signal()
630 engine->u.kqueue.fd, nxt_errno); in nxt_kqueue_enable_post()
655 engine->u.kqueue.fd, nxt_errno); in nxt_kqueue_signal()
696 err = (nevents == -1) ? nxt_errno : 0; in nxt_kqueue_poll()
963 nxt_conn_accept_error(task, lev, "accept", nxt_errno); in nxt_kqueue_conn_io_accept()
H A Dnxt_port_memory.c219 nxt_log(task, NXT_LOG_WARN, "fstat(%FD) failed %E", fd, nxt_errno); in nxt_port_incoming_port_mmap()
228 nxt_log(task, NXT_LOG_WARN, "mmap() failed %E", nxt_errno); in nxt_port_incoming_port_mmap()
387 nxt_alert(task, "memfd_create(%s) failed %E", name, nxt_errno); in nxt_shm_open()
399 nxt_alert(task, "shm_open(SHM_ANON) failed %E", nxt_errno); in nxt_shm_open()
414 nxt_alert(task, "shm_open(%s) failed %E", name, nxt_errno); in nxt_shm_open()
423 nxt_errno); in nxt_shm_open()
433 nxt_alert(task, "ftruncate() failed %E", nxt_errno); in nxt_shm_open()
H A Dnxt_capability.c91 nxt_alert(task, "failed to get process capabilities: %E", nxt_errno); in nxt_capability_specific_set()
H A Dnxt_errno.h68 #define nxt_errno \ macro
H A Dnxt_pollset_engine.c125 nxt_alert(&engine->task, "pollset_create() failed %E", nxt_errno); in nxt_pollset_create()
152 ps, nxt_errno); in nxt_pollset_free()
504 engine->u.pollset.ps, fd, nxt_errno); in nxt_pollset_remove()
538 nxt_alert(&engine->task, "pollset_ctl(%d) failed: %d %E", ps, n, nxt_errno); in nxt_pollset_write()
568 err = (nevents == -1) ? nxt_errno : 0; in nxt_pollset_poll()
H A Dnxt_devpoll_engine.c131 nxt_alert(&engine->task, "open(\"/dev/poll\") failed %E", nxt_errno); in nxt_devpoll_create()
157 nxt_alert(&engine->task, "devpoll close(%d) failed %E", fd, nxt_errno); in nxt_devpoll_free()
517 engine->u.devpoll.fd, fd, nxt_errno); in nxt_devpoll_remove()
549 nxt_alert(&engine->task, "devpoll write(%d) failed %E", fd, nxt_errno); in nxt_devpoll_write()
583 err = (nevents == -1) ? nxt_errno : 0; in nxt_devpoll_poll()
H A Dnxt_errno.c80 || nxt_errno == NXT_EINVAL in nxt_strerror_start()
H A Dnxt_hpux_sendfile.c103 err = (n == -1) ? nxt_errno : 0; in nxt_hpux_event_conn_io_sendfile()
H A Dnxt_aix_send_file.c79 err = (n == -1) ? nxt_errno : 0; in nxt_aix_event_conn_io_send_file()

12