Searched refs:new_fd (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dprint.c62 int err, tlen, new_fd; local
74 new_fd = smb_open_driver();
75 if (new_fd < 0)
78 if (ioctl(new_fd, SMBIOC_DUP_DEV, &from_fd) == -1) {
91 if (ioctl(new_fd, SMBIOC_PRINTJOB, &ioc) == -1) {
96 return (new_fd);
99 close(new_fd);
H A Dfile.c79 int new_fd = -1; local
93 new_fd = smb_open_driver();
94 if (new_fd < 0) {
99 if (ioctl(new_fd, SMBIOC_DUP_DEV, &from_fd) == -1) {
114 if (ioctl(new_fd, SMBIOC_NTCREATE, &ioc) == -1) {
119 return (new_fd);
122 if (new_fd != -1)
123 close(new_fd);
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.c1310 int new_fd; local
1345 new_fd = nfslib_transport_open(nconf);
1346 if (new_fd == -1) {
1356 if (t_bind(new_fd, NULL, NULL) == -1) {
1357 nfslib_log_tli_error("t_bind", new_fd, nconf);
1361 (void) t_close(new_fd);
1365 while (t_accept(fd, new_fd, call) == -1) {
1373 (void) t_close(new_fd);
1401 (void) t_close(new_fd);
1407 if (set_addrmask(new_fd, ncon
[all...]
/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrd.c1062 int new_fd; local
1094 new_fd = rdc_transport_open(nconf);
1095 if (new_fd == -1) {
1105 if (t_bind(new_fd, NULL, NULL) == -1) {
1106 rdcd_log_tli_error("t_bind", new_fd, nconf);
1110 (void) t_close(new_fd);
1114 while (t_accept(fd, new_fd, call) == -1) {
1120 (void) t_close(new_fd);
1142 (void) t_close(new_fd);
1148 if (set_addrmask(new_fd, ncon
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c1248 int old_fd, new_fd, version, ret_val = -1; local
1266 new_fd = open_nointr(new_obj_name,
1268 if (new_fd < 0) {
1273 if (lock_file(new_fd, B_FALSE, B_TRUE) != 0) {
1277 (void) close(new_fd);
1291 if (writen_nointr(new_fd, (char *)&version, OBJ_VER_SIZE)
1306 if (writen_nointr(new_fd, (char *)iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) {
1380 if (writen_nointr(new_fd, (char *)hmac, OBJ_HMAC_SIZE)
1387 if (writen_nointr(new_fd, (void *)buf, encrypted_len)
1398 (void) lock_file(new_fd, B_FALS
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2059 int new_fd; local
2079 new_fd = open (_PATH_DEVNULL, O_RDWR);
2080 if (new_fd >= 0) {
2081 if (new_fd != 0) {
2082 if (dup2(new_fd, 0) < 0) /* stdin <- /dev/null */
2084 (void) close(new_fd);
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c497 int *new_fd; local
522 new_fd = kmem_alloc(new_nfd * sizeof (afd->a_fd[0]), KM_SLEEP);
527 afd->a_fd = new_fd;

Completed in 83 milliseconds