Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../data-stud/../../usr/include/semaphore.h
Real path: /usr/include/semaphore.h
Zurück
/* * Copyright (c) 1993, 2016, Oracle and/or its affiliates. All rights reserved. */ #ifndef _SEMAPHORE_H #define _SEMAPHORE_H #include <sys/feature_tests.h> #include <sys/types.h> #include <sys/fcntl.h> #ifdef __cplusplus extern "C" { #endif typedef struct { /* this structure must be the same as sema_t in <synch.h> */ uint32_t sem_count; /* semaphore count */ uint16_t sem_type; uint16_t sem_magic; upad64_t sem_pad1[3]; /* reserved for a mutex_t */ upad64_t sem_pad2[2]; /* reserved for a cond_t */ } sem_t; #define SEM_FAILED ((sem_t *)(-1)) /* * function prototypes */ int sem_init(sem_t *, int, unsigned int); int sem_destroy(sem_t *); sem_t *sem_open(const char *, int, ...); int sem_close(sem_t *); int sem_unlink(const char *); int sem_wait(sem_t *); /* * Inclusion of <time.h> breaks X/Open and POSIX namespace. * The timespec structure while allowed in XPG6 and POSIX.1003d-1999, * is not permitted in prior POSIX or X/Open specifications even * though functions beginning with sem_* are allowed. */ #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__) struct timespec; int sem_timedwait(sem_t *_RESTRICT_KYWD, const struct timespec *_RESTRICT_KYWD); int sem_reltimedwait_np(sem_t *_RESTRICT_KYWD, const struct timespec *_RESTRICT_KYWD); #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) ... */ int sem_trywait(sem_t *); int sem_post(sem_t *); int sem_getvalue(sem_t *_RESTRICT_KYWD, int *_RESTRICT_KYWD); #ifdef __cplusplus } #endif #endif /* _SEMAPHORE_H */