Hi All,
I am not sure whether its related to my read call or something else. But i am stuck after the read call in the program.
I am trying to read data from a file (client/server) program. This program works fine when the file name is to a limited size (for eg: PRA2818521119999226AAA.linux1601119999333) but when it tries to read with file name (PRA2818521119999226AAA.linux1601119999333.linux1191119999385) it doesnt work).
All it fails is after my read call. Does read have any limitations of file names.
Here is the call
/*rc=read(fd,(char *)buf+sz,size-sz);*/
or
rc=read(fd,(char *)buf+sz,512); /* i have forced it to 512 */
what it reads is only part of file name such as PRA2818521119999226AAA.linux1601119999333.l and thus at a later stage rest of the program bails out.
Thanks in advance for your help.
I am not sure whether its related to my read call or something else. But i am stuck after the read call in the program.
I am trying to read data from a file (client/server) program. This program works fine when the file name is to a limited size (for eg: PRA2818521119999226AAA.linux1601119999333) but when it tries to read with file name (PRA2818521119999226AAA.linux1601119999333.linux1191119999385) it doesnt work).
All it fails is after my read call. Does read have any limitations of file names.
Here is the call
/*rc=read(fd,(char *)buf+sz,size-sz);*/
or
rc=read(fd,(char *)buf+sz,512); /* i have forced it to 512 */
what it reads is only part of file name such as PRA2818521119999226AAA.linux1601119999333.l and thus at a later stage rest of the program bails out.
Thanks in advance for your help.