Searched refs:fd (Results 176 - 200 of 2846) sorted by relevance

1234567891011>>

/freebsd-current/share/examples/ses/srcs/
H A Dgetencstat.c55 int fd, nobj, f, i, verbose, quiet, errors; local
77 fd = open(*v, O_RDONLY);
78 if (fd < 0) {
85 if (ioctl(fd, ENCIOC_GETENCNAME, (caddr_t) &stri) == 0)
89 if (ioctl(fd, ENCIOC_GETENCID, (caddr_t) &stri) == 0)
92 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) {
94 (void) close(fd);
97 if (ioctl(fd, ENCIOC_GETENCSTAT, (caddr_t) &estat) < 0) {
99 (void) close(fd);
105 (void) close(fd);
[all...]
/freebsd-current/usr.sbin/makefs/cd9660/
H A Dcd9660_write.c63 FILE *fd; local
67 if ((fd = fopen(image, "w+")) == NULL) {
76 status = cd9660_copy_file(diskStructure, fd, 0,
86 status = cd9660_write_volume_descriptors(diskStructure, fd);
100 status = cd9660_write_path_tables(diskStructure, fd);
110 status = cd9660_write_file(diskStructure, fd, diskStructure->rootNode);
117 cd9660_write_boot(diskStructure, fd);
122 cd9660_write_filedata(diskStructure, fd,
127 fclose(fd);
134 fclose(fd);
143 cd9660_write_volume_descriptors(iso9660_disk *diskStructure, FILE *fd) argument
164 cd9660_write_path_table(iso9660_disk *diskStructure, FILE *fd, off_t sector, int mode) argument
235 cd9660_write_path_tables(iso9660_disk *diskStructure, FILE *fd) argument
261 cd9660_write_file(iso9660_disk *diskStructure, FILE *fd, cd9660node *writenode) argument
391 cd9660_write_filedata(iso9660_disk *diskStructure, FILE *fd, off_t sector, const unsigned char *buf, int numsecs) argument
425 cd9660_copy_file(iso9660_disk *diskStructure, FILE *fd, off_t start_sector, const char *filename) argument
470 cd9660_write_rr(iso9660_disk *diskStructure, FILE *fd, cd9660node *writenode, off_t offset, off_t sector) argument
[all...]
/freebsd-current/usr.sbin/mfiutil/
H A Dmfi_volume.c76 mfi_ld_get_list(int fd, struct mfi_ld_list *list, uint8_t *statusp) argument
79 return (mfi_dcmd_command(fd, MFI_DCMD_LD_GET_LIST, list,
84 mfi_ld_get_info(int fd, uint8_t target_id, struct mfi_ld_info *info, argument
90 return (mfi_dcmd_command(fd, MFI_DCMD_LD_GET_INFO, info,
95 mfi_ld_get_props(int fd, uint8_t target_id, struct mfi_ld_props *props) argument
100 return (mfi_dcmd_command(fd, MFI_DCMD_LD_GET_PROP, props,
105 mfi_ld_set_props(int fd, struct mfi_ld_props *props) argument
110 return (mfi_dcmd_command(fd, MFI_DCMD_LD_SET_PROP, props,
115 update_cache_policy(int fd, struct mfi_ld_props *old, struct mfi_ld_props *new) argument
160 if (mfi_ld_set_props(fd, ne
290 int error, fd, consumed; local
394 int error, fd; local
449 int error, fd; local
[all...]
/freebsd-current/usr.sbin/diskinfo/
H A Ddiskinfo.c70 static bool candelete(int fd);
71 static void speeddisk(int fd, off_t mediasize, u_int sectorsize);
72 static void commandtime(int fd, off_t mediasize, u_int sectorsize);
73 static void iopsbench(int fd, off_t mediasize, u_int sectorsize);
74 static void rotationrate(int fd, char *buf, size_t buflen);
75 static void slogbench(int fd, int isreg, off_t mediasize, u_int sectorsize);
76 static int zonecheck(int fd, uint32_t *zone_mode, char *zone_str,
85 int i, ch, fd, error, exitval = 0; local
150 fd = open(argv[i], (opt_w ? O_RDWR : O_RDONLY) | O_DIRECT);
151 if (fd <
291 candelete(int fd) argument
304 rotationrate(int fd, char *rate, size_t buflen) argument
324 rdsect(int fd, off_t blockno, u_int sectorsize) argument
338 rdmega(int fd) argument
416 speeddisk(int fd, off_t mediasize, u_int sectorsize) argument
540 commandtime(int fd, off_t mediasize, u_int sectorsize) argument
571 iops(int fd, off_t mediasize, u_int sectorsize) argument
632 iopsbench(int fd, off_t mediasize, u_int sectorsize) argument
660 parwrite(int fd, size_t size, off_t off) argument
691 slogbench(int fd, int isreg, off_t mediasize, u_int sectorsize) argument
726 zonecheck(int fd, uint32_t *zone_mode, char *zone_str, size_t zone_str_len) argument
[all...]
/freebsd-current/contrib/dialog/samples/
H A Dinputbox53 # use --output-fd to write to a different output than stderr
9 $DIALOG --title "INPUT BOX" --clear --output-fd 4 "$@" \
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-nextstep.c47 tcgetattr(int fd, struct termios *t) argument
49 return (ioctl(fd, TIOCGETA, t));
53 tcsetattr(int fd, int opt, const struct termios *t) argument
64 return (ioctl(fd, TIOCSETA, t));
66 return (ioctl(fd, TIOCSETAW, t));
68 return (ioctl(fd, TIOCSETAF, t));
75 int tcsetpgrp(int fd, pid_t pgrp) argument
77 return (ioctl(fd, TIOCSPGRP, &pgrp));
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dnet_write.c42 krb5_socket_t fd = *((krb5_socket_t *)p_fd); local
43 return net_write(fd, buf, len);
53 krb5_socket_t fd = *((krb5_socket_t *)p_fd); local
63 FD_SET(fd, &wfds);
72 ret = select(fd + 1, NULL, &wfds, NULL, tvp);
85 count = send (fd, cbuf, rem, 0);
96 if (!FD_ISSET(fd, &wfds)) {
101 count = write (fd, cbuf, rem);
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dfile.h42 getf_caps(int fd, cap_rights_t *rightsp) argument
46 if (fget(curthread, fd, rightsp, &fp) == 0)
/freebsd-current/tools/test/stress2/misc/
H A Dtmpfs6.sh71 int fd;
77 if ((fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, S_IRWXU)) == -1)
80 if ((len = write(fd, wbuffer, FILESIZE)) != FILESIZE)
83 fsync(fd);
85 if ((addr = mmap(NULL, FILESIZE, PROT_READ | PROT_WRITE , MAP_SHARED, fd, 0)) == MAP_FAILED)
88 if (lseek(fd, 0, SEEK_SET) != 0)
91 if ((len = write(fd, addr, FILESIZE)) != FILESIZE)
96 close(fd);
/freebsd-current/contrib/bmake/filemon/
H A Dfilemon_dev.c54 int fd; member in struct:filemon
77 for (i = 0; (F->fd = open(_PATH_FILEMON, O_RDWR|O_CLOEXEC)) == -1; i++) {
93 filemon_setfd(struct filemon *F, int fd) argument
97 if (ioctl(F->fd, FILEMON_SET_FD, &fd) == -1)
101 (void)close(fd);
118 return ioctl(F->fd, FILEMON_SET_PID, &pid);
126 /* Close the filemon device fd. */
127 if (close(F->fd) == -1 && error == 0)
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/
H A Dzpool_split_devices.ksh36 rm -fd $FILEDEV_PREFIX* $altroot
41 for filedev in "${fd[@]}"; do
52 typeset -A fd
53 fd[01]="$FILEDEV_PREFIX-01"
54 fd[02]="$FILEDEV_PREFIX-02"
55 fd[03]="$FILEDEV_PREFIX-03"
56 fd[11]="$FILEDEV_PREFIX-11"
57 fd[12]="$FILEDEV_PREFIX-12"
58 fd[13]="$FILEDEV_PREFIX-13"
61 typeset poolconfs=("mirror ${fd[0
[all...]
/freebsd-current/contrib/tcp_wrappers/
H A Dncr.c33 int fd = request->fd; local
49 if ((num_mod = ioctl(fd, I_LIST, NULL)) < 0)
51 if (ioctl(fd, I_LIST, &str_list) < 0)
58 if (ioctl(fd, I_POP, 0) < 0)
64 if (ioctl(fd, I_PUSH, "timod") < 0)
71 if (ioctl(fd, I_POP, 0) < 0)
78 if (ioctl(fd, I_PUSH, mod_buffer[i].l_name) < 0)
/freebsd-current/libexec/ftpd/
H A Dblacklist.c50 blacklist_notify(int action, int fd, const char *msg) argument
55 (void)blacklist_r(blstate, action, fd, msg);
/freebsd-current/usr.bin/mkimg/
H A Draw.c42 raw_write(int fd) argument
45 return (image_copyout(fd));
/freebsd-current/lib/libc/stdio/
H A Ddprintf.c35 dprintf(int fd, const char * __restrict fmt, ...) argument
41 ret = vdprintf(fd, fmt, ap);
/freebsd-current/stand/libsa/
H A Dpreload.c31 preload(int fd) argument
35 f = fd2open_file(fd);
H A Dioctl.c64 ioctl(int fd, u_long cmd, void *arg) argument
68 f = fd2open_file(fd);
H A Dfstat.c35 fstat(int fd, struct stat *sb) argument
39 f = fd2open_file(fd);
/freebsd-current/lib/libc/gen/
H A Dtermios.c48 tcgetattr(int fd, struct termios *t) argument
51 return (_ioctl(fd, TIOCGETA, t));
55 tcsetattr(int fd, int opt, const struct termios *t) argument
66 return (_ioctl(fd, TIOCSETA, t));
68 return (_ioctl(fd, TIOCSETAW, t));
70 return (_ioctl(fd, TIOCSETAF, t));
78 tcsetpgrp(int fd, pid_t pgrp) argument
83 return (_ioctl(fd, TIOCSPGRP, &s));
87 tcgetpgrp(int fd) argument
91 if (_ioctl(fd, TIOCGPGR
98 tcgetsid(int fd) argument
109 tcsetsid(int fd, pid_t pid) argument
194 tcsendbreak(int fd, int len __unused) argument
209 __libc_tcdrain(int fd) argument
217 tcdrain(int fd) argument
228 tcflush(int fd, int which) argument
250 tcflow(int fd, int action) argument
276 tcgetwinsize(int fd, struct winsize *w) argument
283 tcsetwinsize(int fd, const struct winsize *w) argument
[all...]
/freebsd-current/lib/libc/sys/
H A Dfcntl.c43 fcntl(int fd, int cmd, ...) argument
52 return (INTERPOS_SYS(fcntl, fd, cmd, arg));
H A Dreadv.c42 readv(int fd, const struct iovec *iov, int iovcnt) argument
44 return (INTERPOS_SYS(readv, fd, iov, iovcnt));
H A Dread.c41 read(int fd, void *buf, size_t nbytes) argument
43 return (INTERPOS_SYS(read, fd, buf, nbytes));
H A Dwritev.c42 writev(int fd, const struct iovec *iov, int iovcnt) argument
44 return (INTERPOS_SYS(writev, fd, iov, iovcnt));
H A Dwrite.c41 write(int fd, const void *buf, size_t nbytes) argument
43 return (INTERPOS_SYS(write, fd, buf, nbytes));
/freebsd-current/sys/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c62 int fd, error; local
64 if ((fd = open(path, O_RDWR|O_DIRECT|O_CLOEXEC)) < 0) {
75 error = efi_use_whole_disk(fd);
78 (void) fsync(fd);
79 (void) ioctl(fd, BLKFLSBUF);
81 (void) close(fd);
100 int fd; local
109 if ((fd = open(diskname, O_RDONLY|O_DIRECT|O_CLOEXEC)) >= 0) {
112 if ((err = efi_alloc_and_read(fd, &vtoc)) >= 0) {
117 (void) close(fd);
159 int fd, err; local
190 int fd; local
215 int rval, fd; local
[all...]

Completed in 242 milliseconds

1234567891011>>