ftp.nice.ch/pub/next/developer/languages/sgml/sp.1.1.1.I.bs.tar.gz#/sp-1.1.1.I.bs/lib/PosixStorage_NeXT.h

This is PosixStorage_NeXT.h in view mode; [Download] [Up]

//
// POSIX workarounds for sp 1.1 on NEXTSTEP 3.3
// requires gcc 2.7.2 and libg++ 2.7.2
//

#ifdef __NeXT__

extern "C"
{

typedef	short			dev_t;
typedef	short			gid_t;
typedef	short			uid_t;
typedef	long			time_t;
typedef	unsigned long	u_long;
typedef	u_long			ino_t;

#define	EINTR		4
#define	O_RDONLY	000

#define	_S_IFMT		0170000	/* type of file */
#define	_S_IFDIR	0040000	/* directory */
#define	_S_IFCHR	0020000	/* character special */
#define	_S_IFBLK	0060000	/* block special */
#define	_S_IFREG	0100000	/* regular */
#define	_S_IFLNK	0120000	/* symbolic link */
#define	_S_IFSOCK	0140000	/* socket */
#define	_S_IFIFO	0010000	/* fifo (SUN_VFS) */
#define	_S_IRUSR	0000400	/* read permission, owner */
#define	_S_IWUSR	0000200	/* write permission, owner */
#define	_S_IXUSR	0000100	/* execute/search permission, owner */
#define	S_ISGID		0002000	/* set group id on execution */
#define	S_ISUID		0004000	/* set user id on execution */

struct	stat
{
	dev_t	st_dev;		/* File device number */
	ino_t	st_ino;		/* File serial number */
	unsigned short st_mode;	
	short st_nlink;	
	uid_t	st_uid;		/* File owner's user ID */
	gid_t	st_gid;		/* File owner's group ID */
	dev_t	st_rdev;
	off_t	st_size;	/* File size in bytes */
						/* (for regular file only) */
	time_t	st_atime;	/* Time of last file access */
	int	st_spare1;
	time_t	st_mtime;	/* Time of last file modification */
	int	st_spare2;
	time_t	st_ctime;	/* Time of last file status change */
	int	st_spare3;
	long	st_blksize;
	long	st_blocks;
	long	st_spare4[2];
};

int fstat(int, struct stat*);
int open(const char*, int);
}

#endif __NeXT__

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.