Searched refs:fd (Results 201 - 225 of 1995) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/
H A Dtst.fds.ksh31 #define DUMPFIELD(fd, fmt, field) \
33 printf("%d: field =fmt\n", fd, fds[fd].field);
39 #define DUMP(fd) \
40 DUMPFIELD(fd, %s, fi_name); \
41 DUMPFIELD(fd, %s, fi_dirname); \
42 DUMPFIELD(fd, %s, fi_pathname); \
43 DUMPFIELD(fd, %d, fi_offset); \
44 DUMPFIELD(fd, %s, fi_fs); \
45 DUMPFIELD(fd,
[all...]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dlintsup.c46 regular32(const char *file, int fd, Elf *elf, uint_t flags, argument
49 return (regular64(file, fd, elf, flags, wname, wfd, osabi));
53 regular64(const char *file, int fd, Elf *elf, uint_t flags, argument
56 return (regular32(file, fd, elf, flags, wname, wfd, osabi));
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Dlintsup.c50 output32(const char *prog, int fd, const char *ofile, ushort_t mach, argument
53 return (output64(prog, fd, ofile, mach, odp));
63 output64(const char *prog, int fd, const char *ofile, ushort_t mach, argument
66 return (output32(prog, fd, ofile, mach, odp));
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Datomicio.c44 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) argument
51 pfd.fd = fd;
54 res = (f) (fd, s + pos, n - pos);
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfat.c60 seekFAT(int fd) argument
68 return (lseek64(fd, seekto, SEEK_SET));
72 getFAT(int fd) argument
81 (void) close(fd);
84 if (seekFAT(fd) < 0) {
87 (void) close(fd);
93 if ((bytesRead = read(fd, TheFAT, FATSize)) != FATSize) {
101 (void) close(fd);
117 writeFATMods(int fd) argument
124 (void) close(fd);
162 checkFAT32CleanBit(int fd) argument
[all...]
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Dutils.h32 char **get_string_array_from_fd(int fd);
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Ddumpaccess.c88 int fd; local
91 if ((fd = open_locked(file, "w", MODE_READ)) < 0)
95 fdprintf (fd, "%s\n", *pl);
100 close(fd);
/illumos-gate/usr/src/cmd/lp/lib/users/
H A Dstorepri.c69 output_tbl(int fd, struct user_priority *ppri_tbl) argument
73 fdprintf(fd, "%d\n%d:\n", ppri_tbl->deflt, ppri_tbl->deflt_limit);
78 fdprintf(fd, "%d:", limit);
79 fdprintlist(fd, ppri_tbl->users[limit - PRI_MIN]);
/illumos-gate/usr/src/man/man7fs/
H A DMakefile27 fd.7fs \
42 stderr.7fs := LINKSRC = fd.7fs
43 stdin.7fs := LINKSRC = fd.7fs
44 stdout.7fs := LINKSRC = fd.7fs
/illumos-gate/usr/src/boot/lib/libstand/
H A Dwrite.c70 write(fd, dest, bcount)
71 int fd;
75 struct open_file *f = &files[fd];
78 if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_WRITE)) {
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drtime_tli.c79 int fd = -1; local
85 if ((fd = t_open(nconf->nc_device, O_RDWR, NULL)) == -1) {
89 if (t_bind(fd, NULL, NULL) < 0) {
113 if (t_sndudata(fd, &tu_data) == -1) {
117 pfd.fd = fd;
126 if (t_rcvudata(fd, &tu_data, &flag) < 0) {
138 if (t_connect(fd, &sndcall, NULL) == -1) {
142 if (t_rcv(fd, (char *)&thetime, (uint_t)sizeof (thetime), &flag)
157 if (fd !
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c55 corrupt(int fd, unsigned char *buf, int len) argument
77 if ((rv = ioctl(fd, DTRACEIOC_ENABLE, buf)) == -1) {
99 close(fd);
106 if (new != fd) {
107 dup2(new, fd);
135 if ((rv = ioctl(fd, DTRACEIOC_ENABLE, buf)) > 0) {
159 int err, fd, len; local
196 fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDWR);
198 if (fd == -1)
201 corrupt(fd, cop
[all...]
/illumos-gate/usr/src/tools/ctf/ctfstrip/
H A Dctfstrip.c71 int fd; local
73 fd = open(filename, O_RDONLY);
74 if (fd == -1) {
79 if (fstat(fd, &sb) == -1) {
81 (void) close(fd);
87 (void) close(fd);
93 (void) close(fd);
97 if (read(fd, elfbuf, ELFLEN) != ELFLEN) {
99 (void) close(fd);
105 (void) close(fd);
[all...]
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c57 int plus, oflag, fd; local
77 fd = open64(file, oflag, 0666); /* mapped to open() for V9 */
79 fd = open(file, oflag, 0666);
81 if (fd < 0)
85 iop->_file = fd;
87 if (fd <= _FILE_FD_MAX) {
88 SET_FILE(iop, fd);
89 } else if (_file_set(iop, fd, mode) != 0) {
91 (void) close(fd);
97 if ((lseek64(fd,
[all...]
/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrd.c195 int fd = open(rdc_devr, O_RDONLY); local
197 if (fd < 0)
200 return (rdc_fdr = fd);
220 int fd; local
232 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL);
233 if (fd == -1) {
237 fd = t_open(nconf->nc_device, O_RDWR, NULL);
239 if (fd == -1) {
254 if (ioctl(fd, I_POP, 0) < 0) {
256 if (t_close(fd)
335 rdcd_log_tli_error(char *tli_name, int fd, struct netconfig *nconf) argument
681 reuseaddr(int fd) argument
813 add_to_poll_list(int fd, struct netconfig *nconf) argument
894 remove_from_poll_list(int fd) argument
923 int fd; local
965 conn_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument
1018 discon_get(int fd, struct netconfig *nconf, struct conn_ind **connp) argument
1055 cots_listen_event(int fd, int conn_index) argument
1186 do_poll_cots_action(int fd, int conn_index) argument
1317 do_poll_clts_action(int fd, int conn_index) argument
1624 rdcsvc(int fd, struct netbuf addrmask, struct netconfig *nconf) argument
1683 int fd; local
1849 set_addrmask(int fd, struct netconfig *nconf, struct netbuf *mask) argument
[all...]
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-cancel.c41 int fd; local
52 if ((fd = lpd_open(svc, 'c', list, 15)) < 0)
56 if (fdgets(buf, sizeof (buf), fd) != NULL) {
68 close(fd);
77 int fd; local
84 if ((fd = lpd_open(svc, 'c', NULL, 15)) < 0)
91 while (fdgets(buf, sizeof (buf), fd) != NULL) {
118 close(fd);
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c59 static void restore_default_chars(int32_t fd,
63 format_floppy(int32_t fd, void *ip) argument
134 (void) ioctl(fd, FDDEFGEOCHAR, NULL);
137 if (ioctl(fd, DKIOCINFO, &dkinfo) < 0) {
144 if (ioctl(fd, DKIOCGAPART, &allmap) < 0) {
153 if (ioctl(fd, FDIOGCHAR, &fdchar) < 0) {
179 if (ioctl(fd, DKIOCGGEOM, &fdgeom) < 0) {
308 * The SPARC fd driver is using a non-zero value in
313 * The x86 fd driver uses fdc_medium as the diameter
324 if (ioctl(fd, FDIOSCHA
514 restore_default_chars(int32_t fd, struct fd_char save_fdchar, struct dk_allmap save_allmap) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dftruncate.c49 ftruncate(int fd, off_t length) argument
59 if (_syscall(SYS_fcntl, fd, F_FREESP, (int)&lck) == -1)
/illumos-gate/usr/src/lib/libc/port/sys/
H A Daccess.c33 faccessat(int fd, const char *fname, int amode, int flag) argument
35 return (syscall(SYS_faccessat, fd, fname, amode, flag));
H A Dgetpeerucred.c39 getpeerucred(int fd, ucred_t **ucp) argument
49 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) {
H A Dmkdir.c32 mkdirat(int fd, const char *path, mode_t mode) argument
34 return (syscall(SYS_mkdirat, fd, path, mode));
H A Dsymlink.c32 symlinkat(const char *path1, int fd, const char *path2) argument
34 return (syscall(SYS_symlinkat, path1, fd, path2));
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.h22 boolean_t find_dos_drive(int fd, int num, uint_t secsz, off_t *offset);
23 int get_num_dos_drives(int fd, uint_t);
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/
H A Dreadmmap.c56 int fd = -1, bytes, retval = 0; local
74 fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
75 if (fd == -1) {
81 bytes = write(fd, buf, size);
88 map = mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
112 bytes = pread(fd, buf, size, 0);
129 if (fd != -1) {
130 (void) close(fd);
/illumos-gate/usr/src/lib/libast/amd64/src/lib/libast/FEATURE/
H A Dtty47 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
49 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
70 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
71 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
89 # define tcgetattr(fd,tty) ioctl(fd, TIOCGET
[all...]

Completed in 1124 milliseconds

1234567891011>>