summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-07-18 20:23:10 +0000
committertrasz <trasz@FreeBSD.org>2010-07-18 20:23:10 +0000
commit935237a66a797429103b05be92d72e3bada85e69 (patch)
tree6d68f5c23a28cb978d118dcb947e3a74c4cce8ea /sys
parentdd1ffe6ba105a42d29d9298246efc68536d197a7 (diff)
downloadFreeBSD-src-935237a66a797429103b05be92d72e3bada85e69.zip
FreeBSD-src-935237a66a797429103b05be92d72e3bada85e69.tar.gz
The "/*-" comment marker is supposed to denote copyrights. Remove non-copyright
occurences from sys/sys/ and sys/kern/.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/init_main.c2
-rw-r--r--sys/kern/kern_prot.c32
-rw-r--r--sys/kern/kern_resource.c2
-rw-r--r--sys/kern/kern_tc.c2
-rw-r--r--sys/kern/subr_disk.c2
-rw-r--r--sys/kern/subr_prof.c2
-rw-r--r--sys/kern/uipc_mbuf.c2
-rw-r--r--sys/kern/uipc_usrreq.c2
-rw-r--r--sys/kern/vfs_extattr.c6
-rw-r--r--sys/sys/cdefs.h4
-rw-r--r--sys/sys/disk.h24
-rw-r--r--sys/sys/kthread.h2
-rw-r--r--sys/sys/mbuf.h4
-rw-r--r--sys/sys/proc.h2
-rw-r--r--sys/sys/resourcevar.h2
-rw-r--r--sys/sys/signal.h2
-rw-r--r--sys/sys/socketvar.h2
-rw-r--r--sys/sys/time.h2
-rw-r--r--sys/sys/timetc.h2
-rw-r--r--sys/sys/types.h2
20 files changed, 50 insertions, 50 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d608e25..5c2f738 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -539,7 +539,7 @@ proc0_init(void *dummy __unused)
vm_map_init(&vmspace0.vm_map, vmspace_pmap(&vmspace0),
p->p_sysent->sv_minuser, p->p_sysent->sv_maxuser);
- /*-
+ /*
* call the init and ctor for the new thread and proc
* we wait to do this until all other structures
* are fairly sane.
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 16b0f37..3ee6f05 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1316,7 +1316,7 @@ SYSCTL_INT(_security_bsd, OID_AUTO, see_other_uids, CTLFLAG_RW,
&see_other_uids, 0,
"Unprivileged processes may see subjects/objects with different real uid");
-/*-
+/*
* Determine if u1 "can see" the subject specified by u2, according to the
* 'see_other_uids' policy.
* Returns: 0 for permitted, ESRCH otherwise
@@ -1375,7 +1375,7 @@ cr_seeothergids(struct ucred *u1, struct ucred *u2)
return (0);
}
-/*-
+/*
* Determine if u1 "can see" the subject specified by u2.
* Returns: 0 for permitted, an errno value otherwise
* Locks: none
@@ -1400,7 +1400,7 @@ cr_cansee(struct ucred *u1, struct ucred *u2)
return (0);
}
-/*-
+/*
* Determine if td "can see" the subject specified by p.
* Returns: 0 for permitted, an errno value otherwise
* Locks: Sufficient locks to protect p->p_ucred must be held. td really
@@ -1431,7 +1431,7 @@ static int conservative_signals = 1;
SYSCTL_INT(_security_bsd, OID_AUTO, conservative_signals, CTLFLAG_RW,
&conservative_signals, 0, "Unprivileged processes prevented from "
"sending certain signals to processes whose credentials have changed");
-/*-
+/*
* Determine whether cred may deliver the specified signal to proc.
* Returns: 0 for permitted, an errno value otherwise.
* Locks: A lock must be held for proc.
@@ -1507,7 +1507,7 @@ cr_cansignal(struct ucred *cred, struct proc *proc, int signum)
return (0);
}
-/*-
+/*
* Determine whether td may deliver the specified signal to p.
* Returns: 0 for permitted, an errno value otherwise
* Locks: Sufficient locks to protect various components of td and p
@@ -1548,7 +1548,7 @@ p_cansignal(struct thread *td, struct proc *p, int signum)
return (cr_cansignal(td->td_ucred, p, signum));
}
-/*-
+/*
* Determine whether td may reschedule p.
* Returns: 0 for permitted, an errno value otherwise
* Locks: Sufficient locks to protect various components of td and p
@@ -1600,7 +1600,7 @@ SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_proc_debug, CTLFLAG_RW,
&unprivileged_proc_debug, 0,
"Unprivileged processes may use process debugging facilities");
-/*-
+/*
* Determine whether td may debug p.
* Returns: 0 for permitted, an errno value otherwise
* Locks: Sufficient locks to protect various components of td and p
@@ -1698,7 +1698,7 @@ p_candebug(struct thread *td, struct proc *p)
return (0);
}
-/*-
+/*
* Determine whether the subject represented by cred can "see" a socket.
* Returns: 0 for permitted, ENOENT otherwise.
*/
@@ -1724,7 +1724,7 @@ cr_canseesocket(struct ucred *cred, struct socket *so)
}
#if defined(INET) || defined(INET6)
-/*-
+/*
* Determine whether the subject represented by cred can "see" a socket.
* Returns: 0 for permitted, ENOENT otherwise.
*/
@@ -1751,7 +1751,7 @@ cr_canseeinpcb(struct ucred *cred, struct inpcb *inp)
}
#endif
-/*-
+/*
* Determine whether td can wait for the exit of p.
* Returns: 0 for permitted, an errno value otherwise
* Locks: Sufficient locks to protect various components of td and p
@@ -2112,7 +2112,7 @@ setsugid(struct proc *p)
p->p_stops = 0;
}
-/*-
+/*
* Change a process's effective uid.
* Side effects: newcred->cr_uid and newcred->cr_uidinfo will be modified.
* References: newcred must be an exclusive credential reference for the
@@ -2128,7 +2128,7 @@ change_euid(struct ucred *newcred, struct uidinfo *euip)
newcred->cr_uidinfo = euip;
}
-/*-
+/*
* Change a process's effective gid.
* Side effects: newcred->cr_gid will be modified.
* References: newcred must be an exclusive credential reference for the
@@ -2141,7 +2141,7 @@ change_egid(struct ucred *newcred, gid_t egid)
newcred->cr_groups[0] = egid;
}
-/*-
+/*
* Change a process's real uid.
* Side effects: newcred->cr_ruid will be updated, newcred->cr_ruidinfo
* will be updated, and the old and new cr_ruidinfo proc
@@ -2161,7 +2161,7 @@ change_ruid(struct ucred *newcred, struct uidinfo *ruip)
(void)chgproccnt(newcred->cr_ruidinfo, 1, 0);
}
-/*-
+/*
* Change a process's real gid.
* Side effects: newcred->cr_rgid will be updated.
* References: newcred must be an exclusive credential reference for the
@@ -2174,7 +2174,7 @@ change_rgid(struct ucred *newcred, gid_t rgid)
newcred->cr_rgid = rgid;
}
-/*-
+/*
* Change a process's saved uid.
* Side effects: newcred->cr_svuid will be updated.
* References: newcred must be an exclusive credential reference for the
@@ -2187,7 +2187,7 @@ change_svuid(struct ucred *newcred, uid_t svuid)
newcred->cr_svuid = svuid;
}
-/*-
+/*
* Change a process's saved gid.
* Side effects: newcred->cr_svgid will be updated.
* References: newcred must be an exclusive credential reference for the
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index ec2d6b6..4c8db61 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -1247,7 +1247,7 @@ uihold(uip)
refcount_acquire(&uip->ui_ref);
}
-/*-
+/*
* Since uidinfo structs have a long lifetime, we use an
* opportunistic refcounting scheme to avoid locking the lookup hash
* for each release.
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index d973348..a67a603 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -484,7 +484,7 @@ tc_windup(void)
th->th_offset_count = ncount;
}
- /*-
+ /*
* Recalculate the scaling factor. We want the number of 1/2^64
* fractions of a second per period of the hardware counter, taking
* into account the th_adjustment factor which the NTP PLL/adjtime(2)
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 12b0159..28b0e5e 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -23,7 +23,7 @@ __FBSDID("$FreeBSD$");
#include <sys/disk.h>
#include <geom/geom_disk.h>
-/*-
+/*
* Disk error is the preface to plaintive error messages
* about failing disk transfers. It prints messages of the form
* "hp0g: BLABLABLA cmd=read fsbn 12345 of 12344-12347"
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c
index be98d44..aa8a584 100644
--- a/sys/kern/subr_prof.c
+++ b/sys/kern/subr_prof.c
@@ -254,7 +254,7 @@ kmstartup(dummy)
mcount_overhead -= empty_loop_time;
mexitcount_overhead -= empty_loop_time;
- /*-
+ /*
* Profiling overheads are determined by the times between the
* following events:
* MC1: mcount() is called
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 4e9ff6e..f932f0a 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -161,7 +161,7 @@ m_freem(struct mbuf *mb)
mb = m_free(mb);
}
-/*-
+/*
* Configure a provided mbuf to refer to the provided external storage
* buffer and setup a reference count for said buffer. If the setting
* up of the reference count fails, the M_EXT bit will not be set. If
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index fdf3d902..63437bc 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -165,7 +165,7 @@ SYSCTL_ULONG(_net_local_seqpacket, OID_AUTO, recvspace, CTLFLAG_RW,
SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0,
"File descriptors in flight.");
-/*-
+/*
* Locking and synchronization:
*
* Three types of locks exit in the local domain socket implementation: a
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index e7bf2d1..cfff70f 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -149,7 +149,7 @@ out:
return (error);
}
-/*-
+/*
* Set a named extended attribute on a file or directory
*
* Arguments: unlocked vnode "vp", attribute namespace "attrnamespace",
@@ -317,7 +317,7 @@ extattr_set_link(td, uap)
return (error);
}
-/*-
+/*
* Get a named extended attribute on a file or directory
*
* Arguments: unlocked vnode "vp", attribute namespace "attrnamespace",
@@ -638,7 +638,7 @@ extattr_delete_link(td, uap)
return(error);
}
-/*-
+/*
* Retrieve a list of extended attributes on a file or directory.
*
* Arguments: unlocked vnode "vp", attribute namespace 'attrnamespace",
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index ad88d0c..c97f862 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -463,7 +463,7 @@
#define __DEQUALIFY(type, var) ((type)(uintptr_t)(const volatile void *)(var))
#endif
-/*-
+/*
* The following definitions are an extension of the behavior originally
* implemented in <sys/_posix.h>, but with a different level of granularity.
* POSIX.1 requires that the macros we test be defined before any standard
@@ -546,7 +546,7 @@
#define __ISO_C_VISIBLE 0
#endif /* _POSIX_C_SOURCE */
#else
-/*-
+/*
* Deal with _ANSI_SOURCE:
* If it is defined, and no other compilation environment is explicitly
* requested, then define our internal feature-test macros to zero. This
diff --git a/sys/sys/disk.h b/sys/sys/disk.h
index 422229e..ca39364 100644
--- a/sys/sys/disk.h
+++ b/sys/sys/disk.h
@@ -26,40 +26,40 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
#endif
#define DIOCGSECTORSIZE _IOR('d', 128, u_int)
- /*-
+ /*
* Get the sectorsize of the device in bytes. The sectorsize is the
* smallest unit of data which can be transfered from this device.
* Usually this is a power of two but it may not be. (ie: CDROM audio)
*/
#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */
- /*-
+ /*
* Get the size of the entire device in bytes. This should be a
* multiple of the sectorsize.
*/
#define DIOCGFWSECTORS _IOR('d', 130, u_int) /* Get firmware sectorcount */
- /*-
+ /*
* Get the firmwares notion of number of sectors per track. This
* value is mostly used for compatibility with various ill designed
* disk label formats. Don't use it unless you have to.
*/
#define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware headcount */
- /*-
+ /*
* Get the firmwares notion of number of heads per cylinder. This
* value is mostly used for compatibility with various ill designed
* disk label formats. Don't use it unless you have to.
*/
#define DIOCSKERNELDUMP _IOW('d', 133, u_int) /* Set/Clear kernel dumps */
- /*-
+ /*
* Enable/Disable (the argument is boolean) the device for kernel
* core dumps.
*/
#define DIOCGFRONTSTUFF _IOR('d', 134, off_t)
- /*-
+ /*
* Many disk formats have some amount of space reserved at the
* start of the disk to hold bootblocks, various disklabels and
* similar stuff. This ioctl returns the number of such bytes
@@ -67,18 +67,18 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
*/
#define DIOCGFLUSH _IO('d', 135) /* Flush write cache */
- /*-
+ /*
* Flush write cache of the device.
*/
#define DIOCGDELETE _IOW('d', 136, off_t[2]) /* Delete data */
- /*-
+ /*
* Mark data on the device as unused.
*/
#define DISK_IDENT_SIZE 256
#define DIOCGIDENT _IOR('d', 137, char[DISK_IDENT_SIZE])
- /*-
+ /*
* Get the ident of the given provider. Ident is (most of the time)
* a uniqe and fixed provider's identifier. Ident's properties are as
* follow:
@@ -99,19 +99,19 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
*/
#define DIOCGPROVIDERNAME _IOR('d', 138, char[MAXPATHLEN])
- /*-
+ /*
* Store the provider name, given a device path, in a buffer. The buffer
* must be at least MAXPATHLEN bytes long.
*/
#define DIOCGSTRIPESIZE _IOR('d', 139, off_t) /* Get stripe size in bytes */
- /*-
+ /*
* Get the size of the device's optimal access block in bytes.
* This should be a multiple of the sectorsize.
*/
#define DIOCGSTRIPEOFFSET _IOR('d', 140, off_t) /* Get stripe offset in bytes */
- /*-
+ /*
* Get the offset of the first device's optimal access block in bytes.
* This should be a multiple of the sectorsize.
*/
diff --git a/sys/sys/kthread.h b/sys/sys/kthread.h
index 77e1af0..4911ecc 100644
--- a/sys/sys/kthread.h
+++ b/sys/sys/kthread.h
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-/*-
+/*
* A kernel process descriptor; used to start "internal" daemons.
*
* Note: global_procpp may be NULL for no global save area.
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 95a44a4..651d330 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -59,7 +59,7 @@
#define M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */
#ifdef _KERNEL
-/*-
+/*
* Macro for type conversion: convert mbuf pointer to data pointer of correct
* type:
*
@@ -827,7 +827,7 @@ struct mbuf *m_split(struct mbuf *, int, int);
struct mbuf *m_uiotombuf(struct uio *, int, int, int, int);
struct mbuf *m_unshare(struct mbuf *, int how);
-/*-
+/*
* Network packets may have annotations attached by affixing a list of
* "packet tags" to the pkthdr structure. Packet tags are dynamically
* allocated semi-opaque data structures that have a fixed header
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 336279e..9696c99 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -112,7 +112,7 @@ struct pargs {
u_char ar_args[1]; /* Arguments. */
};
-/*-
+/*
* Description of a process.
*
* This structure contains the information needed to manage a thread of
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h
index 67af9b6..878856c 100644
--- a/sys/sys/resourcevar.h
+++ b/sys/sys/resourcevar.h
@@ -79,7 +79,7 @@ struct plimit {
int pl_refcnt; /* number of references */
};
-/*-
+/*
* Per uid resource consumption. This structure is used to track
* the total resource consumption (process count, socket buffer size,
* etc) for the uid and impose limits.
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index ff2d1fc..a7ca96e 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -122,7 +122,7 @@
/* #define SIG_CATCH ((__sighandler_t *)2) See signalvar.h */
#define SIG_HOLD ((__sighandler_t *)3)
-/*-
+/*
* Type of a signal handling function.
*
* Language spec sez signal handlers take exactly one arg, even though we
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 8899083..5e40f35 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -57,7 +57,7 @@ typedef u_quad_t so_gen_t;
struct socket;
-/*-
+/*
* Locking key to struct socket:
* (a) constant after allocation, no locking required.
* (b) locked by SOCK_LOCK(so).
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 1039c22..88ee7e6 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -90,7 +90,7 @@ bintime_sub(struct bintime *bt, const struct bintime *bt2)
bt->sec -= bt2->sec;
}
-/*-
+/*
* Background information:
*
* When converting between timestamps on parallel timescales of differing
diff --git a/sys/sys/timetc.h b/sys/sys/timetc.h
index d5a818b..5781051 100644
--- a/sys/sys/timetc.h
+++ b/sys/sys/timetc.h
@@ -16,7 +16,7 @@
#error "no user-serviceable parts inside"
#endif
-/*-
+/*
* `struct timecounter' is the interface between the hardware which implements
* a timecounter and the MI code which uses this to keep track of time.
*
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 6696de6..cdd6118 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -287,7 +287,7 @@ typedef int boolean_t;
typedef struct device *device_t;
typedef __intfptr_t intfptr_t;
-/*-
+/*
* XXX this is fixed width for historical reasons. It should have had type
* __int_fast32_t. Fixed-width types should not be used unless binary
* compatibility is essential. Least-width types should be used even less
OpenPOWER on IntegriCloud