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

/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_print.c247 int err, tlen, new_fd; local
259 new_fd = smbfs_open_driver();
260 if (new_fd < 0)
263 if (ioctl(new_fd, SMBIOC_DUP_DEV, &from_fd) == -1) {
276 if (ioctl(new_fd, SMBIOC_PRINTJOB, &ioc) == -1) {
281 return (new_fd);
284 (void) close(new_fd);
H A Dsmbfs_file.c90 int err, nmlen, new_fd; local
101 new_fd = smbfs_open_driver();
102 if (new_fd < 0)
105 if (ioctl(new_fd, SMBIOC_DUP_DEV, &from_fd) == -1) {
120 if (ioctl(new_fd, SMBIOC_NTCREATE, &ioc) == -1) {
125 return (new_fd);
128 (void) close(new_fd);
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c1253 int old_fd, new_fd, version, ret_val = -1; local
1271 new_fd = open_nointr(new_obj_name,
1273 if (new_fd < 0) {
1278 if (lock_file(new_fd, B_FALSE, B_TRUE) != 0) {
1282 (void) close(new_fd);
1296 if (writen_nointr(new_fd, (char *)&version, OBJ_VER_SIZE)
1311 if (writen_nointr(new_fd, (char *)iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) {
1385 if (writen_nointr(new_fd, (char *)hmac, OBJ_HMAC_SIZE)
1392 if (writen_nointr(new_fd, (void *)buf, encrypted_len)
1403 (void) lock_file(new_fd, B_FALS
[all...]

Completed in 25 milliseconds