Added a bunch of stuff
This commit is contained in:
parent
66350160b0
commit
77c2abd247
66 changed files with 1808 additions and 0 deletions
6
include/sys/io.h
Normal file
6
include/sys/io.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _SYS_IO_H
|
||||
#define _SYS_IO_H
|
||||
|
||||
extern unsigned char inb(unsigned short int port);
|
||||
|
||||
#endif
|
24
include/sys/socket.h
Normal file
24
include/sys/socket.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* <sys/socket.h> - main sockets header
|
||||
*
|
||||
* This header is a part of the FENIX C Library and is free software.
|
||||
* You can redistribute and/or modify it subject to the terms of the
|
||||
* Clumsy Wolf Public License v4. For more details, see the file COPYING.
|
||||
*
|
||||
* The FENIX C Library is distributed WITH NO WARRANTY WHATSOEVER. See
|
||||
* The CWPL for more details.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SOCKET_H
|
||||
#define _SYS_SOCKET_H
|
||||
|
||||
typedef long int socklen_t;
|
||||
#include <types/sa_family_t.h>
|
||||
|
||||
typedef struct _socket_address {
|
||||
sa_family_t sa_family;
|
||||
char sa_data[];
|
||||
} sockaddr;
|
||||
|
||||
|
||||
#endif
|
22
include/sys/un.h
Normal file
22
include/sys/un.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* <sys/un.h> - definitions for UNIX domain sockets
|
||||
*
|
||||
* This header is a part of the FENIX C Library and is free software.
|
||||
* You can redistribute and/or modify it subject to the terms of the
|
||||
* Clumsy Wolf Public License v4. For more details, see the file COPYING.
|
||||
*
|
||||
* The FENIX C Library is distributed WITH NO WARRANTY WHATSOEVER. See
|
||||
* The CWPL for more details.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_UN_H
|
||||
#define _SYS_UN_H
|
||||
|
||||
#include <types/sa_family_t.h>
|
||||
|
||||
typedef struct _un_sockaddr {
|
||||
sa_family_t sun_family
|
||||
char sun_path[108];
|
||||
} sockaddr_un;
|
||||
|
||||
#endif
|
14
include/sys/utsname.h
Normal file
14
include/sys/utsname.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef _SYS_UTSNAME_H
|
||||
#define _SYS_UTSNAME_H
|
||||
|
||||
typedef struct _uname {
|
||||
char sysname[70];
|
||||
char nodename[70];
|
||||
char release[70];
|
||||
char version[70];
|
||||
char machine[70];
|
||||
} utsname;
|
||||
|
||||
int uname(utsname *);
|
||||
|
||||
#endif
|
34
include/sys/wait.h
Normal file
34
include/sys/wait.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* <sys/wait.h> - declarations for waiting
|
||||
*
|
||||
* This header is a part of the FENIX C Library and is free software.
|
||||
* You can redistribute and/or modify it subject to the terms of the
|
||||
* Clumsy Wolf Public License v4. For more details, see the file COPYING.
|
||||
*
|
||||
* The FENIX C Library is distributed WITH NO WARRANTY WHATSOEVER. See
|
||||
* The CWPL for more details.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_WAIT_H
|
||||
#define _SYS_WAIT_H
|
||||
|
||||
/* Constants for waitpid() */
|
||||
#define WCONTINUED 1
|
||||
#define WNOHANG 2
|
||||
#define WUNTRACED 3
|
||||
|
||||
/* Options for waitid() */
|
||||
#define WEXITED 1
|
||||
#define WNOWAIT 2
|
||||
#define WSTOPPED 3
|
||||
|
||||
enum idtype_t {P_ALL, P_PGID, P_PID};
|
||||
|
||||
#include <types/pid_t.h>
|
||||
#include <signal.h>
|
||||
|
||||
pid_t wait(int *);
|
||||
int waitid(idtype_t, id_t, siginfo_t *, int);
|
||||
pid_t waitpid(pid_t, int *, int);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue