I need to write a backup/restore utility for Linux. Even the ext4 file-system will be supported. While I download Fedora 11 using the ext4 file-system I had a question.
Will the existing API's on...
Type: Posts; User: rak1986
I need to write a backup/restore utility for Linux. Even the ext4 file-system will be supported. While I download Fedora 11 using the ext4 file-system I had a question.
Will the existing API's on...
Hello people, need some help here..
Hello All,
I need to identify via a program the file-system types of all mounted volumes. There are 2 options : using getattrlist() or getmntinfo().
With getattrlist() ATTR_VOL_FSTYPE gives the...
Hello All,
I maintain a set of servers running Windows, Linux, Solaris. Few machines are used frequently while most are rarely used.
I need to identify different ways in which resource...
Hello,
Sorry this is a question related to Mac OS X programming, but this forum was the closest.
I need to identify programatically information about a volume, its type flags. I can get...
Hello,
I am trying to communicate with a tape drive using ioctl and SCSI_IOCTL_SEND_COMMAND as ioctl(fd, SCSI_IOCTL_SEND_COMMAND, buffer);
I read that the buffer should be of the form :
...
HI guys,
I need some help here.
Is it possible to write a generic function to support all SCSI commands?
Thanks....
Hello,
I am trying to communicate with a tape drive using ioctl and SCSI_IOCTL_SEND_COMMAND as ioctl(fd, SCSI_IOCTL_SEND_COMMAND, buffer);
I read that the buffer should be of the form :
...
Hello All,
Can I run binaries built on an x86 Mac OS X 10.4 machine on a 10.5 x86 machine?
I am using gcc
Thanks in advance...
hello all,
using gcc 4.0.1 on a Mac OS X 10.4 (i386) i am able to produce successfully a "ppc" binary
# gcc -arch ppc -o prg prg.c
But I am not able to produce an i386 binary on a "ppc"...
i replaced value with xattr_size and its working now
thanks.......
This program has been written under Mac OS X 10.4
#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<errno.h>
#include<sys/syslimits.h>
It identifies the alias as a regular file and not a sym link
I tried out a program using both S_ISLNK and S_ISREG
Oh, I completely overlooked that.
Thanks a lot for pointing out. Works fine now :)
Hi all,
This question is specific to the Mac OS X platform. So Mac OS users please help.
Mac OS X / HFS+ filesystem has aliases.
How can I identify them through a program?
I read that...
This is the output I get :
# ./acl_prg 1.txt 2.txt
File copy complete
setting ACL's for file
Bus error
Hi all,
I am trying to write a program to copy a file and also its ACL's. However, though the program compiles I get a bus error after acl_set_fd
Here is the program
#include<stdio.h>...
Hi,
I am trying to write a program to copy files using aync I/O in unix.
I have written this code :
#include<stdio.h>
#include<sys/types.h>
#include<sys/uio.h>
#include<unistd.h>
Hi,
I tried the following program :
#include<stdio.h>
#include<string.h>
int main()
{
const int PI=3;
I want to use file inodes to open, read, write, seek files etc. This can be used for file copying. The reason why I asked whether these FILE I/O operations can be performed using Inode number instead...
Hi all,
Is it possible to perform file I/O operations in Unix like open,read,write etc. using the file inode number?
Thanks
Hi all,
I need to write a C program to copy all files in a directory to another directory. Only the directory name will be specified as the source. Can anyone tell me how I should go about...