Searched defs:fd (Results 601 - 625 of 648) sorted by relevance

<<212223242526

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dperl.c24 * /dev/fd/xxx; perl checks script is as should be and does work. This was
29 * script on /dev/fd/xxx; suidperl checks script and /dev/fd/xxx object are
335 PL_fdpid = newAV(); /* for remembering popen pids by fd */
3068 if (strnEQ(scriptname, "/dev/fd/", 8) && isDIGIT(scriptname[8]) ) {
3080 * Is it a mistake to use a similar /dev/fd/ construct for
3089 Perl_croak(aTHX_ "Wrong syntax (suid) fd script name \"%s\"\n", s);
3092 Perl_croak(aTHX_ "Missing (suid) fd script name\n");
3115 Perl_croak(aTHX_ "sperl needs fd script\n"
3121 * Perl does the open, and hands script to suidperl on a fd;
3224 S_fd_on_nosuid_fs(pTHX_ int fd) argument
[all...]
H A Dpp_sys.c603 int fd[2]; local
621 if (PerlProc_pipe(fd) < 0)
624 IoIFP(rstio) = PerlIO_fdopen(fd[0], "r"PIPE_OPEN_MODE);
625 IoOFP(wstio) = PerlIO_fdopen(fd[1], "w"PIPE_OPEN_MODE);
633 else PerlLIO_close(fd[0]);
635 else PerlLIO_close(fd[1]);
639 fcntl(fd[0],F_SETFD,fd[0] > PL_maxsysfd); /* ensure close-on-exec */
640 fcntl(fd[1],F_SETFD,fd[
2284 int fd; local
2339 int fd[2]; local
2522 int fd; local
2618 int fd; local
2699 int fd; local
3252 int fd; local
5656 fcntl_emulate_flock(int fd, int operation) argument
5713 lockf_emulate_flock(int fd, int operation) argument
[all...]
H A Ddoio.c90 int fd; local
113 fd = PerlIO_fileno(IoIFP(io));
118 else if (fd >= 0 && fd <= PL_maxsysfd) {
123 savefd = fd;
131 PerlIO_close(IoIFP(io)); /* clear stdio, fd already closed */
138 if (result == EOF && fd > PL_maxsysfd) {
336 fd = SvUV(*svp);
340 fd = atoi(type);
376 fd
931 int fd[2]; local
1420 Perl_do_aexec5(pTHX_ SV *really, register SV **mark, register SV **sp, int fd, int do_report) argument
1488 Perl_do_exec3(pTHX_ char *cmd, int fd, int do_report) argument
[all...]
/osnet-11/usr/src/cmd/ldap/ns_ldap/
H A Dldapclient.c2631 int stat_ret, retcode, fd; local
2675 fd = open(DOMAINNAME_BACK, O_RDONLY);
2680 domainlen = read(fd, &(name[0]), BUFSIZ-1);
2681 (void) close(fd);
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfsclone.c525 static int io_all(void *fd, void *buf, int count, int do_write) argument
528 struct ntfs_device *dev = fd;
532 i = write(*(int *)fd, buf, count);
534 i = read(*(int *)fd, buf, count);
549 static void rescue_sector(void *fd, off_t pos, void *buff) argument
552 struct ntfs_device *dev = fd;
555 if (lseek(*(int *)fd, pos, SEEK_SET) == (off_t)-1)
562 if (read_all(fd, buff, NTFS_SECTOR_SIZE) == -1) {
576 void *fd = (void *)&fd_in; local
581 fd
1439 device_offset_valid(int fd, s64 ofs) argument
1448 device_size_get(int fd) argument
1502 fsync_clone(int fd) argument
[all...]
/osnet-11/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c564 do_conv(iconv_t fd, char *src, uint32_t srclen) argument
574 (void *)fd, src ? src : "(null)", srclen);
593 if (iconv(fd, &src, &ileft, &tptr, &oleft) == (size_t)-1) {
665 conv_dst = do_conv(gmnp->fd, msgstr, msgstr_len);
688 iconv_t fd; local
750 if (gmnp->fd && (gmnp->fd != (iconv_t)-1)) {
751 (void) iconv_close(gmnp->fd);
752 gmnp->fd = (iconv_t)-1;
782 if (gmnp->fd
[all...]
/osnet-11/usr/src/lib/libc/port/threads/
H A Dscalls.c507 read(int fd, void *buf, size_t size) argument
512 PERFORM(__read(fd, buf, size))
516 write(int fd, const void *buf, size_t size) argument
521 PERFORM(__write(fd, buf, size))
525 getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr, argument
531 PERFORM(__getmsg(fd, ctlptr, dataptr, flagsp))
535 getpmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr, argument
542 PERFORM(__getpmsg(fd, ctlptr, dataptr, bandp, flagsp))
546 putmsg(int fd, const struct strbuf *ctlptr, argument
553 PERFORM(__putmsg(fd, ctlpt
557 __xpg4_putmsg(int fd, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags) argument
568 putpmsg(int fd, const struct strbuf *ctlptr, const struct strbuf *dataptr, int band, int flags) argument
579 __xpg4_putpmsg(int fd, const struct strbuf *ctlptr, const struct strbuf *dataptr, int band, int flags) argument
818 openat(int fd, const char *path, int oflag, ...) argument
851 openat64(int fd, const char *path, int oflag, ...) argument
[all...]
H A Dthr.c2461 int fd; local
2467 if ((fd = __open(buf, O_RDONLY, 0)) >= 0) {
2468 while (__pread(fd, sp, sizeof (*sp), 0) == sizeof (*sp)) {
2470 (void) __close(fd);
2475 (void) __close(fd);
2485 int fd; local
2494 if ((fd = __open(buf, O_WRONLY, 0)) >= 0) {
2505 if (__writev(fd, iov, 3) >= 0) {
2506 (void) __close(fd);
2509 (void) __close(fd);
2518 int fd; local
[all...]
/osnet-11/usr/src/lib/libsqlite/src/
H A Dpager.c163 OsFile fd, jfd; /* File descriptors for database and journal */ member in struct:Pager
322 static int read32bits(int format, OsFile *fd, u32 *pRes){ argument
325 rc = sqliteOsRead(fd, &res, sizeof(res));
344 static int write32bits(OsFile *fd, u32 val){ argument
347 return sqliteOsWrite(fd, &val, 4);
353 return sqliteOsWrite(fd, ac, 4);
463 sqliteOsUnlock(&pPager->fd);
503 rc = sqliteOsReadLock(&pPager->fd);
570 sqliteOsSeek(&pPager->fd, (pgRec.pgno-1)*(off_t)SQLITE_PAGE_SIZE);
571 rc = sqliteOsWrite(&pPager->fd, pgRe
904 sqlitepager_opentemp(char *zFile, OsFile *fd) argument
935 OsFile fd; local
[all...]
/osnet-11/usr/src/lib/libsysevent/
H A Dlibsysevent.c1910 int fd = -1; local
1966 fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR,
1968 if (fd == -1) {
2012 (void) close(fd);
2024 (void) close(fd);
2088 int fd = -1; local
2159 fd = open(SH_DOOR_NAME(shp), O_CREAT|O_RDWR, S_IREAD|S_IWRITE);
2160 if (fd == -1) {
2193 (void) close(fd);
2243 (void) close(fd);
[all...]
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c98 int fd; local
102 if ((fd = open(path, O_RDONLY)) < 0)
107 if (devid_get(fd, &devid) == 0) {
108 if (devid_get_minor_name(fd, &minor) == 0)
114 (void) close(fd);
861 zpool_read_label(int fd, nvlist_t **config) argument
870 if (fstat64(fd, &statbuf) == -1)
878 if (pread64(fd, label, sizeof (vdev_label_t),
997 check_slices(avl_tree_t *r, int fd, const char *sname) argument
1010 if (read_extvtoc(fd,
1036 int fd; local
1094 zpool_clear_label(int fd) argument
1537 int fd; local
1829 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, boolean_t *inuse) argument
[all...]
/osnet-11/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c1063 int len, fd; local
1119 if ((fd = mkstemp(tmp)) == -1) {
1123 if ((ofp = fdopen(fd, "w")) == NULL) {
1125 (void) close(fd);
/osnet-11/usr/src/lib/libzpool/common/
H A Dkernel.c334 int fd; local
352 fd = open64(path, O_RDONLY);
353 if (fd == -1)
355 if (fstat64(fd, &st) == -1) {
356 close(fd);
359 close(fd);
378 fd = open64(realpath, flags - FREAD, mode);
383 if (fd == -1)
386 if (fstat64(fd, &st) == -1) {
387 close(fd);
404 vn_openat(char *path, int x1, int flags, int mode, vnode_t **vpp, int x2, int x3, vnode_t *startvp, int fd) argument
890 random_get_bytes_common(uint8_t *ptr, size_t len, int fd) argument
1115 zfs_onexit_fd_hold(int fd, minor_t *minorp) argument
1123 zfs_onexit_fd_rele(int fd) argument
[all...]
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_name.c1819 int fd; local
1851 if ((fd = open(rname, (O_RDONLY|O_NDELAY), 0)) < 0) {
1856 if (ioctl(fd, DKIOCINFO, &cinfo) != 0) {
1865 (void) close(fd);
1868 (void) close(fd); /* sd/ssd bug */
H A Dmeta_raid.c2061 int fd; local
2067 if ((fd = open(colnp->rname, O_RDONLY)) < 0)
2070 if (lseek64(fd,
2074 if (read(fd, buf, DEV_BSIZE) < 0)
2117 (void) close(fd);
2123 (void) close(fd);
H A Dmeta_set.c692 int fd; local
809 if ((fd = open(np->bname, (O_RDONLY|O_NDELAY), 0)) < 0) {
813 (void) devid_get_minor_name(fd, &minor_name);
816 (void) close(fd);
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c257 calculate_hashed_pin_offset(int fd) argument
261 if (lseek(fd, KS_HASHED_PIN_SALT_LEN_OFFSET, SEEK_SET)
266 if (readn_nointr(fd, (char *)&salt_length,
286 lock_file(int fd, boolean_t read_lock, boolean_t set_lock) argument
303 while ((r = fcntl(fd, F_SETLKW, &lock_info)) == -1) {
312 while ((r = fcntl(fd, F_SETLKW, &lock_info)) == -1) {
328 int fd, buf; local
366 fd = open_nointr(get_desc_file_path(ks_desc_file),
368 if (fd < 0) {
378 if (lock_file(fd, B_FALS
508 is_inode_same(int fd, char *fname, boolean_t *same) argument
531 acquire_file_lock(int *fd, char *fname, mode_t mode) argument
596 int fd; local
689 int fd; local
735 create_updated_keystore_version(int fd, char *tmp_fname) argument
870 get_hashed_pin(int fd, char **hashed_pin) argument
977 int fd; local
1007 soft_keystore_unlock_object(int fd) argument
1039 int fd, ret_val = 0; local
1093 int fd, ret_val = 0; local
1150 int fd, ret_val = -1; local
1439 int fd, tmp_ks_fd, version, ret_val = -1; local
1811 int fd; local
2035 int fd; local
2203 int fd, tmp_ks_fd, obj_fd; local
2480 int fd, ks_fd, tmp_fd, version; local
2714 int fd; local
2787 int fd, ret_val = -1; local
2860 int fd; local
[all...]
/osnet-11/usr/src/lib/storage/liba5k/common/
H A Dmon.c105 int status, size, fd; local
116 if ((fd = g_object_open(path, O_NDELAY | O_RDWR)) == -1)
124 (void) close(fd);
128 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size,
130 (void) close(fd);
139 (void) close(fd);
143 if (status = g_scsi_mode_sense_cmd(fd, *pg_buf, size,
145 (void) close(fd);
149 (void) close(fd);
526 int err, write, fd, front_inde local
1188 int fd, status, err; local
1316 int fd, status; local
1375 int fd, status; local
1482 int fd, status; local
2303 l_get_envsen_page(int fd, uchar_t *buf, int buf_size, uchar_t page_code, int verbose) argument
2375 int fd, rval; local
2664 l_persistent_check(int fd, struct l_disk_state_struct *l_disk_state, int verbose) argument
2731 int fd, status = 0, local_state = 0; local
4086 check_file(int fd, int verbose, uchar_t **buf_ptr, int dl_info_offset) argument
4176 check_dpm_file(int fd) argument
4274 ib_download_code_cmd(int fd, int promid, int off, uchar_t *buf_ptr, int buf_len, int sp) argument
4309 dak_download_code_cmd(int fd, uchar_t *buf_ptr, int buf_len) argument
4571 int fd, status; local
4648 int j, al_pa, al_pa1, box_id, fd, disk_flag = 0; local
[all...]
/osnet-11/usr/src/lib/libraidcfg/common/
H A Draidcfg.c143 uint32_t fd; /* Only for controller */ member in struct:__anon2388
1369 (raid_handle_sys.handles[i].fd != 0) &&
1704 return (raid_handle_sys.handles[handle].fd);
1708 raid_obj_set_fd(raid_obj_tab_t *raid_tab, raid_obj_id_t obj_id, int fd) argument
1726 raid_handle_sys.handles[handle].fd = fd;
2319 int ret = SUCCESS, fd; local
2329 fd = raid_obj_get_fd(raid_tab, obj_id);
2331 if ((raid_lib == NULL) || (ctl_attrp == NULL) || (fd == 0))
2346 int ret, i, fd; local
2415 int ret = SUCCESS, fd; local
2458 int ret, fd; local
2575 int ret = SUCCESS, fd; local
2617 int ret, i, fd; local
2708 int ret = SUCCESS, fd; local
2753 int ret = SUCCESS, fd; local
2811 int ret = SUCCESS, fd; local
2857 int ret, i, fd; local
2957 int ret = SUCCESS, fd; local
3025 int ret = SUCCESS, fd; local
3079 int ret = SUCCESS, fd; local
3131 int ret = SUCCESS, fd; local
3168 int ret = SUCCESS, fd; local
3239 int i, j, ret, fd; local
3547 int ret, fd; local
3595 int ret, fd; local
3762 int ret, fd; local
4421 int fd; local
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dxec.c1261 int fd; local
1262 for(fd=0; fd < shp->gd->lim.open_max; fd++)
1263 if((shp->fdstatus[fd]&IOCLEX)&&fd!=shp->infd)
1264 sh_close(fd);
2163 int savein,fd; local
2207 fd = sh_redirect(shp,tt->com.comio,3);
2209 if(fd
3432 int fd=fcntl(shp->cpipe[1],F_DUPFD,10); local
3474 register int i, fd, trace = sh_isoption(SH_XTRACE); local
3626 int fd = shp->inpipe[1]; local
3795 int fd = open(path,O_RDONLY); local
[all...]
/osnet-11/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c298 * HOST_BROADCAST then we ask a tli fd to tell us what
2499 int fd; local
2512 if ((fd = open(devpath, O_RDONLY)) < 0) {
2515 while ((retv = ioctl(fd, cmd, arg)) == -1) {
2519 (void) close(fd);
2901 int fd; local
2907 fd = open(tp->nc_device, O_RDONLY);
2908 if (fd < 0) {
2913 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0)
2918 (void) close(fd);
[all...]
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo.c157 int fd; local
159 while ((fd = open(path, oflag)) == -1 && errno == EAGAIN)
162 return (fd);
169 int fd; local
185 if ((fd = blocking_open("/devices/pseudo/devinfo@0:devinfo",
191 if (ioctl(fd, DINFOLODRV, driver) != 0) {
193 (void) close(fd);
197 (void) close(fd);
210 int fd, map_size; local
259 if ((fd
3062 int fd; /* /dev/openprom file descriptor */ member in struct:di_prom_handle
[all...]
H A Ddevinfo_devlink.c57 static const char *skip_dirs[] = {"fd"};
227 int fd, rv, flg; local
265 if ((fd = open(path, flg, DB_PERMS)) == -1) {
271 rv = fstat(fd, &sbuf);
276 rv = ftruncate(fd, sz);
282 (void) close(fd);
286 cp = mmap(0, HDR_LEN, flg, MAP_SHARED, fd, 0);
288 (void) close(fd);
292 DB(hdp)->db_fd = fd;
375 int fd; local
3080 int fd; local
3402 int fd; local
3511 int fd; local
[all...]
/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdlstat.c69 int fd; member in struct:flowlist
141 flist->fd = INT32_MAX;
331 if (flist->fd == INT32_MAX) {
335 if ((flist->fd = open(dnlink, O_RDWR)) < 0)
338 flist->fd = -1;
381 if (flist->fd != -1 && flist->fd != INT32_MAX)
382 (void) close(flist->fd);
/osnet-11/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c1040 int fd, rtnerr; local
1043 if ((fd = open(name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
1046 if (lockf(fd, F_LOCK, 0) < 0) {
1049 if ((fp = fdopen(fd, "a+")) == NULL) {
3191 int fd; local
3208 fd = open(filename, O_WRONLY | O_EXCL | O_CREAT | O_TRUNC, S_IRUSR);
3209 if (fd == -1) {
3214 fd = open(filename, O_WRONLY | O_TRUNC, 0);
3215 if (fd == -1)
3218 if (fstat(fd,
[all...]

Completed in 176 milliseconds

<<212223242526