uipc_sem.c (c4b877e60c7e477b26672bb9557dd346ab3e7962) uipc_sem.c (510ea843baf66ae678ca6ddbbbca9816177be5b0)
1/*-
2 * Copyright (c) 2002 Alfred Perlstein <alfred@FreeBSD.org>
3 * Copyright (c) 2003-2005 SPARTA, Inc.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * This software was developed for the FreeBSD Project in part by Network
8 * Associates Laboratories, the Security Research Division of Network

--- 205 unchanged lines hidden (view full) ---

214
215 /*
216 * Attempt to return sanish values for fstat() on a semaphore
217 * file descriptor.
218 */
219 bzero(sb, sizeof(*sb));
220 sb->st_mode = S_IFREG | ks->ks_mode; /* XXX */
221
1/*-
2 * Copyright (c) 2002 Alfred Perlstein <alfred@FreeBSD.org>
3 * Copyright (c) 2003-2005 SPARTA, Inc.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * This software was developed for the FreeBSD Project in part by Network
8 * Associates Laboratories, the Security Research Division of Network

--- 205 unchanged lines hidden (view full) ---

214
215 /*
216 * Attempt to return sanish values for fstat() on a semaphore
217 * file descriptor.
218 */
219 bzero(sb, sizeof(*sb));
220 sb->st_mode = S_IFREG | ks->ks_mode; /* XXX */
221
222 sb->st_atimespec = ks->ks_atime;
223 sb->st_ctimespec = ks->ks_ctime;
224 sb->st_mtimespec = ks->ks_mtime;
225 sb->st_birthtimespec = ks->ks_birthtime;
222 sb->st_atim = ks->ks_atime;
223 sb->st_ctim = ks->ks_ctime;
224 sb->st_mtim = ks->ks_mtime;
225 sb->st_birthtim = ks->ks_birthtime;
226 sb->st_uid = ks->ks_uid;
227 sb->st_gid = ks->ks_gid;
228
229 return (0);
230}
231
232static int
233ksem_closef(struct file *fp, struct thread *td)

--- 788 unchanged lines hidden ---
226 sb->st_uid = ks->ks_uid;
227 sb->st_gid = ks->ks_gid;
228
229 return (0);
230}
231
232static int
233ksem_closef(struct file *fp, struct thread *td)

--- 788 unchanged lines hidden ---