Searched refs:fd (Results 401 - 425 of 2333) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dzfs_onexit.h53 extern int zfs_onexit_fd_hold(int fd, minor_t *minorp);
54 extern void zfs_onexit_fd_rele(int fd);
/freebsd-11-stable/crypto/heimdal/appl/login/
H A Dutmp_login.c136 int fd; local
151 if (ttyno > 0 && (fd = open(_PATH_UTMP, O_WRONLY, 0)) >= 0) {
152 lseek(fd, (long)(ttyno * sizeof(struct utmp)), SEEK_SET);
153 write(fd, &utmp, sizeof(struct utmp));
154 close(fd);
160 if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
161 write(fd, &utmp, sizeof(struct utmp));
162 close(fd);
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/
H A Dfaccessat.h38 faccessat(int fd, const char *path, int mode, int flag) argument
51 if (fchdir(fd) == -1) {
H A Dfstatat.h40 fstatat(int fd, const char *path, struct stat *buf, int flag) argument
48 if (fchdir(fd) == -1) {
H A Dsubr.h53 int wait_for_dir_init(int fd);
54 int wait_for_file_init(int fd);
H A Dunlinkat.h39 unlinkat(int fd, const char *path, int flag) argument
47 if (fchdir(fd) == -1) {
/freebsd-11-stable/contrib/pf/pflogd/
H A Dprivsep.c72 int i, fd, socks[2], cmd; local
152 fd = open(filename,
156 send_fd(socks[0], fd);
157 if (fd < 0)
162 close(fd);
202 int fd; local
212 fd = open(ren, O_CREAT|O_EXCL, 0);
213 if (fd >= 0) {
214 close(fd);
266 int cmd, fd; local
313 may_read(int fd, void *buf, size_t n) argument
336 must_read(int fd, void *buf, size_t n) argument
358 must_write(int fd, void *buf, size_t n) argument
[all...]
/freebsd-11-stable/lib/libc/sys/
H A Dopenat.c48 openat(int fd, const char *path, int flags, ...) argument
61 __libc_interposing[INTERPOS_openat])(fd, path, flags, mode));
/freebsd-11-stable/tools/bus_space/
H A Dbus.c45 int fd; member in struct:resource
62 if (ridtbl[rid].fd == -1)
74 ridtbl[rid].fd = INT_MAX;
88 if (r->fd == -1) {
114 r->fd = open(path, O_RDWR);
115 if (r->fd == -1)
118 if (ioctl(r->fd, PROTO_IOC_REGION, &region) == -1) {
119 close(r->fd);
120 r->fd = -1;
127 MAP_NOCORE | MAP_SHARED, r->fd,
[all...]
/freebsd-11-stable/usr.bin/cksum/
H A Dsum1.c47 csum1(int fd, uint32_t *cval, off_t *clen) argument
60 while ((nr = read(fd, buf, sizeof(buf))) > 0)
H A Dsum2.c46 csum2(int fd, uint32_t *cval, off_t *clen) argument
62 while ((nr = read(fd, buf, sizeof(buf))) > 0)
/freebsd-11-stable/usr.sbin/ctm/ctm/
H A Dctm_input.c29 Ffield(FILE *fd, MD5_CTX *ctx,u_char term) argument
35 if((i=getc(fd)) == EOF) {
65 Fbytecnt(FILE *fd, MD5_CTX *ctx, u_char term) argument
70 p = Ffield(fd,ctx,term);
84 Fdata(FILE *fd, int u_chars, MD5_CTX *ctx) argument
88 if(u_chars+1 != fread(p,1,u_chars+1,fd)) {
111 Fname(FILE *fd, MD5_CTX *ctx,u_char term,int qual, int verbose) argument
116 if ((p = Ffield(fd,ctx,term)) == NULL) return(NULL);
/freebsd-11-stable/usr.sbin/mptutil/
H A Dmptutil.h100 int mpt_read_config_page_header(int fd, U8 PageType, U8 PageNumber,
102 void *mpt_read_config_page(int fd, U8 PageType, U8 PageNumber,
104 void *mpt_read_extended_config_page(int fd, U8 ExtPageType, U8 PageVersion,
106 int mpt_write_config_page(int fd, void *buf, U16 *IOCStatus);
108 int mpt_raid_action(int fd, U8 Action, U8 VolumeBus, U8 VolumeID,
118 struct mpt_drive_list *mpt_pd_list(int fd);
122 int mpt_fetch_disks(int fd, int *ndisks,
127 int mpt_lookup_volume(int fd, const char *name, U8 *VolumeBus,
132 mpt_read_man_page(int fd, U8 PageNumber, U16 *IOCStatus) argument
135 return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_MANUFACTURIN
140 mpt_read_ioc_page(int fd, U8 PageNumber, U16 *IOCStatus) argument
155 mpt_vol_info(int fd, U8 VolumeBus, U8 VolumeID, U16 *IOCStatus) argument
163 mpt_vol_names(int fd, U8 VolumeBus, U8 VolumeID, U16 *IOCStatus) argument
171 mpt_pd_info(int fd, U8 PhysDiskNum, U16 *IOCStatus) argument
[all...]
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dport-tun.c62 int fd = -1; local
65 if ((fd = open("/dev/net/tun", O_RDWR)) == -1) {
91 if (ioctl(fd, TUNSETIFF, &ifr) == -1) {
98 debug("%s: tunnel mode %d fd %d", __func__, mode, fd);
100 debug("%s: %s mode %d fd %d", __func__, ifr.ifr_name, mode, fd);
102 return (fd);
105 close(fd);
123 int fd local
[all...]
/freebsd-11-stable/sbin/dhclient/
H A Dprivsep.c105 dispatch_imsg(struct interface_info *ifi, int fd) argument
117 buf_read(fd, &hdr, sizeof(hdr));
123 buf_read(fd, &medium_len, sizeof(medium_len));
130 buf_read(fd, medium, medium_len);
134 buf_read(fd, &reason_len, sizeof(reason_len));
141 buf_read(fd, reason, reason_len);
154 buf_read(fd, &lease, sizeof(lease));
156 buf_read(fd, &filename_len, sizeof(filename_len));
163 buf_read(fd, filename, filename_len);
167 buf_read(fd,
[all...]
/freebsd-11-stable/stand/efi/loader/arch/i386/
H A Di386_copy.c56 i386_readin(const int fd, vm_offset_t dest, const size_t len) argument
58 return (read(fd, PTOV(dest), len));
/freebsd-11-stable/usr.sbin/pciconf/
H A Derr.c142 list_errors(int fd, struct pci_conf *p) argument
149 sta = read_config(fd, &p->pc_sel, PCIR_STATUS, 2);
153 pcie = pci_find_cap(fd, p, PCIY_EXPRESS);
158 sta = read_config(fd, &p->pc_sel, pcie + PCIER_DEVICE_STA, 2);
162 aer = pcie_find_cap(fd, p, PCIZ_AER);
167 mask = read_config(fd, &p->pc_sel, aer + PCIR_AER_UC_STATUS, 4);
168 severity = read_config(fd, &p->pc_sel, aer + PCIR_AER_UC_SEVERITY, 4);
173 mask = read_config(fd, &p->pc_sel, aer + PCIR_AER_COR_STATUS, 4);
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/
H A Dprovider.c52 provider_register_sd(int32_t fd) argument
72 sd->fd = fd;
77 sd->fd = fd;
90 provider_register(profile_p const profile, bdaddr_p const bdaddr, int32_t fd, argument
113 provider->fd = fd;
/freebsd-11-stable/usr.sbin/dumpcis/
H A Dreadcis.c113 readcis(int fd) argument
116 return (read_tuples(fd));
194 read_tuples(int fd) argument
202 last_tl = tlist = read_one_tuplelist(fd, MDF_ATTR, (off_t) 0);
219 if (ck_linktarget(fd, offs, flag)) {
220 tl = read_one_tuplelist(fd, flag, offs);
234 ck_linktarget(fd, (off_t) 0, 0)) {
240 tlist->next = read_one_tuplelist(fd, 0, offs);
249 read_one_tuplelist(int fd, int flags, off_t offs) argument
264 ioctl(fd, PIOCRWFLA
324 ck_linktarget(int fd, off_t offs, int flag) argument
[all...]
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-dlpi.c230 if (getmsg(p->fd, &ctl, &data, &flags) < 0) {
263 ret = write(p->fd, buf, size);
353 int fd; local
391 if ((fd = open(cp, O_RDWR)) < 0) {
405 status = get_dlpi_ppa(fd, dname, unit, ppa, errbuf);
407 close(fd);
439 if ((fd = open(dname, O_RDWR)) < 0) {
451 if ((fd = open(dname2, O_RDWR)) < 0) {
494 return (fd);
519 p->fd
913 dl_doattach(int fd, int ppa, char *ebuf) argument
932 dl_dohpuxbind(int fd, char *ebuf) argument
1012 int fd; local
1079 int fd; local
1133 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
1152 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1434 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1454 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1461 dlokack(int fd, const char *what, char *bufp, char *ebuf) argument
1469 dlinforeq(int fd, char *ebuf) argument
1479 dlinfoack(int fd, char *bufp, char *ebuf) argument
1491 dlpassive(int fd, char *ebuf) argument
1508 dlrawdatareq(int fd, const u_char *datap, int datalen) argument
1607 get_dlpi_ppa(register int fd, register const char *device, register u_int unit, u_int *ppa, register char *ebuf) argument
1803 get_dlpi_ppa(register int fd, register const char *ifname, register u_int unit, u_int *ppa, register char *ebuf) argument
1857 dlpi_kread(register int fd, register off_t addr, register void *buf, register u_int len, register char *ebuf) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Interpreter/
H A Dembedded_interpreter.py62 def get_terminal_size(fd):
67 hw = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234'))
83 fd = sys.stdin.fileno()
85 if get_terminal_size(fd)[1] == 0:
88 old = termios.tcgetattr(fd)
91 new = termios.tcgetattr(fd)
94 termios.tcsetattr(fd, termios.TCSADRAIN, new)
101 termios.tcsetattr(fd, termios.TCSADRAIN, old)
/freebsd-11-stable/contrib/llvm-project/lldb/bindings/interface/
H A DSBLaunchInfo.i107 AddCloseFileAction (int fd);
110 AddDuplicateFileAction (int fd, int dup_fd);
113 AddOpenFileAction (int fd, const char *path, bool read, bool write);
116 AddSuppressFileAction (int fd, bool read, bool write);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp65 int prot, int flags, int fd, OFF_T offset) {
66 return (uptr)_REAL64(mmap)(addr, length, prot, flags, fd, offset);
77 DECLARE__REAL_AND_INTERNAL(uptr, close, fd_t fd) { argument
78 return _REAL(close)(fd);
91 DECLARE__REAL_AND_INTERNAL(uptr, read, fd_t fd, void *buf, uptr count) { argument
92 return _REAL(read)(fd, buf, count);
95 DECLARE__REAL_AND_INTERNAL(uptr, write, fd_t fd, const void *buf, uptr count) { argument
96 return _REAL(write)(fd, buf, count);
100 DECLARE__REAL_AND_INTERNAL(uptr, ftruncate, fd_t fd, uptr size) { argument
101 return ftruncate(fd, siz
64 DECLARE__REAL_AND_INTERNAL64(uptr, mmap, void *addr, uptr length, int prot, int flags, int fd, OFF_T offset) argument
112 DECLARE__REAL_AND_INTERNAL64(uptr, fstat, fd_t fd, void *buf) argument
116 internal_filesize(fd_t fd) argument
167 DECLARE__REAL_AND_INTERNAL64(uptr, getdents, fd_t fd, struct linux_dirent *dirp, unsigned int count) argument
172 DECLARE__REAL_AND_INTERNAL64(uptr, lseek, fd_t fd, OFF_T offset, int whence) argument
[all...]
/freebsd-11-stable/contrib/apr/poll/unix/
H A Dport.c220 apr_os_sock_t fd; local
239 fd = descriptor->desc.s->socketdes;
242 fd = descriptor->desc.f->filedes;
249 res = port_associate(pollset->p->port_fd, PORT_SOURCE_FD, fd,
273 apr_os_sock_t fd; local
283 fd = descriptor->desc.s->socketdes;
286 fd = descriptor->desc.f->filedes;
315 res = port_dissociate(pollset->p->port_fd, PORT_SOURCE_FD, fd);
319 * thread's call to port_getn() returned this fd and
320 * disassociated the fd fro
356 apr_os_sock_t fd; local
506 int ret, fd; local
528 int fd, ret; local
[all...]
/freebsd-11-stable/lib/libcasper/libcasper/
H A Dlibcasper_impl.c43 fd_is_valid(int fd) argument
46 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
64 errx(1, "Unable to secure fd");
66 errx(1, "Unable to secure fd");

Completed in 132 milliseconds

<<11121314151617181920>>