View | Details | Raw Unified | Return to bug 42272
Collapse All | Expand All

(-)src/lib/libc_r/uthread/uthread_fd.c (-15 / +16 lines)
Lines 180-185 Link Here
180
	return (ret);
180
	return (ret);
181
}
181
}
182
182
183
int
184
_thread_fd_getflags(int fd)
185
{
186
	if (_thread_fd_table[fd] != NULL)
187
		return (_thread_fd_table[fd]->flags);
188
	else
189
		return (0);
190
}
191
192
void
193
_thread_fd_setflags(int fd, int flags)
194
{
195
	if (_thread_fd_table[fd] != NULL)
196
		_thread_fd_table[fd]->flags = flags;
197
}
198
183
#ifdef _FDLOCKS_ENABLED
199
#ifdef _FDLOCKS_ENABLED
184
void
200
void
185
_thread_fd_unlock(int fd, int lock_type)
201
_thread_fd_unlock(int fd, int lock_type)
Lines 493-513 Link Here
493
	return (ret);
509
	return (ret);
494
}
510
}
495
511
496
int
497
_thread_fd_getflags(int fd)
498
{
499
	if (_thread_fd_table[fd] != NULL)
500
		return (_thread_fd_table[fd]->flags);
501
	else
502
		return (0);
503
}
504
505
void
506
_thread_fd_setflags(int fd, int flags)
507
{
508
	if (_thread_fd_table[fd] != NULL)
509
		_thread_fd_table[fd]->flags = flags;
510
}
511
512
512
void
513
void
513
_thread_fd_unlock_debug(int fd, int lock_type, char *fname, int lineno)
514
_thread_fd_unlock_debug(int fd, int lock_type, char *fname, int lineno)

Return to bug 42272