�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /srv/../opt/bitninja-python-dojo/../../usr/include/netax25/../video/../

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //srv/../opt/bitninja-python-dojo/../../usr/include/netax25/../video/../threads.h
/* ISO C11 Standard: 7.26 - Thread support library  <threads.h>.
   Copyright (C) 2018-2020 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <https://www.gnu.org/licenses/>.  */

#ifndef _THREADS_H
#define _THREADS_H	1

#include <features.h>
#include <time.h>

__BEGIN_DECLS

#include <bits/pthreadtypes-arch.h>
#include <bits/types/struct_timespec.h>

#ifndef __cplusplus
# define thread_local _Thread_local
#endif

#define TSS_DTOR_ITERATIONS 4
typedef unsigned int tss_t;
typedef void (*tss_dtor_t) (void*);

typedef unsigned long int thrd_t;
typedef int (*thrd_start_t) (void*);

/* Exit and error codes.  */
enum
{
  thrd_success  = 0,
  thrd_busy     = 1,
  thrd_error    = 2,
  thrd_nomem    = 3,
  thrd_timedout = 4
};

/* Mutex types.  */
enum
{
  mtx_plain     = 0,
  mtx_recursive = 1,
  mtx_timed     = 2
};

typedef struct
{
  int __data __ONCE_ALIGNMENT;
} once_flag;
#define ONCE_FLAG_INIT { 0 }

typedef union
{
  char __size[__SIZEOF_PTHREAD_MUTEX_T];
  long int __align __LOCK_ALIGNMENT;
} mtx_t;

typedef union
{
  char __size[__SIZEOF_PTHREAD_COND_T];
  __extension__ long long int __align __LOCK_ALIGNMENT;
} cnd_t;

/* Threads functions.  */

/* Create a new thread executing the function __FUNC.  Arguments for __FUNC
   are passed through __ARG.  If succesful, __THR is set to new thread
   identifier.  */
extern int thrd_create (thrd_t *__thr, thrd_start_t __func, void *__arg);

/* Check if __LHS and __RHS point to the same thread.  */
extern int thrd_equal (thrd_t __lhs, thrd_t __rhs);

/* Return current thread identifier.  */
extern thrd_t thrd_current (void);

/* Block current thread execution for at least the time pointed by
   __TIME_POINT.  The current thread may resume if receives a signal.  In
   that case, if __REMAINING is not NULL, the remaining time is stored in
   the object pointed by it.  */
extern int thrd_sleep (const struct timespec *__time_point,
		       struct timespec *__remaining);

/* Terminate current thread execution, cleaning up any thread local
   storage and freeing resources.  Returns the value specified in __RES.  */
extern void thrd_exit (int __res) __attribute__ ((__noreturn__));

/* Detach the thread identified by __THR from the current environment
   (it does not allow join or wait for it).  */
extern int thrd_detach (thrd_t __thr);

/* Block current thread until execution of __THR is complete.  In case that
   __RES is not NULL, will store the return value of __THR when exiting.  */
extern int thrd_join (thrd_t __thr, int *__res);

/* Stop current thread execution and call the scheduler to decide which
   thread should execute next.  The current thread may be selected by the
   scheduler to keep running.  */
extern void thrd_yield (void);

#ifdef __USE_EXTERN_INLINES
/* Optimizations.  */
__extern_inline int
thrd_equal (thrd_t __thread1, thrd_t __thread2)
{
  return __thread1 == __thread2;
}
#endif


/* Mutex functions.  */

/* Creates a new mutex object with type __TYPE.  If successful the new
   object is pointed by __MUTEX.  */
extern int mtx_init (mtx_t *__mutex, int __type);

/* Block the current thread until the mutex pointed to by __MUTEX is
   unlocked.  In that case current thread will not be blocked.  */
extern int mtx_lock (mtx_t *__mutex);

/* Block the current thread until the mutex pointed by __MUTEX is unlocked
   or time pointed by __TIME_POINT is reached.  In case the mutex is unlock,
   the current thread will not be blocked.  */
extern int mtx_timedlock (mtx_t *__restrict __mutex,
			  const struct timespec *__restrict __time_point);

/* Try to lock the mutex pointed by __MUTEX without blocking.  If the mutex
   is free the current threads takes control of it, otherwise it returns
   immediately.  */
extern int mtx_trylock (mtx_t *__mutex);

/* Unlock the mutex pointed by __MUTEX.  It may potentially awake other
   threads waiting on this mutex.  */
extern int mtx_unlock (mtx_t *__mutex);

/* Destroy the mutex object pointed by __MUTEX.  */
extern void mtx_destroy (mtx_t *__mutex);


/* Call function __FUNC exactly once, even if invoked from several threads.
   All calls must be made with the same __FLAGS object.  */
extern void call_once (once_flag *__flag, void (*__func)(void));


/* Condition variable functions.  */

/* Initialize new condition variable pointed by __COND.  */
extern int cnd_init (cnd_t *__cond);

/* Unblock one thread that currently waits on condition variable pointed
   by __COND.  */
extern int cnd_signal (cnd_t *__cond);

/* Unblock all threads currently waiting on condition variable pointed by
   __COND.  */
extern int cnd_broadcast (cnd_t *__cond);

/* Block current thread on the condition variable pointed by __COND.  */
extern int cnd_wait (cnd_t *__cond, mtx_t *__mutex);

/* Block current thread on the condition variable until condition variable
   pointed by __COND is signaled or time pointed by __TIME_POINT is
   reached.  */
extern int cnd_timedwait (cnd_t *__restrict __cond,
			  mtx_t *__restrict __mutex,
			  const struct timespec *__restrict __time_point);

/* Destroy condition variable pointed by __cond and free all of its
   resources.  */
extern void cnd_destroy (cnd_t *__COND);


/* Thread specific storage functions.  */

/* Create new thread-specific storage key and stores it in the object pointed
   by __TSS_ID.  If __DESTRUCTOR is not NULL, the function will be called when
   the thread terminates.  */
extern int tss_create (tss_t *__tss_id, tss_dtor_t __destructor);

/* Return the value held in thread-specific storage for the current thread
   identified by __TSS_ID.  */
extern void *tss_get (tss_t __tss_id);

/* Sets the value of the thread-specific storage identified by __TSS_ID for
   the current thread to __VAL.  */
extern int tss_set (tss_t __tss_id, void *__val);

/* Destroys the thread-specific storage identified by __TSS_ID.  The
   destructor is not called until thrd_exit is called.  */
extern void tss_delete (tss_t __tss_id);

__END_DECLS

#endif /* _THREADS_H */

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
March 29 2022 11:10:06
root
0755
X11
--
April 25 2020 3:53:29
root
0755
arpa
--
December 13 2023 9:42:27
root
0755
asm-generic
--
February 12 2024 9:08:13
root
0755
c++
--
April 08 2022 2:42:58
root
0755
drm
--
February 12 2024 9:08:13
root
0755
finclude
--
December 13 2023 9:42:27
root
0755
iproute2
--
April 25 2020 3:53:03
root
0755
linux
--
February 12 2024 9:08:13
root
0755
misc
--
February 12 2024 9:08:13
root
0755
mtd
--
February 12 2024 9:08:13
root
0755
net
--
December 13 2023 9:42:27
root
0755
netash
--
December 13 2023 9:42:27
root
0755
netatalk
--
December 13 2023 9:42:27
root
0755
netax25
--
December 13 2023 9:42:27
root
0755
neteconet
--
December 13 2023 9:42:27
root
0755
netinet
--
December 13 2023 9:42:27
root
0755
netipx
--
December 13 2023 9:42:27
root
0755
netiucv
--
December 13 2023 9:42:27
root
0755
netpacket
--
December 13 2023 9:42:27
root
0755
netrom
--
December 13 2023 9:42:27
root
0755
netrose
--
December 13 2023 9:42:27
root
0755
nfs
--
December 13 2023 9:42:27
root
0755
node
--
October 23 2023 6:29:41
root
0755
openssl
--
February 12 2024 9:07:13
root
0755
php
--
October 23 2023 10:09:35
root
0755
protocols
--
December 13 2023 9:42:27
root
0755
rdma
--
February 12 2024 9:08:13
root
0755
rpc
--
December 13 2023 9:42:27
root
0755
rpcsvc
--
December 13 2023 9:42:27
root
0755
scsi
--
February 12 2024 9:08:13
root
0755
sound
--
February 12 2024 9:08:13
root
0755
uv
--
April 12 2022 9:21:16
root
0755
video
--
February 12 2024 9:08:13
root
0755
x86_64-linux-gnu
--
December 13 2023 9:42:27
root
0755
xen
--
February 12 2024 9:08:13
root
0755
aio.h
7.282 KB
November 22 2023 2:32:50
root
0644
aliases.h
1.984 KB
November 22 2023 2:32:50
root
0644
alloca.h
1.176 KB
November 22 2023 2:32:50
root
0644
ar.h
1.69 KB
November 22 2023 2:32:50
root
0644
argp.h
24.876 KB
November 22 2023 2:32:50
root
0644
argz.h
5.909 KB
November 22 2023 2:32:50
root
0644
assert.h
4.534 KB
November 22 2023 2:32:50
root
0644
byteswap.h
1.372 KB
November 22 2023 2:32:50
root
0644
complex.h
6.996 KB
November 22 2023 2:32:50
root
0644
cpio.h
2.215 KB
November 22 2023 2:32:50
root
0644
crypt.h
10.898 KB
March 10 2020 5:24:31
root
0644
ctype.h
10.712 KB
November 22 2023 2:32:50
root
0644
dirent.h
12.222 KB
November 22 2023 2:32:50
root
0644
dlfcn.h
7.304 KB
November 22 2023 2:32:50
root
0644
elf.h
173.189 KB
November 22 2023 2:32:50
root
0644
endian.h
2.245 KB
November 22 2023 2:32:50
root
0644
envz.h
2.8 KB
November 22 2023 2:32:50
root
0644
err.h
2.214 KB
November 22 2023 2:32:50
root
0644
errno.h
1.64 KB
November 22 2023 2:32:50
root
0644
error.h
2.229 KB
November 22 2023 2:32:50
root
0644
execinfo.h
1.487 KB
November 22 2023 2:32:50
root
0644
fastcgi.h
2.899 KB
March 22 2020 4:45:46
root
0644
fcgi_config.h
3.877 KB
March 22 2020 4:45:46
root
0644
fcgi_stdio.h
5.647 KB
March 22 2020 4:45:46
root
0644
fcgiapp.h
18.146 KB
March 22 2020 4:45:46
root
0644
fcgimisc.h
0.623 KB
March 22 2020 4:45:46
root
0644
fcgio.h
3.633 KB
March 22 2020 4:45:46
root
0644
fcgios.h
3.421 KB
March 22 2020 4:45:46
root
0644
fcntl.h
9.482 KB
November 22 2023 2:32:50
root
0644
features.h
16.679 KB
November 22 2023 2:32:50
root
0644
fenv.h
5.736 KB
November 22 2023 2:32:50
root
0644
fmtmsg.h
3.164 KB
November 22 2023 2:32:50
root
0644
fnmatch.h
2.242 KB
November 22 2023 2:32:50
root
0644
fstab.h
3.038 KB
November 22 2023 2:32:50
root
0644
fts.h
8.177 KB
November 22 2023 2:32:50
root
0644
ftw.h
5.129 KB
November 22 2023 2:32:50
root
0644
gconv.h
4.112 KB
November 22 2023 2:32:50
root
0644
getopt.h
1.435 KB
November 22 2023 2:32:50
root
0644
glob.h
6.462 KB
November 22 2023 2:32:50
root
0644
gnu-versions.h
2.288 KB
November 22 2023 2:32:50
root
0644
gnumake.h
2.844 KB
July 28 2018 12:07:31
root
0644
grp.h
6.53 KB
November 22 2023 2:32:50
root
0644
gshadow.h
4.423 KB
November 22 2023 2:32:50
root
0644
iconv.h
1.814 KB
November 22 2023 2:32:50
root
0644
ifaddrs.h
2.774 KB
November 22 2023 2:32:50
root
0644
inttypes.h
11.614 KB
November 22 2023 2:32:50
root
0644
langinfo.h
17.431 KB
November 22 2023 2:32:50
root
0644
lastlog.h
0.123 KB
November 22 2023 2:32:50
root
0644
libgen.h
1.354 KB
November 22 2023 2:32:50
root
0644
libintl.h
4.473 KB
November 22 2023 2:32:50
root
0644
limits.h
5.29 KB
November 22 2023 2:32:50
root
0644
link.h
7.038 KB
November 22 2023 2:32:50
root
0644
locale.h
7.495 KB
November 22 2023 2:32:50
root
0644
malloc.h
6.041 KB
November 22 2023 2:32:50
root
0644
math.h
45.316 KB
November 22 2023 2:32:50
root
0644
mcheck.h
2.378 KB
November 22 2023 2:32:50
root
0644
memory.h
0.934 KB
November 22 2023 2:32:50
root
0644
mntent.h
3.28 KB
November 22 2023 2:32:50
root
0644
monetary.h
1.762 KB
November 22 2023 2:32:50
root
0644
mqueue.h
3.672 KB
November 22 2023 2:32:50
root
0644
netdb.h
27.441 KB
November 22 2023 2:32:50
root
0644
nl_types.h
1.712 KB
November 22 2023 2:32:50
root
0644
nss.h
1.835 KB
November 22 2023 2:32:50
root
0644
obstack.h
20.808 KB
November 22 2023 2:32:50
root
0644
paths.h
2.913 KB
November 22 2023 2:32:50
root
0644
poll.h
0.021 KB
November 22 2023 2:32:50
root
0644
printf.h
6.642 KB
November 22 2023 2:32:50
root
0644
proc_service.h
3.396 KB
November 22 2023 2:32:50
root
0644
pthread.h
40.724 KB
November 22 2023 2:32:50
root
0644
pty.h
1.533 KB
November 22 2023 2:32:50
root
0644
pwd.h
6.015 KB
November 22 2023 2:32:50
root
0644
re_comp.h
0.94 KB
November 22 2023 2:32:50
root
0644
regex.h
24.136 KB
November 22 2023 2:32:50
root
0644
regexp.h
1.414 KB
November 22 2023 2:32:50
root
0644
resolv.h
11.595 KB
November 22 2023 2:32:50
root
0644
sched.h
4.622 KB
November 22 2023 2:32:50
root
0644
search.h
5.322 KB
November 22 2023 2:32:50
root
0644
semaphore.h
2.671 KB
November 22 2023 2:32:50
root
0644
setjmp.h
3.584 KB
November 22 2023 2:32:50
root
0644
sgtty.h
1.313 KB
November 22 2023 2:32:50
root
0644
shadow.h
5.344 KB
November 22 2023 2:32:50
root
0644
signal.h
12.021 KB
November 22 2023 2:32:50
root
0644
spawn.h
7.576 KB
November 22 2023 2:32:50
root
0644
stab.h
0.258 KB
November 22 2023 2:32:50
root
0644
stdc-predef.h
2.236 KB
November 22 2023 2:32:50
root
0644
stdint.h
8.275 KB
November 22 2023 2:32:50
root
0644
stdio.h
29.248 KB
November 22 2023 2:32:50
root
0644
stdio_ext.h
2.734 KB
November 22 2023 2:32:50
root
0644
stdlib.h
34.995 KB
November 22 2023 2:32:50
root
0644
string.h
17.246 KB
November 22 2023 2:32:50
root
0644
strings.h
4.642 KB
November 22 2023 2:32:50
root
0644
sudo_plugin.h
8.028 KB
April 04 2023 1:56:28
root
0644
syscall.h
0.024 KB
November 22 2023 2:32:50
root
0644
sysexits.h
5.109 KB
November 22 2023 2:32:50
root
0644
syslog.h
0.023 KB
November 22 2023 2:32:50
root
0644
tar.h
3.697 KB
November 22 2023 2:32:50
root
0644
termio.h
0.209 KB
November 22 2023 2:32:50
root
0644
termios.h
3.515 KB
November 22 2023 2:32:50
root
0644
tgmath.h
36.542 KB
November 22 2023 2:32:50
root
0644
thread_db.h
15.648 KB
November 22 2023 2:32:50
root
0644
threads.h
6.505 KB
November 22 2023 2:32:50
root
0644
time.h
10.035 KB
November 22 2023 2:32:50
root
0644
ttyent.h
2.436 KB
November 22 2023 2:32:50
root
0644
uchar.h
1.955 KB
November 22 2023 2:32:50
root
0644
ucontext.h
1.989 KB
November 22 2023 2:32:50
root
0644
ulimit.h
1.547 KB
November 22 2023 2:32:50
root
0644
unistd.h
41.801 KB
November 22 2023 2:32:50
root
0644
utime.h
1.467 KB
November 22 2023 2:32:50
root
0644
utmp.h
3.147 KB
November 22 2023 2:32:50
root
0644
utmpx.h
4.004 KB
November 22 2023 2:32:50
root
0644
uv.h
62.506 KB
July 05 2021 7:32:59
root
0644
values.h
1.91 KB
November 22 2023 2:32:50
root
0644
wait.h
0.021 KB
November 22 2023 2:32:50
root
0644
wchar.h
30.382 KB
November 22 2023 2:32:50
root
0644
wctype.h
5.419 KB
November 22 2023 2:32:50
root
0644
wordexp.h
2.443 KB
November 22 2023 2:32:50
root
0644

NineSec Team - 2022