utility.c File Reference

#include "fs.h"
#include <minix/com.h>
#include <minix/endpoint.h>
#include <unistd.h>
#include "buf.h"
#include "file.h"
#include "fproc.h"
#include "inode.h"
#include "param.h"

Include dependency graph for utility.c:

Go to the source code of this file.

Functions

PUBLIC time_t clock_time ()
PUBLIC int fetch_name (char *path, int len, int flag)
PUBLIC int no_sys ()
PUBLIC void panic (char *who, char *mess, int num)
PUBLIC unsigned conv2 (int norm, int w)
PUBLIC long conv4 (int norm, long x)
PUBLIC int isokendpt_f (char *file, int line, int endpoint, int *proc, int fatal)

Variables

PRIVATE int panicking


Function Documentation

PUBLIC time_t clock_time  ) 
 

Definition at line 28 of file utility.c.

References boottime, getuptime(), HZ, k, OK, panic, and time_t.

Referenced by do_utime(), and update_times().

PUBLIC unsigned conv2 int  norm,
int  w
 

Definition at line 115 of file utility.c.

References BYTE.

PUBLIC long conv4 int  norm,
long  x
 

Definition at line 127 of file utility.c.

References conv2(), FALSE, and long().

PUBLIC int fetch_name char *  path,
int  len,
int  flag
 

Definition at line 45 of file utility.c.

References EGENERIC, EINVAL, ENAMETOOLONG, err_code, FS_PROC_NR, M3, M3_STRING, m_in, OK, PATH_MAX, r, sys_datacopy, user_path, and who_e.

Referenced by change(), do_access(), do_chmod(), do_chown(), do_creat(), do_link(), do_lstat(), do_mkdir(), do_mknod(), do_mount(), do_open(), do_rdlink(), do_rename(), do_slink(), do_stat(), do_truncate(), do_umount(), do_unlink(), and do_utime().

PUBLIC int isokendpt_f char *  file,
int  line,
int  endpoint,
int *  proc,
int  fatal
 

Definition at line 145 of file utility.c.

References _ENDPOINT_P, EDEADSRCDST, NO_NUM, NR_PROCS, OK, panic, and printf.

PUBLIC int no_sys  ) 
 

Definition at line 85 of file utility.c.

References EINVAL.

PUBLIC void panic char *  who,
char *  mess,
int  num
 

Definition at line 94 of file utility.c.

References do_sync(), NO_NUM, panicking, printf, SELF, sys_exit(), and TRUE.


Variable Documentation

PRIVATE int panicking
 

Definition at line 23 of file utility.c.

Referenced by panic().


Generated on Fri Apr 14 22:58:16 2006 for minix by  doxygen 1.4.6