Searched defs:fd (Results 301 - 325 of 648) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/libdhcpsvc/modules/binfiles/
H A Ddhcptab.c97 int fd; local
107 retval = open_file(dtpath, flags, &fd);
121 if (write_header(fd, &header) == -1) {
123 (void) close(fd);
133 if (read_header(fd, &header) == -1) {
135 (void) close(fd);
142 (void) close(fd);
148 (void) close(fd);
176 int fd; local
185 fd
203 find_dt(int fd, uint_t flags, uint_t query, int count, const dt_rec_t *targetp, dt_rec_list_t **recordsp, uint_t *nrecordsp) argument
342 int fd, newfd; local
430 int fd, newfd; local
550 int fd, newfd; local
723 read_header(int fd, dt_header_t *headerp) argument
737 write_header(int fd, dt_header_t *headerp) argument
755 read_rec(int fd, dt_filerec_t *rec, off_t recoff) argument
770 write_rec(int fd, dt_filerec_t *rec, off_t recoff) argument
[all...]
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/
H A Ddhcptab.c62 int fd; local
74 retval = open_file(dtpath, flags, &fd);
80 fp = fdopen(fd, flags & DSVC_WRITE ? "r+" : "r");
82 (void) close(fd);
549 * Write the dt_rec_t pointed to by `recp' into the open container `fd' at
553 write_rec(int fd, dt_rec_t *recp, off_t recoff) argument
573 if (pnwrite(fd, ent, entlen, recoff) == -1)
/osnet-11/usr/src/lib/libdhcpsvc/modules/files0/
H A Ddhcptab.c59 int fd; local
75 retval = open_file(dtpath, flags, &fd);
80 (void) close(fd);
479 * Write the dt_rec_t pointed to by `recp' into the open container `fd' at
483 write_rec(int fd, dt_rec_t *recp, off_t recoff) argument
501 if (pnwrite(fd, ent, entlen, recoff) == -1)
/osnet-11/usr/src/lib/libdhcpsvc/modules/util/
H A Dutil.c288 * `fd' into `buffer', or "read" none at all. Returns -1 if all `buflen'
292 pnread(int fd, void *buffer, size_t buflen, off_t off) argument
299 nbytes = pread(fd, &buf[nread], buflen - nread, off + nread);
314 * `off' in open file `fd'. Tries to write all `buflen' bytes, but does
319 pnwrite(int fd, const void *buffer, size_t buflen, off_t off) argument
326 nbytes = pwrite(fd, &buf[nwritten], buflen - nwritten,
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dmedia.c49 static int get_attrs(disk_t *dp, int fd, nvlist_t *attrs);
123 int fd; local
135 fd = drive_open_disk(dp->p.disk, NULL, 0);
137 if ((*errp = get_attrs(dp->p.disk, fd, attrs)) != 0) {
142 if (fd >= 0) {
143 (void) close(fd);
241 media_read_info(int fd, struct dk_minfo *minfo) argument
254 while ((status = ioctl(fd, DKIOCGMEDIAINFO, minfo)) < 0) {
309 int fd; local
312 if ((fd
368 add_mbr_sig(int fd, nvlist_t *attrs) argument
399 get_attrs(disk_t *dp, int fd, nvlist_t *attrs) argument
593 int fd; local
[all...]
H A Dpartition.c310 partition_has_fdisk(disk_t *dp, int fd) argument
326 if ((ioctl(fd, DKIOCGMBOOT, bootsect) < 0) && (errno != ENOTTY)) {
552 int fd; local
568 if ((fd = open_disk(disk, opath, opath_len)) < 0) {
573 if (!media_read_info(fd, &minfo)) {
574 (void) close(fd);
578 if (!partition_has_fdisk(disk, fd)) {
579 (void) close(fd);
583 if (lseek(fd, 0, 0) == -1) {
584 (void) close(fd);
[all...]
/osnet-11/usr/src/lib/libdladm/common/
H A Dflowattr.c84 dladm_check_ip_addr(char *addr_str, boolean_t local, flow_desc_t *fd) argument
114 addr = &fd->fd_local_addr;
115 netmask = (uchar_t *)&fd->fd_local_netmask;
118 addr = &fd->fd_remote_addr;
119 netmask = (uchar_t *)&fd->fd_remote_netmask;
125 fd->fd_ipversion = IPV4_VERSION;
131 fd->fd_ipversion = IPV6_VERSION;
143 fd->fd_mask |= mask;
302 dladm_check_dsfield(char *str, flow_desc_t *fd) argument
321 fd
[all...]
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_local.c70 int fd; local
89 fd = open(char_name, O_RDONLY);
90 if (fd < 0)
93 slice = read_vtoc(fd, &vtoc);
95 (void) close(fd);
99 (void) close(fd);
/osnet-11/usr/src/lib/libdscp/
H A Dlibdscp.c360 int fd; local
386 if ((fd = open(DSCP_CONFIGFILE, O_RDONLY)) < 0) {
393 i = read(fd, &ifname[count], size - count);
395 (void) close(fd);
401 (void) close(fd);
/osnet-11/usr/src/lib/libfstyp/common/
H A Dlibfstyp.c57 int (*fstyp_init)(int fd, off64_t offset,
82 int fd; member in struct:fstyp_handle
111 fstyp_init(int fd, off64_t offset, char *module_dir, fstyp_handle_t *handle) argument
125 h->fd = fd;
510 error = mp->ops.fstyp_init(h->fd, h->offset, &mp->mod_handle);
/osnet-11/usr/src/lib/libinstzones/common/
H A Dzones_exec.c520 int fd; local
523 fd = open64(CTFS_ROOT "/process/template", O_RDWR);
524 if (fd == -1) {
532 err |= ct_tmpl_set_critical(fd, 0);
533 err |= ct_tmpl_set_informative(fd, 0);
534 err |= ct_pr_tmpl_set_fatal(fd, CT_PR_EV_HWERR);
535 err |= ct_pr_tmpl_set_param(fd, CT_PR_PGRPONLY | CT_PR_REGENT);
536 if (err || ct_tmpl_activate(fd)) {
537 (void) close(fd);
541 return (fd);
[all...]
/osnet-11/usr/src/lib/libiov/common/
H A Dlibiov.c156 int i, err, rv, fd; local
228 fd = open(linkname, O_RDONLY);
229 if (fd == -1) {
232 (void) close(fd);
288 int fd; local
304 fd = open(linkname, O_RDONLY);
305 if (fd == -1) {
315 rv = ioctl(fd, I_STR, &str_ioctl);
317 rv = ioctl(fd, IOV_GET_PARAM_VER_INFO, &iov_param_ver);
323 (void) close(fd);
377 int fd; local
[all...]
/osnet-11/usr/src/lib/libipadm/common/
H A Dipadm_ndpd.c287 int fd; local
299 fd = socket(AF_UNIX, SOCK_STREAM, 0);
300 if (fd == -1)
304 flags = fcntl(fd, F_GETFL, 0);
306 (void) fcntl(fd, F_SETFL, flags | O_NONBLOCK);
313 if (connect(fd, (struct sockaddr *)&servaddr, sizeof (servaddr)) == -1)
335 if (ipadm_ndpd_write(fd, &msg, sizeof (msg)) < 0 ||
336 ipadm_ndpd_read(fd, &retval, sizeof (retval)) < 0)
338 (void) close(fd);
360 (void) close(fd);
369 ipadm_ndpd_read(int fd, void *buffer, size_t buflen) argument
411 ipadm_ndpd_write(int fd, const void *buffer, size_t buflen) argument
[all...]
/osnet-11/usr/src/lib/libipp/
H A Dlibipp.c711 int fd; local
746 if ((fd = open(IPPCTL_DEVICE, O_RDWR | O_NOCTTY)) == -1) {
763 if ((rc = ioctl(fd, IPPCTL_CMD, &iioc)) < 0) {
816 if ((rc = ioctl(fd, IPPCTL_DATA, &iioc)) < 0) {
890 (void) close(fd);
907 if (fd != -1)
908 (void) close(fd);
914 (void) close(fd);
/osnet-11/usr/src/lib/efcode/fcdriver/
H A Dget_req.c166 FILE *fd; local
177 if ((fd = fopen(fname, "w")) == NULL) {
183 fwrite(buf, len, sizeof (char), fd);
184 fclose(fd);
345 * file descriptor is fd 0.
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dmod.c124 int fd; local
126 if ((fd = open(objpath, O_RDONLY)) < 0) {
135 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
164 (void) close(fd);
170 if (fd >= 0)
171 (void) close(fd);
/osnet-11/usr/src/lib/fm/topo/modules/common/bay/common/
H A Dbay_fac.c118 int fd; local
170 fd = open(dev_nm, O_RDWR);
171 if (fd == -1) {
197 rv = ioctl(fd, dc_getset_led, &led);
201 (void) close(fd);
204 (void) close(fd);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dcm.h58 SOCKET fd; member in struct:conn_state
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.h69 int fd; /* file descriptor */ member in struct:MPOOL
/osnet-11/usr/src/lib/libadm/common/
H A Dckpath.c153 int fd; local
183 if ((fd = creat(path, 0644)) < 0) {
187 (void) close(fd);
/osnet-11/usr/src/lib/libadr/common/
H A Dadr_stream.c128 int fd; local
130 if ((fd = open("/dev/null", O_RDWR)) != -1) {
131 (void) dup2(fd, fdstr->infd);
133 (void) dup2(fd, fdstr->outfd);
134 (void) close(fd);
173 adr_stream_create_fd(int fd) argument
175 return (adr_stream_create_fds(fd, fd));
228 int fd; member in struct:adr_sslstream
237 int fd; local
357 adr_stream_create_ssl(SSL *ssl, int fd) argument
[all...]
/osnet-11/usr/src/grub/grub2/util/ieee1275/
H A Dofpath.c99 int fd; local
106 fd = open(path, O_RDONLY);
107 if (fd < 0)
122 read(fd, of_path, OF_PATH_MAX);
123 close(fd);
257 int fd, err; local
263 fd = open(buf, O_RDONLY);
264 if (fd < 0)
268 err = read(fd, buf, PATH_MAX);
272 close(fd);
290 int fd; local
[all...]
/osnet-11/usr/src/lib/brand/shared/brand/common/
H A Dbrand_util.c282 int fd, fd_new; local
287 if ((fd = fileno(file)) < 0)
294 fd_new = fcntl(fd, F_DUPFD, 0);
299 (void) dup2(fd_new, fd);
/osnet-11/usr/src/lib/crypt_modules/sha256/
H A Dcrypt_sha.c363 int fd; local
391 if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
395 got = read(fd, &rndval, sizeof (rndval));
398 (void) close(fd);
402 (void) close(fd);
/osnet-11/usr/src/lib/crypt_modules/sunmd5/
H A Dsunmd5.c173 int fd; local
199 if ((fd = open("/dev/random", O_RDONLY)) == -1) {
203 got = read(fd, &rndval, sizeof (rndval));
207 (void) close(fd);
211 (void) close(fd);

Completed in 61 milliseconds

<<11121314151617181920>>