/titanic_41/usr/src/lib/libnsl/nsl/ |
H A D | xti_wrappers.c | 58 _xti_accept(int fd, int resfd, const struct t_call *call) in _xti_accept() argument 60 return (_tx_accept(fd, resfd, call, TX_XTI_API)); in _xti_accept() 64 _xti_xns5_accept(int fd, int resfd, const struct t_call *call) in _xti_xns5_accept() argument 66 return (_tx_accept(fd, resfd, call, TX_XTI_XNS5_API)); in _xti_xns5_accept() 70 _xti_alloc(int fd, int struct_type, int fields) in _xti_alloc() argument 72 return (_tx_alloc(fd, struct_type, fields, TX_XTI_API)); in _xti_alloc() 76 _xti_bind(int fd, const struct t_bind *req, struct t_bind *ret) in _xti_bind() argument 78 return (_tx_bind(fd, req, ret, TX_XTI_API)); in _xti_bind() 82 _xti_close(int fd) in _xti_close() argument 84 return (_tx_close(fd, TX_XTI_API)); in _xti_close() [all …]
|
H A D | tli_wrappers.c | 44 t_accept(int fd, int resfd, struct t_call *call) in t_accept() argument 46 return (_tx_accept(fd, resfd, call, TX_TLI_API)); in t_accept() 50 t_alloc(int fd, int struct_type, int fields) in t_alloc() argument 52 return (_tx_alloc(fd, struct_type, fields, TX_TLI_API)); in t_alloc() 56 t_bind(int fd, struct t_bind *req, struct t_bind *ret) in t_bind() argument 58 return (_tx_bind(fd, req, ret, TX_TLI_API)); in t_bind() 62 t_close(int fd) in t_close() argument 64 return (_tx_close(fd, TX_TLI_API)); in t_close() 68 t_connect(int fd, struct t_call *sndcall, struct t_call *rcvcall) in t_connect() argument 70 return (_tx_connect(fd, sndcall, rcvcall, TX_TLI_API)); in t_connect() [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_resv.c | 97 nsc_attach(fd, flag) in nsc_attach() argument 98 nsc_fd_t *fd; in nsc_attach() 103 rc = nsc_reserve(fd, flag); 106 nsc_release(fd); 144 nsc_reserve(fd, flag) in nsc_reserve() argument 145 nsc_fd_t *fd; in nsc_reserve() 148 nsc_dev_t *dev = fd->sf_dev; 152 flag |= (fd->sf_flag & NSC_RDWR); 155 if ((fd->sf_flag & rw) != rw) 160 while ((rc = _nsc_attach_fd(fd, flag)) != 0) [all …]
|
H A D | nsc_dev.c | 544 nsc_fd_t *fd; local 550 for (fd = iodev->si_open; fd; fd = fd->sf_next) { 551 if (!(rc = _nsc_reopen_fd(fd, flag | try))) 557 if (!_nsc_relock_dev(dev, fd, iodev)) 568 for (fd = dev->nsc_close; fd; fd = fd->sf_next) { 569 if (!(rc = _nsc_reopen_fd(fd, flag | try))) 575 if (!_nsc_relock_dev(dev, fd, NULL)) 603 _nsc_relock_dev(nsc_dev_t *dev, nsc_fd_t *fd, nsc_iodev_t *iodev) in _nsc_relock_dev() argument 627 if (fp == fd) in _nsc_relock_dev() 659 _nsc_reopen_fd(fd, flag) in _nsc_reopen_fd() argument [all …]
|
/titanic_41/usr/src/lib/libsqlite/tool/ |
H A D | speedtest.tcl | 18 set fd [open $sqlfile r] 19 set sql [string trim [read $fd [file size $sqlfile]]] 20 close $fd 78 set fd [open clear.sql w] 79 puts $fd { 83 close $fd 86 set fd [open 2kinit.sql w] 87 puts $fd { 91 close $fd 94 set fd [open nosync-init.sql w] [all …]
|
H A D | speedtest2.tcl | 18 set fd [open $sqlfile r] 19 set sql [string trim [read $fd [file size $sqlfile]]] 20 close $fd 70 set fd [open clear.sql w] 71 puts $fd { 75 close $fd 78 set fd [open 2kinit.sql w] 79 puts $fd { 83 close $fd 86 set fd [open nosync-init.sql w] [all …]
|
/titanic_41/usr/src/lib/libnsctl/common/ |
H A D | cache.c | 60 nsc_fd_t *fd; local 67 if (!(fd = (nsc_fd_t *)calloc(1, sizeof (nsc_fd_t)))) 75 fd->sf_flag = flag; 76 fd->sf_fmode = mode; 78 strcpy(fd->sf_path, path); 80 if (!_nsc_open_path(fd)) { 81 free(fd); 85 if (ckdchk && !_nsc_open_check(fd)) { 86 (void) nsc_close(fd); 90 return (fd); [all …]
|
/titanic_41/usr/src/cmd/lp/lib/msgs/ |
H A D | fifo_buffs.c | 53 ResetFifoBuffer(int fd) in ResetFifoBuffer() argument 58 if (fd >= FifoBufferTableSize) in ResetFifoBuffer() 61 if (FifoBufferTable [fd]) { in ResetFifoBuffer() 62 FifoBufferTable [fd]->full = 0; in ResetFifoBuffer() 63 FifoBufferTable [fd]->psave = in ResetFifoBuffer() 64 FifoBufferTable [fd]->psave_end = in ResetFifoBuffer() 65 FifoBufferTable [fd]->save; in ResetFifoBuffer() 72 GetFifoBuffer(int fd) in GetFifoBuffer() argument 74 if (fd < 0) { in GetFifoBuffer() 78 if ((fd >= FifoBufferTableSize) && (GrowFifoBufferTable (fd) < 0)) in GetFifoBuffer() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_files.c | 42 static evFile *FindFD(const evContext_p *ctx, int fd, int eventmask); 46 int fd, in evSelectFD() argument 58 ctx, fd, eventmask, func, uap); in evSelectFD() 62 if (fd > ctx->highestFD) in evSelectFD() 65 OK(mode = fcntl(fd, F_GETFL, NULL)); /*%< side effect: validate fd. */ in evSelectFD() 74 if (fd >= ctx->maxnfds && evPollfdRealloc(ctx, 1, fd) != 0) in evSelectFD() 77 id = FindFD(ctx, fd, EV_MASK_ALL); in evSelectFD() 80 FD_SET(fd, &ctx->nonblockBefore); in evSelectFD() 84 OK(ioctl(fd, FIONBIO, (char *)&on)); in evSelectFD() 86 OK(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK)); in evSelectFD() [all …]
|
/titanic_41/usr/src/cmd/format/ |
H A D | add_definition.c | 62 static void add_disktype(FILE *fd, struct disk_info *disk_info); 63 static void add_partition(FILE *fd, struct disk_info *, 65 static int add_entry(int col, FILE *fd, char *format, ...); 81 FILE *fd; in add_definition() local 147 if ((fd = fopen(filename, "a")) == NULL) { in add_definition() 158 (void) fprintf(fd, "#\n# New disk/partition type "); in add_definition() 160 (void) fprintf(fd, "#\n# New disk type "); in add_definition() 162 (void) fprintf(fd, "#\n# New partition type "); in add_definition() 165 (void) fprintf(fd, " saved on %s#\n", ctime(&clock)); in add_definition() 170 add_disktype(fd, cur_disk); in add_definition() [all …]
|
/titanic_41/usr/src/cmd/lp/lib/lp/ |
H A D | files.c | 80 fdprintf(int fd, char *fmt, ...) in fdprintf() argument 85 if (fd == 1) in fdprintf() 90 return (Write(fd, buf, (int)strlen(buf))); in fdprintf() 94 fdgets(char *buf, int len, int fd) in fdgets() argument 100 while ((count < len) && (Read(fd, &tmp, 1) > 0)) in fdgets() 109 fdputs(char *buf, int fd) in fdputs() argument 111 return (fdprintf(fd, "%s", buf)); in fdputs() 115 fdputc(char c, int fd) in fdputc() argument 117 if (fd == 1) in fdputc() 119 return (write(fd, &c, 1)); in fdputc() [all …]
|
/titanic_41/usr/src/lib/print/libipp-core/common/ |
H A D | write.c | 117 ipp_write_attribute(ipp_writer_t iwrite, void *fd, papi_attribute_t *attribute) in ipp_write_attribute() argument 139 if (iwrite(fd, &type, 1) != 1) in ipp_write_attribute() 145 if (iwrite(fd, &length, 2) != 2) in ipp_write_attribute() 147 if (iwrite(fd, name, strlen(name)) != strlen(name)) in ipp_write_attribute() 152 if (iwrite(fd, &length, 2) != 2) in ipp_write_attribute() 164 if (iwrite(fd, &type, 1) != 1) in ipp_write_attribute() 170 if (iwrite(fd, &length, 2) != 2) in ipp_write_attribute() 172 if (iwrite(fd, name, strlen(name)) != strlen(name)) in ipp_write_attribute() 178 if (iwrite(fd, &length, 2) != 2) in ipp_write_attribute() 199 if (iwrite(fd, &length, 2) != 2) in ipp_write_attribute() [all …]
|
/titanic_41/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 97 int fd; in nlist() local 107 if ((fd = open(name, 0)) < 0) in nlist() 109 if (read(fd, magic_buf, (size_t)EI_NIDENT) == -1) { in nlist() 110 (void) close(fd); in nlist() 114 if (lseek(fd, 0L, 0) == -1L) { /* rewind to beginning of object file */ in nlist() 115 (void) close(fd); in nlist() 125 (void) close(fd); in nlist() 130 return (_elf_nlist(fd, list)); in nlist() 134 return (_coff_nlist(fd, list)); in nlist() 141 _elf_nlist(int fd, struct nlist *list) in _elf_nlist() argument [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | fio.c | 259 int size, ralloc, fd; in fd_find() local 264 for (fd = minfd; (uint_t)fd < fip->fi_nfiles; fd |= fd + 1) { in fd_find() 265 size = fd ^ (fd | (fd + 1)); in fd_find() 266 if (fip->fi_list[fd].uf_alloc == size) in fd_find() 269 ralloc += fip->fi_list[fd + size].uf_alloc; in fd_find() 270 if (fip->fi_list[fd].uf_alloc == ralloc + size) { in fd_find() 271 fd += size; in fd_find() 275 return (fd); in fd_find() 281 fd_reserve(uf_info_t *fip, int fd, int incr) in fd_reserve() argument 284 uf_entry_t *ufp = &fip->fi_list[fd]; in fd_reserve() [all …]
|
/titanic_41/usr/src/cmd/ttymon/ |
H A D | tmterm.c | 66 set_termio(fd,options,aspeed,clear,mode) in set_termio() argument 67 int fd; in set_termio() 92 if ((term = get_ttymode(fd, &termio, &termios, &stermio, 129 if (set_ttymode(fd, term, &termio, &termios, &stermio, 143 turnon_canon(fd) in turnon_canon() argument 144 int fd; in turnon_canon() 151 if (ioctl(fd, TCGETA, &termio) != 0) { 152 log("turnon_canon: TCGETA failed, fd = %d: %s", fd, 159 if (ioctl(fd, TCSETA, &termio) != 0) { 160 log("turnon_canon: TCSETA failed, fd = %d: %s", fd, [all …]
|
/titanic_41/usr/src/lib/libproc/common/ |
H A D | proc_get_info.c | 55 int fd; in proc_get_cred() local 62 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_cred() 63 if (read(fd, credp, size) >= minsize) in proc_get_cred() 65 (void) close(fd); in proc_get_cred() 77 int fd; in proc_get_priv() local 83 if ((fd = open(fname, O_RDONLY)) >= 0) { in proc_get_priv() 84 if (fstat(fd, &statb) != 0 || in proc_get_priv() 86 read(fd, rv, statb.st_size) != statb.st_size) { in proc_get_priv() 90 (void) close(fd); in proc_get_priv() 106 int fd; in proc_get_ldt() local [all …]
|
/titanic_41/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.c | 128 static int setopt(int fd, int level, int name, int value); 129 static int get_opt(int fd, int level, int name); 130 static void nfslib_set_sockbuf(int fd); 140 int fd; in nfslib_transport_open() local 152 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); in nfslib_transport_open() 153 if (fd == -1) { in nfslib_transport_open() 157 fd = t_open(nconf->nc_device, O_RDWR, in nfslib_transport_open() 160 if (fd == -1) { in nfslib_transport_open() 171 if (ioctl(fd, I_POP, 0) < 0) { in nfslib_transport_open() 173 (void) t_close(fd); in nfslib_transport_open() [all …]
|
/titanic_41/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_dev.c | 30 nvme_ioctl(int fd, int ioc, size_t *bufsize, void **buf, uint64_t arg, in nvme_ioctl() argument 52 if (ioctl(fd, ioc, &nioc) != 0) { in nvme_ioctl() 74 nvme_capabilities(int fd) in nvme_capabilities() argument 79 (void) nvme_ioctl(fd, NVME_IOC_CAPABILITIES, &bufsize, &cap, 0, NULL); in nvme_capabilities() 85 nvme_version(int fd) in nvme_version() argument 90 (void) nvme_ioctl(fd, NVME_IOC_VERSION, &bufsize, &vs, 0, NULL); in nvme_version() 96 nvme_identify_ctrl(int fd) in nvme_identify_ctrl() argument 101 (void) nvme_ioctl(fd, NVME_IOC_IDENTIFY_CTRL, &bufsize, &idctl, 0, in nvme_identify_ctrl() 108 nvme_identify_nsid(int fd) in nvme_identify_nsid() argument 113 (void) nvme_ioctl(fd, NVME_IOC_IDENTIFY_NSID, &bufsize, &idns, 0, NULL); in nvme_identify_nsid() [all …]
|
/titanic_41/usr/src/lib/libc/port/sys/ |
H A D | open.c | 45 static int xpg4_fixup(int fd); 46 static void push_module(int fd); 47 static int isptsfd(int fd); 53 int fd = syscall(SYS_openat, dfd, path, oflag, mode); in __openat() local 54 return (xpg4_fixup(fd)); in __openat() 61 int fd = syscall(SYS_open, path, oflag, mode); in __open() local 62 return (xpg4_fixup(fd)); in __open() 73 int fd = syscall(SYS_openat64, dfd, path, oflag, mode); in __openat64() local 74 return (xpg4_fixup(fd)); in __openat64() 81 int fd = syscall(SYS_open64, path, oflag, mode); in __open64() local [all …]
|
/titanic_41/usr/src/cmd/cdrw/ |
H A D | mmc.h | 128 int test_unit_ready(int fd); 129 int inquiry(int fd, uchar_t *inq); 130 int read_capacity(int fd, uchar_t *capbuf); 131 int read_track_info(int fd, int trackno, uchar_t *ti); 132 int mode_sense(int fd, uchar_t pc, int dbd, int page_len, uchar_t *buffer); 133 int mode_select(int fd, int page_len, uchar_t *buffer); 134 int read_toc(int fd, int format, int trackno, int buflen, uchar_t *buf); 135 int read_disc_info(int fd, uchar_t *di); 136 int get_configuration(int fd, uint16_t feature, int bufsize, uchar_t *buf); 137 int read10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, [all …]
|
/titanic_41/usr/src/cmd/lp/lib/forms/ |
H A D | wrform.c | 60 wrform(char *name, FORM *formp, int fd, int (*error_handler)( int , int , int ), in wrform() argument 77 print_sdn(fd, HEAD, formp->plen); in wrform() 81 print_sdn(fd, HEAD, formp->pwid); in wrform() 85 print_sdn(fd, HEAD, formp->lpi); in wrform() 90 print_str(fd, HEAD, NAME_COMPRESSED); in wrform() 92 print_sdn(fd, HEAD, formp->cpi); in wrform() 96 fdprintf(fd, "%s %d\n", HEAD, formp->np); in wrform() 100 fdprintf(fd, "%s %s", HEAD, formp->chset); in wrform() 102 fdprintf(fd, ",%s", MANSTR); in wrform() 103 fdprintf(fd, "\n"); in wrform() [all …]
|
/titanic_41/usr/src/cmd/make/bin/ |
H A D | state.cc | 46 #define XFWRITE(string, length, fd) {if (fwrite(string, 1, length, fd) == 0) \ argument 48 #define XPUTC(ch, fd) { \ argument 49 if (putc((int) ch, fd) == EOF) \ 52 #define XFPUTS(string, fd) fputs(string, fd) argument 96 static void print_auto_depes(register Dependency dependency, register FILE *fd, register Boolean b… 123 register FILE *fd; in write_state_file() local 169 if ((fdes < 0) || (fd = fdopen(fdes, "w")) == NULL) { in write_state_file() 187 if ((fd = fopen(make_state_tempfile, "w")) == NULL) { in write_state_file() 202 (void) fclose(fd); in write_state_file() 216 if ((fdes < 0) || (fd = fdopen(fdes, "w")) == NULL) { in write_state_file() [all …]
|
/titanic_41/usr/src/cmd/avs/rdc/ |
H A D | sndrd.c | 195 int fd = open(rdc_devr, O_RDONLY); in open_rdc() local 197 if (fd < 0) in open_rdc() 200 return (rdc_fdr = fd); in open_rdc() 220 int fd; in rdc_transport_open() local 232 fd = t_open(nconf->nc_device, O_RDWR, (struct t_info *)NULL); in rdc_transport_open() 233 if (fd == -1) { in rdc_transport_open() 237 fd = t_open(nconf->nc_device, O_RDWR, NULL); in rdc_transport_open() 239 if (fd == -1) { in rdc_transport_open() 254 if (ioctl(fd, I_POP, 0) < 0) { in rdc_transport_open() 256 if (t_close(fd) == -1) { in rdc_transport_open() [all …]
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/ |
H A D | libfruaccess.c | 154 int fd; in fru_get_num_sections() local 156 if ((fd = fru_open_dev()) == -1) { in fru_get_num_sections() 161 if (ioctl(fd, SGFRU_GETNUMSECTIONS, &numsections) != 0) { in fru_get_num_sections() 173 int fd; in fru_get_sections() local 175 if ((fd = fru_open_dev()) == -1) { in fru_get_sections() 181 if (ioctl(fd, SGFRU_GETSECTIONS, §ions) != 0) { in fru_get_sections() 192 int fd; in fru_get_num_segments() local 194 if ((fd = fru_open_dev()) == -1) { in fru_get_num_segments() 199 if (ioctl(fd, SGFRU_GETNUMSEGMENTS, &numsegments) != 0) { in fru_get_num_segments() 211 int fd; in fru_get_segments() local [all …]
|
/titanic_41/usr/src/cmd/lp/lib/requests/ |
H A D | putrequest.c | 67 int fd; local 119 if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) { 130 (void)fdprintf(fd, "%s%d\n", HEAD, reqbufp->copies); 134 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->destination); 139 (void)fdprintf(fd, "%s%s\n", HEAD, *pp); 144 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->form); 149 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_IMMEDIATE); 151 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_RESUME); 153 (void)fdprintf(fd, "%s%s\n", HEAD, NAME_HOLD); 158 (void)fdprintf(fd, "%sM\n", HEAD); [all …]
|