thr_barrierattr.c (5e53a4f90f82c4345f277dd87cc9292f26e04a29) thr_barrierattr.c (b6413b6db8756c1ecae5e575e6516f811966046f)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 David Xu <davidxu@freebsd.org>.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

53 if (attr == NULL || *attr == NULL)
54 return (EINVAL);
55
56 free(*attr);
57 return (0);
58}
59
60int
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 David Xu <davidxu@freebsd.org>.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

53 if (attr == NULL || *attr == NULL)
54 return (EINVAL);
55
56 free(*attr);
57 return (0);
58}
59
60int
61_pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr,
62 int *pshared)
61_pthread_barrierattr_getpshared(const pthread_barrierattr_t * __restrict attr,
62 int * __restrict pshared)
63{
64
65 if (attr == NULL || *attr == NULL)
66 return (EINVAL);
67
68 *pshared = (*attr)->pshared;
69 return (0);
70}

--- 27 unchanged lines hidden ---
63{
64
65 if (attr == NULL || *attr == NULL)
66 return (EINVAL);
67
68 *pshared = (*attr)->pshared;
69 return (0);
70}

--- 27 unchanged lines hidden ---