/osnet-11/usr/src/cmd/sendmail/db/os/ |
H A D | os_open.c | 109 * VMS: does not have fd inheritance. 145 __os_close(fd) 146 int fd; 150 ret = __db_jump.j_close != NULL ? __db_jump.j_close(fd) : close(fd);
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | realpath.c | 39 * a path (with fd = AT_FDCWD) or a file descriptor. 45 krealpath_impl(int fd, const char *path, char *buf, size_t bufsize) argument 66 ret = syscall(SYS_frealpathat, fd, path, kbuf, mysize); 128 frealpath(int fd, char *resolved_name, size_t bufsize) argument 130 return (krealpath_impl(fd, NULL, resolved_name, bufsize));
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | pr_ioctl.c | 39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument 47 return (ioctl(fd, code, buf)); 49 adp->arg_value = fd;
|
/osnet-11/usr/src/lib/libresolv2/common/bsd/ |
H A D | mktemp.c | 79 int fd; local 81 return (gettemp(path, &fd) ? fd : -1);
|
/osnet-11/usr/src/lib/libshell/common/include/ |
H A D | io.h | 92 #define VALIDATE_FD(shp, fd) \ 93 (((fd) >= (shp)->gd->lim.open_max) ? sh_iovalidfd(shp, fd) : 1)
|
/osnet-11/usr/src/lib/libnls/common/ |
H A D | nlsrequest.c | 65 nlsrequest(int fd, char *svc_code) argument 93 if (t_snd(fd, buf, len, 0) < len) { 108 if (t_rcv(fd, p, sizeof(char), &flags) != sizeof(char)) {
|
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvconnect.c | 52 _tx_rcvconnect(int fd, struct t_call *call, int api_semantics) argument 59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 100 if (_t_do_postconn_sync(fd, tiptr) < 0)
|
H A D | _utility.c | 64 static int _t_adjust_state(int fd, int instate); 65 static int _t_alloc_bufs(int fd, struct _ti_user *tiptr, 74 _t_checkfd(int fd, int force_sync, int api_semantics) argument 80 if (fd < 0) { 86 if ((tiptr = find_tilink(fd)) != NULL) { 100 retval = ioctl(fd, I_FIND, "timod"); 131 retval = ioctl(fd, I_PUSH, "timod"); 152 tiptr = _t_create(fd, NULL, api_semantics, NULL); 162 (void) ioctl(fd, I_POP, 0); 310 _t_is_event(int fd, struc argument 332 _t_is_ok(int fd, struct _ti_user *tiptr, t_scalar_t type) argument 471 _t_do_ioctl(int fd, char *buf, int size, int cmd, int *retlenp) argument 502 _t_alloc_bufs(int fd, struct _ti_user *tiptr, struct T_info_ack *tsap) argument 838 _t_create(int fd, struct t_info *info, int api_semantics, int *t_capreq_failed) argument 1109 _t_adjust_state(int fd, int instate) argument 1444 _t_expinline_queued(int fd, int *expedited_queuedp) argument 1639 _t_do_postconn_sync(int fd, struct _ti_user *tiptr) argument [all...] |
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | rpc_sel2poll.c | 58 * For each fd, if the appropriate bit is set convert it into 64 p->fd = n; 92 p->fd = srcp[n].fd;
|
H A D | rpc_td.c | 40 __td_setnodelay(int fd) argument 50 if ((state = t_getstate(fd)) == -1) 87 rval = t_optmgmt(fd, &t_optreq, &t_optret);
|
/osnet-11/usr/src/lib/libadm/common/ |
H A D | rdwr_vtoc.c | 81 read_vtoc(int fd, struct vtoc *vtoc) argument 88 if (ioctl(fd, DKIOCGVTOC, (caddr_t)vtoc) == -1) { 141 if (ioctl(fd, DKIOCINFO, (caddr_t)&dki_info) == -1) { 161 write_vtoc(int fd, struct vtoc *vtoc) argument 186 if (ioctl(fd, DKIOCSVTOC, (caddr_t)vtoc) == -1) { 205 read_extvtoc(int fd, struct extvtoc *extvtoc) argument 215 if (ioctl(fd, DKIOCGEXTVTOC, (caddr_t)extvtoc) == -1) { 228 if ((ret = read_vtoc(fd, oldvtocp)) < 0) 281 if (ioctl(fd, DKIOCINFO, (caddr_t)&dki_info) == -1) { 301 write_extvtoc(int fd, struc argument [all...] |
/osnet-11/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 70 lock_op(int fd, int type) argument 79 return (fcntl(fd, F_SETLKW, &lock)); 87 int fd, flags; local 97 if ((fd = open(mapfile, flags, 0644)) == -1) { 109 fd = open(mapfile, O_RDWR); 110 if (fd == -1) 112 if (fstat(fd, &fbuf) == -1) 119 if (lock_op(fd, F_RDLCK) == -1) 122 if ((fp = fdopen(fd, "r+")) == NULL) 123 (void) close(fd); [all...] |
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | Sun_fcAdapterCreateWWN.cc | 41 int fd = open("/dev/urandom", O_RDONLY); local 46 bytes = read(fd, ptr, resid); 50 close (fd);
|
H A D | TgtFCHBA.cc | 84 int fd; local 97 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { 132 if (ioctl(fd, FCTIO_CMD, &fctio) != 0) { 133 close(fd); 144 close(fd); 167 int fd; local 173 if ((fd = open(FCT_DRIVER_PATH.c_str(), O_NDELAY | O_RDONLY)) == -1) { 204 if (ioctl(fd, FCTIO_CMD, &fctio) != 0) { 205 close(fd); 216 close(fd); 226 int fd; local [all...] |
/osnet-11/usr/src/lib/libnsl/yp/ |
H A D | yp_bind.c | 369 int fd; local 413 if (clnt_control(pdomb->dom_client, CLGET_FD, (char *)&fd)) 414 (void) fcntl(fd, F_SETFD, 1); /* make it "close on exec" */ 431 int fd; local 436 fd = t_open(nconf->nc_device, O_RDWR, NULL); 437 if (fd == -1) 440 if (netdir_options(nconf, ND_SET_RESERVEDPORT, fd, NULL) == -1) { 441 if (t_bind(fd, NULL, NULL) == -1) { 442 (void) t_close(fd); 446 return (fd); 469 int fd; local 966 int fd; local 1082 int fd; local 1148 int fd; local 1172 int fd; local [all...] |
/osnet-11/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 878 int fd, i; local 909 if ((fd = g_object_open(drvr_path, O_NDELAY | O_RDONLY)) == -1) 912 if (ioctl(fd, FCIO_GETMAP, map_ptr) != 0) { 914 (void) close(fd); 917 (void) close(fd); 951 int fd; local 968 if ((fd = g_object_open(host_path, O_NDELAY | O_RDONLY)) == -1) { 980 if (g_issue_fcio_ioctl(fd, &fcio, verbose) != 0) { 982 (void) close(fd); 985 (void) close(fd); 1012 g_issue_fcio_ioctl(int fd, fcio_t *fcio, int verbose) argument 1065 g_issue_fcp_ioctl(int fd, struct fcp_ioctl *fcp_data, int verbose) argument 1131 int fd; local 1342 int dev_type, fd; local 1430 int dev_type, fd; local 1541 int fd, i, j, num_devices = 0, err, pathcnt = 1; local 2153 int fd, i, num_devices = 0, err, pathcnt = 1, new_count = 0; local 3324 int fd, fp_fd, err, length, exp_map_flag = 0, *port_addr; local 3942 int fd, status = 0; local 4001 int fd, status; local 4026 g_scsi_inquiry_cmd80(int fd, uchar_t *buf_ptr, int buf_len) argument 4049 g_find_supported_inq_page(int fd, int page_num) argument 4085 int fd; local 4114 int fd; local 4127 int status, fd; local 4140 int fd, status; local 4153 int fd, status; local 4764 int fd, i = 0, pathcnt = 1; local 4901 int path_type, fd; local 5000 int path_type, fd; local 5093 int fd, err, num_devices = 0; local 5213 int fd, err; local 5351 int fd; local 5985 int fd; local [all...] |
H A D | mpath.c | 93 int fd = 0; local 120 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { 141 (void) close(fd); 146 retval = ioctl(fd, SCSI_VHCI_GET_CLIENT_MULTIPATH_INFO, &ioc); 150 (void) close(fd); 171 (void) close(fd); 235 int fd; local 291 if ((fd = g_object_open(VHCI_NODE, O_RDWR)) < 0) { 295 retval = ioctl(fd, SCSI_VHCI_GET_CLIENT_MULTIPATH_INFO, ioc); 297 close(fd); 506 int fd = -1; local 572 int fd = 0, ret = 0; local 666 int fd; local 764 int fd; local [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/ |
H A D | unistd.in.h | 253 _GL_FUNCDECL_RPL (close, int, (int fd)); 254 _GL_CXXALIAS_RPL (close, int, (int fd)); 256 _GL_CXXALIAS_SYS (close, int, (int fd)); 397 (int fd, char const *file, int mode, int flag) 401 (int fd, char const *file, int mode, int flag)); 419 _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); 422 _GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) 424 _GL_EXTERN_C void _gl_unregister_fd (int fd); 426 _GL_EXTERN_C const char *_gl_directory_name (int fd); 429 _GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/)); [all...] |
/osnet-11/usr/src/grub/grub2/util/ieee1275/ |
H A D | ofpath.c | 99 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/libast/common/sfio/ |
H A D | sftmp.c | 207 int fd; local 210 if(!(file = pathtemp(NiL,PATH_MAX,NiL,"sf",&fd))) 238 fd = -1; 258 if((fd = sysopenf(file,O_RDWR|O_CREAT|O_EXCL|O_TEMPORARY,SF_CREATMODE)) >= 0) 261 if((fd = sysopenf(file,O_RDONLY)) >= 0) 263 CLOSE(fd); 264 fd = -1; 266 else if((fd = syscreatf(file,SF_CREATMODE)) >= 0) 268 CLOSE(fd); 269 if((fd 294 reg int fd, m; local [all...] |
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | read.c | 54 short fd; member in struct:read_save 64 register int r, flags=0, fd=0; local 81 fd = rp->fd; 108 if((fd = shp->cpipe[0])<=0) 127 fd = (int)opt_info.num; 128 if(sh_inuse(shp,fd)) 129 fd = -1; 144 if(!((r=shp->fdstatus[fd])&IOREAD) || !(r&(IOSEEK|IONOSEEK))) 145 r = sh_iocheckfd(shp,fd); 204 sh_readline(register Shell_t *shp,char **names, int fd, int flags,long timeout) argument [all...] |
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_crypt.c | 159 int fd, rlen; local 161 fd = open("/dev/urandom", O_RDONLY); 162 if (fd < 0) 165 rlen = read(fd, data, dlen); 166 (void) close(fd);
|
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_zpool.c | 56 static int (*zfsdl_zpool_in_use)(libzfs_handle_t *hdl, int fd, 72 int fd; local 95 if ((fd = open(slice, O_RDONLY)) > 0) { 97 if (zfsdl_zpool_in_use(zfs_hdl, fd, &state, 122 (void) close(fd);
|
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 51 int fd, const char *path, struct stat *sb, int flags) 54 fd, path, sb, flags)); 82 int fd, const char *path, struct stat64 *sb, int flags) 85 fd, path, sb, flags)); 112 s10_openat(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument 115 fd, path, oflag, mode)); 135 s10_openat64(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument 138 fd, path, oflag, mode)); 170 s10_dup(sysret_t *rval, int fd) argument 172 return (__systemcall(rval, SYS_fcntl + 1024, fd, F_DUPF 50 s10_fstatat(sysret_t *rval, int fd, const char *path, struct stat *sb, int flags) argument 81 s10_fstatat64(sysret_t *rval, int fd, const char *path, struct stat64 *sb, int flags) argument 222 s10_fchownat(sysret_t *rval, int fd, const char *name, uid_t uid, gid_t gid, int flag) argument 272 s10_unlinkat(sysret_t *rval, int fd, const char *name, int flags) argument 322 s10_faccessat(sysret_t *rval, int fd, const char *fname, int amode, int flag) argument 382 s10_futimesat(sysret_t *rval, int fd, const char *path, const struct timeval times[2]) argument 457 s10_fxstat(sysret_t *rval, int version, int fd, struct stat *statb) argument [all...] |
/osnet-11/usr/src/lib/libuefi_rt/common/ |
H A D | libuefi_rt.c | 67 int fd; local 76 if ((fd = open(UEFI_RT_DEVPATH, O_RDWR)) == -1) { 86 if (ioctl(fd, cmd, args) == -1) { 87 (void) close(fd); 92 (void) close(fd);
|