proc.h revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2008 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
/*
* process library interface
*/
#ifndef _PROC_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _PROC_H
#include <ast.h>
#define PROC_fd_dup 0x4
#define PROC_FD_CHILD 0x1
#define PROC_FD_PARENT 0x2
#define PROC_sig_dfl 0x8
#define PROC_sig_ign 0x9
#define PROC_sys_pgrp 0xa
#define PROC_sys_umask 0xb
#define PROC_op2(o,a,b) (((o)<<(2*PROC_ARG_BIT))|(((b)&PROC_ARG_NULL)<<PROC_ARG_BIT)|((a)&PROC_ARG_NULL))
#define PROC_ARG(x,n) ((n)?(((x)>>(((n)-1)*PROC_ARG_BIT))&PROC_ARG_NULL):(((x)&~((1<<(2*PROC_ARG_BIT))-1))==~((1<<(2*PROC_ARG_BIT))-1))?(-1):((x)&~((1<<(2*PROC_ARG_BIT))-1)))
typedef struct
{
int rfd; /* read fd if applicable */
int wfd; /* write fd if applicable */
#ifdef _PROC_PRIVATE_
#endif
} Proc_t;
#if _BLD_ast && defined(__EXPORT__)
#endif
#define __MANGLE__ __LINKAGE__
#endif